
<?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");

?>
<?php include('../include/wait.php') ?>
</head>

<body onLoad="MM_showHideLayers('wait','','hide')" onFocus="MM_showHideLayers('wait','','hide');">


<form id="feedbackform" method="get" action="loanWiz6.php" >
<div class="wizard_page_middle_frame">
<div class="wizard_frame">
  <table width="670" align="center" id="table_resume_wizard" >
              <tr>
                <td align="left" valign="top">Loan amount:</td>
                <td align="left" valign="top"><?php echo number_format($_SESSION['amount'] , 2, '.', ',') ?></td>
                <td align="left" valign="top">Pay back period</td>
                <td width="210" align="left" valign="top"><?php echo $_SESSION['payback'] ?>&nbsp;&nbsp;months</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">&nbsp;</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">Authorised by:</td>
                <td align="left" valign="top"><?php echo $_SESSION['authorised_by'] ?></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">Issued by:</td>
                <td align="left" valign="top"><?php echo $_SESSION['issued_by'] ?>&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top">Notes:</td>
                <td colspan="3" align="left" valign="top"><?php echo $_SESSION['notes']  ?></td>
              </tr>
            </table>
</div>
<div class="wizard_spacer_frame" style="height:10px;"></div>
<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>
<div class="wizard_frame">
              <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_showHideLayers('wait','','show'); MM_goToURL('parent','loanWizbase.php?s=&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="cancel_confirmation(1, '../hr_module/hr_main.php?date=0');" value="Cancel" /></td>
                  <td width="125" align="right"><input type="submit" name="new_button" class="imagebutton" id="new_button" value="New" onClick="needToConfirm = false; MM_showHideLayers('wait','','show');" /></td>
                  <td width="110" align="right"><input  name="finish_button" type="submit" class="imagebutton" id="finish_button" value="Finish" onClick="needToConfirm = false; MM_showHideLayers('wait','','show');"  /></td>
                </tr>
              </table>
</div>
</div> 
</form>

</body>

