403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/check/id-plan/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/check/id-plan//display_user_work.php
<?php
session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php'); 
include ($path.'include/class_display.php'); 
include ($path.'include/function.php'); 
$CLASS['db']   = new db();
$CLASS['db']->connect(); 
$CLASS['disp']   = new display();
$db   = $CLASS['db']; 
$disp   = $CLASS['disp']; 

$del_id = $_REQUEST['del_id'];
$process = $_REQUEST['process'];
$tb_work_id = $_REQUEST['tb_work_id'];


if($process=="del"){
	$db->query("delete from tb_works where tb_work_id='".$del_id."' ");
	print "
	<script language='javascript'>
		window.location.href='".$_SERVER['PHP_SELF']."';
	</script>
	";
}

//--------------------ส่วนบนใช้สำหรับประกาศตัวแปรและ Config เท่านั้น----------------------------//
?>
<!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>
<title>ระบบบันทึกแผนการพัฒนาตนเอง (ของครู)  โรงเรียนแกลง''วิทยสถาวร'' จังหวัดระยอง</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="images/cbcscbmenu.css" type="text/css" />
<link href="css/default.CSS" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
</head>

<body>
<table width="988" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="200" valign="top" bgcolor="#3882F6"><?php include("header.php");?></td>
  </tr>
  <tr>
    <td height="100%" align="center" valign="top" bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="100%" align="center" valign="top">&nbsp;</td>
        <td width="1" align="center" valign="top" background="images/hdot.gif"></td>
        <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
      <tr>
        <td width="230" height="100%" align="center" valign="top"><?php include('com_left.php');?></td>
        <td width="1" align="center" valign="top" background="images/hdot.gif"></td>
        <td width="757" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="3">
          <tr>
            <td><a href="display_main.php"><img src="images/ebbtcbmenu1_0.gif" width="81" height="26" border="0" align="absmiddle" /></a></td>
          </tr>
        </table>
          <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		<form action="function_user_work.php" method="post" enctype="multipart/form-data" name="user_detail">
          <tr>
            <td valign="top" bgcolor="#FFFFFF"><fieldset style="border-color:#03b4fe"><legend><div align="left"><strong>งานในหน้าที่ที่รับผิดชอบด้านการสอน</strong></div></legend>
              <table width="100%" border="0" cellspacing="2" cellpadding="5">
                <tr>
                  <td width="25%" align="right" nowrap="NOWRAP" bgcolor="#FFFFFF"><strong>กลุ่มสาระฯที่สอน : </strong></td>
                  <td colspan="2" align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>
                    <select name="tb_department_id" class="f_black" id="tb_department_id">
                      <option value="">= เลือกกลุ่มสาระฯที่สอน =</option>
                      <?php
									$query_department=$db->query("select * from tb_departments where tb_department_status ='1' order by tb_department_id asc");
									while($fetch_department=$db->fetch_array($query_department)){
									?>
                      <option value="<?php echo $fetch_department['tb_department_id'];?>"><?php echo $fetch_department['tb_department_name'];?></option>
                      <?php } ?>
                    </select>
                    </strong> </td>
                  </tr>
                <tr>
                  <td align="right" nowrap="NOWRAP" bgcolor="#FFFFFF"><strong>ระดับชั้น : </strong></td>
                  <td width="26%" align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>
                    <select name="tb_room_id" class="f_black" id="tb_room_id">
                      <option value="">= เลือกระดับชั้น =</option>
                      <?php
									$query_room=$db->query("select * from tb_rooms where tb_room_status ='1' order by tb_room_id asc");
									while($fetch_room=$db->fetch_array($query_room)){
									?>
                      <option value="<?php echo $fetch_room['tb_room_id'];?>" <?php if($tb_teacher_degree==$fetch_room['tb_room_id']){echo "selected";}?>><?php echo $fetch_room['tb_room_name'];?></option>
                      <?php } ?>
                    </select>
                  </strong></td>
                  <td width="49%" align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>จำนวนคาบ / สัปดาห์ : </strong><strong>
                    <select name="tb_work_time" class="f_black" id="tb_work_time">
                      <?php for ($i = 1; $i <= 30; $i++) { ?>
                      <option value="<?php echo $i;?>"><?php echo $i;?></option>
                      <?php }?>
                    </select>
                  </strong></td>
                  </tr>
                <tr>
                  <td align="right" nowrap="NOWRAP" bgcolor="#FFFFFF"><strong>รหัสวิชา : </strong></td>
                  <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><input name="tb_work_coursecode" type="text" class="f_black" id="tb_work_coursecode" size="20" /></td>
                  <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>ชื่อวิชา : 
                    <input name="tb_work_coursename" type="text" class="f_black" id="tb_work_coursename" size="40" />
                  </strong></td>
                </tr>
              </table>
            </fieldset></td>
          </tr>
          <tr>
            <td align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
          <tr>
            <td align="center" valign="top" bgcolor="#FFFFFF"><input name="Submit" type="submit" value="เพิ่มข้อมูล" /></td>
          </tr></form>
        </table>
          <table width="100%" border="0" cellspacing="3" cellpadding="3">
            <tr>
              <td><fieldset style="border-color:#03b4fe">
                <legend>
                <div align="left"><strong>ข้อมูลการจัดการเรียนการสอน </strong></div>
                </legend>
                <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#0033FF">
                  <tr>
                    <td width="43%" align="center" nowrap="NOWRAP" bgcolor="#03B4FE"><strong>กลุ่มสาระฯที่สอน</strong> </td>
                    <td width="31%" align="center" nowrap="NOWRAP" bgcolor="#03B4FE"><strong>วิชาที่สอน</strong></td>
                    <td width="8%" align="center" nowrap="NOWRAP" bgcolor="#03B4FE"><strong>ระดับชั้น</strong></td>
                    <td width="12%" align="center" nowrap="NOWRAP" bgcolor="#03B4FE"><strong>คาบ / สัปดาห์</strong></td>
                    <td width="6%" align="center" nowrap="NOWRAP" bgcolor="#03B4FE"><strong>จัดการ</strong></td>
                  </tr>
				  <?php 
				  	$sql_diswork = $db->query("select * from tb_works where tb_teacher_id ='".$_SESSION['sessionuser_id']."' order by tb_room_id,tb_work_coursecode asc");
					$num_diswork = $db->num_rows($sql_diswork);
					if($num_diswork>0){
					while($fetch_diswork=$db->fetch_array($sql_diswork)){
				  ?>
                  <tr>
                    <td align="left" bgcolor="#FFFFFF"><?php print $disp->display_departmentname($fetch_diswork['tb_department_id']);?></td>
                    <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><?php print $fetch_diswork['tb_work_coursecode'];?>-<?php print $fetch_diswork['tb_work_coursename'];?></td>
                    <td align="center" nowrap="NOWRAP" bgcolor="#FFFFFF"><?php print $disp->display_roomname($fetch_diswork['tb_room_id']);?></td>
                    <td align="center" nowrap="NOWRAP" bgcolor="#FFFFFF"><?php print $fetch_diswork['tb_work_time'];?></td>
                    <td align="center" nowrap="NOWRAP" bgcolor="#FFFFFF"><a href="<?php print $_SERVER['PHP_SELF'];?>?process=del&del_id=<?php print $fetch_diswork['tb_work_id']?>" onclick="return confirm('คุณต้องการที่จะลบข้อมูลนี้หรือไม่ ?');"><img src="images/sign_cross.png" alt="ลบข้อมูล" width="16" height="16" border="0" /></a></td>
                  </tr>
				  <?php }
				  }else{?>
                  <tr>
                    <td colspan="5" align="center" nowrap="nowrap" bgcolor="#FFFFFF"><span class="style1">ยังไม่มีการบันทึกข้อมูล</span></td>
                    </tr>
				<?php }?>
                </table>
                </fieldset>
                </td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td height="100%" align="center" valign="top">&nbsp;</td>
        <td width="1" align="center" valign="top" background="images/hdot.gif"></td>
        <td align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="50" valign="bottom"><?php include("footer.php");?></td>
  </tr>
</table>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit