JezK
Edit File: received_transaction_view.php
<?php // include_once("./app/adminObj.php"); include_once("./app/checkSession.php"); include("header.php"); $sql= "select uc.currency,urq.currency_type,uos.quotation_id,uos.asn_id,uos.customer_name,uos.email,uos.country,uos.city from uflexit_onhand_stock as uos join uflexit_request_quote as urq on urq.quotation_id=uos.quotation_id join uflexit_countries as uc on uc.country_id=urq.currency_type where randval='".$_GET['rnd']."'"; $row = $customerObj->db->get_row($sql); $currencyType=$row['currency']; // print_r($row); // $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 ) */ ?> <div class="container"> <a href="dashboard.php"><img src="images/back_main.png" class="pb-3"></a> <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"> <h5><?php echo $lang['TRANSACTION_DETAILS'];?></h5> </div> </div> </div> <div class="warehouse_boxshadow mt-3 mb-5 pl-5"> <div class="container pt-4 pl-4 pb-2 "> <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_SHIPMENTID'];?></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 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_SHIPMENTID'];?></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> </div> </div> <div class="mt-3 px-md-4 px-1"> <div class="row px-md-3 px-0 pb-3"> <div class="container pl-0 pr-2 text-dark"> <h5><?php echo $lang['ADD_ITEM_DETAILS'];?></h5> </div> </div> </div> <div class="warehouse_boxshadow container table-responsive py-5 "> <table id='example' class="table table-bordered table_body"> <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><?php echo $lang['COST'];?> (<?php echo $currencyType ?>)</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 $sql_i= "select itemcode,item_desc,available_quantity,ref_number,cost,pallet_no,row_val,rack,pin from uflexit_onhand_stock where randval='".$_GET['rnd']."'"; $rows_i = $customerObj->db->get_results($sql_i); if($rows_i){ foreach($rows_i as $row) { ?> <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; } </style> <script> </script>