84 lines
2.3 KiB
PHP
Executable File
84 lines
2.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="Modification du nouveau juge arbitre";
|
|
include("enTete.php");
|
|
$id_ja=$_POST['id_ja'];
|
|
|
|
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 * FROM juge_arbitre WHERE id_ja='$id_ja' GROUP BY nom";
|
|
$reponse=mysql_query($requete,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br />");
|
|
$ja=mysql_fetch_object($reponse);
|
|
?>
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<br />
|
|
<center>
|
|
<p>
|
|
<form action=modif_ja_suite2.php method=POST>
|
|
<table width=60% cellpadding=5>
|
|
<tr>
|
|
<td><b>Club concerné</b></td>
|
|
<td><select name="club">
|
|
<?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_club, nom FROM club GROUP BY nom";
|
|
$reponse=mysql_query($requete,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br />");
|
|
while($club=mysql_fetch_object($reponse)){
|
|
if($ja->id_club==$club->id_club)
|
|
echo "<option value=$club->id_club selected='selected'>";
|
|
else
|
|
echo "<option value=$club->id_club>";
|
|
echo "$club->nom";
|
|
}
|
|
echo "</select></td>";
|
|
?>
|
|
</tr>
|
|
<tr>
|
|
<?php
|
|
echo"<td><b>Nom Prénom :</b></td><td><input type='text' name='nom' value='$ja->nom'></td>";
|
|
?>
|
|
</tr>
|
|
<tr>
|
|
<?php
|
|
echo"<td><b>Pseudonyme :</b></td><td><input type='text' name='pseudo' value='$ja->pseudo'></td>";
|
|
echo"<td><input type='text' size=3 name='id_ja' value='$ja->id_ja' readonly></td>";
|
|
?>
|
|
</tr>
|
|
<tr>
|
|
<td><b>Réinitailiser le mot de passe :</b></td><td><input type="checkbox" name="reinit_mdp" value="true"></td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<br />
|
|
<table>
|
|
<tr>
|
|
<td><input type="submit" value="Modifier"><input type="reset" value="Annuler"></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");
|
|
}
|
|
?>
|