コード例 #1
0
ファイル: add_agenda.php プロジェクト: HRNIT/paris2015
	  
	 
	<!--Form container-->
	 <div id="container">';
    if (isset($_SESSION['user'])) {
        include_once 'controllers/main.php';
        $main = new main\main();
        include_once 'controllers/agenda_main.php';
        $agenda = new agenda\agenda_main();
        if (isset($_SESSION['Result']) && $_SESSION['Result'] != '') {
            $content .= '<div id="ReturnValue" style="display:none">' . $_SESSION['Result'] . '</div>';
            $_SESSION['Result'] = '';
        } else {
            $content .= '<div id="ReturnValue" style="display:none"></div>';
        }
        $time = $agenda->display_time_admin();
        $categories = $agenda->get_session_categories();
        //Form Start
        $content .= '<form class= id="agenda" name="agenda" method="post" action="" enctype="multipart/form-data"><br />
     <fieldset>
	    <legend>Basic</legend>
		
         <input class="AdminInputField" required="required" id="AgendaTitle"  type="text" placeholder="Sesssion Title" /><br /> 
		 
   <div id="TimeTable">';
        //Start hour select
        $content .= '  <label>Start hour:<select id="AgendaTimeStartHour">
		<option value ="" selected="selected" hidden="hidden">Start Hour</option> ';
        $content .= $time_display('hour', $time);
        $content .= ' 
	  </select></label>';