| Server IP : 104.21.80.248 / 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 : |
<?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');
//include ('barcode.php');
$CLASS['db'] = new db();
$CLASS['db']->connect();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
$tb_student_degree = $_REQUEST['tb_student_degree'];
$link_value = $_REQUEST['link_value'];
$link_value = "&tb_student_degree=".$tb_student_degree;
//--------------------ส่วนบนใช้สำหรับประกาศตัวแปรและ Config เท่านั้น----------------------------//
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>รายชื่อนักเรียนระดับชั้นมัธยมศึกษาปีที่ <?php $tb_student_degree;?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- FAVICON-->
<!-- Css styles -->
<link href="css/main.css" rel="stylesheet">
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/jquery.scrollTo-1.4.2-min.js"></script>
<script src="js/jquery.localscroll-1.2.7-min.js"></script>
<script src="js/jquery.mobilemenu.js"></script>
<script src="js/custom.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style type="text/css">
body,td,th {
font-family: TH SarabunPSK;
font-size: 24px;
}
a:link {
color: #666666;
text-decoration: none;
}
body {
background-color: #FFF;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../webadmin/css/style_admin.css" rel="stylesheet" type="text/css"></head>
<body>
<form action="#" method="post" name="form1" id="form1">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666" class="km_bgtable">
<tr bgcolor="#FF9966">
<td width="8%" height="30" align="center" valign="middle" nowrap="nowrap" ><strong>ลำดับที่</strong></td>
<td width="36%" align="center" valign="middle" nowrap="nowrap" ><strong>ระดับห้องเรียน</strong></td>
<td width="13%" align="center" valign="middle" nowrap="nowrap" ><strong>ระดับชั้น</strong></td>
<td width="18%" align="center" valign="middle" nowrap="nowrap" ><strong>พิมพ์แบบตรวจสอบข้อมูล</strong></td>
</tr>
<?php
$page_size = 100;
if ($PAGE =="" || $PAGE =="0" ) {
$PAGE=1;
}
$goto = ($PAGE-1)*$page_size;
$limit = "limit $goto , $page_size";
if($keyword){
$sql_search =" and tb_room_name like '%".$keyword."%' ";
}
$sql = "select * from tb_rooms where tb_room_class=1 or tb_room_class=4 $sql_search and tb_room_status='1' order by tb_room_id asc ".$limit;
$sql_all="select * from tb_rooms where tb_room_class=1 or tb_room_class=4 $sql_search and tb_room_status='1' order by tb_room_id asc";
$query_dis = $db->query($sql);
$queryall = $db->query($sql_all);
$numrows = $db->num_rows($queryall);
if($numrows >0){
$i=1;
while($fetch_dis = $db->fetch_array($query_dis)){
$fetch_user = $db->fetch_array($db->query("select count(tb_student_degree) as num_user from tb_students where tb_student_degree ='".$fetch_dis['tb_room_id']."' "));
if($i%2=="1"){
$bg="rowone";
}else{
$bg="rowtwo";
}
?>
<tr class="<?php echo $bg;?>">
<td height="25" align="center" valign="middle" nowrap="nowrap"><?php print $i+$goto;?>.</td>
<td height="25" align="left" valign="middle"> <?php print $fetch_dis['tb_room_name'];?> (รหัสห้อง : <?php print $fetch_dis['tb_room_id'];?>) </td>
<td align="center" valign="middle">ชั้น ม.<?php print $fetch_dis['tb_room_class'];?></td>
<td height="25" align="center" valign="middle"><a href="display_student_card.php?tb_student_degree=<?php print $fetch_dis['tb_room_id'];?>" target="_blank"><img src="../webadmin/images/120px-Icon-printer.gif" width="24" height="24" border="0"></a></td>
</tr>
<?php
$i++;
}
?>
<?php
}else{
?>
<tr>
<td height="25" colspan="4" bgcolor="#FFFFFF"><div align="center" class="red_text"><strong>ไม่พบข้อมูล</strong></div></td>
</tr>
<?php
}
?>
</table>
</form>
</body>
</html>