| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 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/checktime/ |
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/class_application.php');
$CLASS['db'] = new db();
$CLASS['db']->connect ();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
$date_day = date("Y-m-d");
$date_time = date("H:i:s");
$checkid = $_REQUEST['checkid'];
$tb_time_type = $_REQUEST['tb_time_type'];
$tb_student_code = $_REQUEST['tb_student_code'];
$tb_student_id = $_REQUEST['tb_student_id'];
$count_rows = $_REQUEST['count_rows'];
$type_search =$_SESSION['sessionuser_degree'];
$tb_student_tname = $_REQUEST['tb_student_tname'];
for($r=0;$r<$count_rows;$r++){
$checkid_i = $checkid[$r];
$tb_time_type_i = $tb_time_type[$r];
$tb_time_stucode_i = $tb_student_code[$r];
$tb_time_stuid_i = $tb_student_id[$r];
$tb_time_tname_i = $tb_student_tname[$r];
//$delete_time = $db->query("DELETE FROM tb_times WHERE tb_time_stucode = '".$tb_time_stucode_i."' and tb_time_date='".$date_day."' ");
if($tb_time_type_i !="1"){
$insert_time = $db->query("INSERT INTO tb_times (tb_time_id,tb_time_stuid, tb_time_stucode, tb_time_date,tb_time_time, tb_time_type, tb_time_degree, tb_time_tname) VALUES (NULL,'".$tb_time_stuid_i."', '".$tb_time_stucode_i."', '".$date_day."','".$date_time."', '".$tb_time_type_i."', '".$type_search."', '".$tb_time_tname_i."')");
}
}
print "
<script language='javascript'>
window.location.href='display_student_view.php?type_search=$type_search';
</script>
";
?>