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