示例#1
0
             $template->page_title = 'Manage Locations';
         }
     }
     break;
 case 'divisions':
     if ($action == 'add') {
         $template->page_title = 'Add New Division';
         if (isset($_POST['submit'])) {
             Division::addDivision($_POST);
             redirect($options['site_url'] . '/admin.php?area=' . $area);
         }
     } else {
         if ($action == 'view') {
             $template->page_title = 'View Division';
             if (isset($_POST['submit'])) {
                 Division::saveDivision($id, $_POST);
                 redirect($options['site_url'] . '/admin.php?area=' . $area);
             }
             if (isset($_POST['delete'])) {
                 Division::deleteDivision($id);
                 redirect($options['site_url'] . '/admin.php?area=' . $area);
             }
         } else {
             $template->page_title = 'Manage Divisions';
         }
     }
     break;
 case 'cells':
     if ($action == 'add') {
         $template->page_title = 'Add New Cell';
         if (isset($_POST['submit'])) {