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 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
|
<form name="frmAjoutAjusteur" 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>Ajouter un utilisateur</u></b></font></center><br>
<input type="hidden" name="txtArrayClick" value="<? if(isset($_POST["txtArrayClick"])){echo $_POST['txtArrayClick'];}else{echo"";} ?>">
</td>
</tr>
<tr>
<td>
<table width="100%" border="0">
<tr>
<td align="left" colspan="4">
<font color="#002b87" size="+1">Information personnelle</font>
</td>
</tr>
<tr>
<td align="right">
<b>Nom<? if(isset($_GET["manquant"])){echo"<font color=\"red\">*</font>";}?> :</b>
</td>
<td align="left">
<input type="text" id="0" name="txtNom" onclick="clearText(this);" value="<? if(isset($_POST["txtNom"])){echo $_POST['txtNom'];}else{echo"NOM";} ?>" onKeyPress="return verifieChar(this,event,0);">
</td>
<td align="right">
<b>Prénom<? if(isset($_GET["manquant"])){echo"<font color=\"red\">*</font>";}?> :</b>
</td>
<td align="left">
<input type="text" id="1" name="txtPrenom" onclick="clearText(this);" value="<? if(isset($_POST["txtPrenom"])){echo $_POST['txtPrenom'];}else{echo"PRÉNOM";} ?>" onKeyPress="return verifieChar(this,event,0);">
</td>
</tr>
<tr>
<td align="right">
<b>Type accès<? if(isset($_GET["manquant"])){echo"<font color=\"red\">*</font>";}?> :</b>
</td>
<td colspan="3" align="left">
<?
//---------J'ai changé ici----------//------Le esle n'.est pas codé car ca entre dans le if selon mon accès--------//
if($_SESSION['acces'] == 1){ //Accès complet
echo"
<select name=\"acces\">
<option value=\"0\" selected>CHOISIR L'ACCÈS</option>
<option value=\"1\" "; echo(isset($_POST["acces"])&&$_POST["acces"]==1) ? "selected >Accès complet</option>" : ">Accès complet</option>";
echo" <option value=\"2\" "; echo(isset($_POST["acces"])&&$_POST["acces"]==2) ? "selected >Accès secrétaire</option>" : ">Accès secrétaire</option>";
echo" <option value=\"3\" "; echo(isset($_POST["acces"])&&$_POST["acces"]==3) ? "selected >Accès ajusteur</option>" : ">Accès ajusteur</option>";
echo"</select>
";
}
else{ //Accès secrétaire
}
//-------Jusqu'ici seulement...ca ne devrait pas jouer dans le js???-------//
?>
</td>
</tr>
<tr>
<td align="right">
<b>Utilisateur Actif :</b>
</td>
<td colspan="3" align="left">
<select name="actif">
<option value="1" selected>Activé</option>
<option value="0"<? if(isset($_POST["actif"])&&$_POST["actif"]==0){echo"selected";}?>>Désactivé</option>
</select>
</td>
</tr>
<tr>
<td align="right">
<b>Téléphone maison 1 :</b>
</td>
<td colspan="3" align="left">
<input type="text" id="12" name="txtMaison1" onclick="clearText(this);" value="<? if(isset($_POST["txtMaison1"])){echo $_POST['txtMaison1'];}else{echo"PHONE MAISON1";} ?>" onKeyPress="return verifieChar(this,event,1);">
</td>
</tr>
<tr>
<td align="right">
<b>Téléphone maison 2 :</b>
</td>
<td align="left">
<input type="text" id="8" name="txtMaison2" onclick="clearText(this);" value="<? if(isset($_POST["txtMaison2"])){echo $_POST['txtMaison2'];}else{echo"PHONE MAISON2";} ?>" onKeyPress="return verifieChar(this,event,1);">
</td>
<td align="right">
<b>Téléphone Cellulaire :</b>
</td>
<td align="left">
<input type="text" id="7" name="txtCell" onclick="clearText(this);" value="<? if(isset($_POST["txtCell"])){echo $_POST['txtCell'];}else{echo"PHONE CELLULAIRE";} ?>" onKeyPress="return verifieChar(this,event,1);">
</td>
</tr>
<tr>
<td colspan="4">
<br><hr color="#002b87" width="75%"><br>
</td>
</tr>
<tr>
<td align="left" colspan="4">
<font color="#002b87" size="+1">Autres coordonnées</font>
</td>
</tr>
<tr>
<td align="right">
<b>Adresse courriel :</b>
</td>
<td colspan="3" align="left">
<input type="text" id="9" name="txtMail" onclick="clearText(this);" value="<? if(isset($_POST["txtMail"])){echo $_POST['txtMail'];}else{echo"EMAIL";} ?>" onKeyPress="return verifieChar(this,event,3);">
</td>
</tr>
<tr>
<td align="right">
<b>Télécopieur :</b>
</td>
<td align="left">
<input type="text" id="10" name="txtFax" onclick="clearText(this);" value="<? if(isset($_POST["txtFax"])){echo $_POST['txtFax'];}else{echo"FAX";} ?>" onKeyPress="return verifieChar(this,event,1);">
</td>
<td align="right">
<b>Téléavertisseur :</b>
</td>
<td align="left">
<input type="text" id="11" name="txtPadg" onclick="clearText(this);" value="<? if(isset($_POST["txtPadg"])){echo $_POST['txtPadg'];}else{echo"PADGET";} ?>" onKeyPress="return verifieChar(this,event,1);">
</td>
</tr>
<tr>
<td colspan="4">
<br><hr color="#002b87" width="75%"><br>
</td>
</tr>
<tr>
<td align="left" colspan="4">
<font color="#002b87" size="+1">Authentification</font>
</td>
</tr>
<tr>
<td align="right">
<b>Nom d'utilisateur<? if(isset($_GET["manquant"])){echo"<font color=\"red\">*</font>";}?> :</b>
</td>
<td colspan="3" align="left">
<input type="text" id="2" name="txtLogin" onKeyDown="javascript:document.frmAjoutAjusteur.btnGenere.disabled = false;" onclick="clearText(this);" value="<? if(isset($_POST["txtLogin"])){echo $_POST['txtLogin'];}else{echo"NOM UTILISATEUR";} ?>" onKeyPress="return verifieChar(this,event,0);">
<font color="#FF0000" size="-1">(utiliser la première lettre du prénom suivit du nom)</font>
</td>
</tr>
<tr>
<td align="right">
<b>Numéro identification<? if(isset($_GET["manquant"])){echo"<font color=\"red\">*</font>";}?> :</b>
</td>
<td colspan="3" align="left">
<input type="text" id="3" name="txtNumIdent" onclick="clearText(this);" value="<? if(isset($_POST["txtNumIdent"])){echo $_POST['txtNumIdent'];}else{echo"NUM IDENTIFICATION";} ?>" onKeyPress="return verifieChar(this,event,1);">
</td>
</tr>
<tr>
<td align="right">
<b>Mot de passe<? if(isset($_GET["manquant"])){echo"<font color=\"red\">*</font>";}?> :</b>
</td>
<td colspan="3" align="left">
<input type="text" id="4" name="txtPWD" onclick="clearText(this,5);" value="<? if(isset($_POST["txtPWD"])){echo $_POST['txtPWD'];}else{echo"MOT DE PASSE";} ?>" onKeyPress="return verifieChar(this,event,2);">
</td>
</tr>
<tr>
<td colspan="4" align="center">
<br><input type="button" onClick="javascript:generePath();" name="btnGenere" value="Générer le chemin du répertoire de sauvegarde">
</td>
</tr>
<tr>
<td colspan="4">
<br><hr color="#002b87" width="75%"><br>
</td>
</tr>
<tr>
<td align="left" colspan="4">
<font color="#002b87" size="+1">Dossier de sauvegarde sur le serveur</font>
</td>
</tr>
<tr>
<td align="right">
<b>Chemin d'accès :</b>
</td>
<td colspan="3" align="left">
<input size="70"type="text" name="txtPa" value="<? if(isset($_POST["txtPath"])){echo $_POST["txtPath"];}else{echo"";}?>" disabled>
<input type="hidden" id="5" name="txtPath" value="<? if(isset($_POST["txtPath"])){echo $_POST["txtPath"];}else{echo"";}?>">
</td>
</tr>
<tr>
<td colspan="4" align="center">
<br><input type="button" name="btnAjout" value="Ajouter l'utilisateur" disabled onClick="javascript: validePage('../Action/ActModifieAjusteur.php');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form> |
Partager