Example #1
0
             header("Location: activations.php");
         default:
             break;
     }
     break;
 case 'events':
     switch ($action) {
         case 'list':
             $activation_id = $_GET['activation_id'];
             $_SESSION['activation_id'] = $activation_id;
             $filter = "activation_id=" . $activation_id;
             EventsController::listRows($filter);
             break;
         case 'delete':
             $id = $_GET['id'];
             EventsController::deleteEvent($id);
             break;
             // submit a search form
         // submit a search form
         case 'search':
             $map = $_POST;
             // show all button was pressed
             if (isset($map['all'])) {
                 // clear the search map stored in the session
                 unset($_SESSION['event_search_map']);
                 // clear the last filter session variable (but don't unset it)
                 $_SESSION['last_events_filter'] = "";
             }
             // reset button was pressed
             if (isset($map['reset'])) {
                 // clear the search map stored in the session