Location: PHPKode > projects > EmploiNet : a timetable web manager > EmploiNet/v0.8.0/FichesAdmin/formulaire_charge_formation_prof.php3
<?
	
	include("../BarreDeMenu.php3");
	
	include("../Session/security.php");

//***********************************************************************************************
//* Entete
//***********************************************************************************************

 buildHeader("Fiches de charge d'une promotion avec prof");

//***********************************************************************************************
//* Fin de l'entete
//***********************************************************************************************

// Verification de la session
	$autorisation_list[0]=0; // Administrateur
	$autorisation_list[1]=3; // Gestionnaire
	$autorisation_list[2]=4; // Directeur de departement

$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,"fiche_saisie_serv_annu_classe",false);
// Ouverture de la connexion avec la base de donnees
$connection = openConnection($databaseName);
		$result = mysql_query("SELECT id_promotion,diplome.libelle as L1,promotion.libelle as L2 FROM promotion,diplome WHERE promotion.id_diplome=diplome.id_diplome ORDER BY diplome.libelle");
	    $nb_promo = mysql_num_rows($result); 
		if ($nb_promo>0) {
			print("<FORM NAME=\"recup_infos\" METHOD=post ACTION=\"fiche_charge_formation_prof.php3\">\n");
			print("<INPUT TYPE=HIDDEN NAME=\"id_session\" VALUE='$id_session'>\n");
			print("Choisissez une promotion : \n");
			print("<SELECT NAME=\"id_promotion\">\n");
			for($i=0;$i<$nb_promo;$i++)
			{
				$row=mysql_fetch_row($result);
				print("	<option value=".$row[0].">");
				print($row[1]." ".$row[2]);
				print("</option>\n");
			}	
			print("</SELECT><BR>\n");
			print("<br><br>");
			print("<center>");	
			print("<INPUT TYPE=submit VALUE=fiche>\n");
			print("</center>");	
			print("</FORM>\n");
		}
		else print("<h2>Aucune promotion enregistrée</h2>");
}
	buildEndOfPage();	
?>
Return current item: EmploiNet : a timetable web manager