<div class="page-content">
	<div class="page-header position-relative">
		<h1>Previous Payslip List</h1>

	</div>
	<!--/.page-header-->

	
	<!-- /control-group -->


	<div class="row-fluid">
		<div class="span12" style="overflow: scroll;">
			<!--PAGE CONTENT BEGINS-->
			<table id="payslip-table"
				class="table table-striped table-bordered table-hover no-margin-bottom no-border-top">
				<thead>
					<tr>
						<th>S.No.</th>
						<th>Employee Name</th>
						<th>Employee Code</th>
						<th>Month</th>
						<th></th>
					</tr>
				</thead>

				<tbody>
				<?php
				    if(is_array($get_payslip)){
				    	$i=1;
					foreach ( $get_payslip as $payslip ) {
						$get_emp_name = $db->get_row('employees',array('e_id'=>$payslip['empname']),array('e_name','f_name'));
				?>
					<tr>
						<td><?php echo $i;?></td>
						<td> <?php echo $get_emp_name['e_name'].' '.$get_emp_name['f_name']; ?> </td>
						<td><?php echo $payslip['empcode'];?></td>
						<td><?php echo $payslip['payslipdate'];?></td>
						<td class="td-actions">
						<a target="_blank" href="<?php echo $link->link('viewpayslip',Admin,'?empid='.$payslip['payslipdate'].'///'.$payslip['empname']);?>">
						<i class="icon-view"></i> Show Payslip
						</a>
						</td>
					</tr>
				<?php $i++; } } ?>       
										</tbody>
			</table>

			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->


</div>
<!--/.main-content-->


