117 lines
3.0 KiB
PHP
117 lines
3.0 KiB
PHP
|
|
|
|
<?php
|
|
if(!empty($ccrpt))
|
|
{
|
|
|
|
}
|
|
?>
|
|
|
|
<div class="row">
|
|
<!-- Left col -->
|
|
<div class="col-md-12">
|
|
<!-- TABLE: LATEST ORDERS -->
|
|
<div class="box box-info">
|
|
<div class="box-header with-border">
|
|
<center><h3 class="box-title"><p style="color:#3c8dbc"><b>Report - Cost Center</b></p></h3></center>
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="col-md-3">
|
|
<div class="input-group input-daterange input">
|
|
<div class="input-group-addon"><b>Budget Year:</b></div>
|
|
<select id="mySelect" >
|
|
<option value=""></option>
|
|
<option value="2017 - 2018">2017 - 2018</option>
|
|
<option value="2018 - 2019">2018 - 2019</option>
|
|
<option value="2019 - 2020">2019 - 2020</option>
|
|
<option value="2016">2016</option>
|
|
</select>
|
|
|
|
<div class="input-group-addon"> <a onclick="Reset()" ><b>Clear</b></a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-xs-12 text-right">
|
|
<div class="form-group">
|
|
<a class="btn btn-primary" href="<?php echo base_url(); ?>report/export_ccr">Export Cost Center Report <i class="fa fa-download"aira-hidden="true"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="box-body">
|
|
<div>
|
|
<table class="table table-bordered table-hover" id="cc" >
|
|
<thead>
|
|
<tr>
|
|
<th>Cost Center Code</th>
|
|
<th>Cost Center Name </th>
|
|
<th>Department</th>
|
|
<th>Budget Type</th>
|
|
<th>Budget Year</th>
|
|
<th>Utilized Amount</th>
|
|
<th>Balance Amount</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if(!empty($ccrpt)){
|
|
foreach($ccrpt as $rel)
|
|
{
|
|
?>
|
|
<tr>
|
|
<td><span><?php echo $rel->Cost_Center_Code?></span></td>
|
|
<td><span><?php echo $rel->Cost_Center_Name?></span></td>
|
|
<td><span><?php echo $rel->Dept_Name?></span></td>
|
|
<td><span><?php echo $rel->BudgetType?></span></td>
|
|
<td><span><?php echo $rel->BudgetYear?></span></td>
|
|
<td><span><?php echo $rel->Util_Amount?></span></td>
|
|
<td><span><?php echo $rel->Avlbl_Amt?></span></td>
|
|
|
|
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box -->
|
|
</div>
|
|
<!-- /.col -->
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
// Bootstrap datepicker
|
|
// Set up your table
|
|
table = $('#cc').DataTable
|
|
({
|
|
paging: true,
|
|
info: true
|
|
|
|
});
|
|
$('#mySelect').on('change',function(){
|
|
|
|
table
|
|
.column(4)
|
|
.search(this.value)
|
|
.draw();
|
|
});
|
|
function Reset()
|
|
{
|
|
$('#mySelect').val('');
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|