include("../php_scripts/connect_database.php");
include("../php_scripts/calendar_data.php");
include("php_scripts/personal_absenthis.php");
include("php_scripts/load_per_control.php");
if (!$UPD && !$VIEW) get_ABSENT_SUM($PER_ID,$TODAY); // ดึงวันลาสะสมของผู้ที่ล็อกอินมาลา
$cmd =" select count(ABS_ID) as count_data
from PER_ABSENTHIS
where PER_ID=$PER_ID ";
$db_dpis->send_cmd($cmd);
// $db_dpis->show_error();
$data = $db_dpis->get_array();
$data = array_change_key_case($data, CASE_LOWER);
$count_data = $data[count_data];
// echo "count-list-absenthis-$cmd ($count_data)
";
$total_page = ceil( $count_data / $data_per_page );
$page_link = create_link_page($total_page, $current_page);
$limit_data = "";
?>
$OPTIONAL_TITLE="".(($HIDE_HEADER)?"ข้อมูลการลา":"") ; if ($UPD) $OPTIONAL_TITLE.=" > แก้ไขข้อมูล"; elseif ($VIEW) $OPTIONAL_TITLE.=" > ดูข้อมูล"; $setPerStyle="display:none; visibility:hidden"; if($DisableTimeAtt=="CLOSE"){ $setPerStyle="display:block; visibility:visible"; } if($UPD||$VIEW||($BKK_FLAG==1&&$ADD_NEXT==1)){ $setPerStyle="display:block; visibility:visible"; } include("current_location.html"); ?> |