
<?php

     include('../include/session.php');
	 $_SESSION['message']="";
	 $_SESSION['file_name']="";
	 $_SESSION['date']="";
	 $_SESSION['recorded']="0";
	 $_SESSION['page_stage']="0";
	 $_SESSION['list_no']=0;
//     $_SESSION['employee_name'] ="";
//	 $_SESSION['warning_date'] = date('Y-m-d');
//	 $_SESSION['exp_date'] = (date("Y-m-d", strtotime($_SESSION['warning_date'])) . "+3 month");
//	 $_SESSION['warning_text'] = "";
//     $_SESSION['issued_by'] = "";

	$i=0;
	while ($i<100) {
		$_SESSION['error_line'.$i] = '';
		$i++;
	}


	   
	 $_SESSION['p'] = 1;
	 $_SESSION['error']=0;
	 
	 $error=$_GET['error'];
	 
$table_name = $_SESSION['db_prefix']."_time_sheet_upload";
$delete_query = "DELETE FROM $table_name "; 
execsql($delete_query);

$table_name = $_SESSION['db_prefix']."_time_sheet_temp";
$delete_query = "DELETE FROM $table_name "; 
execsql($delete_query);	
     
?>

<script language="javascript" type="text/javascript">
        <!--
		  window.location="recordTimesWizbase.php?error=<?php echo $error ?>&p=1&s=0";
        -->
       </script>
