Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage/Service/ drwxr-xr-x |
Viewing file: ManAcc1.php.bak (11.42 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | <?php session_start(); if (session_is_registered("valid_user")) { $Username = $valid_user; include("../../include/FunctionDB.php"); include("../../include/Function.php"); include("../../admin_menu.php"); ConnectDB(); $sql ="SELECT * FROM manament_tb WHERE code='$code' "; $result = mysql_query($sql) or die("Cannot Select").mysql_error(); $rs = mysql_fetch_array($result); // $rs[Student_id] = mysql_insert_id(); ?> <html> <head> <title>Form insert accessories</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link rel="stylesheet" href="../css/cart4.css" type="text/css"> <link href="../../css/style1.css" rel="stylesheet" type="text/css"> <script language="JavaScript" type="text/JavaScript"> <!-- function browse() { form1.Imag1.src = form1.Img1.value; } <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> function chk(c){ if (c.checked){ document.all.Prob1.disabled=false; document.all.Prob2.disabled=false; document.all.Prob3.disabled=false; document.all.Prob4.disabled=false; } else{ document.all.Problem.disabled=false; } } </script> <style type="text/css"> <!-- .style1 { color: #0000FF; font-weight: bold; } --> </style> </head> <body bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="76%" border="0" align="center" cellpadding="0" cellspacing="1" style="border:1px solid gray"> <tr bgcolor="#CCCCCC" > <td height="25" colspan="3"> <div align="center" class="style1"><font size="4" face="Tahoma">เพิ่มข้อมูล</font></div></td> </tr> <form name="form1" method="POST" action="InsertMan.php" enctype="multipart/form-data"> <tr bgcolor="#EEEEEE"> <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma"> แจ้งซ่อม </font></div></td> <td> </td> <td><font color="#000000" size="2" face="Tahoma">วันที่ <select name="mDate" id="mDate" class="select" onkeypress="return handleEnter(this, event)" > <? getDay1to31();?> </select> เดือน <select name="mMonth" id="mMonth" class="select" onkeypress="return handleEnter(this, event)"> <? getThaiMonth();?> </select> ปี พ.ศ. <input name="mYear" type="text" id="mYear" size="5" class="input" > </font> </td> </tr> <tr bgcolor="#EEEEEE"> <td width="22%" height="20" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">รหัส</font></div></td> <td width="2%"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td> <td width="76%"><font color="#006633" size="2" face="Tahoma"> <input name="Acc_code" type="text" id="Acc_code" size="30"> </font></td> </tr> <tr bgcolor="#FFFFFF"> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">รหัส - อุปกรณ์/ยี่ห้อ</font></div></td> <td bgcolor="#EEEEEE"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td> <td bgcolor="#EEEEEE"><select name="Acc_name" id="Acc_name" class="input1"> <?php $strSQL1 = "SELECT * FROM accessories_tb "; $result1 = mysql_query($strSQL1); while( $rss = mysql_fetch_array($result1)) { echo"<option value=\"$rss[Acc_name]\" ><b>$rss[Acc_code] $rss[Acc_name]</b></option>\n"; } ?> </select></td> </tr> <tr bgcolor="#FFFFFF"> <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">นักศึกษาผู้แจ้งซ่อม</font></div></td> <td bgcolor="#EEEEEE"> <div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td> <td bgcolor="#EEEEEE"> <strong><font color="#003366" size="2" face="Tahoma"> <select name="Student_code" id="Student_code" class="input1"> <?php $strSQL3 = "SELECT * FROM student_tb Where Course_code='00005' "; $result3 = mysql_query($strSQL3); while( $rs3 = mysql_fetch_array($result3)) { echo"<option value=\"$rs3[Student_code]\" ><b>$rs3[First_name] $rs3[Name] $rs3[Lastname]</b></option>\n"; } ?> </select> </font></strong></td> </tr> <tr bgcolor="#EEEEEE"> <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">อาจารย์ผู้รับผิดชอบ</font></div></td> <td> </td> <td bgcolor="#EEEEEE"><strong><font color="#003366" size="2" face="Tahoma"> <select name="Teacher_code" id="Teacher_code" class="input1"> <?php $strSQL2 = "SELECT * FROM personal_tb Where Permision='2' Order by Teacher_name "; $result2 = mysql_query($strSQL2); while( $rs2 = mysql_fetch_array($result2)) { echo"<option value=\"$rs2[Teacher_code]\" ><b>$rs2[Teacher_name] $rs2[Teacher_lastname]</b></option>\n"; } CloseDB(); ?> </select> </font></strong></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma"><font size="2">ชนิดอุปกรณ์</font> </font></div></td> <td><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td> <td><font size="2" face="Tahoma"> <input type="radio" name="Status" value="Hand piece"> Hand picec <input type="radio" name="Status" value="Contra"> Contra <input type="radio" name="Status" value="Air rotor"> Air rotor <input type="radio" name="Status" value="Chair"> Dental chair <input type="radio" name="Status" value="เครื่องขูดหินปูน"> เครื่องขูดหินปูน</font></td> </tr> <tr bgcolor="#EEEEEE"> <td height="22" bgcolor="#EEEEEE"> </td> <td><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td> <td bgcolor="#EEEEEE"><font size="2" face="Tahoma"> <input type="radio" name="Status" value="เครื่องฉายแสง "> เครื่องฉายแสง <input type="radio" name="Status" value="Autocalve "> Autocalve <input type="radio" name="Status" value="เครื่องปั่นอมัลกั้ม "> เครื่องปั่นอมัลกั้ม <input type="radio" name="Status" value="Hot air oven"> Hot air oven <input type="radio" name="Status" value="Air rotor"> Dental Unit</font></td> </tr> <tr bgcolor="#EEEEEE"> <td height="22" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">สถานที่อุปกรณ์</font></div></td> <td><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td> <td bgcolor="#EEEEEE"> <input name="Store" type="text" class="input" id="Store" size="50"> </td> </tr> <tr bgcolor="#eeeeee"> <td> <div align="center"><font size="2" face="Tahoma">สาเหตุอาการ</font></div></td> <td> </td> <td><textarea name="Contact" cols="40" rows="5" id="Contact"></textarea></td> </tr> <tr bgcolor="#EEEEEE"> <td height="22" bgcolor="#EEEEEE"> </td> <td> </td> <td> </td> </tr> <tr bgcolor="#EEEEEE"> <td height="22" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">วัน.เดือน ปี ที่ซ่อมเสร็จ</font></div></td> <td> </td> <td><font color="#000000" size="2" face="Tahoma">วันที่ <select name="mDate1" id="mDate1" class="select" onkeypress="return handleEnter(this, event)" > <? getDay1to31();?> </select> เดือน <select name="mMonth1" id="mMonth1" class="select" onkeypress="return handleEnter(this, event)"> <? getThaiMonth();?> </select> ปี พ.ศ. <input name="mYear1" type="text" id="mYear1" size="10" class="input" > </font> </td> </tr> <tr bgcolor="#EEEEEE"> <td height="22" bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">ราคา</font></div></td> <td> </td> <td><input name="Price" type="text" class="input" id="Price" size="20"> <font size="2" face="Tahoma">บาท</font></td> </tr> <tr bgcolor="#eeeeee"> <td><div align="center"><font size="2" face="Tahoma">ประวัติการซ่อม</font></div></td> <td> </td> <td><font size="2" face="Tahoma"> <textarea name="Fix_History" cols="50" rows="5" id="Fix_History"></textarea> </font></td> </tr> <tr bgcolor="#EEEEEE"> <td height="22" bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">งบประมาณการซ่อมแซม</font></div></td> <td> </td> <td> <input name="Fix_budget" type="text" class="input" id="Fix_budget" size="20"> <font size="2" face="Tahoma"> บาท</font></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma"> สถานะการใช้งาน</font></div></td> <td><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td> <td><font size="2" face="Tahoma"> <input type="radio" name="Status_1" value="ใช้งานได้"> ใช้งานได้ <input type="radio" name="Status_1" value="ยังใช้งานไม้ได้"> ยังใช้งานไม้ได้ <input type="radio" name="Status_1" value="ชำรุด"> ชำรุด</font></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"> <div align="center"><font size="2" face="Tahoma">สถิติการใช้งาน</font> </div></td> <td> </td> <td> <textarea name="Statistic" cols="40" id="Statistic"></textarea></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">บันทึกซ่วยจำ</font></div></td> <td> </td> <td><textarea name="Description" cols="50" rows="5" id="Description"></textarea></td> </tr> <tr bordercolor="#CCCCCC" bgcolor="#ECF5FF"> <td height="101" nowrap bordercolor="#CCCCCC"><div align="center"><font color="#003366" size="2" face="Tahoma">รูปภาพ</font></div></td> <td bordercolor="#CCCCCC"> </td> <td nowrap bordercolor="#99CCFF"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="63%" height="100"><div align="center"> <label><input name="Img1" type="file" id="Img1" onChange=browse()> </div></td> <td width="37%"><div align="center"><img name="Imag1" src=" " width="109" height="94"></div></td> </tr> </table></td> </tr> <tr bgcolor="#CCCCFF" > <td height="25" colspan="3"> <div align="center"> <input type="submit" name="Submit" value=" บันทึก " class="button"> <input type="reset" name="Submit2" value="เริ่มใหม่" class="button"> </div></td> </tr> </form> </table> </body> </html> <?php } else { echo"<body bgcolor=\"#CCCCCC\">"; echo"<meta http-equiv=\"refresh\" content=\"3;URL=../logout.php\" target=\"mainFrame\">\n"; echo"<center>"; echo"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>"; echo"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>"; echo"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> คุณไม่มสิทธ์ใช้งาน</font>"; echo"</center>"; echo"</body>"; } ?> |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0076 ]-- |