コード例 #1
0
ファイル: router.php プロジェクト: RaviOnline/droidactivator
         // 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
         unset($_SESSION['event_search_map']);
         // retrieve the last filter from the session
         $filter = $_SESSION['last_events_filter'];
     }
     // search button was pressed
     if (isset($map['search'])) {
         // store search data in the session
         $_SESSION['event_search_map'] = $map;
         // create a filter
         $filter = EventModel::createFilter($map);
         // store the last filter in the session
         $_SESSION['last_events_filter'] = $filter;
     }
     // list the rows using the filter
     EventsController::listRows($filter);
     break;
     // toggle the search box visibility
 // toggle the search box visibility
 case 'togglesearch':
     // invert the session variable
     if ($_SESSION['hide_event_searchbox'] == "false") {
         $_SESSION['hide_event_searchbox'] = "true";
     } else {
         $_SESSION['hide_event_searchbox'] = "false";
     }