Advertisement
Guest User

Event Espresso - Choose a Seat Button - main.php

a guest
Apr 9th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. /*
  2.              * Added for seating chart addon
  3.              */
  4.  
  5.             if (defined('ESPRESSO_SEATING_CHART')) {
  6.                 if (seating_chart::check_event_has_seating_chart($_REQUEST['event_id']) !== false) {
  7.  
  8.                     $htm .= '<p>';
  9.                     $htm .= '<label>' . __('Select a Seat:', 'event_espresso') . '</label>';                   
  10.                     ?>
  11.                     <script type="text/javascript">
  12.                     function myClick<?php echo $x; ?>( test)
  13.                     {
  14.                     test = test.replace("click_id","myFocusField_");
  15.                     document.getElementById(test).click();
  16.                     }
  17.                     </script>
  18.                     <?php
  19.                     $htm .= "<a id=\"click_id[\' + attendee_num + \']\" class=\"helpLink\" onclick=\"javascript:myClick(this.id);\" >Sitzplatz erste Person</a><br>";
  20.                     $htm .= '<input id=\"myFocusField_[\' + attendee_num + \']\" type="text" name="x_seat_id[\' + attendee_num + \']" value="" class="ee_s_select_seat" event_id="' . $_REQUEST['event_id'] . '" readonly="readonly" />';
  21.                     $htm .= '<br/>[' . __('If you do not select a seat this attendee will not be added', 'event_espresso') . ']';
  22.                     $htm .= '</p>';
  23.                 }
  24.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement