Files

57 lines
1.3 KiB
PHP
Executable File

<?php
/* include("admin_connecte.php"); */
session_start();
/* test si la session est lancée */
if((isset($_SESSION['Admin'])==true) && ($_SESSION['Admin']==1))
{
$titre="Selection d'un juge arbitre";
include("enTete.php");
?>
<br />
<br />
<br />
<br />
<center>
<p>
<form action=modif_ja_suite.php method=POST>
<table width=60% cellpadding=5>
<tr>
<td><b>Juge Arbitre :</b></td>
<td><select name="id_ja">
<?php
include("conf.php");
include("mysql_compat.php");
include ("conf.php");
$db_connection=mysql_connect($db_host,$db_user,$password);
mysql_select_db($db_name,$db_connection);
$requete="SELECT id_ja, nom FROM juge_arbitre GROUP BY nom";
$reponse=mysql_query($requete,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br />");
while($ja=mysql_fetch_object($reponse)){
echo "<option value=$ja->id_ja>";
echo "$ja->nom";
}
echo "</select></td>";
?>
</tr>
</table>
<br />
<br />
<table>
<tr>
<td><input type="submit" value="Continuer"></td>
</tr>
</table>
</form>
<?php
include("deco_admin.php");
include("piedDePage.php");
/* sinon si la personne n'est pas autorisé la renvoyer àla page de login */
}
else
{
echo("Non autorisé - Redirection vers la page d'identification dans 2 secondes");
sleep(2);
include("identification_admin.php");
}
?>