331 lines
9.0 KiB
PHP
331 lines
9.0 KiB
PHP
<script src="<?php echo base_url()?>assets/js/jquery.CongelarFilaColumna.js"></script>
|
|
<style type="text/css">
|
|
.num {
|
|
text-align:right;
|
|
}
|
|
|
|
|
|
|
|
.fht-table,
|
|
.fht-table thead,
|
|
.fht-table tfoot,
|
|
.fht-table tbody,
|
|
.fht-table tr,
|
|
.fht-table th,
|
|
.fht-table td {
|
|
margin: 0;
|
|
}
|
|
|
|
.fht-table td {
|
|
text-align:center;
|
|
}
|
|
|
|
.fht-table td:hover {
|
|
background-color: #3c8dbc;
|
|
color:#ffffff;
|
|
}
|
|
|
|
.fht-table{
|
|
border: 0 none;
|
|
height: auto;
|
|
width: auto;
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
/*table-layout: fixed; Algoritmo de distribucion fijo */
|
|
/*white-space:nowrap; Impide los saltos de línea automáticos */
|
|
}
|
|
|
|
.fht-table th,.fht-table td {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.fht-table-wrapper,
|
|
.fht-table-wrapper .fht-thead,
|
|
.fht-table-wrapper .fht-tfoot,
|
|
.fht-table-wrapper .fht-fixed-column .fht-tbody,
|
|
.fht-table-wrapper .fht-fixed-body .fht-tbody,
|
|
.fht-table-wrapper .fht-tbody {
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.fht-table-wrapper .fht-fixed-body .fht-tbody,
|
|
.fht-table-wrapper .fht-tbody {
|
|
overflow: auto;
|
|
}
|
|
|
|
.fht-table-wrapper .fht-table .fht-cell {
|
|
overflow: hidden;
|
|
height: 1px;
|
|
}
|
|
|
|
.fht-table-wrapper .fht-fixed-column,
|
|
.fht-table-wrapper .fht-fixed-body {
|
|
top: 0;
|
|
left: 0;
|
|
position: absolute;
|
|
}
|
|
|
|
.fht-table-wrapper .fht-fixed-column {
|
|
z-index: 1;
|
|
}
|
|
|
|
.fht-fixed-body .fht-thead table {
|
|
margin-right: 20px;
|
|
border: 0 none;
|
|
}
|
|
|
|
/*For Examples*/
|
|
|
|
.ContenedorTabla {
|
|
height: 500px;
|
|
margin: 0 auto;
|
|
overflow: auto;
|
|
width: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.header, .main {
|
|
display: inline-block;
|
|
height: auto;
|
|
width: 100%;
|
|
}
|
|
.titulosHeader {
|
|
border-bottom: 1px solid #e8bb25;
|
|
height: auto;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 8px;
|
|
padding-top: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
.celda_encabezado_general {
|
|
background-color: #3c8dbc;
|
|
border: 1px solid #ccc;
|
|
color: #000;
|
|
font-weight: bold;
|
|
padding: 2px 4px;
|
|
text-align: center;
|
|
}
|
|
._Separador{
|
|
background-color: #fff;
|
|
height: 12px;
|
|
border-left: 1px solid #ccc;
|
|
border-right: 1px solid #ccc;
|
|
width: 7px;
|
|
}
|
|
._Separador div{
|
|
width: 4px;
|
|
}
|
|
.celda_normal {
|
|
/*background-color: #fff;*/
|
|
border: 1px solid #ccc;
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
/*style excel*/
|
|
.excel_cell{
|
|
border: 1px solid #CCC;
|
|
color: #222;
|
|
text-align: center;
|
|
font-size: 13px
|
|
font-weight: normal;
|
|
padding: 4px;
|
|
white-space: pre-line;
|
|
empty-cells: show;
|
|
}
|
|
._cell_header{
|
|
background-color: #EEE;
|
|
}
|
|
._cell_Default{
|
|
background-color: #FFF;
|
|
text-align: left;
|
|
}
|
|
|
|
.excel_cell div{
|
|
width: 30px;
|
|
height: 20px;
|
|
}
|
|
|
|
</style>
|
|
<?php
|
|
|
|
|
|
|
|
?>
|
|
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
<center>Hourly Batch Card Info List</center>
|
|
</h1>
|
|
</section>
|
|
<section class="content">
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<div class="box">
|
|
<div class="box-header">
|
|
<!--<center><h3 class="box-title">-->
|
|
|
|
<!-- <form action="<?php echo base_url() ?>assetListing" method="POST" id="searchList">-->
|
|
<form id="filter" name="filter" method="POST" action="<?php echo base_url().'batchcard/filterHourlyBatchData'?>">
|
|
<div class="col-md-2">
|
|
<input type="text" id="fromdate" class="form-control" name="fromdate">
|
|
</div>
|
|
<div class="col-md-2">
|
|
<input type="text" id="todate" class="form-control" name="todate">
|
|
</div>
|
|
<div class="col-md-2">
|
|
<input type="submit" id="click" class="btn btn-primary" value="click">
|
|
</div>
|
|
</form>
|
|
<div class="col-md-2 col-md-offset-4">
|
|
<a href=" <?php echo base_url().'batchcard';?> " type="button" class="btn btn-primary">Add New</a>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div><!-- /.box-header -->
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
|
<br/>
|
|
<main class="main">
|
|
<div class="ContenedorTabla">
|
|
|
|
<table id="batchcardlisting" class="fht-table">
|
|
<thead style="background-color:#ddf">
|
|
<tr>
|
|
|
|
<th class="celda_encabezado_general" style="width:35px;">Report Date</br> </th> <th class="celda_encabezado_general">Report Time</th><th class="celda_encabezado_general">Open TRP Reading</th><th class="celda_encabezado_general">Close TRP Reading</th><th class="celda_encabezado_general">Total TRP Reading</th><th class="celda_encabezado_general">Auto Start</th><th class="celda_encabezado_general">Auto Stop</th><th class="celda_encabezado_general">Time</th><th class="celda_encabezado_general">Inlet Feeding Qty for 30 Sec</th><th class="celda_encabezado_general">Inlet Feeding Qty for 1 hour</th><th class="celda_encabezado_general">Inlet Tem</th><th class="celda_encabezado_general">Outlet Tem</th><th class="celda_encabezado_general">Output Feeding Qty for 30 Sec</th><th class="celda_encabezado_general">Output received Qty for 1 hour</th><th class="celda_encabezado_general">Actual Weight Rough</th><th class="celda_encabezado_general">Actual Weight Fine</th><th class="celda_encabezado_general">Total</th><th class="celda_encabezado_general">Multi Cyclone Sand</th><th class="celda_encabezado_general">Remarks</th><th class="celda_encabezado_general">Checked by</th><th class="celda_encabezado_general">Action</th>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody id="specAppend">
|
|
<?php
|
|
if(!empty($allhourdata))
|
|
{
|
|
foreach($allhourdata as $data)
|
|
{
|
|
|
|
//print_r($data);echo "</br></br>";
|
|
?>
|
|
<tr> <td class="celda_normal" style="width:35px;"><?php echo date_format(date_create($data->report_date),'d-m-Y');?></td>
|
|
<td class="celda_normal"><?php echo $data->report_time?></td>
|
|
<td class="celda_normal"><?php echo $data->opening_trp_reading?></td>
|
|
<td class="celda_normal"><?php echo $data->close_trp_reading?></td>
|
|
<td class="celda_normal"><?php echo $data->total_trp_reading?></td>
|
|
<td class="celda_normal"><?php echo $data->auto_start?></td>
|
|
<td class="celda_normal"><?php echo $data->auto_stop?></td>
|
|
<td class="celda_normal"><?php echo $data->time?></td>
|
|
<td class="celda_normal"><?php echo $data->feed30sec?></td>
|
|
<td class="celda_normal"><?php echo $data->feed1hr?></td>
|
|
<td class="celda_normal"><?php echo $data->inlet_temp?></td>
|
|
<td class="celda_normal"><?php echo $data->outlet_temp?></td>
|
|
<td class="celda_normal"><?php echo $data->output_feed_30?></td>
|
|
<td class="celda_normal"><?php echo $data->output_feed_1?></td>
|
|
<td class="celda_normal"><?php echo $data->weight_rough?></td>
|
|
<td class="celda_normal"><?php echo $data->weight_fine?></td>
|
|
<td class="celda_normal"><?php echo $data->total?></td>
|
|
<td class="celda_normal"><?php echo $data->cyclone?></td>
|
|
<td class="celda_normal"><?php echo $data->remarks?></td>
|
|
<td class="celda_normal"><?php echo $data->approvedby?></td>
|
|
<td class="celda_normal"><a type="button" href="<?php echo base_url().'batchcard/editHourly/'.$data->hourlyid; ?> "><i class="fa fa-pencil"></i></a></td>
|
|
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
|
|
|
|
?>
|
|
|
|
</div>
|
|
</main>
|
|
</tbody>
|
|
</table>
|
|
<p> </p>
|
|
<div class="row">
|
|
|
|
</div>
|
|
</div><!-- /.box-body -->
|
|
<!-- <div class="box-footer clearfix">
|
|
|
|
</div> -->
|
|
</div><!-- /.box -->
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
|
|
<script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$.fn.dataTable.moment( 'DD-MM-YYYY' );
|
|
$('#batchcardlisting').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"ordering": false,
|
|
"aaSorting": [[ 0, "desc" ]],
|
|
"info": true,
|
|
"autoWidth": true,
|
|
|
|
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
|
|
$('#fromdate').datepicker({
|
|
//minDate : 'year+16',
|
|
maxDate : 'now',
|
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
|
|
|
});
|
|
|
|
$('#todate').datepicker({
|
|
//minDate : 'year+16',
|
|
maxDate : 'now',
|
|
dateFormat: 'dd-mm-yy',changeMonth: true, changeYear: true,yearRange: '0:+10'
|
|
});
|
|
|
|
|
|
//$('#batchcardlisting').CongelarFilaColumna({lboHoverTr:true});
|
|
});
|
|
|
|
// $('#click').click(function(){
|
|
|
|
// alert("dskjjn") ;
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|