Viewing file: logi2.php (6.64 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include("admin_menu.php"); ?> <html> <head> <title>Login to System</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link rel="stylesheet" href="css/cart4.css" type="text/css"> <script type="text/javascript"> function handleEnter (field, event) { var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode; if (keyCode == 13) { var i; for (i = 0; i < field.form.elements.length; i++) if (field == field.form.elements[i]) break; i = (i + 1) % field.form.elements.length; field.form.elements[i].focus(); return false; } else return true; }
</script> <script language="JavaScript1.2"> var highlightcolor="lightyellow" var ns6=document.getElementById&&!document.all var previous='' var eventobj //Regular expression to highlight only form elements var intended=/INPUT|TEXTAREA|SELECT|OPTION/
//Function to check whether element clicked is form element function checkel(which){ if (which.style&&intended.test(which.tagName)){ if (ns6&&eventobj.nodeType==3) eventobj=eventobj.parentNode.parentNode return true } else return false }
//Function to highlight form element function highlight(e){ eventobj=ns6? e.target : event.srcElement if (previous!=''){ if (checkel(previous)) previous.style.backgroundColor='' previous=eventobj if (checkel(eventobj)) eventobj.style.backgroundColor=highlightcolor } else{ if (checkel(eventobj)) eventobj.style.backgroundColor=highlightcolor previous=eventobj } } function formCheck(formobj){ // Enter name of mandatory fields var fieldRequired = Array("Username","Password"); // Enter field description to appear in the dialog box var fieldDescription = Array("ª×èͼÙéãªé","ÃËÑʼèÒ¹"); // dialog message var alertMsg = "Please complete the following fields:\n"; var l_Msg = alertMsg.length; for (var i = 0; i < fieldRequired.length; i++){ var obj = formobj.elements[fieldRequired[i]]; if (obj){ switch(obj.type){ case "select-one": if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){ alertMsg += " - " + fieldDescription[i] + "\n"; } break; case "select-multiple": if (obj.selectedIndex == -1){ alertMsg += " - " + fieldDescription[i] + "\n"; } break; case "text": case "textarea": if (obj.value == "" || obj.value == null){ alertMsg += " - " + fieldDescription[i] + "\n"; } break; default: } if (obj.type == undefined){ var blnchecked = false; for (var j = 0; j < obj.length; j++){ if (obj[j].checked){ blnchecked = true; } } if (!blnchecked){ alertMsg += " - " + fieldDescription[i] + "\n"; } } } }
if (alertMsg.length == l_Msg){ return true; }else{ alert(alertMsg); return false; } } </script> <link href="css/style1.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .style2 { font-size: 24px; font-weight: bold; color: #9933FF; } .style3 {color: #0000FF} body { background-image: url(Image/bindertile.GIF); } .style10 { font-size: 12px; color: #000099; } .style12 {font-size: 12px} .style13 {color: #0000FF; font-size: 10px; } --> </style> </head>
<body bgcolor="#FFFFFF"> <p> </p> <table width="682" height="499" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="23" colspan="3"><div align="center"></div></td> </tr> <tr> <td height="23" colspan="3"><div align="center"> <p><span class="style2"></span></p> </div></td> </tr> <tr> <td width="128" height="285" bgcolor="#FFFFFF"> <p><span class="style2"></span></p> <p> </p> <p> </p></td> <td width="392" background="Image/techlogin.jpg" bgcolor="#E4F3F8"><table width="94%" height="201" border="0" align="center" cellpadding="0" cellspacing="2" bordercolor="#99CCFF" size="12"> <form name="Form1" autocomplete="off" action="Checkuser.php" method="POST" onKeyUp="highlight(event)" onClick="highlight(event)" onSubmit="return formCheck(this);"> <tr > <td height="42" colspan="3" > <div align="left"><font color="#003366" size="3" face="Tahoma"><strong> <font size="4"> µÃǨÊͺÃËÑʼèÒ¹</font></strong></font></div></td> </tr> <tr> <td height="20" colspan="3" bordercolor="#99CCFF"> </td> </tr> <tr> <td width="28%" height="22" bordercolor="#99CCFF" bgcolor="#CCCCFF"> <div align="center" class="style3"> <div align="center"><span class="style12"><font face="Tahoma">ª×èͼÙéãª</font></span><font color="#000099" size="2" face="Tahoma">é</font></div> </div></td> <td width="2%"> </td> <td width="70%" bordercolor="#99CCFF"> <input name="Username" type="text" class="input1" id="Username" onKeyPress="return handleEnter(this, event)" size="20"> </td> </tr> <tr> <td height="22" bordercolor="#99CCFF" bgcolor="#CCCCFF"> <div align="center" class="style10"><font face="Tahoma">ÃËÑʼèÒ¹</font></div></td> <td> </td> <td bordercolor="#99CCFF"> <input name="Password" type="password" class="input1" id="Password" onKeyPress="return handleEnter(this,event)" size="20" > </td> </tr> <tr> <td height="22" colspan="3"> </td> </tr> <tr> <td height="57" colspan="3"> <div align="center"> <input type="submit" name="Submit" value="à¢éÒÃкº" class="button2"> <input type="reset" name="Reset" value=" àÃÔèÁãËÁè " class="button2"> </div></td> </tr> </form> </table> </td> <td width="162"> <p> </p></td> </tr> <tr> <td height="33" colspan="3"> </td> </tr> <tr> <td height="33" colspan="3"> </td> </tr> <tr> <td height="33" colspan="3"> </td> </tr> <tr> <td height="33" colspan="3"> <div align="center" class="style3"><font color="#003366" size="2" face="Tahoma">ÁÕ»ÑËÒ㹡ÒÃãªéÃкº¡ÃسҵԴµèͼÙé¾Ñ²¹ÒÃкº comsit2000@yahoo.com , comsit_4@hotmail.com </font></div></td> </tr> <tr bgcolor="#FFFFFF"> <td height="11" colspan="3"> <div align="center" class="style13"><font face="Tahoma">Best Screen Resolution 1024*768 Text Size Medium Internet Explorer6.0 up Browser</font></div></td> </tr> <tr bgcolor="#FFFFFF"> <td height="20" colspan="3"> <div align="center"><font color="#993333" size="1" face="Tahoma">Copyright @2004 . All rights reserved. Privacy Policy </font></div></td> </tr> </table> </body> </html>
|