หมายเหตุ
|
|
สแกนเข้า
(หมายถึง
มาทำงาน) |
ไม่ได้สแกน
(หมายถึง
ลา หรือ เดินทางราชการ) |
สแกนกลับ
(หมายถึง
กลับแล้ว) |
ลำดับ |
ชื่อ - นามสกุล | ตำแหน่งงานรับผิดชอบ | สถานะเข้า | สถานะออก | ||
|---|---|---|---|---|---|---|
| " . $n . " | "; echo "" . $objResult3['fname'] . " " . $objResult3['lname'] . " | "; //echo "" . $objResult3['fname'] . " " . $objResult3['lname'] . " | "; echo "";
$select_book = "select * from personnel_user.responsible_doc where responsible_doc.status_show='1' and responsible_doc.status_Re_doc='$user_idf'";
$result_book = mysqli_query($objCon , $select_book);
while($objResult = mysqli_fetch_array($result_book)){
$name_Responsible_doc_s= $objResult['name_Responsible_doc'];
echo ' ';
echo $name_Responsible_doc_s;
echo ' ';
}
echo " | ";
echo "";
?> | ";
echo "";
include("connecttime.php");
$sql2 = "select * from zkeco_db.checkinout,zkeco_db.userinfo where checkinout.userid=userinfo.userid and userinfo.name='$user_name' and checktype='I' and date(checktime)='$todate'";
//$query2 = mysqli_query($sql2);
$query2 = mysqli_query($objCon2 , $sql2);
$num_rows2 = mysqli_num_rows($query2);
if($num_rows2 =="1"){
echo ' ';
}elseif($num_rows2 =="0"){
echo ' ';
}
echo " | ";
echo "";
$sql2 = "select * from checkinout,userinfo where checkinout.userid=userinfo.userid and userinfo.name='$user_name' and checktype='O' and date(checktime)='$todate'";
//$query2 = mysqli_query($sql2);
$query2 = mysqli_query($objCon2 , $sql2);
$num_rows2 = mysqli_num_rows($query2);
$row2= mysqli_fetch_array($query2);
if($num_rows2 =="1"){
echo ' ';
}elseif($num_rows2 =="0"){
echo ' ';
}
// echo ' ';
// echo ' ';
echo " |