Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
Virtual
/
work
:
keypad_work.html
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<html> <head> <title>Keypad</title> </head> <body oncontextmenu="return false"> <script language="javascript"> var nbr=25; var pic=new Array(" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","0","1","2","3","4","5","6","7","8","9"); var mis=new Array(nbr); total=0; somme=0; for(i=1;i<nbr;i++) { mis[i]=1+Math.round(Math.random()*(nbr-1)); trouve=0; for (j=1;j<i;j++) {if (mis[j]==mis[i]) {trouve=1;} } if (trouve==1) {i=i-1;} if (trouve==0) {total=total+mis[i];} } for(i=1;i<(nbr+1);i++) { somme=somme+i; mis[nbr]=somme-total; } var code=0 var code2=0 var digit=0 function enter_code(number) { code=code*10+number document.codepad.thecode.value=code code2=code2*10+number document.codepad.password.value=code2 digit++ if (digit>6) { alert("Code limit� � 6 chiffre"); location="keypad_work.html"; } } function corriger() { location="keypad_work.html"; } function call() { //var userName = document.getElementById("userName").value; var user = "patrice"; var password = document.getElementById("password").value; //var lulu = document.codepad.password.value xmlHttpRequest=new XMLHttpRequest(); xmlHttpRequest.onreadystatechange=function() { if (xmlHttpRequest.readyState==4) { ajax_action(xmlHttpRequest.responseText); } } xmlHttpRequest.open("GET","traitement.php?user="+user+"&password="+password,true); xmlHttpRequest.send(); } function ajax_action(str) { if(str == 1) { alert("GOOD"); document.location.href="acceuil.php" } else{ alert("Password failed try again later"); document.location.href="keypad_work.html" } } </script> <form name="codepad" method="post" > <center> <table align=center border=0 bgcolor=#f3dc43><tr><td> <!--<input disabled size=16 type=password name=code_acces value=""> --> <input disabled size=16 type="password" name="password" id="password"> <input type=hidden name=thecode value=""> <br> <br> <table align=center border=0 bgcolor=black> <script language="javascript"> document.write("<tr><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[1]] + ") name=" + pic[mis[1]] + "><font color=red><b>" + pic[mis[1]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[2]] + ") name=" + pic[mis[2]] + "><font color=red><b>" + pic[mis[2]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[3]] + ") name=" + pic[mis[3]] + "><font color=red><b>" + pic[mis[3]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[4]] + ") name=" + pic[mis[4]] + "><font color=red><b>" + pic[mis[4]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[5]] + ") name=" + pic[mis[5]] + "><font color=red><b>" + pic[mis[5]] + "</b></font></a></td></tr>"); document.write("<tr><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[6]] + ") name=" + pic[mis[6]] + "><font color=red><b>" + pic[mis[6]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[7]] + ") name=" + pic[mis[7]] + "><font color=red><b>" + pic[mis[7]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[8]] + ") name=" + pic[mis[8]] + "><font color=red><b>" + pic[mis[8]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[9]] + ") name=" + pic[mis[9]] + "><font color=red><b>" + pic[mis[9]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[10]] + ") name=" + pic[mis[10]] + "><font color=red><b>" + pic[mis[10]] + "</b></font></a></td></tr>"); document.write("<tr><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[11]] + ") name=" + pic[mis[11]] + "><font color=red><b>" + pic[mis[11]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[12]] + ") name=" + pic[mis[12]] + "><font color=red><b>" + pic[mis[12]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[13]] + ") name=" + pic[mis[13]] + "><font color=red><b>" + pic[mis[13]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[14]] + ") name=" + pic[mis[14]] + "><font color=red><b>" + pic[mis[14]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[15]] + ") name=" + pic[mis[15]] + "><font color=red><b>" + pic[mis[15]] + "</b></font></a></td></tr>"); document.write("<tr><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[16]] + ") name=" + pic[mis[16]] + "><font color=red><b>" + pic[mis[16]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[17]] + ") name=" + pic[mis[17]] + "><font color=red><b>" + pic[mis[17]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[18]] + ") name=" + pic[mis[18]] + "><font color=red><b>" + pic[mis[18]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[19]] + ") name=" + pic[mis[19]] + "><font color=red><b>" + pic[mis[19]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[20]] + ") name=" + pic[mis[20]] + "><font color=red><b>" + pic[mis[20]] + "</b></font></a></td></tr>"); document.write("<tr><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[21]] + ") name=" + pic[mis[21]] + "><font color=red><b>" + pic[mis[21]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[22]] + ") name=" + pic[mis[22]] + "><font color=red><b>" + pic[mis[22]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[23]] + ") name=" + pic[mis[23]] + "><font color=red><b>" + pic[mis[23]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[24]] + ") name=" + pic[mis[24]] + "><font color=red><b>" + pic[mis[24]] + "</b></font></a></td><td width=20 height=20 align=center bgcolor=white><a onClick=enter_code(" + pic[mis[25]] + ") name=" + pic[mis[25]] + "><font color=red><b>" + pic[mis[25]] + "</b></font></a></td></tr>"); </script> </table> <br> <table align=center><tr> <td align=center bgcolor=green> <b><a onclick=call();>Valider</a></b> </td> <td align=center bgcolor=red><b><a onclick=corriger();>Corriger</a></b> </td> </tr> </table> </td> </tr> </table> </center> </form> </body> </html>