report showrow for singlelineadd
This commit is contained in:
parent
b291b300d2
commit
cfabb07597
@ -33,8 +33,11 @@
|
||||
th, td { white-space: nowrap; }
|
||||
.dataTable > thead > tr > th[class*="sort"]:after{
|
||||
content: "" !important;
|
||||
}
|
||||
|
||||
}
|
||||
#cc_info{
|
||||
width: 250%;
|
||||
}
|
||||
table.dataTable thead > tr > th.sorting_asc,
|
||||
table.dataTable thead > tr > th.sorting_desc,
|
||||
table.dataTable thead > tr > th.sorting,
|
||||
@ -600,9 +603,7 @@ $('.IGRfile').click(function() {
|
||||
"aaSorting": [[ 3, "desc" ]],
|
||||
"autoWidth": false,
|
||||
orderCellsTop: true,
|
||||
"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>>",
|
||||
"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>>",
|
||||
buttons: [
|
||||
{
|
||||
extend: 'excelHtml5',
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
<table id="Inwardgateregistertable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
||||
<thead style="background-color:#ddf">
|
||||
<tr>
|
||||
<tr>
|
||||
<!-- <th>S.No</th> -->
|
||||
<th>IGR No</th>
|
||||
<th>PO No</th>
|
||||
@ -151,19 +151,19 @@
|
||||
</table>
|
||||
|
||||
|
||||
<!-- <div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-offset-10 col-md-8" >
|
||||
<input type="button" class="btn btn-primary" id ="addmorebutton" value=" ADD FILES..">
|
||||
</div>
|
||||
|
||||
<div id="newdiv"></div>
|
||||
<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 ="hiddenPONO" id="hiddenPONO" />
|
||||
|
||||
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
<!-- <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">×</button>
|
||||
<center><h4>Inward Gate Register Details</h4></center> <!-- IGR number should display here-->
|
||||
</div>
|
||||
<input type="hidden" id="counts">
|
||||
<!--<div class="col-md-12">
|
||||
<div class="col-md-3">
|
||||
<label>IGR Number :</label>
|
||||
@ -347,7 +348,8 @@
|
||||
<td>10000</td>
|
||||
<td>10000</td>
|
||||
<td>Received</td>
|
||||
</tr>-->
|
||||
</tr>-->
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -448,15 +450,15 @@ $("#hiddenIGRNO").val(id);
|
||||
type:"POST",
|
||||
//dataType: 'json',
|
||||
url:"<?php echo base_url() ?>inwardgateregister/ViewIGRfile",
|
||||
success: function(data)
|
||||
success: function(file)
|
||||
{
|
||||
console.log(data);
|
||||
|
||||
|
||||
$("#counts").val(JSON.parse(file).length);
|
||||
|
||||
|
||||
|
||||
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");
|
||||
$("#bill").text(Billno);
|
||||
$("#hideoldfile").val(file);
|
||||
$("#hideoldfile").val(file);
|
||||
$("#hidebillno").val(Billno);
|
||||
}
|
||||
</script>
|
||||
@ -606,14 +608,25 @@ $("#Igrshow").on("shown.bs.modal", function(e) {
|
||||
|
||||
//var counterConstant = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$("#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');
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 95 KiB |
Loading…
Reference in New Issue
Block a user