<?php
include('../include/session.php');

$emp_no = $_GET['emp_no'];
$attendance_date = $_GET['attendance_date'];
$late_reason = $_GET['late_reason'];
$late_permission = $_GET['late_permission'];

$table_name = $_SESSION['db_prefix']."_time_sheet";
$late_query = "UPDATE $table_name SET late_reason = '".$late_reason."', late_permission = '".$late_permission."' WHERE personnel_no = '".$emp_no."' AND attendance_date = '".$attendance_date."' " ;
execsql($late_query);

?>

<script language="javascript" type="text/javascript">
          window.location="recordTimesWizbase.php?p=3&s=";
</script>