Advertisement
msnoeck

ssd051013.php

Aug 22nd, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.68 KB | None | 0 0
  1. <?php
  2. global $org_options;
  3.  
  4. //Build the path to the css files
  5. if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "tickets/templates/css/base.css")) {
  6.     $base_dir = EVENT_ESPRESSO_UPLOAD_URL . 'tickets/templates/css/';//If the template files have been moved to the uploads folder
  7. } else {
  8.     $base_dir = ESPRESSO_TICKETING_FULL_URL.'templates/css/';//Default location
  9. }
  10.  
  11. //Output the $data (array) variable that contains the attendee information and ticket settings
  12. //echo "<pre>".print_r($data,true)."</pre>";
  13. ?>
  14. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  15. <html>
  16. <head>
  17. <title><?php echo stripslashes_deep($org_options['organization']) ?> <?php _e('Ticket for', 'event_espresso'); ?> <?php echo stripslashes_deep($data->attendee->fname . ' ' .$data->attendee->lname) ?> | <?php echo $data->attendee->registration_id ?></title>
  18. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  19. <!-- Base Stylesheet do not change or remove -->
  20. <link rel="stylesheet" type="text/css" href="<?php echo $base_dir; ?>base.css" media="screen" />
  21.  
  22. <!-- Primary Style Sheet -->
  23. <link rel="stylesheet" type="text/css" href="<?php echo $base_dir.$data->event->css_file; ?>" />
  24.  
  25. <!-- Make sure the buttons don't print -->
  26. <style type="text/css">
  27. @media print{
  28.     .noPrint{display:none!important;}
  29. }
  30. </style>
  31. </head>
  32.  
  33. <body>
  34. <div class="outside">
  35. <div class="print_button_div">
  36.     <form>
  37.         <input class="print_button noPrint" type="button" value=" Print Ticket " onclick="window.print();return false;" />
  38.     </form>
  39.     <form method="post" action="<?php echo espresso_ticket_url($data->attendee->id, $data->attendee->registration_id, '&pdf=true'); ?>" >
  40.         <input class="print_button noPrint" type="submit" value=" Download PDF " />
  41.     </form>
  42. </div>
  43.   <div class="instructions"><?php _e('Print and bring this ticket with you to the event', 'event_espresso'); ?></div>
  44.   <div class="ticket">
  45.     <table width="100%" border="0">
  46.       <tr>
  47.         <td colspan="2" align="right" valign="top">
  48.         <div class="register_detail"><span class="price">[cost]</span><br>
  49.           [fname] [lname] (<?php _e('ID:', 'event_espresso'); ?> [att_id])<br>
  50.           [registration_id]<br>
  51.           <?php _e('Qty.', 'event_espresso'); ?> [ticket_qty]
  52.           </div></td>
  53.       </tr>
  54.     </table>
  55.   </div>
  56.  <div class="divider"></div>
  57. <table width="100%" border="0">
  58.     <tr>
  59.         <td width="74%" rowspan="2" valign="top"><span class="top_event_title">[event_name]</span><br>
  60.             [start_date] [start_time] <br>
  61.             <strong>[ticket_type]</strong><br>
  62.             [venue_title]<br></td>
  63.         <td width="26%" align="right" valign="top"><div class="qr_code">[qr_code]</div></td>
  64.        
  65.       </tr>
  66.    
  67.     </table>  
  68.   <div class="extra_info">
  69.    <div class="divider"></div>
  70.    
  71.     <table width="100%" border="0">
  72.       <tr>
  73.         <td width="40%" height="35" align="left" valign="top" bgcolor="#99CC99"><p><strong><?php _e('Location:', 'event_espresso'); ?></strong><br>
  74.             [venue_title]<br>
  75.             [venue_address]<br>
  76.             [venue_address2]<br>
  77.             [venue_city], [venue_state]<br>
  78.             [venue_phone]</p>
  79.           <p><strong><?php _e('More Information:', 'event_espresso'); ?></strong></p>
  80.           <p>[venue_description]</p>
  81.           <p><strong><?php _e('Ticket Instructions:', 'event_espresso'); ?></strong></p>
  82.           <p>[ticket_content]</p></td>
  83.         <td width="60%" valign="top">[google_map_image]</td>
  84.       </tr>
  85.     </table>
  86.   </div>
  87.   <div class="footer">Powered by the <a href="http://eventespresso.com" target="_blank">Event Espresso Ticketing System</a> for WordPress</div>
  88. </div>
  89. </body>
  90. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement