WordPress.org

Plugin Directory

Changeset 468839


Ignore:
Timestamp:
11/28/11 23:38:39 (6 years ago)
Author:
avdude
Message:

minor changes to delete all attendees feature

Location:
event-registration/trunk/attendee
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • event-registration/trunk/attendee/evr_admin_attendee_delete.php

    r468830 r468839  
    33                global $wpdb; 
    44                $attendee_id = $_REQUEST['attendee_id']; 
    5                 //$event_id = $_REQUEST['event_id']; 
     5                $event_id = $_REQUEST['event_id']; 
    66                (is_numeric($_REQUEST['attendee_id'])) ? $attendee_id = $_REQUEST['attendee_id'] : $attendee_id = "0"; 
    77                $sql = " DELETE FROM " . get_option('evr_attendee') . " WHERE id ='$attendee_id'"; 
     
    2323                echo "</strong></p></div>"; 
    2424                echo "<META HTTP-EQUIV='refresh' content='2;URL="; 
    25                 echo "admin.php?page=attendee&action=view_attendee&event_id=".$event_id."'>"; 
     25                echo "admin.php?page=attendee'>"; 
    2626} 
    2727?> 
  • event-registration/trunk/attendee/evr_admin_attendee_listing.php

    r468830 r468839  
    141141                                <input type="hidden" name="action" value="delete_all_attendees"> 
    142142                                <input type="hidden" name="e_id" value="<?php echo $event_id?>"> 
    143                                 <input class="button-secondary" type="submit" name="delete" value="<?php _e('Delete All Attendees','evr_language');?>" id="delete_event-<?php echo $event_id?>" onclick="return confirm('<?php _e('Are you sure you want to delete all attendees? This process is not reversable!','evr_language');?><br/> <?php echo $event_name?>?')"/> 
     143                                <input class="button-secondary" type="submit" name="delete" value="<?php 
     144                                 _e('Delete All Attendees','evr_language');?>" id="delete_event-<?php echo $event_id?>"  
     145                                 onclick="return confirm('<?php _e('Are you sure you want to delete all attendees? This process is not reversable!','evr_language');echo " -"; echo $event_name?>?')"/> 
    144146                              </form> 
    145147                            </td> 
  • event-registration/trunk/attendee/evr_admin_attendee_view.php

    r466292 r468839  
    2626<div class="wrap"> 
    2727<h2><a href="http://www.wordpresseventregister.com"><img src="<?php echo EVR_PLUGINFULLURL ?>images/evr_icon.png" alt="Event Registration for Wordpress" /></a></h2> 
    28 <h2><?php _e('Attedee Management','evr_language');?></h2> <span> 
     28<h2><?php _e('Attedee Management','evr_language');?><?php echo " - ";?><?php echo stripslashes($event->event_name); ?></h2> <span> 
    2929                              <form name="form" method="post" action="<?php echo $_SERVER["REQUEST_URI"]?>"> 
    3030                                <input type="hidden" name="action" value="add_attendee"/> 
Note: See TracChangeset for help on using the changeset viewer.