report showrow for singlelineadd

This commit is contained in:
venbatechnologies 2018-07-04 10:52:53 +05:30
parent b291b300d2
commit cfabb07597
3 changed files with 32 additions and 18 deletions

View File

@ -33,8 +33,11 @@
th, td { white-space: nowrap; } th, td { white-space: nowrap; }
.dataTable > thead > tr > th[class*="sort"]:after{ .dataTable > thead > tr > th[class*="sort"]:after{
content: "" !important; content: "" !important;
}
}
#cc_info{
width: 250%;
}
table.dataTable thead > tr > th.sorting_asc, table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc, table.dataTable thead > tr > th.sorting_desc,
table.dataTable thead > tr > th.sorting, table.dataTable thead > tr > th.sorting,
@ -600,9 +603,7 @@ $('.IGRfile').click(function() {
"aaSorting": [[ 3, "desc" ]], "aaSorting": [[ 3, "desc" ]],
"autoWidth": false, "autoWidth": false,
orderCellsTop: true, orderCellsTop: true,
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" + "dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +"<'row'<'col-md-6'><'col-md-6'>>" +"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
"<'row'<'col-md-6'><'col-md-6'>>" +
"<'row'<'col-md-12't>><'row'<'col-md-2'i><'col-md-10'p>>",
buttons: [ buttons: [
{ {
extend: 'excelHtml5', extend: 'excelHtml5',

View File

@ -26,7 +26,7 @@
<table id="Inwardgateregistertable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;"> <table id="Inwardgateregistertable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf"> <thead style="background-color:#ddf">
<tr> <tr>
<!-- <th>S.No</th> --> <!-- <th>S.No</th> -->
<th>IGR No</th> <th>IGR No</th>
<th>PO No</th> <th>PO No</th>
@ -151,19 +151,19 @@
</table> </table>
<!-- <div class="col-md-12"> <div class="col-md-12">
<div class="col-md-offset-10 col-md-8" > <div class="col-md-offset-10 col-md-8" >
<input type="button" class="btn btn-primary" id ="addmorebutton" value=" ADD FILES.."> <input type="button" class="btn btn-primary" id ="addmorebutton" value=" ADD FILES..">
</div> </div>
<div id="newdiv"></div> <div id="newdiv"></div>
<input type="hidden" name="hidecounter" id="hidecounter" value="0" /> <input type="hidden" name="hidecounter" id="hidecounter" value="0" />
<!-- <input type="hidden" name="hideconstant" id="hideconstant" value="0" /> <!-- <input type="hidden" name="hideconstant" id="hideconstant" value="0" /> -->
<input type ="hidden" name ="hiddenIGRNO" id="hiddenIGRNO"/> <input type ="hidden" name ="hiddenIGRNO" id="hiddenIGRNO"/>
<input type ="hidden" name ="hiddenPONO" id="hiddenPONO" /> <input type ="hidden" name ="hiddenPONO" id="hiddenPONO" />
</div> --> </div>
<div class="modal-footer"> <div class="modal-footer">
<!-- <a class="btn btn-primary" data-dismiss="modal" id='editfileadd' value="">ADD</a> --> <!-- <a class="btn btn-primary" data-dismiss="modal" id='editfileadd' value="">ADD</a> -->
@ -231,6 +231,7 @@
<button type="button" class="close" data-dismiss="modal">&times;</button> <button type="button" class="close" data-dismiss="modal">&times;</button>
<center><h4>Inward Gate Register Details</h4></center> <!-- IGR number should display here--> <center><h4>Inward Gate Register Details</h4></center> <!-- IGR number should display here-->
</div> </div>
<input type="hidden" id="counts">
<!--<div class="col-md-12"> <!--<div class="col-md-12">
<div class="col-md-3"> <div class="col-md-3">
<label>IGR Number :</label> <label>IGR Number :</label>
@ -347,7 +348,8 @@
<td>10000</td> <td>10000</td>
<td>10000</td> <td>10000</td>
<td>Received</td> <td>Received</td>
</tr>--> </tr>-->
</tbody> </tbody>
</table> </table>
@ -448,15 +450,15 @@ $("#hiddenIGRNO").val(id);
type:"POST", type:"POST",
//dataType: 'json', //dataType: 'json',
url:"<?php echo base_url() ?>inwardgateregister/ViewIGRfile", url:"<?php echo base_url() ?>inwardgateregister/ViewIGRfile",
success: function(data) success: function(file)
{ {
console.log(data);
$("#counts").val(JSON.parse(file).length);
var trHTML = ''; var trHTML = '';
$.each(JSON.parse(data), function (i, item) $.each(JSON.parse(file), function (i, item)
{ {
@ -506,7 +508,7 @@ $("#hiddenIGRNO").val(id);
$("#billModel").modal("show"); $("#billModel").modal("show");
$("#bill").text(Billno); $("#bill").text(Billno);
$("#hideoldfile").val(file); $("#hideoldfile").val(file);
$("#hidebillno").val(Billno); $("#hidebillno").val(Billno);
} }
</script> </script>
@ -606,14 +608,25 @@ $("#Igrshow").on("shown.bs.modal", function(e) {
//var counterConstant = 0; //var counterConstant = 0;
$("#addmorebutton").click(function(){ $("#addmorebutton").click(function(){
var file_count = $("#counts").val();
counter++;
var bil_count = +counter + +file_count;
if(bil_count>=5){
alert("You have to upload five files only");//this allows only 5 files;
return false;
}
counter++;
var div = document.createElement('div'); var div = document.createElement('div');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB