JezK
Edit File: onhandStockIndividualView.php
<?php include_once("./app/adminObj.php"); include_once("./app/checkSession.php"); include("header.php"); if(isset($_GET['rnd']) && $_GET['rnd']!='' && isset($_GET['item_code'])){ $sql= "select * from uflexit_onhand_stock where randval='".$_GET['rnd']."' and itemcode='".$_GET['item_code']."'"; } $row = $adminObj->db->get_row($sql); // $transactionsDetails=''; $quotation_id = isset($row['quotation_id']) ? $row['quotation_id'] : ""; $asn_id = isset($row['asn_id']) ? $row['asn_id'] : ""; $customer_name = isset($row['customer_name']) ? $row['customer_name'] : ""; $email = isset($row['email']) ? $row['email'] : ""; $country = isset($row['country']) ? $row['country'] : ""; $city = isset($row['city']) ? $row['city'] : ""; //print_r($row); /* Array ( [id] => 1 [quotation_id] => 1 [asn_id] => 1 [customer_name] => test [country] => test country [email] => test@gmail.com [city] => test city [itemcode] => 001 [item_desc] => item descrion [qty] => 100 [ref_number] => ref 001 [cost] => 1000 [pallet_no] => 001 [row_val] => 1 [rack] => 1 [pin] => 1 [created_date] => 2021-01-20 11:12:49+05:30 [status] => 1 ) */ //print_r($row); /* Array ( [id] => 1 [quotation_id] => 1 [asn_id] => 1 [customer_name] => test [country] => test country [email] => test@gmail.com [city] => test city [itemcode] => 001 [item_desc] => item descrion [qty] => 100 [ref_number] => ref 001 [cost] => 1000 [pallet_no] => 001 [row_val] => 1 [rack] => 1 [pin] => 1 [created_date] => 2021-01-20 11:12:49+05:30 [status] => 1 ) */ ?> <div class="container pl-3"> <a href="javascript:history.back(1)" class="pl-4 " style="z-index:9"><img src="images/back_main.png"></a> </div> <div class="container"> <div class="mt-3 px-md-4 px-0"> <div class="row px-md-3 px-0"> <div class="container pl-0 pr-2 text-dark resText"> <h5><?php echo $lang['TRANSACTION_DETAILS']; ?></h5> </div> </div> </div> <div class="warehouse_boxshadow mt-3 mb-5"> <div class="container pt-4 pl-4 pb-2 "> <div class="row"> <div class="col-lg-6 col-md-12 col-sm-12"> <div class="row"> <div class="col-md-5"><p><strong><?php echo $lang['QUOTATION_ID'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $quotation_id ?></p></div> </div> <div class="row"> <div class="col-md-5"> <p><strong><?php echo $lang['ADVANCE_SHIPMENT_ID'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $asn_id ?></p></div> </div> <div class="row"> <div class="col-md-5"> <p><strong><?php echo $lang['CUSTOMER_NAME'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $customer_name ?></p></div> </div> <div class="row"> <div class="col-md-5"> <p><strong><?php echo $lang['EMAIL'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $email ?></p></div> </div> </div> <div class="col-lg-6 col-md-12 col-sm-12"> <div class="row"> <div class="col-md-5"> <p><strong><?php echo $lang['COUNTRY'];?></strong></p></div> <div class="col-md-1 colon">:</div> <div class="col-md-6"><p><?php echo $country ?></p></div> </div> <div class="row"> <div class="col-md-5 col-sm-5"> <p><strong><?php echo $lang['CITY'];?></strong></p></div> <div class="col-md-1 col-sm-1 colon">:</div> <div class="col-md-6 col-sm-6"><p><?php echo $city ?></p></div> </div> </div> <!-- <div class="row"> <div class="col-sm-6"> <div class="row"> <div class="col-sm-5 col-4 onhandFlex"> <p><strong><?php echo $lang['QUOTATION_ID']; ?></strong><span>:</span></p> <p><strong><?php echo $lang['ADVANCE_SHIPMENT_ID']; ?></strong><span>:</span></p> <p><strong><?php echo $lang['CUSTOMER_NAME']; ?></strong><span>:</span></p> <p><strong><?php echo $lang['EMAIL']; ?></strong><span>:</span></p> </div> <div class="col-sm-7 col-7"> <p><?php echo $quotation_id ?></p> <p><?php echo $asn_id ?></p> <p><?php echo $customer_name ?></p> <p><?php echo $email ?></p> </div> </div> </div> <div class="col-sm-6"> <div class="row"> <div class="col-sm-5 col-4 onhandFlex"> <p><strong><?php echo $lang['COUNTRY'] ?></strong><span>:</span></p> <p><strong><?php echo $lang['CITY'] ?></strong><span>:</span></p> </div> <div class="col-sm-7 col-7"> <p><?php echo $country ?></p> <p><?php echo $city ?> </p> </div> </div> </div> </div> --> </div> </div> <div class="mt-3 px-md-4 px-0"> <div class="row px-md-3 px-0 pb-3"> <div class="container pl-0 pr-2 text-dark resText"> <h5><?php echo $lang["ITEM_DETAILS"] ?></h5> </div> </div> </div> <div class="warehouse_boxshadow container px-4 py-4"> <div class="table-responsive"> <table id='example' class="table table-bordered table_body p-5 "> <thead class="theadcolor"> <tr> <th><?php echo $lang['ITEM_CODE']; ?></th> <th><?php echo $lang['ITEM_DESCRIPTION']; ?></th> <th><?php echo $lang['QUANTITY']; ?></th> <th><?php echo $lang['REFERENCE_NUMBER']; ?></th> <!-- <th>Cost</th> --> <!-- <th>Number of Pallet</th> --> <th><?php echo $lang['PALLET_NO']; ?>.</th> <th><?php echo $lang['ROW'];?></th> <th><?php echo $lang['RACK']; ?></th> <th><?php echo $lang['PIN']; ?></th> </tr> </thead> <tbody> <?php if(isset($_GET['rnd']) && $_GET['rnd']!='' && isset($_GET['item_code'])){ $sql_i= "select * from uflexit_onhand_stock where randval='".$_GET['rnd']."' and itemcode='".$_GET['item_code']."'"; } $rows_i = $adminObj->db->get_results($sql_i); if($rows_i){ foreach($rows_i as $fetch) { ?> <tr> <td><?php echo $row['itemcode'] ?></td> <td><?php echo $row['item_desc'] ?></td> <td><?php echo $row['available_quantity'] ?></td> <td><?php echo $row['ref_number'] ?></td> <!-- <td><?php echo $row['cost'] ?></td> --> <td><?php echo $row['pallet_no'] ?></td> <td><?php echo $row['row_val'] ?></td> <td><?php echo $row['rack'] ?></td> <td><?php echo $row['pin'] ?></td> </tr> <?php } } ?> </tbody> </table> </div> </div> </div> </div> <?php include("footer.php"); ?> <style> #example_length { display:none !important; } th{ background:#2f58c9 !important; } .table thead th { color: white; } strong{ color:#424242; } @media(max-width:767px){ .resText h5 { padding-left: 31px; } .colon{ display: none; } } </style> <!-- <script> jQuery(document).ready(function() { jQuery('#example').DataTable( { "processing": true, "dataSrc": "", "dom": 'Bfrtip', "dom": 'Rlfrtlip', language: { search: '', searchPlaceholder: "Search", paginate: {previous: 'Prev',next: 'Next'} , paginate: {previous: 'Prev',next: 'Next'}}, "pagingType": "full_numbers", "bProcessing": true, "bServerSide": true, "sAjaxSource": "app/view-individual-received-list.php?rnd=<?php echo $_GET['rnd'] ?>", "ordering": false, "aoColumns": [{ mData: 'itemcode' } , { mData: 'item_desc' } , { mData: 'qty' }, { mData: 'ref_number' }, { mData: 'cost' }, { mData: 'pallet_no' }, { mData: 'row_val' }, { mData: 'rack' }, { mData: 'pin' } ] } ); } ); </script> -->