168 lines
4.8 KiB
PHP
Executable File
168 lines
4.8 KiB
PHP
Executable File
<style>
|
|
#typechosemodal {
|
|
|
|
|
|
margin-top:200px;
|
|
z-index: 1080 !important;
|
|
|
|
|
|
}
|
|
</style>
|
|
<?php
|
|
|
|
|
|
//print_r($reportlist);
|
|
|
|
?>
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
<center>Inprocess Test Reports 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">-->
|
|
<div class="box-tools">
|
|
<!-- <form action="<?php echo base_url() ?>assetListing" method="POST" id="searchList">-->
|
|
<div class="col-md-3">
|
|
<!-- <a href=" <?php echo base_url().'inprocess/addNewInprocessInspection';?> " type="button" class="btn btn-primary">Add New</a> -->
|
|
<input type="button" target="_blank" value = "Add New" class="btn btn-primary" onclick="newFunction();">
|
|
</div>
|
|
|
|
</form>
|
|
</div><!--</h3></center>-->
|
|
|
|
</div><!-- /.box-header -->
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
|
|
<br/>
|
|
<table id="testspecifications" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
|
<thead style="background-color:#ddf">
|
|
<tr>
|
|
|
|
<th>Test Report ID</th>
|
|
<th>Batch No</th>
|
|
<th>Batch Date</th>
|
|
<th>Product Name</th>
|
|
<th>Customer Name</th>
|
|
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody id="specAppend">
|
|
<?php
|
|
if(!empty($reportlist))
|
|
{
|
|
|
|
foreach($reportlist as $data)
|
|
{
|
|
|
|
//print_r($data);echo "</br></br>";
|
|
?>
|
|
<tr> <td><a href="<?php echo base_url()?>inprocess/editIndInprocessReport/<?php echo $data->masterreport_id ?>"><?php echo $data->masterreport_id?></a>
|
|
<?php if(!empty($data->document)){?>
|
|
<a target="_blank" href="<?php echo base_url()?>uploads/INPROCESS/<?php echo $data->document ?>"><span class="fa fa-file-o"></span></a>
|
|
<?php }?>
|
|
</td> <td><a href="<?php echo base_url()?>inprocess/editIndInprocessReport/<?php echo $data->masterreport_id ?>"> <?php echo $data->batchno?></a></td> <td style="text-align:right;"><?php echo date_format(date_create($data->batchdate),'d-m-Y');?></td><td><?php echo $data->product_name;?></td><td><?php echo $data->client_name;?></td></tr>
|
|
<?php
|
|
}
|
|
}
|
|
?>
|
|
</tbody>
|
|
</table>
|
|
<p> </p>
|
|
<div class="row">
|
|
|
|
</div>
|
|
</div><!-- /.box-body -->
|
|
<!-- <div class="box-footer clearfix">
|
|
|
|
</div> -->
|
|
</div><!-- /.box -->
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
|
|
<div id="typechosemodal" class="modal fade" data-backdrop-limit="1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
|
|
<div class="modal-dialog">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Choose Inprocess Type</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form>
|
|
|
|
<div class="radio">
|
|
<label><input type="radio" id="normal"> Normal Inprocess Report</label>
|
|
<br>
|
|
<label><input type="radio" id="nissan" >Nissan Inprocess Report </label>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
|
|
|
|
<a class="btn btn-primary" data-dismiss="modal" style="margin-top: -24px;" value="Cancel">Cancel</a>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</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.11/sorting/date-eu.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
|
|
$('#testspecifications').DataTable({
|
|
"paging": true,
|
|
"lengthChange": true,
|
|
"searching": true,
|
|
"columnDefs" : [{"targets":2, "type":"date-eu"}],
|
|
|
|
"ordering": true,
|
|
"aaSorting": [[ 0, "asc" ]],
|
|
"info": true,
|
|
"autoWidth": true,
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
function newFunction()
|
|
{
|
|
$('#typechosemodal').modal('show');
|
|
|
|
}
|
|
|
|
$('#normal').click(function(){
|
|
|
|
window.location = "<?php echo base_url().'inprocess/addNewInprocessInspection';?>";
|
|
});
|
|
|
|
$('#nissan').click(function(){
|
|
|
|
window.location = "<?php echo base_url().'inprocess/addNewNissanInprocessInspection';?>";
|
|
});
|
|
|
|
</script>
|