crundell

HH ticket

Aug 14th, 2012
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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">Print and bring this ticket with you to the event</div>
  44. <div class="ticket">
  45. <table width="700" border="0" cellspacing="0" cellpadding="0">
  46. <tr>
  47. <td width="274"><img src="http://www.heidenhain.us/event//wp-content/plugins/espresso-ticketing/templates/dot_clear.gif" alt="" height="1" width="274" border="0"></td>
  48. <td width="172"><img src="http://www.heidenhain.us/event//wp-content/plugins/espresso-ticketing/templates/dot_clear.gif" alt="" height="1" width="172" border="0"></td>
  49. <td width="134"><img src="http://www.heidenhain.us/event//wp-content/plugins/espresso-ticketing/templates/dot_clear.gif" alt="" height="1" width="134" border="0"></td>
  50. <td width="134"><img src="http://www.heidenhain.us/event//wp-content/plugins/espresso-ticketing/templates/dot_clear.gif" alt="" height="1" width="120" border="0"></td>
  51. </tr>
  52. <tr>
  53. <td colspan="2" align="left" valign="top" style="padding:10px;"><font class="ticket-title">Improving the Accuracy of Machine Tools -<br>
  54. Potentials and Limits<br>
  55. </font><font class="ticket-text">Wednesday, September 12th @ 10:30am<br>IMTS2012 - East Building, Room E258</font>
  56. </td>
  57. <td width="134"><div class="qr_code">[qr_code]</div></td>
  58. <td rowspan="3" align="left" valign="bottom" width="120" style="padding:10px;"><font class="ticket-stub"><b>Improving the Accuracy of Machine Tools &#150;<br>
  59. Potentials and Limits<br></b>
  60. Wednesday, September 12th @ 10:30am<br>
  61. IMTS2012 - East Building, Room E258<br>
  62. <b>[fname] [lname]<br></b></font><font class="ticket-text">[answer_Title]<br>
  63. [answer_Company]</font></td>
  64. </tr>
  65. <tr>
  66. <td width="274"><img src="http://www.heidenhain.us/event//wp-content/plugins/espresso-ticketing/templates/divider.gif" alt="" height="6" width="274" border="0"></td>
  67. <td width="172"><img src="http://www.heidenhain.us/event//wp-content/plugins/espresso-ticketing/templates/divider.gif" alt="" height="6" width="172" border="0"></td>
  68. <td width="134"><img src="http://www.heidenhain.us/event//wp-content/plugins/espresso-ticketing/templates/divider.gif" alt="" height="6" width="134" border="0"></td>
  69. </tr>
  70. <tr>
  71. <td align="left" valign="top" width="274" style="padding:10px;"><font class="ticket-title">[fname] [lname]<br></font><font class="ticket-text">[answer_Title]<br>
  72. [answer_Company]</font></td>
  73. <td colspan="2" width="312"><img src="http://www.heidenhain.us/event//wp-content/plugins/espresso-ticketing/templates/HHlogo.jpg" alt="" height="130" width="306" border="0"></td>
  74. </tr>
  75. </table>
  76. </div>
  77. </div>
  78. </body>
  79. </html>
RAW Paste Data