1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
<form name="frmOptionAjusteur" action="" method="post">
<table width="100%" align="center" border="0">
<tr valign="top">
<td align="right">
<p><b>Bienvenue, </b><? echo"$nomComplet";?></p>
</td>
</tr>
<tr valign="top">
<td>
<hr color="#002b87">
</td>
</tr>
<tr>
<td>
<br><br><center><font face="Verdana, Arial, Helvetica, sans-serif" color="#002b87"><b><u>Sélectionner un choix parmis les suivants</u></b></font></center>
</td>
</tr>
<tr valign="top" height="25%">
<td>
<table align="center" width="200">
<tr>
<td align="center">
<br>
<input type="submit" name="btnNouveauAjusteur" value="Ajouter un ajusteur" onClick="VerifieChoix(1);">
</td>
</tr>
<tr>
<td>
<br><br>
</td>
</tr>
<tr>
<td align="center">
<input type="submit" name="btnContinuerDossier" value="Modifier les infos d'un ajusteur" onClick="VerifieChoix(2);">
</td>
</tr>
</table>
</td>
</tr>
<?
if(isset($_GET["continu"])){
if($_GET["continu"]==1){
echo"
<tr valign=\"top\" height=\"70%\">
<td>
<a name=position></a>
<input type=\"hidden\" name=\"txtModifie\">
<hr color=\"#003399\" width=\"80%\"><br>
<table align=\"center\" width=\"100%\" border=\"1\">
<tr valign=\"middle\">
<td colspan=\"4\" align=\"center\">
<font face=\"Verdana, Arial, Helvetica, sans-serif\" color=\"#002b87\">Liste des ajusteurs</font>
</td>
</tr>
<tr>
<b>
<td align=\"center\">
<b>Type d'accès</b>
</td>
<td align=\"center\">
<b>Nom Complet</b>
</td>
<td align=\"center\">
<b>Actif</b>
</td>
<td align=\"center\">
<b>Action</b>
</td>
</tr>
";
$strScript = "SELECT ajusteurID,ajusteurPrenom,ajusteurNom,typeAcces,ajusteurActif
FROM tblajusteur
ORDER BY ajusteurNom";
$requete = mysql_query($strScript);
$actif = "non";
$acces="";
while($result = mysql_fetch_array($requete)){
if($result['ajusteurActif']=="1"){
$actif = "Oui";
}
else{
$actif = "Non";
}
if($result['typeAcces']==1){
$acces = "Accès Complet";
}
else if($result['typeAcces']==2){
$acces = "Accès Secrétaire";
}
else if($result['typeAcces']==3){
$acces = "Accès Ajuteur";
}
echo "
<tr>
<td align=\"center\">
$acces
</td>
<td align=\"center\">
".$result['ajusteurPrenom']." ".$result['ajusteurNom']."
</td>
<td align=\"center\">
$actif
</td>
<td align=\"center\">
<input type=\"submit\" value=\"Modifier info\" onclick=\"ModifieAjusteur(".$result['ajusteurID'].")\">
</td>
</tr>
";
}
echo "</table>
</td>
</tr>
";
}
}
?>
</table>
</form> |
Partager