From 437cc01e48c788eca17b6f657e49dec6f3cf337c Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Fri, 7 Jun 2024 04:32:25 +0000 Subject: [PATCH] FIX_file modal algnment : ps --- app/Views/viewIGRDetails.php | 165 +++++++++++++---------------------- 1 file changed, 63 insertions(+), 102 deletions(-) diff --git a/app/Views/viewIGRDetails.php b/app/Views/viewIGRDetails.php index faf0b94e..a6737231 100644 --- a/app/Views/viewIGRDetails.php +++ b/app/Views/viewIGRDetails.php @@ -75,33 +75,15 @@ echo $date->format('d-m-Y'); ?> VehicleNo ?> CourierNo ?> - - FilePath)) - { - ?> - - - - - file)) - { ?> - - - - - - - - + FilePath)){ ?> + + + file)){ ?> + + + + + @@ -125,64 +107,44 @@ - - - - - @@ -450,11 +412,12 @@ $(document).ready(function() { $("#Fileshow").on("shown.bs.modal",function(e) { -//var id = $(this).attr('id'); +var id = $(this).attr('id'); var igr = $(e.relatedTarget).data('igrno'); var po = $(e.relatedTarget).data('pono'); - +$('#igrfileform')[0].reset(); +$('#title').text(" ("+igr+") "); $("#hiddenIGRNO").val(igr); $("#hiddenPONO").val(po); @@ -477,50 +440,48 @@ $("#hiddenPONO").val(po); var FilePath =''; var Filename = ''; var PONO =''; - var BillNO =''; + var BillNO =''; $.each(JSON.parse(file), function (i, item) { if(item.file == null) { if(item.Remarks ==null) { + console.log("public/uploads/Igrfiles/"+item.FilePath); //alert() - PONO =item.PONO; - BillNO =item.BillNo; - Filename =item.FilePath; - FilePath = "public/uploads/Igrfiles/"+item.FilePath; + PONO =item.PONO; + BillNO =item.BillNo; + Filename =item.FilePath; + FilePath = "public/uploads/Igrfiles/"+item.FilePath; }else{ - Filename ="BillDetails"; - PONO =item.PONO; - BillNO =item.BillNo; - FilePath = item.FilePath; + Filename ="BillDetails"; + PONO =item.PONO; + BillNO =item.BillNo; + FilePath = item.FilePath; } - }else{ Filename = item.file; PONO =item.pono; BillNO = '-'; - FilePath =item.file; } if(Filename != null) { - i=i+1; - trHTML += '' + - '' + i + '' + - '' + BillNO+ '' + - '' + PONO+ '' + - - ''+ Filename +'' + - - '' + - ''; - - } + i=i+1; + trHTML += '' + + '' + i + '' + + '' + BillNO+ '' + + '' + PONO+ '' + + ''+ Filename +'' + + '' + + ''; + } }); - $("#tblefile").empty(); - - $("#tblefile").append(trHTML); + $("#tblefile").empty(); + if(trHTML == ''){ + trHTML = 'NO FILE'; + } + $("#tblefile").append(trHTML); }