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/directorBCNU/ drwxr-xr-x |
Viewing file: Menu_Teach.php (19.42 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | <?php session_start(); /** Define Validate Access */ define( '_VALID_ACCESS', 1 ); /** Check Session User Login */ if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) { echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />"; echo "<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>"; echo "<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />"; exit(); } else { /** Configuration */ require_once( "../configuration.php" ); require_once( $_Config_absolute_path . "/includes/framework.php" ); /** Create Database Object */ $dbObj = new DBConn; /** Config Table for This Page */ $myTable = "personal_tb"; $Username = $valid_user; $query = " SELECT * FROM $myTable WHERE Username='$Username' "; $result = $dbObj->execQuery($query); $rs = $dbObj->fetchObject($result); } # else ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <link href="../css/default.css" rel="stylesheet" type="text/css" /> <title>ข้อมูลทั่วไปบุคลากร</title> </head> <body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0"> <?php include("../templates/incHeader.php"); ?> <table width="1003" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td> <td width="800" height="440" align="left" valign="top" style="padding:10px 0px 5px 10px"><fieldset><legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a></font></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font><strong>ข้อมูลตามภาระงานบุคลากร</strong></legend> <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="780" height="5"></td> </tr> <tr> <td> </td> </tr> <tr> <td height="385" align="center" valign="top"><table width="78%" border="0" cellspacing="1" cellpadding="1"> <?php $sql12 = " SELECT * FROM formaoffice WHERE Teacher_code='$rs->Teacher_code' "; $result12 = $dbObj->execQuery($sql12); $numrows = $dbObj->_numrows; ?> <tr> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="FormAList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการขออนุมัติไปราชการ</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</a>"; echo"</a>"; } $dbObj->freeresult($result12); ?></a></td> </tr> <tr> <?php $sql12 = " SELECT * FROM formaoffice WHERE Flag='$rs->Teacher_code' "; $result12 = $dbObj->execQuery($sql12); $numrows = $dbObj->_numrows; ?> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="RepFormAList.php?Flag=<?=$rs->Teacher_code;?>">ข้อมูลการขออนุมัติไปราชการ</a>(หลายคน )</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</a>"; echo"</a>"; } $dbObj->freeresult($result13); ?></td> </tr> <tr> <?php $sql13 = " SELECT * FROM formcaroffice WHERE Teacher_code='$rs->Teacher_code' "; $result13 = $dbObj->execQuery($sql13); $numrows = $dbObj->_numrows; ?> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="FormCarList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการขอใช้รถยนต์</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result13); ?></td> </tr> <tr> <?php $sql14 = " SELECT * FROM history_absent_tb WHERE Teacher_code='$rs->Teacher_code' "; $result14 = $dbObj->execQuery($sql14); $numrows = $dbObj->_numrows; ?> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="FormAbsentList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการขอลาป่วย / ลากิจ / ลาคลอด</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result14); ?></td> </tr> <tr> <?php $sql14 = " SELECT * FROM history_absent_tb WHERE Teacher_code='$rs->Teacher_code' and Absent_code='3' "; $result14 = $dbObj->execQuery($sql14); $numrows = $dbObj->_numrows; ?> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="FormAbsentAList.php?Teacher_code=<?=$rs->Teacher_code;?>&Absent_code=3">ข้อมูลการขอลาพักผ่อน</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result14); ?></td> </tr> <tr> <?php $sql15 = " SELECT * FROM durable_tb WHERE Teacher_code='$rs->Teacher_code' "; $result15 = $dbObj->execQuery($sql15); $numrows = $dbObj->_numrows; ?> <td height="18" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="FormDurableList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการขอซ่อมสิ่งของ/ครุภัณฑ์</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result15); ?></td> </tr> <tr> <?php $sql15 = " SELECT * FROM formproject WHERE Teacher_code='$rs->Teacher_code' "; $result15 = $dbObj->execQuery($sql15); $numrows = $dbObj->_numrows; ?> <td height="18" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="FormProjectList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการขออนุมัติใช้เงินตามแผน/โครุงการ</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result15); ?></td> </tr> <tr> <?php $sql15 = " SELECT * FROM formproject WHERE Teacher_code='$rs->Teacher_code' "; $result15 = $dbObj->execQuery($sql15); $numrows = $dbObj->_numrows; ?> <td height="18" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="FormUpProjectList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการขออนุมัติปรับแก้ไขแผน/โครุงการ</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result15); ?></td> </tr> <tr> <?php $sql16 = " SELECT * FROM tech_plan_tb WHERE Teacher_code='$rs->Teacher_code' "; $result16 = $dbObj->execQuery($sql16); $numrows = $dbObj->_numrows; ?> <td width="4%" height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td width="74%"><a href="CourseTeach.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลแผนการสอน</a></td> <td width="22%" align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result16); ?></td> </tr> <?php $sql3 = " SELECT * FROM research_char_tb WHERE Teacher_code='$rs->Teacher_code' "; $result3 = $dbObj->execQuery($sql3); $numrows = $dbObj->_numrows; ?> <tr> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="ResearchGroup.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลผลงานประเภทต่างๆ</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result3); ?></td> </tr> <?php $sql4 = " SELECT * FROM training_tb WHERE Teacher_code='$rs->Teacher_code' "; $result4 = $dbObj->execQuery($sql4); $numrows = $dbObj->_numrows; ?> <tr> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="TrainingList.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการพัฒนาบุคลากร</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result4); ?></td> </tr> <?php $sql5 = " SELECT * FROM committee_tb WHERE Teacher_code='$rs->Teacher_code' "; $result5 = $dbObj->execQuery($sql5); $numrows = $dbObj->_numrows; ?> <tr> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="CommitteeMe.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลการเป็นกรรมการบริการแก่สังคม</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result5); ?></td> </tr> <?php $sql6 = " SELECT * FROM edu_product_tb WHERE Teacher_code='$rs->Teacher_code' "; $result6 = $dbObj->execQuery($sql6); $numrows = $dbObj->_numrows; ?> <tr> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="Edu_ProductMe.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลผลงานทางวิชาการ</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result6); ?></td> </tr> <?php $sql7 = " SELECT * FROM project_type_tb WHERE Teacher_code='$rs->Teacher_code' "; $result7 = $dbObj->execQuery($sql7); $numrows = $dbObj->_numrows; ?> <tr> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="Show_Res_Project.php?Teacher_code=<?=$rs->Teacher_code;?>">ข้อมูลความรับผิดชอบในโครงการ</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result6); ?></td> </tr> <tr> <?php $sql13 = " SELECT * FROM project_tb WHERE Teacher_code='$rs->Teacher_code' "; $result13= $dbObj->execQuery($sql13); $numrows = $dbObj->_numrows; ?> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="PlaningByYear.php?Teacher_code=<?=$rs->Teacher_code;?>&Faculty_code=<?=$rs->Faculty_code;?>">ข้อมูลแผนปฏิบัติการหน่วยงาน</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result13); ?></td> </tr> <?php $sql8 = " SELECT * FROM manament_tb WHERE Teacher_code='$rs->Teacher_code' "; $result8 = $dbObj->execQuery($sql8); $numrows = $dbObj->_numrows; ?> <?php //$sql9 = " SELECT * FROM bookmant_tb WHERE Teacher_code='$rs->Teacher_code' "; //$result9 = $dbObj->execQuery($sql9); //$numrows = $dbObj->_numrows; ?> <?php $sql10 = " SELECT * FROM history_absent_tb WHERE Teacher_code='$rs->Teacher_code' "; $result10 = $dbObj->execQuery($sql10); $numrows = $dbObj->_numrows; ?> <?php $sql11 = " SELECT * FROM accessories_tb WHERE Faculty_code='$rs->Faculty_code' "; $result11 = $dbObj->execQuery($sql11); $numrows = $dbObj->_numrows; ?> <tr> <td height="20" align="center"><img src="../images/icons/expand.gif" width="11" height="11" align="absmiddle" /></td> <td><a href="AccList.php?Teacher_code=<?=$rs->Teacher_code;?>&Faculty_code=<?=$rs->Faculty_code;?>">ข้อมูลครุภัณฑ์ของหน่วยงาน</a></td> <td align="right" style="padding-right:25px;"><?php if ( $numrows == 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#FF0000\">"; echo"ยังไม่ข้อมูล"; echo"</font>"; } else if ( $numrows > 0 ) { echo"<font face=\"Tahoma\" Size=\"1\" color=\"#006633\">"; echo"$numrows <font face=\"Tahoma\" Size=\"1\" color=\"#000000\">รายการ</font>"; echo"</font>"; } $dbObj->freeresult($result11); ?></td> </tr> <?php //$sql12 = " SELECT * FROM personal_den_tb WHERE Teacher_code='$rs->Teacher_code' "; //$result12 = $dbObj->execQuery($sql12); //$numrows = $dbObj->_numrows; ?> <tr> <td height="20" align="center"> </td> <td> </td> <td align="right" style="padding-right:25px;"> </td> </tr> <tr> <td height="20" align="center"> </td> <td> </td> <td align="right" style="padding-right:25px;"> </td> </tr> <?php $sql13 = " SELECT * FROM formation_tb WHERE Teacher_code='$rs->Teacher_code' "; $result13 = $dbObj->execQuery($sql13); $numrows = $dbObj->_numrows; ?> <?php $sql14 = " SELECT * FROM formation_tb WHERE Teacher_code='$rs->Teacher_code' "; $result14 = $dbObj->execQuery($sql14); $numrows = $dbObj->_numrows; ?> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table></td> </tr> </table> </fieldset></td> </tr> </table> <?php include("../templates/incFooter.php"); ?> </body> </html> <?php /** Free Resource */ $dbObj->freeresult($result); /** Close the Database */ $dbObj->disconn(); /** Unset Class */ unset($dbObj); ?> |
:: 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.0066 ]-- |