Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $org_options;
- //Build the path to the css files
- if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "tickets/templates/css/base.css")) {
- $base_dir = EVENT_ESPRESSO_UPLOAD_URL . 'tickets/templates/css/';//If the template files have been moved to the uploads folder
- } else {
- $base_dir = ESPRESSO_TICKETING_FULL_URL.'templates/css/';//Default location
- }
- //Output the $data (array) variable that contains the attendee information and ticket settings
- //echo "<pre>".print_r($data,true)."</pre>";
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <!-- Base Stylesheet do not change or remove -->
- <link rel="stylesheet" type="text/css" href="<?php echo $base_dir; ?>base.css" media="screen" />
- <!-- Primary Style Sheet -->
- <link rel="stylesheet" type="text/css" href="<?php echo $base_dir.$data->event->css_file; ?>" />
- <!-- Make sure the buttons don't print -->
- <style type="text/css">
- @media print{
- .noPrint{display:none!important;}
- }
- </style>
- </head>
- <body>
- <div class="outside">
- <div class="print_button_div">
- <form>
- <input class="print_button noPrint" type="button" value=" Print Ticket " onclick="window.print();return false;" />
- </form>
- <form method="post" action="<?php echo espresso_ticket_url($data->attendee->id, $data->attendee->registration_id, '&pdf=true'); ?>" >
- <input class="print_button noPrint" type="submit" value=" Download PDF " />
- </form>
- </div>
- <div class="instructions">Print and bring this ticket with you to the event</div>
- <div class="ticket">
- <table width="700" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <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>
- <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>
- <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>
- <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>
- </tr>
- <tr>
- <td colspan="2" align="left" valign="top" style="padding:10px;"><font class="ticket-title">Improving the Accuracy of Machine Tools -<br>
- Potentials and Limits<br>
- </font><font class="ticket-text">Wednesday, September 12th @ 10:30am<br>IMTS2012 - East Building, Room E258</font>
- </td>
- <td width="134"><div class="qr_code">[qr_code]</div></td>
- <td rowspan="3" align="left" valign="bottom" width="120" style="padding:10px;"><font class="ticket-stub"><b>Improving the Accuracy of Machine Tools –<br>
- Potentials and Limits<br></b>
- Wednesday, September 12th @ 10:30am<br>
- IMTS2012 - East Building, Room E258<br>
- <b>[fname] [lname]<br></b></font><font class="ticket-text">[answer_Title]<br>
- [answer_Company]</font></td>
- </tr>
- <tr>
- <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>
- <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>
- <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>
- </tr>
- <tr>
- <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>
- [answer_Company]</font></td>
- <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>
- </tr>
- </table>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement