Location: PHPKode > projects > EmploiNet : a timetable web manager > EmploiNet/v0.8.0/Formulaire/FormulaireProfesseur.php3
<?

	include("../edt/fonctions_edt.php3");
	
	include("../BarreDeMenu.php3");
	
    include("../Session/security.php");

// Entete
    buildHeader("Emploi du temps enseignant");
// Verification de la session
	$autorisation_list[0]=1; // Professeur
	$user_type = validateSession($id_session);
	if ($user_type == -1 || !security($id_session,$autorisation_list)) print("Accès refusé");
    else
    {
// Barre de menu
		buildMenuBar($id_session,$user_type,"FormulaireProfesseur.php3",false);
// Ouverture de la connexion avec la base de donnees
	    $connection = openConnection($databaseName);
  // *************** DEBUT DU FORMULAIRE ***************
    print("<FORM name=form1 ACTION=\"../edt/EmploiProfesseur.php3\">\n");
    print("      <input type=\"hidden\" name=\"login\" value=\"$login\">\n");
    print("      <input type=\"hidden\" name=\"id_session\" value=\"$id_session\">\n");
    print("      <input type=\"hidden\" name=\"user_type\" value=\"$user_type\">\n");
    print("      <input type=\"hidden\" name=\"user_id\" value=\"$user_id\">\n");
    print("      <input type=\"hidden\" name=\"display\" value=\"$display\">\n");
    print("  <table align=center border=0 cellspacing=0 cellpading=0 bgcolor=\"#C0C000\">\n");
    print("<TR>\n");
    print("<TD rowspan=5 width=20>&nbsp;</TD><TD colspan=2>&nbsp;</TD><TD rowspan=5 width=20>&nbsp;</TD>\n");
    print("<TR>\n");
  // *************** CHAMP SEMAINE ***************
     print("<TR>\n");
     print("<TD><font size=3><i>Semaine :</i></font></TD>\n");
     print("<TD><INPUT NAME=\"ma_semaine\" ></TD>\n");
     print("</TR>\n");
     print("<TR>\n");
     print("<TD>&nbsp;</TD>\n");
     print("<TR>\n");
	 print("</TABLE>\n");
	print("  <table align=center border=0 cellspacing=0 cellpading=0>\n");
     print("  <tr valign=bottom>\n");
     print("    <td align=center colspan=3>\n");
     print("	 <table border=1 cellpading=0 cellspacing=0><tr><td>\n");
	 print("      <table border=0 cellspacing=1 cellpading=0 align=center bgcolor=\"#FFFFD0\">\n");
	print("        <tr valign=middle align=center>\n");
 print("          <td width=40><input type=\"image\" src=\"../img/NewButton.gif\" alt=\"Valider\" OnClick=\"submit();\"></td>\n");
	 print("          <td width=40></td>\n");
     print("          <td width=40><input type=\"image\" src=\"../img/EraseButton.gif\" alt=\"Effacer\" OnClick=\"reset();\"></td>\n");
     print("        </tr>\n");
     print("      </table>\n");
     print("    </td></tr></table>\n");
     print("    </td>\n");
     print("  </tr>\n");
  print("</table>\n");
	}
	buildEndOfPage();
?>
Return current item: EmploiNet : a timetable web manager