105 lines
3.0 KiB
PHP
Executable File
105 lines
3.0 KiB
PHP
Executable File
|
|
|
|
|
|
<style>
|
|
span.highlight {
|
|
background-color: yellow;
|
|
}
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<div class="content-wrapper">
|
|
|
|
<section class="content">
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<CENTER><h3 class="box-title"> Employee Permission Slip Listing</h3></CENTER>
|
|
|
|
</div><!-- /.box-header -->
|
|
<!-- <?php //if($DraftCount > 0 ) {?><p>
|
|
<span class="highlight">S No <b><?php //echo $SNo;?></b> is in Draft status.</span> Please act on the requisition.<span class="highlight">Then only you can raise New Requisition. </span>
|
|
</p> <?php //} ?> -->
|
|
<div class="row">
|
|
<div class="col-md-12 text-right" style="margin-bottom:-3%;">
|
|
<div class="form-group">
|
|
|
|
<a class="btn btn-success" onclick="Test()" href="<?php echo base_url(); ?>permission">PERMISSION SLIP</a>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<br/>
|
|
<br/>
|
|
<table id="Permission" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;" >
|
|
<thead style="background-color: #ddd;">
|
|
|
|
<tr>
|
|
<th>S No</th>
|
|
<th>EmpID</th>
|
|
<th>Permission Time </th>
|
|
<th>Shift</th>
|
|
<th>From</th>
|
|
<th>To</th>
|
|
<th>Reason</th>
|
|
<th>Action</th>
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
if(!empty($permissionlist))
|
|
{
|
|
foreach($permissionlist as $record)
|
|
{ //sprint_r($record);
|
|
?>
|
|
<tr>
|
|
<td><?php echo $record->SNO ?></td>
|
|
<td><?php echo $record->EmpID ?></td>
|
|
<td><?php echo $record->Permission ?></td>
|
|
<td><?php echo $record->Shift ?></td>
|
|
<td><?php echo $record->From ?></td>
|
|
<td> <?php echo $record->To ?></td>
|
|
|
|
|
|
<td><?php echo $record->Reason?></td>
|
|
|
|
<td> <a target="blank" href="<?php echo base_url('monthlypay/permissionpdf').'/'.$record->SNO?>" class="fa fa-file-o"></a></td>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script>
|
|
$(function () {
|
|
|
|
$('#Permission').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"ordering": true,
|
|
"aaSorting": [[ 0, "desc" ]],
|
|
"info": true,
|
|
"autoWidth": true
|
|
|
|
});
|
|
});
|
|
</script>
|
|
|