Changeset 1333789
- Timestamp:
- 01/22/2016 03:05:14 PM (10 years ago)
- Location:
- event-registration/trunk
- Files:
-
- 14 edited
-
attendee/evr_admin_attendee_add.php (modified) (2 diffs)
-
attendee/evr_admin_attendee_case.php (modified) (1 diff)
-
attendee/evr_admin_attendee_edit.php (modified) (5 diffs)
-
attendee/evr_admin_attendee_listing.php (modified) (2 diffs)
-
attendee/evr_admin_attendee_post.php (modified) (2 diffs)
-
attendee/evr_admin_attendee_update.php (modified) (2 diffs)
-
attendee/evr_admin_attendee_view.php (modified) (2 diffs)
-
evr_excel.php (modified) (3 diffs)
-
payments/evr_admin_payments-case.php (modified) (1 diff)
-
payments/evr_admin_payments-event_list.php (modified) (2 diffs)
-
payments/evr_admin_payments-view.php (modified) (1 diff)
-
questions/evr_admin_questions-case.php (modified) (1 diff)
-
questions/evr_admin_questions-default.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
event-registration/trunk/attendee/evr_admin_attendee_add.php
r941152 r1333789 6 6 (is_numeric($_REQUEST['event_id'])) ? $event_id = $_REQUEST['event_id'] : $event_id = "0"; 7 7 $event = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . get_option ( 'evr_event' ). " WHERE id = %d", $event_id ) ); 8 $reg_form_defaults = (array)@unserialize($event->reg_form_defaults); 9 if ($reg_form_defaults !=""){ 10 if (in_array("Address", $reg_form_defaults)) {$inc_address = "Y";} else {$inc_address = "N";} 11 if (in_array("City", $reg_form_defaults)) {$inc_city = "Y";} else {$inc_city = "N";} 12 if (in_array("State", $reg_form_defaults)) {$inc_state = "Y";} else {$inc_state = "N";} 13 if (in_array("Zip", $reg_form_defaults)) {$inc_zip = "Y";} else {$inc_zip = "N";} 14 if (in_array("Phone", $reg_form_defaults)) {$inc_phone = "Y";} else {$inc_phone = "N";} 15 if (in_array("Company", $reg_form_defaults)) {$inc_comp = "Y";} else {$inc_comp = "N";} 16 if (in_array("CoAddress", $reg_form_defaults)) {$inc_coadd = "Y";} else {$inc_coadd = "N";} 17 if (in_array("CoCity", $reg_form_defaults)) {$inc_cocity = "Y";} else {$inc_cocity = "N";} 18 if (in_array("CoState", $reg_form_defaults)) {$inc_costate = "Y";} else {$inc_costate = "N";} 19 if (in_array("CoPostal", $reg_form_defaults)) {$inc_copostal = "Y";} else {$inc_copostal = "N";} 20 if (in_array("CoPhone", $reg_form_defaults)) {$inc_cophone = "Y";} else {$inc_cophone = "N";} 21 } 22 else { 23 $inc_address = "N"; 24 $inc_city = "N"; 25 $inc_state = "N"; 26 $inc_zip = "N"; 27 $inc_phone = "N"; 28 $inc_comp = "N"; 29 $inc_coadd = "N"; 30 $inc_cocity = "N"; 31 $inc_costate = "N"; 32 $inc_copostal = "N"; 33 $inc_cophone = "N"; 34 35 } 36 $event_category = (array)@unserialize($event->event_category); 37 38 $event_category = (array)@unserialize($event->event_category); 39 $reg_limit = $event->reg_limit; 40 $event_name = stripslashes($event->event_name); 41 $use_coupon = $event->use_coupon; 42 43 8 44 ?> 9 45 <div class="wrap"> … … 191 227 </script> 192 228 <hr /> 193 <?php if ($ER_org_data['captcha'] == 'Y') { ?> 194 <p>Enter the security code as it is shown (required):<script type="text/javascript">sjcap("altTextField");</script> 195 <noscript><p>[This resource requires a Javascript enabled browser.]</p></noscript> 196 <?php } ?> 229 197 230 <input type="hidden" name="action" value="post_attendee"/> 198 231 <input type="hidden" name="event_id" value="<?php echo $event_id; ?>"/> -
event-registration/trunk/attendee/evr_admin_attendee_case.php
r623144 r1333789 1 1 <?php 2 2 function evr_attendee_admin(){ 3 $action = $_REQUEST['action'];3 $action = (string)@$_REQUEST['action']; 4 4 switch ($action) { 5 5 case "view_attendee": -
event-registration/trunk/attendee/evr_admin_attendee_edit.php
r941152 r1333789 1 1 <?php 2 2 function evr_admin_edit_attendee(){ 3 global $wpdb ;3 global $wpdb, $company_options; 4 4 //$event_id = $_REQUEST['event_id']; 5 5 (is_numeric($_REQUEST['event_id'])) ? $event_id = $_REQUEST['event_id'] : $event_id = "0"; 6 6 $event = $wpdb->get_row('SELECT * FROM ' . get_option('evr_event') . ' WHERE id = ' . $event_id); 7 $reg_form_defaults = unserialize($event->reg_form_defaults);7 $reg_form_defaults = (array)@unserialize($event->reg_form_defaults); 8 8 if ($reg_form_defaults !=""){ 9 if (in_array("Address", $reg_form_defaults)) {$inc_address = "Y";} 10 if (in_array("City", $reg_form_defaults)) {$inc_city = "Y";} 11 if (in_array("State", $reg_form_defaults)) {$inc_state = "Y";} 12 if (in_array("Zip", $reg_form_defaults)) {$inc_zip = "Y";} 13 if (in_array("Phone", $reg_form_defaults)) {$inc_phone = "Y";} 14 } 15 $event_category = unserialize($event->event_category); 9 if (in_array("Address", $reg_form_defaults)) {$inc_address = "Y";} else {$inc_address = "N";} 10 if (in_array("City", $reg_form_defaults)) {$inc_city = "Y";} else {$inc_city = "N";} 11 if (in_array("State", $reg_form_defaults)) {$inc_state = "Y";} else {$inc_state = "N";} 12 if (in_array("Zip", $reg_form_defaults)) {$inc_zip = "Y";} else {$inc_zip = "N";} 13 if (in_array("Phone", $reg_form_defaults)) {$inc_phone = "Y";} else {$inc_phone = "N";} 14 if (in_array("Company", $reg_form_defaults)) {$inc_comp = "Y";} else {$inc_comp = "N";} 15 if (in_array("CoAddress", $reg_form_defaults)) {$inc_coadd = "Y";} else {$inc_coadd = "N";} 16 if (in_array("CoCity", $reg_form_defaults)) {$inc_cocity = "Y";} else {$inc_cocity = "N";} 17 if (in_array("CoState", $reg_form_defaults)) {$inc_costate = "Y";} else {$inc_costate = "N";} 18 if (in_array("CoPostal", $reg_form_defaults)) {$inc_copostal = "Y";} else {$inc_copostal = "N";} 19 if (in_array("CoPhone", $reg_form_defaults)) {$inc_cophone = "Y";} else {$inc_cophone = "N";} 20 } 21 else { 22 $inc_address = "N"; 23 $inc_city = "N"; 24 $inc_state = "N"; 25 $inc_zip = "N"; 26 $inc_phone = "N"; 27 $inc_comp = "N"; 28 $inc_coadd = "N"; 29 $inc_cocity = "N"; 30 $inc_costate = "N"; 31 $inc_copostal = "N"; 32 $inc_cophone = "N"; 33 34 } 35 $event_category = (array)@unserialize($event->event_category); 16 36 $reg_limit = $event->reg_limit; 17 37 $event_name = stripslashes($event->event_name); … … 37 57 <div class="padding"> 38 58 <form method="post" action="<?php echo $_SERVER['REQUEST_URI'];?>" onSubmit="return validateForm(this)"> 39 < ul>40 < li><label for="fname"><?php _e('First Name','evr_language');?></label><input id="fname" name="fname" value="<?php echo $attendee->fname;?>" /></li>41 < li><label for="lname"><?php _e('Last Name','evr_language');?></label><input id="lname" name="lname" value="<?php echo $attendee->lname;?>"/></li>42 < li><label for="email" ><?php _e('Email Address','evr_language');?></label><input id="email" name="email" value="<?php echo $attendee->email;?>"/></li>59 <table> 60 <tr><td><label for="fname"><?php _e('First Name','evr_language');?></label> <input id="fname" name="fname" value="<?php echo $attendee->fname;?>" /></td></tr> 61 <tr><td><label for="lname"><?php _e('Last Name','evr_language');?></label> <input id="lname" name="lname" value="<?php echo $attendee->lname;?>"/></td></tr> 62 <tr><td><label for="email" ><?php _e('Email Address','evr_language');?></label> <input id="email" name="email" value="<?php echo $attendee->email;?>"/></td></tr> 43 63 <?php if ($inc_phone == "Y") { ?> 44 < li><label for="phone" ><?php _e('Phone Number','evr_language');?></label><input id="phone" name="phone" value="<?php echo $attendee->phone;?>"/></li>64 <tr><td><label for="phone" ><?php _e('Phone Number','evr_language');?></label> <input id="phone" name="phone" value="<?php echo $attendee->phone;?>"/></td></tr> 45 65 <?php } ?> 46 66 <?php if ($inc_address == "Y") { ?> 47 < li><label for="address"><?php _e('Address','evr_language');?></label><input id="address" name="address" value="<?php echo $attendee->address;?>" /></li>67 <tr><td><label for="address"><?php _e('Address','evr_language');?></label> <input id="address" name="address" value="<?php echo $attendee->address;?>" /></td></tr> 48 68 <?php } ?> 49 69 <?php if ($inc_city == "Y") { ?> 50 < li><label for="city"><?php _e('City','evr_language');?></label><input id="city" name="city" value="<?php echo $attendee->city;?>"/></li>70 <tr><td><label for="city"><?php _e('City','evr_language');?></label> <input id="city" name="city" value="<?php echo $attendee->city;?>"/></td></tr> 51 71 <?php } ?> 52 72 <?php if ($inc_state == "Y") { ?> 53 < li><label for="state"><?php _e('State/Province','evr_language');?></label><input id="state" name="state" value="<?php echo $attendee->state;?>"/></li>73 <tr><td><label for="state"><?php _e('State/Province','evr_language');?></label> <input id="state" name="state" value="<?php echo $attendee->state;?>"/></td></tr> 54 74 <?php } ?> 55 75 <?php if ($inc_zip == "Y") { ?> 56 < li><label for="zip"><?php _e('Zip/Postal Code','evr_language');?></label><input id="zip" name="zip" value="<?php echo $attendee->zip;?>" /></li>76 <tr><td><label for="zip"><?php _e('Zip/Postal Code','evr_language');?></label><input id="zip" name="zip" value="<?php echo $attendee->zip;?>" /></td></tr> 57 77 <?php } ?> 58 78 <?php if ($use_coupon == "Y") { ?> 59 < li><label for="coupon"><?php _e('Enter coupon code for discount off primary registration?','evr_language');?></label><input id="coupon" name="coupon" value="<?php echo $attendee->coupon;?>"/></li>79 <tr><td><label for="coupon"><?php _e('Enter coupon code for discount off primary registration?','evr_language');?></label><input id="coupon" name="coupon" value="<?php echo $attendee->coupon;?>"/></td></tr> 60 80 <?php } ?> 61 81 <?php … … 63 83 if ($questions) { 64 84 for($i = 0; $i < count ( $questions ); $i ++) { 65 echo "< li><label>".$questions [$i]->question."</label>";85 echo "<tr><td><label>".$questions [$i]->question."</label> "; 66 86 $question_id = $questions [$i]->id; 67 87 $answer = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM " . get_option('evr_answer'). " WHERE registration_id = %d AND question_id = %d", $attendee_id,$question_id ) ); 68 $answers = $answer->answer;88 $answers = (string)@$answer->answer; 69 89 evr_form_build_edit ( $questions [$i], $answers ); 70 echo "</ li>";90 echo "</td></tr>"; 71 91 } 72 92 } 73 93 ?> 94 </table> 74 95 <hr /> 75 <li><b><label for="attendees"><?php _e('Attendees','evr_language');?></label></b></li><br/> 96 <b><label for="attendees"><?php _e('Attendees','evr_language');?></label></b><br/> 97 <table> 76 98 <?php 77 99 $attendee_array = unserialize($attendee->attendees); … … 80 102 do { 81 103 $person = $i + 1; 82 echo ' Attendee #'.$person.' First Name: <input name="attendee['.$i.'][first_name]"';104 echo '<tr><td> Attendee #'.$person.' First Name: <input name="attendee['.$i.'][first_name]"'; 83 105 if ($i=="0" && $attendee_array[$i]["first_name"]==""){ echo 'value ="'.$attendee->fname.'"'; } 84 106 else {echo 'value ="'.$attendee_array[$i]["first_name"].'"';} 85 107 echo '/>'; 86 echo ' Last Name: <input name="attendee['.$i.'][last_name]"';108 echo '</td><td> Last Name: <input name="attendee['.$i.'][last_name]"'; 87 109 if ($i=="0" && $attendee_array[$i]["last_name"]==""){ echo 'value ="'.$attendee->lname.'"'; } 88 110 else {echo 'value ="'.$attendee_array[$i]["last_name"].'"';} 89 echo '/></ br>';111 echo '/></tr>'; 90 112 ++$i; 91 113 } while ($i < $attendee->quantity); 92 114 } 93 115 ?> 94 </ul> 116 </table> 117 95 118 <?php 96 119 $num = 0; … … 263 286 </script> 264 287 <hr /> 265 <?php if ($ER_org_data['captcha'] == 'Y') { ?>266 <p>Enter the security code as it is shown (required):<script type="text/javascript">sjcap("altTextField");</script>267 <noscript><p>[This resource requires a Javascript enabled browser.]</p></noscript>268 <?php } ?>269 288 <input type="hidden" name="action" value="update_attendee"/> 270 289 <input type="hidden" name="event_id" value="<?php echo $event_id; ?>"/> -
event-registration/trunk/attendee/evr_admin_attendee_listing.php
r944628 r1333789 34 34 $p->limit($record_limit); // Limit entries per page 35 35 $p->target("admin.php?page=attendee"); 36 $p->currentPage( $_GET[$p->paging]); // Gets and validates the current page36 $p->currentPage((string)@$_GET[$p->paging]); // Gets and validates the current page 37 37 $p->calculate(); // Calculates what to show 38 38 $p->parameterName('paging'); … … 101 101 $end_time = $event->end_time; 102 102 $conf_mail = $event->conf_mail; 103 $custom_mail = $event->custom_mail;103 //$custom_mail = $event->custom_mail; 104 104 $start_date = $event->start_date; 105 105 $end_date = $event->end_date; -
event-registration/trunk/attendee/evr_admin_attendee_post.php
r941152 r1333789 7 7 (is_numeric($_REQUEST['event_id'])) ? $event_id = $_REQUEST['event_id'] : $event_id = "0"; 8 8 //Begin gather registrtion data for database input 9 $fname = $_REQUEST['fname'];10 $lname = $_REQUEST['lname'];11 $address = $_REQUEST['address'];12 $city = $_REQUEST['city'];13 $state = $_REQUEST['state'];14 $zip = $_REQUEST['zip'];15 $phone = $_REQUEST['phone'];16 $email = $_REQUEST['email'];9 $fname = (string)@$_REQUEST['fname']; 10 $lname = (string)@$_REQUEST['lname']; 11 $address = (string)@$_REQUEST['address']; 12 $city = (string)@$_REQUEST['city']; 13 $state = (string)@$_REQUEST['state']; 14 $zip = (string)@$_REQUEST['zip']; 15 $phone = (string)@$_REQUEST['phone']; 16 $email = (string)@$_REQUEST['email']; 17 17 (is_numeric($_REQUEST['event_id'])) ? $event_id = $_REQUEST['event_id'] : $event_id = "0"; 18 18 //$event_id = $_REQUEST['event_id']; 19 $payment = $_REQUEST['total'];20 $coupon = $_REQEUST['coupon'];21 $reg_type = $_REQUEST['reg_type'];19 $payment = (string)@$_REQUEST['total']; 20 $coupon = (string)@$_REQEUST['coupon']; 21 $reg_type = (string)@$_REQUEST['reg_type']; 22 22 //Break Flow 23 23 $items = $wpdb->get_results( "SELECT * FROM ". get_option('evr_cost') . " WHERE event_id = " . $event_id. " ORDER BY sequence ASC" ); … … 39 39 if ($item_custom_cur == "USD"){$item_custom_cur = "$";} 40 40 $item_post = str_replace(".", "_", $item_price); 41 $item_qty = $_REQUEST['PROD_' . $event_id . '-' . $item_id . '_' . $item_post];41 $item_qty = (string)@$_REQUEST['PROD_' . $event_id . '-' . $item_id . '_' . $item_post]; 42 42 if ($item_cat == "REG"){$num_people = $num_people + $item_qty;} 43 43 $item_info = array('ItemID' => $item_id, 'ItemEventID' => $event_id, 'ItemCat'=>$item_cat, -
event-registration/trunk/attendee/evr_admin_attendee_update.php
r1139772 r1333789 2 2 function evr_update_attendee(){ 3 3 global $wpdb; 4 $attendee_id = $_REQUEST['attendee_id'];4 $attendee_id = (string)@$_REQUEST['attendee_id']; 5 5 $num_people = 0; 6 6 $item_order = array(); … … 8 8 (is_numeric($_REQUEST['event_id'])) ? $event_id = $_REQUEST['event_id'] : $event_id = "0"; 9 9 //Begin gather registrtion data for database input 10 $fname = $_REQUEST['fname'];11 $lname = $_REQUEST['lname'];12 $address = $_REQUEST['address'];13 $city = $_REQUEST['city'];14 $state = $_REQUEST['state'];15 $zip = $_REQUEST['zip'];16 $phone = $_REQUEST['phone'];17 $email = $_REQUEST['email'];10 $fname = (string)@$_REQUEST['fname']; 11 $lname = (string)@$_REQUEST['lname']; 12 $address = (string)@$_REQUEST['address']; 13 $city = (string)@$_REQUEST['city']; 14 $state = (string)@$_REQUEST['state']; 15 $zip = (string)@$_REQUEST['zip']; 16 $phone = (string)@$_REQUEST['phone']; 17 $email = (string)@$_REQUEST['email']; 18 18 //$event_id = $_REQUEST['event_id']; 19 19 (is_numeric($_REQUEST['event_id'])) ? $event_id = $_REQUEST['event_id'] : $event_id = "0"; 20 $payment = $_REQUEST['total'];21 $coupon = $_REQEUST['coupon'];22 $reg_type = $_REQUEST['reg_type'];23 $attendee_array = $_REQUEST['attendee'];20 $payment = (string)@$_REQUEST['total']; 21 $coupon = (string)@$_REQEUST['coupon']; 22 $reg_type = (string)@$_REQUEST['reg_type']; 23 $attendee_array = (array)@$_REQUEST['attendee']; 24 24 $attendee_list = serialize($attendee_array); 25 25 $items = $wpdb->get_results( "SELECT * FROM ". get_option('evr_cost') . " WHERE event_id = " . $event_id. " ORDER BY sequence ASC" ); -
event-registration/trunk/attendee/evr_admin_attendee_view.php
r944628 r1333789 13 13 if (in_array("Phone", $reg_form_defaults)) {$inc_phone = "Y";} 14 14 } 15 $event_category = unserialize($event->event_category);15 $event_category = (array)@unserialize($event->event_category); 16 16 /* if ($event->start_date <= date('Y-m-d')){ 17 17 $active_event = '<span style="color: #F00; font-weight:bold;">EXPIRED EVENT</span>'; … … 64 64 $p->limit($record_limit); // Limit entries per page 65 65 $p->target("admin.php?page=attendee&action=view_attendee&event_id=".$event_id); 66 $p->currentPage( $_GET[$p->paging]); // Gets and validates the current page66 $p->currentPage((string)@$_GET[$p->paging]); // Gets and validates the current page 67 67 $p->calculate(); // Calculates what to show 68 68 $p->parameterName('paging'); -
event-registration/trunk/evr_excel.php
r941292 r1333789 2 2 function evr_excel($event_id){ 3 3 global $wpdb; 4 $today = date('j F Y'); 4 5 $events_answer_tbl = get_option('evr_answer'); 5 6 $events_question_tbl = get_option('evr_question'); … … 13 14 $event_id = $_REQUEST['id']; 14 15 $event = $wpdb->get_row($wpdb->prepare("SELECT * FROM ". get_option('evr_event') ." WHERE id = %d",$event_id)); 15 switch ( $_REQUEST['action']) {16 switch ((string)@$_REQUEST['action']) { 16 17 case "attendee": 17 18 //create filename for excel export … … 23 24 $s = $et . $st; 24 25 //Base array for cell column headings 25 if ($ waiver == "Y"){26 if ($event->waiver == "Y"){ 26 27 $basic_header = array('Reg ID', 'Reg Date','Type','Agreed to Waiver','Last Name', 'First Name', 'Attendees', 'Email', 'Address', 27 28 'City', 'State', 'Zip', 'Phone','Co Name', 'Co Address', 'Co City', 'Co State/Prov', 'Co Postal','Num People', 'Payment','Tickets'); -
event-registration/trunk/payments/evr_admin_payments-case.php
r1104456 r1333789 1 1 <?php 2 2 function evr_admin_payments(){ 3 $action = $_REQUEST['action'];3 $action = (string)@$_REQUEST['action']; 4 4 switch ($action) { 5 5 case "view_payments": -
event-registration/trunk/payments/evr_admin_payments-event_list.php
r1332458 r1333789 38 38 $p->limit($record_limit); // Limit entries per page 39 39 $p->target("admin.php?page=payments"); 40 $p->currentPage( $_GET[$p->paging]); // Gets and validates the current page40 $p->currentPage((string)@$_GET[$p->paging]); // Gets and validates the current page 41 41 $p->calculate(); // Calculates what to show 42 42 $p->parameterName('paging'); … … 109 109 $end_time = $event->end_time; 110 110 $conf_mail = $event->conf_mail; 111 $custom_mail = $event->custom_mail;111 //$custom_mail = $event->custom_mail; 112 112 $start_date = $event->start_date; 113 113 $end_date = $event->end_date; -
event-registration/trunk/payments/evr_admin_payments-view.php
r1332458 r1333789 48 48 $p->limit($record_limit); // Limit entries per page 49 49 $p->target("admin.php?page=payments&action=view_payments&event_id=".$event_id); 50 $p->currentPage( $_GET[$p->paging]); // Gets and validates the current page50 $p->currentPage((string)@$_GET[$p->paging]); // Gets and validates the current page 51 51 $p->calculate(); // Calculates what to show 52 52 $p->parameterName('paging'); -
event-registration/trunk/questions/evr_admin_questions-case.php
r462905 r1333789 2 2 function evr_admin_questions(){ 3 3 4 $action = $_REQUEST['action'];4 $action = (string)@$_REQUEST['action']; 5 5 6 6 switch ($action){ -
event-registration/trunk/questions/evr_admin_questions-default.php
r944628 r1333789 28 28 $p->limit($record_limit); // Limit entries per page 29 29 $p->target("admin.php?page=questions"); 30 $p->currentPage( $_GET[$p->paging]); // Gets and validates the current page30 $p->currentPage((string)@$_GET[$p->paging]); // Gets and validates the current page 31 31 $p->calculate(); // Calculates what to show 32 32 $p->parameterName('paging'); … … 84 84 $end_time = $event->end_time; 85 85 $conf_mail = $event->conf_mail; 86 $custom_mail = $event->custom_mail;86 //$custom_mail = $event->custom_mail; 87 87 $start_date = $event->start_date; 88 88 $end_date = $event->end_date; -
event-registration/trunk/readme.txt
r1332593 r1333789 116 116 * Fixed bug where coordinator email was not defaulting to system default 117 117 * Fixed bug in adding and editing events where options did not always render 118 * Fixed bugs in editing/adding attendees 119 * Fixed bugs in editing/adding payments 118 120 119 121
Note: See TracChangeset
for help on using the changeset viewer.