<!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" />
 
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<?php
include ("../navigation/header.php");
$page_name = "HR-main";
include ("../navigation/access.php");

if ($permission_num==1) {
	include ("../navigation/hr_sidebar.php");
	
$table_name2 = $_SESSION['db_prefix']."_employee";
$employee_query = "SELECT emp_id, emp_first_name, emp_last_name, id_number, bank, bank_branch, bank_account FROM $table_name2 ";
$employee_result = mySQL_query($employee_query);
$employee_num = mysql_num_rows($employee_result);

$current_page = "bank_list.php"	

?>
<!--style sheets-->
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../css/scroll_table.css" />
<link rel="stylesheet" type="text/css" href="../css/tab.css" />
<link rel="stylesheet" type="text/css" href="../css/tooltip.css" />

<!--jscript-->
<script language="JavaScript" src="../jscript/go_to_url.js"  type="text/javascript"></script> 
<script type="text/javascript" language="javascript" src="../jscript/jquery.dataTables.js"></script>
<script type="text/javascript" charset="utf-8">
			$(document).ready(function() {
				$('#scroll_table').dataTable( {
					"sScrollY": "500px",
					"bPaginate": false,
					"bScrollCollapse": true,
					"aaSorting": [[ 0, "asc" ]],
					"aoColumns": [
								{"bSortable": true},
                             	{"bSortable": true},
								{"bSortable": true},
								{"bSortable": true},
								{"bSortable": true},
								{"bSortable": true}
								 ]
				} );
			} );
		</script>

</head>


<body>
<?php include ('../include/tooltip.php'); ?>

<div class="main_frame">
  <div class="page_head_frame">
        
        <table width="809" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><label class="label_page_head">Employees - Banking</label></td>
            <td width="171" align="right">&nbsp;</td>
          </tr>
        </table>
      </div>
<div class="page_middle_frame" style="width:700px;">       
        <div class="tab_button_holder_frame">
      <a href="employee_list.php"><div class="<?php if ($current_page =='employee_list.php') {echo 'tab_button_active'; } else { echo 'tab_button'; }?>"><div align="center">Employees</div></div></a>
      <a href="contract_list.php"><div class="<?php if ($current_page =='contract_list.php') {echo 'tab_button_active'; } else { echo 'tab_button'; }?>"><div align="center">Contracts</div></div></a>
      <a href="address_list.php"><div class="<?php if ($current_page =='address_list.php') {echo 'tab_button_active'; } else { echo 'tab_button'; }?>"><div align="center">Addresses</div></div></a>
      <a href="contact_list.php"><div class="<?php if ($current_page =='contact_list.php') {echo 'tab_button_active'; } else { echo 'tab_button'; }?>"><div align="center">Contacts</div></div></a>
      <a href="bank_list.php"><div class="<?php if ($current_page =='bank_list.php') {echo 'tab_button_active'; } else { echo 'tab_button'; }?>"><div align="center">Banking</div></div></a>
      <a href="sizes_list.php"><div class="<?php if ($current_page =='sizes_list.php') {echo 'tab_button_active'; } else { echo 'tab_button'; }?>"><div align="center">Sizes</div></div></a>
      <a href="wages_list.php"><div class="<?php if ($current_page =='wages_list.php') {echo 'tab_button_active'; } else { echo 'tab_button'; }?>"><div align="center">Salaries</div></div></a>
      <a href="emergency_list.php"><div class="<?php if ($current_page =='emergency_list.php') {echo 'tab_button_active'; } else { echo 'tab_button'; }?>"><div align="center">Emergency</div></div></a>
      </div>

        
        <div class="tab_middle_frame">
<table width="680" id="scroll_table" class="data_display" >
 <thead>
  <tr>
    <th>Name</th>
    <th>Id number</th>
    <th>Bank</th>
    <th>Branch</th>
    <th>Account no</th>
    <th>&nbsp;</th>
</tr>
</thead>
<?php 
$i=0;
while ($i<$employee_num) {
	$a =  mysql_result($employee_result, $i, "emp_id");
	$a0 = mysql_result($employee_result, $i, "emp_first_name");
	$a1 = mysql_result($employee_result, $i, "emp_last_name");
	$a2 = mysql_result($employee_result, $i, "id_number");
	$a3 = mysql_result($employee_result, $i, "bank");
	$a4 = mysql_result($employee_result, $i, "bank_branch");
	$a5 = mysql_result($employee_result, $i, "bank_account");
	
	?>
  
  <tr>
    <td width="103" align="left"><a href="employee-details.php?emp_id=<?php echo $a?>" onMouseover="ddrivetip(' Click for employee details.', 150)"; onMouseout="hideddrivetip()"><?php echo $a0." ".$a1 ?></td>
    <td width="104" align="left"><?php echo $a2 ?></td>
    <td width="103" align="left"><?php echo $a3 ?></td>
    <td width="120" align="left"><?php echo $a4 ?></td>
    <td width="165" align="left"><?php echo $a5 ?></td>
    <td width="127" align="left">&nbsp;</td>
  </tr>
  <?php
  $i++;
}
?>
</table>
<div align="left"><label class="label_end">end of list</label></div>
</div>
</div>
  
</div>
</body>
<?php } else {
$_SESSION['denied_return'] = "hr_module/hr_main.php?date=";	
include ("../navigation/hr_sidebar.php");?>
	<body onload="accessdenied(); return false">
	</body>
<?php }
?>

<?php include ('../navigation/side_bar.php'); ?>
</html>