Compare commits

...

2 Commits

3 changed files with 9 additions and 5 deletions

View File

@ -98,7 +98,7 @@ class LogController
// "deviceIP" => $ip
// ];
// echo json_encode($att)."\n";
$res=$this->fn_setattendance($att, $ip);
// $res=$this->fn_setattendance($att, $ip);
$reslog=$this->fn_setattendancelogs($att, $ip);
$data[] = [
"fingerid" => $att['id'],

View File

@ -84,9 +84,11 @@ class LogController
if($rs){
$d=array();
while($rw=$rs->fetch()){
echo "start time : ".date("Y-m-d H:i:s")."\n";
$d['timestamp']=date("Y-m-d H:i:s", strtotime($rw['dates'].' '.$rw['times']));
$d['id']=$rw['fingerid'];
$res=$this->fn_setattendance($d, $rw['deviceip']);
echo "End time : ".date("Y-m-d H:i:s")."\n\n";
}
}
@ -533,7 +535,7 @@ class LogController
$qryduration="";
$rs=$this->selectquerySP($qry);
if($rs){
echo "start time : ".date("Y-m-d H:i:s")."\n";
while($rw=$rs->fetch()){
$swhereshiftcode="";
if($rw['shiftcode']&&$rw['idxdept']==22){

View File

@ -83,10 +83,12 @@ class LogController
$rs=$this->selectquerySP($qry);
if($rs){
$d=array();
while($rw=$rs->fetch()){
while($rw=$rs->fetch()){
echo "start time : ".date("Y-m-d H:i:s")."\n";
$d['timestamp']=date("Y-m-d H:i:s", strtotime($rw['dates'].' '.$rw['times']));
$d['id']=$rw['fingerid'];
$res=$this->fn_setattendance($d, $rw['deviceip']);
echo "End time : ".date("Y-m-d H:i:s")."\n\n";
}
}
@ -533,7 +535,7 @@ class LogController
$qryduration="";
$rs=$this->selectquerySP($qry);
if($rs){
echo "start time : ".date("Y-m-d H:i:s")."\n";
// echo "start time : ".date("Y-m-d H:i:s")."\n";
while($rw=$rs->fetch()){
$swhereshiftcode="";
if($rw['shiftcode']&&$rw['idxdept']==22){
@ -697,7 +699,7 @@ class LogController
}
}
echo "end time : ".date("Y-m-d H:i:s")."\n";
// echo "end time : ".date("Y-m-d H:i:s")."\n";
}
$rtn=true;
return $rtn;