<?php
	include('../include/session.php');
     
	
	 $_SESSION['emp_id']="";
     $_SESSION['amount'] = "0.00";
	 $_SESSION['loans_id'] = "";
	 $_SESSION['loans_id'] = "";
	 $_SESSION['cash_balance'] = 0;
	 $_SESSION['outstanding'] = 0;
	 $_SESSION['issued_by'] = "";
	 $_SESSION['issue_date'] = date('Y-m-d');
     $_SESSION['employee_name'] = "";
	 $_SESSION['use'] = "";
	 $_SESSION['notes'] = "";
	   
	 $_SESSION['p'] = 1;
	 $_SESSION['error']=0;
	 $_SESSION['error2']=0;
	
$table_name = $_SESSION['db_prefix']."_loans_lines_temp";
$delete_query = "DELETE FROM $table_name WHERE  user_name = '".$_SESSION['username']."'   "; 
execsql($delete_query);
     
?>

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