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: DentisByday.php (7.51 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | <?php include("../include/FunctionDB.php"); include("admin_menu.php"); ConnectDB(); $sql = "SELECT * FROM account Where Teacher_code='$Teacher_code' GROUP By Date "; $result = mysql_query($sql); $num = mysql_num_rows($result); ?> <meta http-equiv="Content-Type" content="text/html; charset=TIS-620"> <style type="text/css"> <!-- .style9 { font-size: 14px; font-weight: bold; } .style10 {font-size: 14px} --> </style> <table width="809" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="809"><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">ข้อมูลแสดงรายรับทันตแพทย์ต่อวัน</font></legend> <label><div align="center"> <form id="form1" name="form1" method="post" action=""> <p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font></p> <table width="62%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray"size="12"> <tr bordercolor="#999999" bgcolor="#CCCCCC"> <td height="21" bordercolor="#999966" bgcolor="#D2F49F" style="border:1px solid gray"><div align="center" class="style9"><font color="#000000" face="Tahoma">No.</font></div></td> <td bordercolor="#999966" bgcolor="#D2F49F" style="border:1px solid gray"><div align="center" class="style9"><font face="Tahoma">วันที่</font></div></td> <td bordercolor="#999966" bgcolor="#D2F49F" style="border:1px solid gray"><div align="center" class="style9"><font face="Tahoma">ทันตแพทย์</font></div></td> <td bordercolor="#999966" bgcolor="#D2F49F" style="border:1px solid gray"><div align="center" class="style9"><font face="Tahoma">จำนวนรายการทั้งหมด /วัน</font></div></td> </tr> <?php $i = 1; while($row = mysql_fetch_array($result)) { if($count==0) { ?> <tr > <td width="5%" align="center" bgcolor="#FFFFFF" ><strong><font color="#996600" size="2" face="Tahoma"> <?=$i?> </font></strong></td> <td width="18%" align="center" bgcolor="#FFFFFF" ><div align="center"><font color="#996600" size="2" face="Tahoma"> </font><font color="#990099" size="2" face="Tahoma"><a href="InstructorList.php?Budget_Year=<?=$row["Budget_Year"]?>"title="Click to see Detail" class="d"> </a></font><font color="#996600" size="2" face="Tahoma"><a href="FrmDentisday.php?Date=<?=$row["Date"]?>&Teacher_code=<?= $row["Teacher_code"] ?>"title="Click to see Detail" class="d"> <?=$row["Date"]?> </a></font></div></td> <td width="37%" align="center" bgcolor="#FFFFFF" ><div align="left"><font size="2" face="Tahoma"><a href="Planteachdetail.php?No_code=<?=$row["No_code"]?>"title="คลิกดูเพื่อพิมพ์ใบรายการค่าใช้จ่าย" class="d"> <?php $Teacher_code = $row["Teacher_code"]; $sql = "Select * From personal_tb Where Teacher_code='$Teacher_code'"; $result1 = mysql_query($sql) or die("Error".mysql_error()); $rss = mysql_fetch_array($result1); echo "$rss[First_name] $rss[Teacher_name] $rss[Teacher_lastname]"; ?> <strong><font color="#996600" size="2" face="Tahoma"> </font></strong></a><strong><font color="#996600" size="2" face="Tahoma"><a href="AccList.php?Acc_code=<?=$row["Acc_code"]?>"title="Click to see Detail" class="d"> </a></font></strong></font></div></td> <td width="40%" align="center" bgcolor="#FFFFFF" ><font size="2" face="Tahoma"><a href="AccList.php?Faculty_code=<?=$row["Faculty_code"]?>"title="Click to see Detail" class="d"> <strong><font color="#996600" size="2" face="Tahoma"> </font></strong></a><strong><font color="#996600" size="2" face="Tahoma"><a href="AccList.php?Acc_code=<?=$row["Acc_code"]?>"title="Click to see Detail" class="d"> </a></font><font size="4" face="Tahoma"> <?php $Date = $row[Date]; $sql2 = "Select * From account Where Date='$Date' and Teacher_code='$Teacher_code' "; $result2 = mysql_query($sql2); $countnum = mysql_num_rows($result2); echo $countnum; $count=1; } else { ?> <tr> <td align="center" bordercolor="#999966" bgcolor="#FFFFFF" ><strong><font color="#996600" size="2" face="Tahoma"> <?=$i?> </font></strong></td> <td height="18" align="center" bgcolor="#FFFFFF" ><div align="center"><font color="#996600" size="2" face="Tahoma"> <a href="ProjectList.php?Budget_Year=<?=$row["Budget_year"]?>" title="Click to see Detail" class="d"></a> </font><font color="#990099" size="2" face="Tahoma"><a href="InstructorList.php?Budget_Year=<?=$row["Budget_Year"]?>"title="Click to see Detail" class="d"> </a></font><font color="#996600" size="2" face="Tahoma"><a href="FrmDentisday.php?Date=<?=$row["Date"]?>&Teacher_code=<?= $row["Teacher_code"] ?>"title="Click to see Detail" class="d"> <?=$row["Date"]?> </a></font><font color="#990099" size="2" face="Tahoma"><a href="InstructorList.php?Budget_Year=<?=$row["Budget_Year"]?>"title="Click to see Detail" class="d"> </a></font></div></td> <td align="center" bgcolor="#FFFFFF" ><div align="left"><font size="2" face="Tahoma"><a href="Planteachdetail.php?No_code=<?=$row["No_code"]?>"title="คลิกดูเพื่อพิมพ์ใบรายการค่าใช้จ่าย" class="d"> <?php $Teacher_code = $row["Teacher_code"]; $sql = "Select * From personal_tb Where Teacher_code='$Teacher_code'"; $result1 = mysql_query($sql) or die("Error".mysql_error()); $rss = mysql_fetch_array($result1); echo "$rss[First_name] $rss[Teacher_name] $rss[Teacher_lastname]"; ?> <strong><font color="#996600" size="2" face="Tahoma"> </font></strong></a><strong><font color="#996600" size="2" face="Tahoma"><a href="AccList.php?Acc_code=<?=$row["Acc_code"]?>"title="Click to see Detail" class="d"> </a></font></strong></font></div></td> <td align="center" bgcolor="#FFFFFF" ><div align="center"><font size="2" face="Tahoma"><a href="InstructorList.php?Budget_Year=<?=$row["Budget_Year"]?>"title="Click to see Detail" class="d"> </a><strong><font size="4" face="Tahoma"> <?php $Date = $row[Date]; $sql2 = "Select * From account Where Date='$Date' and Teacher_code='$Teacher_code' "; $result2 = mysql_query($sql2); $countnum = mysql_num_rows($result2); echo $countnum; ?> </font></strong></font></div></td> </tr> <? $count=0; } $i++; } ?> <tr> <td height="19" colspan="4" align="center" bgcolor="#FFFFFF"><div align="center"><span class="style10"><font color="#000000" face="Tahoma">ทั้งหมด</font><font color="#993333" face="Tahoma"> <? echo $num ?></font><font color="#000000" face="Tahoma"> รายการ</font></span></div></td> </tr> </table> </form> <br> <br> </div></label> </fieldset><br> <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br> </font></td> </tr> </table> |
:: 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.0061 ]-- |