| 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/library/ |
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');
$CLASS['db'] = new db();
$CLASS['db']->connect();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
$tb_student_codecard = $_REQUEST['tb_student_codecard'];
$date_insert = date('Y-m-d');
$time_insert = date('H:i:s');
if($tb_student_codecard){
$sql_chknull = "select * from tb_students where tb_student_codecard = '".$tb_student_codecard."' ";
$result_chknull = $db->query($sql_chknull);
$num_chknull = $db->num_rows($result_chknull);
$fetch_student_do = $db->fetch_array($result_chknull);
if($num_chknull >"0"){
$sql_insert = $db->query("INSERT INTO tb_timelibrary (tb_timelibrary_id,tb_student_id, tb_student_code, tb_timelibrary_date, tb_timelibrary_time, tb_timelibrary_type, tb_timelibrary_status) VALUES (NULL,'".$fetch_student_do['tb_student_id']."', '".$fetch_student_do['tb_student_code']."', '".$date_insert."', '".$time_insert."', '1', '1')");
print "
<script language='javascript'>
window.location.href='".$_SERVER['PHP_SELF']."';
</script>
";
}
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ระบบลงชื่อเข้าใช้งานห้องสมุด โรงเรียนแกลง''วิทยสถาวร'' จังหวัดระยอง</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
body {
background-color: #FF0033;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style1 { font-size: 20px;
color: #0000FF;
}
.style2 {font-size: 20px}
-->
</style>
<link href="css/default.CSS" rel="stylesheet" type="text/css">
<script type="text/javascript">
function FocusOnInput()
{
document.getElementById("tb_student_codecard").focus();
}
</script>
<script language="javascript">
function CheckNum(){
if (event.keyCode < 48 || event.keyCode > 57){
event.returnValue = false;
}
}
</script>
</head>
<body onLoad="FocusOnInput()">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><table id="Table_01" width="1003" height="865" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><img src="images/img_library_01.png" width="201" height="149" alt=""></td>
<td><img src="images/img_library_02.png" width="200" height="149" alt=""></td>
<td colspan="2"><img src="images/img_library_03.png" width="201" height="149" alt=""></td>
<td colspan="2"><img src="images/img_library_04.png" width="200" height="149" alt=""></td>
<td colspan="2"><img src="images/img_library_05.png" width="201" height="149" alt=""></td>
</tr>
<tr>
<td colspan="2"><img src="images/img_library_06.png" width="201" height="149" alt=""></td>
<td><img src="images/img_library_07.png" width="200" height="149" alt=""></td>
<td colspan="2"><img src="images/img_library_08.png" width="201" height="149" alt=""></td>
<td colspan="2"><img src="images/img_library_09.png" width="200" height="149" alt=""></td>
<td colspan="2"><img src="images/img_library_10.png" width="201" height="149" alt=""></td>
</tr>
<tr>
<td rowspan="3"><img src="images/img_library_11.png" width="29" height="527" alt=""></td>
<td colspan="3" rowspan="3" align="center" valign="top" background="images/img_library_12.png"><table width="95%" border="0" align="center" cellpadding="3" cellspacing="3">
<tr>
<td align="center" class="style1">วันที่ <?php print display_date($date_day,"longthai")?> <br>
เวลา <?php print date("H:i:s");?> น.</td>
<td width="21%" rowspan="3" align="center" valign="top" class="style1"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="130" height="130">
<param name="movie" value="relog.swf" />
<param name="quality" value="high" />
<param name="BGCOLOR" value="#FFFFFF" />
<embed src="relog.swf" width="130" height="130" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#FFFFFF"></embed>
</object></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td width="79%" align="center"><form id="form1" name="form1" method="post" action="index.php" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td align="center" nowrap="nowrap" class="orange_textcheck"><strong>แสกนบัตรประจำตัว : </strong></td>
</tr>
<tr>
<td align="center"><input name="tb_student_codecard" type="text" class="levelupyellow" id="tb_student_codecard" size="16" maxlength="14"></td>
</tr>
<tr>
<td align="center"><a href="index_barcode.php"><input type="button" class="rowtree" value="กดลงเวลาเข้าใช้งานด้วยรหัสนักเรียน">
</a></td>
</tr>
<tr>
<td align="center"><?php
if($tb_student_codecard){
$sql_chknullq = "select * from tb_students where tb_student_codecard = '".$tb_student_codecard."' ";
$result_chknullq = $db->query($sql_chknullq);
$num_chknullq = $db->num_rows($result_chknullq);
if($num_chknullq =="0"){
?><span class="red_text style2">ไม่มีรหัส <br>
<?php print $tb_student_codecard;?> <br>
ในระบบ !!!!!</span>
<?php } }?> </td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td colspan="2" align="center"><?php
$display_student = $db->query("select * from tb_timelibrary where tb_timelibrary_date='".date('Y-m-d')."' order by tb_timelibrary_id desc");
$fetch_student = $db->fetch_array($display_student);
//echo $fetch_student['tb_student_number'];
?>
<?php if($fetch_student['tb_student_code']){?>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><fieldset>
<legend class="B_textcheck"><strong>ผู้ที่ลงเวลาเข้าใช้งานล่าสุด</strong></legend>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="3">
<tr>
<td width="50%" align="center" nowrap="nowrap"><p class="orange_textcheck">รหัส : <?php print $fetch_student['tb_student_code'];?><br>
<?php print $disp->display_studentall($fetch_student['tb_student_id'])?></p>
<p class="red_textlate">เวลา <?php print $fetch_student['tb_timelibrary_time'];?> น. </p> </td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<?php }?></td>
</tr>
</table></td>
<td colspan="2"><img src="images/img_library_13.png" width="188" height="176" alt=""></td>
<td colspan="2"><img src="images/img_library_14.png" width="187" height="176" alt=""></td>
<td><img src="images/img_library_15.png" width="188" height="176" alt=""></td>
</tr>
<tr>
<td colspan="2"><img src="images/img_library_16.png" width="188" height="175" alt=""></td>
<td colspan="2"><img src="images/img_library_17.png" width="187" height="175" alt=""></td>
<td><img src="images/img_library_18.png" width="188" height="175" alt=""></td>
</tr>
<tr>
<td colspan="2"><img src="images/img_library_19.png" width="188" height="176" alt=""></td>
<td colspan="2"><img src="images/img_library_20.png" width="187" height="176" alt=""></td>
<td><img src="images/img_library_21.png" width="188" height="176" alt=""></td>
</tr>
<tr>
<td colspan="2"><img src="images/img_library_22.png" width="201" height="39" alt=""></td>
<td><img src="images/img_library_23.png" width="200" height="39" alt=""></td>
<td colspan="2"><img src="images/img_library_24.png" width="201" height="39" alt=""></td>
<td colspan="2"><img src="images/img_library_25.png" width="200" height="39" alt=""></td>
<td colspan="2"><img src="images/img_library_26.png" width="201" height="39" alt=""></td>
</tr>
<tr>
<td><img src="images/spacer.gif" width="29" height="1" alt=""></td>
<td><img src="images/spacer.gif" width="172" height="1" alt=""></td>
<td><img src="images/spacer.gif" width="200" height="1" alt=""></td>
<td><img src="images/spacer.gif" width="39" height="1" alt=""></td>
<td><img src="images/spacer.gif" width="162" height="1" alt=""></td>
<td><img src="images/spacer.gif" width="26" height="1" alt=""></td>
<td><img src="images/spacer.gif" width="174" height="1" alt=""></td>
<td><img src="images/spacer.gif" width="13" height="1" alt=""></td>
<td><img src="images/spacer.gif" width="188" height="1" alt=""></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>