90 lines
2.8 KiB
PHP
90 lines
2.8 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 Type</th>
|
|
<th>Status</th>
|
|
<th>Requisted Date</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->StatusName ?></td>
|
|
<td><?php echo $record->CreatedDate ?></td>
|
|
<td> <a data-toggle="tooltip" href="<?php echo base_url().'EditRequisition?ReqNo='.$record->ReqNo.'&ReqType='.$record->ReqType; ?>"><i class="fa fa-pencil" data-toggle="tooltip" title="<?php echo $record->ReqNo; ?> - Click here to view Asset details"></i> </a> <a href='#' class="link" " id="Del" ><span class="glyphicon glyphicon-trash"></span></a> </td>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
|
|
</div><!-- /.box-body -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
|