registerFunction ('search_coachs'); // setting the section (for the tabs) $this_section=SECTION_PLATFORM_ADMIN; api_protect_admin_script(true); $formSent=0; $errorMsg=''; $interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin')); $interbreadcrumb[]=array('url' => "session_category_list.php","name" => get_lang('ListSessionCategory')); // Database Table Definitions $tbl_user = Database::get_main_table(TABLE_MAIN_USER); $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION); if ($_POST['formSent']) { $formSent=1; $name= $_POST['name']; $year_start= $_POST['year_start']; $month_start=$_POST['month_start']; $day_start=$_POST['day_start']; $year_end=$_POST['year_end']; $month_end=$_POST['month_end']; $day_end=$_POST['day_end']; $return = SessionManager::create_category_session($name,$year_start,$month_start,$day_start,$year_end,$month_end,$day_end); if ($return == strval(intval($return))) { header('Location: session_category_list.php?action=show_message&message='.urlencode(get_lang('SessionCategoryAdded'))); exit(); } } $thisYear=date('Y'); $thisMonth=date('m'); $thisDay=date('d'); $tool_name = get_lang('langAddACategory'); //display the header Display::display_header($tool_name); if (!empty($return)) { Display::display_error_message($return,false); } ?>
  

   / /
   / /