<!--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-->



<script type="text/javascript" src="../css/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<script language="javascript" type="text/javascript" >
<!--
function confirmRefresh() {
var okToRefresh = confirm("Do you really want to cancel this entry?");
var url='hr_main.php?date='
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)
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>

<?php 
$table_name = $_SESSION['db_prefix']."_employee";
$name_query = "SELECT emp_first_name, emp_last_name  FROM $table_name WHERE emp_id = '".$_SESSION['emp_id']."'  ";
$name_result = mySQL_query($name_query);
$name_num = mysql_num_rows($name_result);
$emp_first_name = mysql_result($name_result, 0, "emp_first_name");
$emp_last_name = mysql_result($name_result, 0, "emp_last_name");

?>

<form id="feedbackform" method="get" action="return_pettycashWiz6.php" >
  <table width=595 border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#0066FF" border-collapse="collapse">
     <tr>
            <td width="525" ><table width="670" align="center" id="table_resume_wizard" >
              <tr>
                <td align="left" valign="top">Petty cash amount:</td>
                <td colspan="2" align="left" valign="top"><?php echo number_format($_SESSION['amount'] , 2, '.', ',') ?></td>
                <td width="210" align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td width="142" align="left" valign="top"><span class="wizard">Employee name:</span></td>
                <td colspan="2" align="left" valign="top"><strong><span class="wizard"><?php echo $emp_first_name." ".$emp_last_name ?></span></strong></td>
                <td align="left" valign="top">(<?php echo $_SESSION['emp_id'] ?>)</td>
              </tr>
              <tr>
                <td align="left" valign="top">Issued for:</td>
                <td width="168" align="left" valign="top"><?php echo $_SESSION['use'] ?></td>
                <td width="130" align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top">Issue date:</td>
                <td align="left" valign="top"><?php echo date("d-m-Y", strtotime($_SESSION['issue_date'] )) ?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top">Notes:</td>
                <td align="left" valign="top"><?php echo $_SESSION['notes']  ?></td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
            </table>
              <br />
<br />

            <div class="wizard_frame">
              <label class="label_std">If you want to make changes use the 'Prev' button to go back. <br />
              Click 'New' to make a new entry or to finish the wizard click 'Finish'.</label>
           </div>
       </td>
           
    </tr>
          <tr>
            <td>
              <table width="675" height="50" align="center" id="table_button_bar">
                <tr>
                  <td width="117"><input type="button" name="lastprev_button" class="imagebutton" value="Prev" onclick="needToConfirm = false;MM_goToURL('parent','return_pettycashWizbase.php?s=4&amp;p=2');return document.MM_returnValue" /></td>
                  <td width="115">
                    <input name="s" type="hidden" id="s" value="5" />
                    <input name="p" type="hidden" id="p" value="5" />
                  </td>
                  <td width="99"><input name="cancelbutton" type="button" class="imagebutton" id="cancelbutton" onclick="needToConfirm = false; confirmRefresh();" value="Cancel" /></td>
                  <td width="125" align="right"><input type="submit" name="new_button" class="imagebutton" id="new_button" value="New" onclick="needToConfirm = false; " /></td>
                  <td width="110" align="right"><input  name="finish_button" type="submit" class="imagebutton" id="finish_button" value="Finish" onclick="needToConfirm = false; "  /></td>
                </tr>
              </table></td>
          </tr>
  </table>
  </table>
  
</form>


