";
echo "";
echo " | - | ";
$startDate="2022-01-01";//"01-01-2022";
$leaves=array();
//$query="select distinct symbol from empAttendance where symbol not in('P','OF','D','DO','RD') and machineid=(select machineid from student where ID='$empID' and recordType='Staff') and (date_ BETWEEN '$startDate' AND '$date_') order by symbol";
$query="select distinct symbol from empAttendance where symbol in('A','CL','SL','tL') and machineid=(select machineid from student where ID='$empID' and recordType='Staff') and (date_ BETWEEN '$startDate' AND '$date_') order by symbol";
$cur= odbc_exec( $conn, $query );
$cnt=1;
echo "";
$fromDate = date ("Y-m-d", strtotime("-1 days", strtotime($fromDate)));
$toDate = date ("Y-m-d", strtotime("+1 days", strtotime($toDate)));
$query="select checktime from zkteco.dbo.checkInOut where (checktime between '$fromDate' and '$toDate') and machineid=(select machineid from student where empID='$empID') order by checktime";
$cur= odbc_exec( $conn, $query );
$cnt=1;
while( odbc_fetch_row( $cur ) ) {
if ($cnt==1) echo "
# | Check IN/OUT";
$checktime= odbc_result( $cur, "checktime");
echo " |
---|
". $cnt++ . " | $checktime" ;
}
echo " | ";
echo " |