'index.php',"name" => get_lang('PlatformAdmin')); $interbreadcrumb[]=array('url' => "session_category_list.php","name" => get_lang('ListSessionCategory')); $sql = "SELECT * FROM $tbl_session_category WHERE id='".$id."' ORDER BY name"; $result=Database::query($sql,__FILE__,__LINE__); if (!$infos=Database::fetch_array($result)) { header('Location: session_list.php'); exit(); } list($year_start,$month_start,$day_start)=explode('-',$infos['date_start']); list($year_end,$month_end,$day_end)=explode('-',$infos['date_end']); if (!api_is_platform_admin() && $infos['session_admin_id']!=$_user['user_id']) { api_not_allowed(true); } 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::edit_category_session($id, $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('SessionCategoryUpdate'))); exit(); } } $thisYear=date('Y'); $thisMonth=date('m'); $thisDay=date('d'); // display the header Display::display_header($tool_name); if (!empty($return)) { Display::display_error_message($return,false); } ?>
  

   / /
   / /