90 lines
2.5 KiB
PHP
90 lines
2.5 KiB
PHP
<?php
|
|
|
|
$DraftCount = '';
|
|
if(!empty($Status))
|
|
{
|
|
foreach ($Status as $St)
|
|
{
|
|
$DraftCount = $St->cnt;
|
|
}
|
|
//echo $DraftCount;
|
|
}?>
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
|
|
$('table').tableSort( {
|
|
animation :'slide',
|
|
speed:500
|
|
} );
|
|
});
|
|
|
|
</script>
|
|
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
<CENTER>Siddharth Industries Requisition Listing</CENTER>
|
|
|
|
</h1>
|
|
</section>
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-xs-12 text-right">
|
|
<div class="form-group">
|
|
<?php if($DraftCount == 0)
|
|
{ ?>
|
|
<a class="btn btn-primary" onclick="Test()" href="<?php echo base_url(); ?>RequisitionForm">Raise New Requisition</a><?php }?>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<CENTER><h3 class="box-title"></h3></CENTER>
|
|
<div class="box-tools">
|
|
|
|
</form>
|
|
</div>
|
|
</div><!-- /.box-header -->
|
|
<div class="box-body table-responsive no-padding" >
|
|
<table id="datatable" class="table table-hover tableSorter" >
|
|
|
|
<tr bgcolor="steelblue">
|
|
<th>Requisition No</th>
|
|
<th>Requisition Date</th>
|
|
<th>Status</th>
|
|
<th>CreatedDate</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
<?php
|
|
if(!empty($ReqList))
|
|
{
|
|
foreach($ReqList as $record)
|
|
{
|
|
?>
|
|
<tr>
|
|
<td><?php echo $record->ReqNo ?></td>
|
|
<td><?php echo $record->ReqType ?></td>
|
|
<td><?php echo $record->Status ?></td>
|
|
<td><?php echo $record->CreatedDate ?></td>
|
|
<td><i class="fa fa-pencil" aria-hidden="true"></i> <i class="fa fa-trash" aria-hidden="true"></i></td>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
|
|
</div><!-- /.box-body -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
|