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/information/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/check/information/display_teacher_card.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"));
$link_value = $_REQUEST['link_value'];
$keyword = $_REQUEST['keyword'];
$link_value = "&tb_department_id=".$tb_department_id;

?>
<!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 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>
        <a href="display_teacher_card.php">เคลียร์</a>
    </form>    </td>
  </tr>
  <tr>
    <td align="center"><span class="style1"><?php print $disp->display_departmentname($tb_department_id);?></span></td>
  </tr>
  <tr>
    <td><table width="100%" border="1" cellspacing="2" cellpadding="2">
      <tr align="center" bgcolor="#CCCCCC" class="style1">
        <td width="6%" align="center" nowrap="NOWRAP"><strong>ลำดับที่</strong></td>
        <td width="14%" align="center" nowrap="NOWRAP"><strong>ภาพประจำตัว</strong></td>
        <td width="14%" nowrap="NOWRAP"><strong>เลขประจำตำแหน่ง</strong></td>
        <td width="21%" nowrap="NOWRAP"><strong>ชื่อ - สกุล</strong></td>
        <td width="17%" align="center" nowrap="NOWRAP"><strong>ตำแหน่งทางวิชาการ</strong></td>
        <td width="20%" align="center" nowrap="NOWRAP"><strong>บัตรประชาชน</strong></td>
        <td width="20%" align="center" nowrap="NOWRAP"><strong>รับรองข้อมูล</strong></td>
      </tr>
	  <?php 
		  $page_size = 5;
		  if ($PAGE =="" || $PAGE =="0" ) { 
			 $PAGE=1; 
		  }
		$goto = ($PAGE-1)*$page_size;	
		$limit = "limit  $goto , $page_size";

		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 =  "select * from tb_teachers $sql_search order  by tb_teacher_position,tb_teacher_id  asc ".$limit;				  
		$sql_all="select * from tb_teachers  $sql_search order by tb_teacher_position,tb_teacher_id  asc ";
		$query_dis = $db->query($sql);
		$queryall = $db->query($sql_all);
			$i=1;
			while($fetch_teacher_card = $db->fetch_array($query_dis)){
		$displayimg = $disp->display_teachertimepic($fetch_teacher_card['tb_teacher_number']);
	  ?>
      <tr class="style1">
        <td align="center" nowrap="nowrap"><?php print $i+$goto;?>.</td>
        <td align="center" nowrap="nowrap"><?php if($displayimg){?>
          <img src="../id-plan/file_uploads/<?php print $disp->display_teachertimepic($fetch_teacher_card['tb_teacher_number'])?>" width="100" border="1" />
          <?php }else{?>
          <img src="../id-plan/file_uploads/photo.png" width="100">
          <?php }?></td>
        <td align="center" nowrap="nowrap"><?php print $fetch_teacher_card['tb_teacher_number'];?></td>
        <td nowrap="nowrap"><?php print $fetch_teacher_card['tb_teacher_name'];?></td>
        <td align="center" nowrap="nowrap"><?php print $disp->display_academicname($fetch_teacher_card['tb_academic_id']);?></td>
        <td align="center" nowrap="nowrap"><?php print $fetch_teacher_card['tb_teacher_idcard'];?></td>
        <td align="center" nowrap="nowrap">&nbsp;</td>
      </tr>
	  <?php 
	  $i++;
	  	}
	  ?>
      <tr class="style1">
        <td colspan="7" align="center">หน้า : <?php print $disp->ctrl_page_design_limit_show($sql_all ,10,$page_size,"red","blue"," / ",$link_value);?></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit