Première version publique
[auf_paf.git] / admin / admin_authen.php
CommitLineData
98ff4c8e 1<?php\r
2 session_start();\r
3 $admin=$HTTP_SESSION_VARS["admin"];\r
4 $gen_m=$HTTP_SESSION_VARS["gen_m"];\r
5 $UserName=$HTTP_SESSION_VARS["UserName"];\r
6 $Password=$HTTP_SESSION_VARS["Password"];\r
7 if(!($admin == "y" || $gen_m == "y")){\r
8 include("./includes/function.php");\r
9 redirect("index.php");\r
10 }\r
11?>\r
12<html>\r
13<head>\r
14<title>.:|| Administrateur - Mot de passe ||:.</title>\r
15<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
16<link href="../styles/styles.css" rel="stylesheet" type="text/css">\r
17<script language="javascript1.2" type="text/javascript">\r
18 function delete_message(){\r
19 var flag=true;\r
20 if (!confirm("Est-ce que vous voudriez vraiment supprimer cette information?")) flag =false;\r
21 return flag;\r
22 }\r
23 \r
24 function validate_txt_box_1(Password){\r
25 var flag = true;\r
26 if(Password.txtUserName.value == 0){\r
27 alert("Entrez l'identifiant, s.v.p!");\r
28 Password.txtUserName.focus();\r
29 return false;\r
30 }\r
31 <?php if($_REQUEST["MODI"] == ""){ ?>\r
32 if(Password.txtPassword.value == 0){\r
33 alert("Entrez le mot de passe, s.v.p!");\r
34 Password.txtPassword.focus();\r
35 return false;\r
36 }\r
37 if(Password.txtMail.value == 0){\r
38 alert("Entrez le mail, s.v.p!");\r
39 Password.txtMail.focus();\r
40 return false;\r
41 }\r
42 <?php } ?>\r
43 if(Password.selPerm.value == "Choisissez"){\r
44 alert("Choisissez la permission, s.v.p!");\r
45 Password.selPerm.focus();\r
46 return false;\r
47 }\r
48//--------------------------Modifier------------------------------------\r
49 <?php if($_REQUEST["MODI"] != ""){ ?>\r
50 if(Password.txtOPassword.value == 0){\r
51 alert("Entrez l'ancien mot de passe, s.v.p!");\r
52 Password.txtOPassword.focus();\r
53 return false;\r
54 }\r
55 if(Password.txtNPassword.value == 0){\r
56 alert("Entrez le nouveau mot de passe, s.v.p!");\r
57 Password.txtNPassword.focus();\r
58 return false;\r
59 }\r
60 if(Password.txtMail.value == 0){\r
61 alert("Entrez le mail, s.v.p!");\r
62 Password.txtMail.focus();\r
63 return false;\r
64 }\r
65 <?php } ?>\r
66 }\r
67</script>\r
68</head>\r
69<?php include("includes/connection.php"); ?>\r
70<?php include("includes/tclyit_cam_pc.php"); ?>\r
71<?php include("includes/function.php"); ?>\r
72<?php include("includes/menu.php")?>\r
73<?php\r
74 $kompler = "ChhunlyPhallen";\r
75 $AID = $_REQUEST["AID"];\r
76 $MODI = $_REQUEST["MODI"]; //Modif_strqrt\r
77 $DEL = $_REQUEST["DEL"]; //Del_strqrt\r
78 $txtUserName = $_REQUEST["txtUserName"];\r
79 $txtOPassword = tcly($_REQUEST["txtOPassword"],$kompler); //echo $txtOPassword;\r
80 $txtNPassword = tcly($_REQUEST["txtNPassword"],$kompler);\r
81 $txtPassword = tcly($_REQUEST["txtPassword"],$kompler);\r
82 $txtMail = $_REQUEST["txtMail"];\r
83 $SEL = $_REQUEST["selPerm"];\r
84 if($_REQUEST["cmdSave"]){\r
85 if($MODI == ""){\r
86 if(check_email($txtMail)){\r
87 $Str = "insert into tbladmin(username,password,admail,permission) values('".$txtUserName."','".$txtPassword."','".$txtMail."','".$SEL."')";\r
88 mysql_query($Str) or die("Les informations ne peuvent pas enregistrer!");\r
89 redirect("admin_authen.php");\r
90 }else{ $MailErreur = "Pardon, l'addresse mail est incorrect!"; }\r
91 }else{\r
92//---------------Vérifier l'ancien mot de passe----------------------------------------\r
93 $Sql = "Select password from tbladmin where password='".$txtOPassword."'";\r
94 $Query = mysql_query($Sql);\r
95 $Col = mysql_fetch_row($Query);\r
96 if(($Col[0] == "") && !(check_email($txtMail))){\r
97 $Invalid = "Pardon, l'encien mot de passe est invalid!";\r
98 $MailErreur = "Pardon, l'addresse mail est incorrect!";\r
99 }elseif(($Col[0] == "")){\r
100 $Invalid = "Pardon, l'encien mot de passe est invalid!";\r
101 }elseif(!(check_email($txtMail))){\r
102 $MailErreur = "Pardon, l'addresse mail est incorrect!";\r
103 }else{\r
104 $Upd = "update tbladmin set username='".$txtUserName."',password='".$txtNPassword."',admail='".$txtMail."',permission='".$SEL."' where aid=".$AID;\r
105 mysql_query($Upd) or die("Les informations ne peuvent pas modifier!");\r
106 redirect("admin_authen.php");\r
107 }\r
108 }\r
109 }\r
110//---------------------Information selectée--------------------------------------------\r
111 if($MODI != ""){\r
112 $Stp = mysql_query("select * from tbladmin where aid=".$AID);\r
113 if($Stp){\r
114 $Row = mysql_fetch_array($Stp);\r
115 $UName = $Row["username"];\r
116 $Pwd = $Row["password"];\r
117 $Mail = $Row["admail"];\r
118 $Perm = $Row["permission"];\r
119 }\r
120 $Title = "Modifier Information";\r
121 }else{ $Title = "Ajouter Information"; }\r
122\r
123//---------------------Supprimer information------------------------------------------\r
124 if($DEL != ""){\r
125 $Del = "delete from tbladmin where aid=".$AID;\r
126 mysql_query($Del) or die("Cet information ne peut pas supprimer!");\r
127 $DEL = "";\r
128 $MODI = "";\r
129 }\r
130?>\r
131<body bgcolor="#fbfcf7" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\r
132<center>\r
133<form name="Password" method="post">\r
134<table id="Table_01" width="1000" height="600" border="0" cellpadding="0" cellspacing="0">\r
135 <tr>\r
136 <td rowspan="20" width="17" height="749">&nbsp;</td>\r
137 <td colspan="11">\r
138 <img src="images/tclyitd_02.png" width="967" height="9" alt=""></td>\r
139 <td rowspan="20" width="15" height="749">&nbsp;</td>\r
140 <td>\r
141 <img src="images/spacer.gif" width="1" height="9" alt=""></td>\r
142 </tr>\r
143 <tr>\r
144 <td>\r
145 <img src="images/tclyitd_04.png" width="27" height="1" alt=""></td>\r
146 <td colspan="3" rowspan="5">\r
147 <img src="images/tclyitd_05.png" width="204" height="37" alt=""></td>\r
148 <td colspan="3">\r
149 <img src="images/tclyitd_06.png" width="527" height="1" alt=""></td>\r
150 <td rowspan="14">\r
151 <img src="images/tclyitd_07.png" width="89" height="85" alt=""></td>\r
152 <td>\r
153 <img src="images/tclyitd_08.png" width="9" height="1" alt=""></td>\r
154 <td rowspan="14">\r
155 <img src="images/tclyitd_09.png" width="87" height="85" alt=""></td>\r
156 <td>\r
157 <img src="images/tclyitd_10.png" width="24" height="1" alt=""></td>\r
158 <td>\r
159 <img src="images/spacer.gif" width="1" height="1" alt=""></td>\r
160 </tr>\r
161 <tr>\r
162 <td>\r
163 <img src="images/tclyitd_11.png" width="27" height="11" alt=""></td>\r
164 <td colspan="3">\r
165 <img src="images/tclyitd_12.png" width="527" height="11" alt=""></td>\r
166 <td>\r
167 <img src="images/tclyitd_13.png" width="9" height="11" alt=""></td>\r
168 <td>\r
169 <img src="images/tclyitd_14.png" width="24" height="11" alt=""></td>\r
170 <td>\r
171 <img src="images/spacer.gif" width="1" height="11" alt=""></td>\r
172 </tr>\r
173 <tr>\r
174 <td>\r
175 <img src="images/tclyitd_15.png" width="27" height="11" alt=""></td>\r
176 <td colspan="3">\r
177 <img src="images/tclyitd_16.png" width="527" height="11" alt=""></td>\r
178 <td>\r
179 <img src="images/tclyitd_17.png" width="9" height="11" alt=""></td>\r
180 <td>\r
181 <img src="images/tclyitd_18.png" width="24" height="11" alt=""></td>\r
182 <td>\r
183 <img src="images/spacer.gif" width="1" height="11" alt=""></td>\r
184 </tr>\r
185 <tr>\r
186 <td>\r
187 <img src="images/tclyitd_19.png" width="27" height="10" alt=""></td>\r
188 <td colspan="3">\r
189 <img src="images/tclyitd_20.png" width="527" height="10" alt=""></td>\r
190 <td>\r
191 <img src="images/tclyitd_21.png" width="9" height="10" alt=""></td>\r
192 <td>\r
193 <img src="images/tclyitd_22.png" width="24" height="10" alt=""></td>\r
194 <td>\r
195 <img src="images/spacer.gif" width="1" height="10" alt=""></td>\r
196 </tr>\r
197 <tr>\r
198 <td rowspan="3">\r
199 <img src="images/tclyitd_23.png" width="27" height="11" alt=""></td>\r
200 <td colspan="3" rowspan="3">\r
201 <img src="images/tclyitd_24.png" width="527" height="11" alt=""></td>\r
202 <td rowspan="3">\r
203 <img src="images/tclyitd_25.png" width="9" height="11" alt=""></td>\r
204 <td rowspan="3">\r
205 <img src="images/tclyitd_26.png" width="24" height="11" alt=""></td>\r
206 <td>\r
207 <img src="images/spacer.gif" width="1" height="4" alt=""></td>\r
208 </tr>\r
209 <tr>\r
210 <td rowspan="6">\r
211 <img src="images/tclyitd_27.png" width="133" height="39" alt=""></td>\r
212 <td colspan="2">\r
213 <img src="images/tclyitd_28.png" width="71" height="1" alt=""></td>\r
214 <td>\r
215 <img src="images/spacer.gif" width="1" height="1" alt=""></td>\r
216 </tr>\r
217 <tr>\r
218 <td colspan="2">\r
219 <img src="images/tclyitd_29.png" width="71" height="6" alt=""></td>\r
220 <td>\r
221 <img src="images/spacer.gif" width="1" height="6" alt=""></td>\r
222 </tr>\r
223 <tr>\r
224 <td>\r
225 <img src="images/tclyitd_30.png" width="27" height="10" alt=""></td>\r
226 <td colspan="3">\r
227 <img src="images/tclyitd_31.png" width="153" height="10" alt=""></td>\r
228 <td rowspan="5">\r
229 <img src="images/tclyitd_32.png" width="388" height="35" alt=""></td>\r
230 <td>\r
231 <img src="images/tclyitd_33.png" width="57" height="10" alt=""></td>\r
232 <td>\r
233 <img src="images/tclyitd_34.png" width="9" height="10" alt=""></td>\r
234 <td>\r
235 <img src="images/tclyitd_35.png" width="24" height="10" alt=""></td>\r
236 <td>\r
237 <img src="images/spacer.gif" width="1" height="10" alt=""></td>\r
238 </tr>\r
239 <tr>\r
240 <td>\r
241 <img src="images/tclyitd_36.png" width="27" height="11" alt=""></td>\r
242 <td colspan="3">\r
243 <img src="images/tclyitd_37.png" width="153" height="11" alt=""></td>\r
244 <td>\r
245 <img src="images/tclyitd_38.png" width="57" height="11" alt=""></td>\r
246 <td>\r
247 <img src="images/tclyitd_39.png" width="9" height="11" alt=""></td>\r
248 <td>\r
249 <img src="images/tclyitd_40.png" width="24" height="11" alt=""></td>\r
250 <td>\r
251 <img src="images/spacer.gif" width="1" height="11" alt=""></td>\r
252 </tr>\r
253 <tr>\r
254 <td>\r
255 <img src="images/tclyitd_41.png" width="27" height="10" alt=""></td>\r
256 <td colspan="3">\r
257 <img src="images/tclyitd_42.png" width="153" height="10" alt=""></td>\r
258 <td>\r
259 <img src="images/tclyitd_43.png" width="57" height="10" alt=""></td>\r
260 <td>\r
261 <img src="images/tclyitd_44.png" width="9" height="10" alt=""></td>\r
262 <td>\r
263 <img src="images/tclyitd_45.png" width="24" height="10" alt=""></td>\r
264 <td>\r
265 <img src="images/spacer.gif" width="1" height="10" alt=""></td>\r
266 </tr>\r
267 <tr>\r
268 <td rowspan="3">\r
269 <img src="images/tclyitd_46.png" width="27" height="9" alt=""></td>\r
270 <td colspan="3" rowspan="3">\r
271 <img src="images/tclyitd_47.png" width="153" height="9" alt=""></td>\r
272 <td rowspan="3">\r
273 <img src="images/tclyitd_48.png" width="57" height="9" alt=""></td>\r
274 <td rowspan="3">\r
275 <img src="images/tclyitd_49.png" width="9" height="9" alt=""></td>\r
276 <td rowspan="3">\r
277 <img src="images/tclyitd_50.png" width="24" height="9" alt=""></td>\r
278 <td>\r
279 <img src="images/spacer.gif" width="1" height="1" alt=""></td>\r
280 </tr>\r
281 <tr>\r
282 <td rowspan="2">\r
283 <img src="images/tclyitd_51.png" width="133" height="8" alt=""></td>\r
284 <td>\r
285 <img src="images/spacer.gif" width="1" height="3" alt=""></td>\r
286 </tr>\r
287 <tr>\r
288 <td>\r
289 <img src="images/tclyitd_52.png" width="388" height="5" alt=""></td>\r
290 <td>\r
291 <img src="images/spacer.gif" width="1" height="5" alt=""></td>\r
292 </tr>\r
293 <tr>\r
294 <td colspan="7" rowspan="2">\r
295 <img src="images/tclyitd_53.png" width="758" height="8" alt=""></td>\r
296 <td rowspan="2">\r
297 <img src="images/tclyitd_54.png" width="9" height="8" alt=""></td>\r
298 <td rowspan="2">\r
299 <img src="images/tclyitd_55.png" width="24" height="8" alt=""></td>\r
300 <td>\r
301 <img src="images/spacer.gif" width="1" height="1" alt=""></td>\r
302 </tr>\r
303 <tr>\r
304 <td>\r
305 <img src="images/tclyitd_56.png" width="89" height="7" alt=""></td>\r
306 <td>\r
307 <img src="images/tclyitd_57.png" width="87" height="7" alt=""></td>\r
308 <td>\r
309 <img src="images/spacer.gif" width="1" height="7" alt=""></td>\r
310 </tr>\r
311 <tr>\r
312 <td colspan="3" width="187" height="612" valign="top" bgcolor="#b19681"><?php menu(); ?></td>\r
313 <td colspan="8" width="780" height="612" align="center" valign="top">\r
314 <table width="780" height="612" cellpadding="0" cellspacing="0" border="1" style="border-right-color:#993366; border-style:solid;">\r
315 <tr>\r
316 <td style="padding-left:10px; padding-top:20px;" align="center" valign="<?php if($admin == "y"){ ?>top<?php }else{ echo"middle"; } ?>">\r
317 <?php if($admin == "y"){ ?>\r
318 <table width="450" height="193" cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">\r
319 <tr>\r
320 <td align="center" style="padding-bottom:10px;">\r
321 <table width="496" height="193" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#9999CC;">\r
322 <tr bgcolor="#56541f">\r
323 <td height="34" align="center" background="images/tclyit_silver_1.jpg" style="font-family:Arial, Helvetica, sans-serif; color:#996633; background-repeat:repeat-x;"><strong><?php echo $Title; ?></strong></td>\r
324 </tr>\r
325 <tr>\r
326 <td>\r
327 <table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;">\r
328 <tr>\r
329 <td align="left" style="padding-bottom:0; padding-left:10px; padding-right:10px;">\r
330 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Identifiant : </span>\r
331 </td>\r
332 <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
333 <input type="text" name="txtUserName" value="<?php if($MODI == ""){ echo $txtUserName; }else{ echo $UName; } ?>" size="40" />\r
334 </td>\r
335 </tr>\r
336 <?php if($MODI == ""){ ?>\r
337 <tr>\r
338 <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
339 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Mot de passe : </span>\r
340 </td>\r
341 <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
342 <input type="password" name="txtPassword" value="<?php echo $Pwd; ?>" size="40">\r
343 </td>\r
344 </tr>\r
345 <tr>\r
346 <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
347 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Addresse Mail : </span>\r
348 </td>\r
349 <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
350 <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $MailErreur; ?></div>\r
351 <input type="text" name="txtMail" value="<?php if($MODI == ""){ echo $txtMail; }else{ echo $Mail; } ?>" size="40">\r
352 </td>\r
353 </tr>\r
354 <?php }else{ ?>\r
355 <tr>\r
356 <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
357 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Ancien Mot de passe : </span>\r
358 </td>\r
359 <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
360 <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $Invalid; ?></div>\r
361 <input type="password" name="txtOPassword" value="" size="40">\r
362 </td>\r
363 </tr>\r
364 <tr>\r
365 <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
366 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Nouveau Mot de passe : </span>\r
367 </td>\r
368 <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
369 <input type="password" name="txtNPassword" value="" size="40">\r
370 </td>\r
371 </tr>\r
372 <tr>\r
373 <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
374 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Addresse Mail : </span>\r
375 </td>\r
376 <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
377 <div align="center" style="z-index:auto; padding-bottom:3px; color:#CC0000;"><?php echo $MailErreur; ?></div>\r
378 <input type="text" name="txtMail" value="<?php echo $Mail; ?>" size="40">\r
379 </td>\r
380 </tr>\r
381 <?php } ?>\r
382 <tr bgcolor="#E4D8A3">\r
383 <td align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
384 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Permission : </span>\r
385 </td>\r
386 <td align="left" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
387 <?php if($MODI == ""){ ?>\r
388 <select name="selPerm" style="width:265;">\r
389 <option value="Choisissez">[--Choisissez Permission--]</option>\r
390 <option value="1">Administrateur</option>\r
391 <option value="2">Utilisateur</option>\r
392 </select>\r
393 <?php }else{ ?>\r
394 <select name="selPerm" style="width:265;">\r
395 <?php if($Perm == 1){ ?>\r
396 <option value="1" selected="selected">Administrateur</option>\r
397 <option value="2">Utilisateur</option>\r
398 <option value="Choisissez">[--Choisissez Permission--]</option>\r
399 <?php } ?>\r
400 <?php if($Perm == 2){ ?>\r
401 <option value="2" selected="selected">Utilisateur</option>\r
402 <option value="1">Administrateur</option>\r
403 <option value="Choisissez">[--Choisissez Permission--]</option>\r
404 <?php } ?> \r
405 </select>\r
406 <?php } ?>\r
407 </td>\r
408 </tr>\r
409 <tr>\r
410 <td></td>\r
411 <td align="right" style="padding-right:45px; padding-bottom:5px; padding-top:10px;">\r
412 <input type="submit" name="cmdSave" value="Sauvegarder" onClick="return validate_txt_box_1(Password);" style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer;">\r
413 </td>\r
414 </tr>\r
415 <tr bgcolor="#EEF1B6">\r
416 <td colspan="2" align="left" style="padding-right:5px; padding-left:5px; padding-bottom:5px; padding-top:10px;">\r
417 <font style="font-size:12px; font-weight:bold; color:#3300FF;"><u>Note</u> : </font>\r
418 <font style="font-size:10px; font-weight:normal; color:#993300;">\r
419 - <i><b>Administrateur</b></i> : Permettre pour ajouter, modifier et supprimer les informations.<br>\r
420 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- <i><b>Utilisateur</b></i> : Permettre pour ajouter et modifier les informations.\r
421 </font>\r
422 </td>\r
423 </tr>\r
424 </table>\r
425 </td>\r
426 </tr>\r
427 </table>\r
428 </td>\r
429 </tr>\r
430 <tr>\r
431 <td align="center" style="padding-top:10px; padding-bottom:20px;">\r
432 <table width="450" height="193" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#9999CC;">\r
433 <tr bgcolor="#56541f">\r
434 <td height="34" align="center" background="images/tclyit_silver_1.jpg" style="font-family:Arial, Helvetica, sans-serif; color:#996633; background-repeat:repeat-x;"><strong>Liste de l'information</strong></td>\r
435 </tr>\r
436 <tr>\r
437 <td align="center" valign="top">\r
438 <table width="700" cellpadding="0" cellspacing="0" border="1" style="border-collapse:collapse; border-color:#CCCCCC;">\r
439 <tr bgcolor="#CBD898" class="style2">\r
440 <td width="215" align="left" style="padding-bottom:5px;; padding-top:5px; padding-left:10px; padding-right:10px;">\r
441 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Identifiant</span></td>\r
442 <td width="96" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
443 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Mot de passe</span></td>\r
444 <td width="106" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
445 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Permission</span></td>\r
446 <td width="" align="left" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
447 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Email</span></td>\r
448 <td width="133" align="center" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
449 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Modifier</span></td>\r
450 <td width="138" align="center" style="padding-bottom:0px; padding-left:10px; padding-right:10px;">\r
451 <span style="font-family:Arial, Helvetica, sans-serif; color:#330000">Supprimer</span></td>\r
452 </tr>\r
453 <?php\r
454 //----------------Montrer l'information------------------------------------------------\r
455 $Sql = "select * from tbladmin order by permission";\r
456 if($Sql){\r
457 $Swl = mysql_query($Sql);\r
458 while($Rows = mysql_fetch_array($Swl)){\r
459 $AID = $Rows["aid"];\r
460 $UserName = $Rows["username"];\r
461 $Password = $Rows["password"];\r
462 $Mails = $Rows["admail"];\r
463 $Perm = $Rows["permission"];\r
464 if($Perm == 1){\r
465 $Permission = "Administrateur";\r
466 }else{ $Permission = "Utilisateur"; }\r
467 ?>\r
468 <tr bgcolor="#E1E3B0">\r
469 <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
470 <?php echo $UserName; ?>\r
471 </td>\r
472 <td title="<?php echo phlen($Password,$kompler); ?>" style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
473 <?php echo $Password; ?>\r
474 </td>\r
475 <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
476 <?php echo $Permission; ?>\r
477 </td>\r
478 <td style="padding-top:5px; padding-left:10px; padding-right:10px; padding-bottom:5px;">\r
479 <?php echo $Mails; ?>\r
480 </td>\r
481 <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
482 <input type="button" name="cmdEdit" value=" Modifier " style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF; font-weight:normal;" title='Modifier : <?php echo $UserName; ?>' onClick="javascript:document.location.href='<?php echo"$_PHP_SELF?AID=$AID&MODI=Modif_strqrt"; ?>'" />\r
483 <!--<a href="<?php echo"$_PHP_SELF?AID=$AID&MODI=Modif_strqrt"; ?>" title="Modifier : <?php echo $UserName; ?>"><img src="images/tclyit_m.png" width="122" height="28" border="0"></a>-->\r
484 </td>\r
485 <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
486 <input type="button" name="cmdDelete" value="Supprimer" style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF;" title='Supprimer : <?php echo $UserName; ?>' onClick="javascript: if(window.confirm('Confirmez-vous la suppression de <?php echo "\' ".$UserName." \'"; ?>?')){document.location.href='<?php echo"$_PHP_SELF?AID=$AID&DEL=Del_strqrt"; ?>'}" />\r
487 <!--<a href="<?php echo"$_PHP_SELF?AID=$AID&DEL=Del_strqrt"; ?>" title="Supprimer : <?php echo $UserName; ?>"><img src="images/tclyits_m.png" width="122" height="28" onClick="return delete_message();" border="0"></a>-->\r
488 </td>\r
489 </tr>\r
490 <?php } } ?>\r
491 <tr>\r
492 <td colspan="5"></td>\r
493 <td align="center" style="padding-top:5px; padding-left:5px; padding-right:5px; padding-bottom:5px;">\r
494 <input type="button" name="cmdAjouter" value=" Ajouter " style="border:double; height:27px; border-color:#999966; background-color:#9aa95f; cursor:pointer; color:#FFFFFF;" title="Ajouter nouveau utilisateur" onClick="javascript:document.location.href='<?php echo"admin_authen.php"; ?>'" />\r
495 </td>\r
496 </tr>\r
497 </table>\r
498 </td>\r
499 </tr>\r
500 <tr bgcolor="#E2CEAF"><td align="center" style="padding-top:8px; padding-bottom:8px;"><i>Veuillez mettre votre curseur sur le mot de passe vous allez voir le vrai mot de passe!</i></td></tr>\r
501 </table>\r
502 </td>\r
503 </tr>\r
504 </table>\r
505 <?php }else{ echo"<font style='color:#FF0000; font-size:16px; font-weight:bold;'><i>Pardon, Vous n'avez pas permission pour accéder dans cette page!<br>Administrateur seulement qui peut l'accéder.</i></font>"; } ?>\r
506 </td>\r
507 </tr>\r
508 </table>\r
509 </td>\r
510 <td>\r
511 <img src="images/spacer.gif" width="1" height="612" alt=""></td>\r
512 </tr>\r
513 <tr>\r
514 <td colspan="11">\r
515 <img src="images/tclyitd_60.png" width="967" height="12" alt=""></td>\r
516 <td>\r
517 <img src="images/spacer.gif" width="1" height="12" alt=""></td>\r
518 </tr>\r
519 <tr>\r
520 <?php include("includes/footer_admin.php"); ?>\r
521 <td>\r
522 <img src="images/spacer.gif" width="1" height="13" alt=""></td>\r
523 </tr>\r
524 <tr>\r
525 <td colspan="11">\r
526 <img src="images/tclyitd_62.png" width="967" height="11" alt=""></td>\r
527 <td>\r
528 <img src="images/spacer.gif" width="1" height="11" alt=""></td>\r
529 </tr>\r
530 <tr>\r
531 <td>\r
532 <img src="images/spacer.gif" width="17" height="1" alt=""></td>\r
533 <td>\r
534 <img src="images/spacer.gif" width="27" height="1" alt=""></td>\r
535 <td>\r
536 <img src="images/spacer.gif" width="133" height="1" alt=""></td>\r
537 <td>\r
538 <img src="images/spacer.gif" width="27" height="1" alt=""></td>\r
539 <td>\r
540 <img src="images/spacer.gif" width="44" height="1" alt=""></td>\r
541 <td>\r
542 <img src="images/spacer.gif" width="82" height="1" alt=""></td>\r
543 <td>\r
544 <img src="images/spacer.gif" width="388" height="1" alt=""></td>\r
545 <td>\r
546 <img src="images/spacer.gif" width="57" height="1" alt=""></td>\r
547 <td>\r
548 <img src="images/spacer.gif" width="89" height="1" alt=""></td>\r
549 <td>\r
550 <img src="images/spacer.gif" width="9" height="1" alt=""></td>\r
551 <td>\r
552 <img src="images/spacer.gif" width="87" height="1" alt=""></td>\r
553 <td>\r
554 <img src="images/spacer.gif" width="24" height="1" alt=""></td>\r
555 <td>\r
556 <img src="images/spacer.gif" width="15" height="1" alt=""></td>\r
557 <td></td>\r
558 </tr>\r
559</table>\r
560</form>\r
561 <script language="javascript" type="text/javascript">\r
562 setTimeout("document.Password.txtUserName.focus()",1);\r
563 </script>\r
564</center>\r
565</body>\r
566</html>