Viewing file: indexx.php (7.66 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("admin_menu.php");
?> <meta http-equiv="Content-Type" content="text/html; charset=TIS-620"> <style type="text/css"> <!-- .style13 {color: #0000FF; font-size: 10px; } .style2 { font-size: 24px; font-weight: bold; color: #9933FF; } .style3 {color: #0000FF} .style14 {font-size: 14px} .style17 {font-size: 14px; color: #000000; } --> </style> <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> <table width="740" border="0" cellpadding="0" cellspacing="0"> <tr> <td><br><fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php " >หน้าหลัก</a> <img src="picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="Addcomment.php" >เขียนข้อความสารพันปัญหาถึงผู้อำนวยการ</a><img src="picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>">ตรวจสอบรหัสผ่านก่อนเข้าฐานข้อมูล</font></legend> <label><div align="center"> <form id="form1" name="form1" method="post" action="Checkuser.php"> <table width="682" height="458" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="23" colspan="3"><div align="center"> <p><span class="style2"></span></p> </div></td> </tr> <tr> <td width="128" height="272" bgcolor="#FFFFFF"><p><span class="style2"></span></p> <p> </p> <p> </p></td> <td width="392" background="Image/techlogin.jpg"><table width="92%" height="201" border="0" align="center" cellpadding="0" cellspacing="2" size="12"> <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"> </td> </tr> <tr> <td width="26%" height="22"><div align="center" class="style3"> <div align="center"><span class="style17"><font face="Tahoma">ชื่อผู้ใช</font></span><font color="#000099" size="2" face="Tahoma">้</font></div> </div></td> <td width="2%"> </td> <td width="72%" bordercolor="#99CCFF"><input name="Username" type="text" class="input1" id="Username" onkeypress="return handleEnter(this, event)" size="20" /> </td> </tr> <tr> <td height="22"><div align="center" class="style10 style14"><font face="Tahoma">รหัสผ่าน</font></div></td> <td> </td> <td><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> </table></td> <td width="162"><p> </p></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> <td height="12" 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> <td height="33" colspan="3"><div align="center"><font color="#993333" size="1" face="Tahoma">Copyright @2004 . All rights reserved. Privacy Policy </font></div></td> </tr> <tr bgcolor="#FFFFFF"> <td height="11" colspan="3"> </td> </tr> <tr bgcolor="#FFFFFF"> <td height="20" colspan="3"> </td> </tr> </table> </form> </div> </label> </fieldset><br> <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><br> </font></td> </tr> </table>
|