Şuanki Dizin: /home/wwwdreamtechnolo/public_html/cakedarbar.in/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/cakedarbar.in/view-details.php |
<?php require_once("lib/functions.php"); $db = new login_function(); $flag = 0; $success_msg = 0; $emp_id=""; $designation=""; $emp_name=""; $succ_msg = 0; $to_date=""; $from_date = ""; $category = ""; if(!isset($_SESSION['current_login_admin'])) { header("Location:index.php"); } if(isset($_SESSION['current_login_admin'])) { $email = $_SESSION['current_login_admin']; } if(isset($_GET['tr_id'])) { $up_id = $_GET['tr_id']; $_SESSION['current_update_id'] = $up_id; } else if(isset($_SESSION['current_update_id'])) { $up_id = $_SESSION['current_update_id']; } ?> <?php require_once('header.php'); ?> <link rel="stylesheet" href="/css/jquery-ui.css"> <link rel="stylesheet" href="/resources/demos/style.css"> <script src="/js/jquery-1.12.4.js"></script> <script src="/js/jquery-ui.js"></script> <script> $( function() { $( "#datepicker" ).datepicker({ dateFormat: 'dd-mm-yy' }); } ); </script> <script> $( function() { $( "#datepicker1" ).datepicker({ dateFormat: 'dd-mm-yy' }); } ); </script> <script src="src/jquery.table2excel.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#excel_btn").click(function(){ $("#table2excel").table2excel({ exclude: ".noExl", name: "Worksheet Name", filename: "pending Product Report" //do not include extension }); }); }); </script> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">VIEW PRODUCT DETAILS</h1> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> VIEW PRODUCT DETAILS </div> <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover" id="table2excel"> <thead> <tr> <th colspan="13">VIEW DETAILS </th> </tr> <tr class="noExl"> <th>Sr. No</th> <th>Product Name</th> <th>Quantity</th> <th>Price</th> <th>Total Price</th> </tr> </thead> <tbody> <?php $total = 0; $total_total = 0; $report_details = $db->fetch_all_dispatch_product_info_by_t_id($up_id); if(!empty($report_details)) { $counter = 0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $transaction_id = $report_details[$counter][1]; $seller_email = $report_details[$counter][2]; $product_id = $report_details[$counter][3]; $qty = $report_details[$counter][4]; $price = $report_details[$counter][5]; $status = $report_details[$counter][6]; $total_price=$price*$qty; $total = $total + $price; $total_total = $total_total + $total_price; $product_info = $db->fetch_product_info_by_product_id($product_id); if(!empty($product_info)) { $p_count = 0; foreach($product_info as $record) { $pro_id = $product_info[$p_count][0]; $category = $product_info[$p_count][1]; $product_name = $product_info[$p_count][2]; $description = $product_info[$p_count][3]; $actual_price = $product_info[$p_count][4]; $selling_price = $product_info[$p_count][5]; $p_count++; } } ?> <tr> <td><?php echo $counter+1; ?></td> <td><?php echo $product_name; ?></td> <td><?php echo $qty; ?></td> <td><?php echo $price; ?></td> <td><?php echo $total_price; ?></td> </tr> <?php $counter++; } ?> <tr> <td colspan="3"><b>Total - </b></td> <td> ₹ <b><?php echo $total; ?></b></td> <td> ₹ <b><?php echo $total_total; ?></b></td> </tr> <?php } else { ?> <td colspan="8">No Data Found...</td> <?php } ?> </tbody> </table> </div> <!-- /.table-responsive --> </div> </div> </div> </div> </div> </div> </div> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4