<!--Notice: (c)2013 This page is part of the management program for Tlhomeso Timbers, Gaborone, 
and developed by Customized Software (Pty) Ltd, Gaborone, Botswana. 
Customized Software holds the copyright on the source code on this and all other pages in the 
management program. For more info contact Customized Software on email: info@bwcustomized.com-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 

<?php
include ("../navigation/header.php");
include ("../navigation/hr_sidebar.php");
include ("../include/formValidations.php");
?>

<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../jscript/gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>


<?php 
	
	$s = $_GET['s'];
	$p = $_GET['p'];
	
	//$error = $_SESSION['error'];
	$_SESSION['p']=$p;
	$_SESSION['s']=$s;
	
	
	if (isset($_GET['prev_button']) )
	   {
		 $_SESSION['p']= $_SESSION['p']-1;
	   }
		 
	if (isset($_GET['next_button']) )
	  {
		$_SESSION['p']=$_SESSION['p']+1;
	  }
	
		
	
	if ($s==1) {
		 $_SESSION['employee_name'] = $_GET['employee_name_text'];
		 $_SESSION['emp_id']= substr($_SESSION['employee_name'], 0, 4);
		
	}
		
	if($s==2) {
	 $_SESSION['issue_date'] = $_GET['issue_date'];	
	 $_SESSION['amount'] = $_GET['amount_text'];
	 $_SESSION['use'] = $_GET['use_select'];
	 $_SESSION['notes'] = $_GET['notes_text'];
	 
	 
	 
	 
	 
	};
	
	
	 
	
	
		
	?>
<script language="JavaScript" src="gen_validatorv4.js"  type="text/javascript" xml:space="preserve"></script>
<!--form validation-->
<script type="text/javascript" src="../css/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<link rel="stylesheet" type="text/css" href="../css/main.css" />
<script language="javascript" type="text/javascript" >
<!--
function confirmRefresh() {
var okToRefresh = confirm("Do you really want to cancel this entry?");
var url='pettycashWiz0.php'
if (okToRefresh)
	{
			window.location=url;
	}
}
// -->
</script>
<script language="JavaScript">
  var needToConfirm = true;
  window.onbeforeunload = confirmExit;
  function confirmExit()
  {
    if (needToConfirm)
      return "You did not finish the wizard./nIf you leave now your data will not be saved.";
  }
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
</script>
</head>

<body>
<div class="main_frame">
<table  id="table_main">
  <!--begin of tableMain-->
  <tr>
    <td height="68"  align="center" valign="top"> 
<div class="page_head_frame">
  <label class="label_page_head">Petty Cash Issue</label></div>
      
</td> <!--center of tableMain-->
</tr>
<tr>
<td> <!--center of tableMain-->

      <div class="wizard_main_frame">
      <table >
      <tr>
      <td >
        <p class="stepbar">
        <?php if ($_SESSION['p']==1) { echo "<label class=step>"; }  else { echo"<label class=stepd>"; } ?>
        Step 1<br />
        <font size="1">Select employee</font>
        </label>
        <?php if ($_SESSION['p']==2) { echo "<label class=step>"; }  else { echo"<label class=stepd>"; } ?>
        Step 2<br />
        <font size="1">Details</font>
        </label>
             
        <?php if ($_SESSION['p']==3) { echo "<label class=step>"; }  else { echo"<label class=stepd>"; } ?>
        Step 3<br />
        <font size="1">Finish</font>
        </label>
        <label class="steptext">
          <?php if ($_SESSION['p']==1) { echo "Select issue employee."; } else { echo "Issue petty cash to ".$_SESSION['employee_name']; } ?>
        </label>
      </p>
      
      </td>
      </tr>
      <tr>
      <td><?php 
	if ($_SESSION['p']==1) { include("pettycashWiz1.php"); }
	if ($_SESSION['p']==2) { include("pettycashWiz2.php"); }
	if ($_SESSION['p']==3) { include("pettycashWiz5.php"); }
	
    ?></td>
    </tr>
    </table>
    </div>
    </td>
  </tr>
</table>

</td>
</tr>
</table>  <!--end of tableMain-->
</body>
