D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home3
/
encodto1
/
salvation.incrediblebengal.com
/
admin
/
Filename :
order-summary.php
back
Copy
<?php include'config.php'; include'get_session_access.php'; include'function.php'; $page_title = "Order List"; ?> <!DOCTYPE html> <html lang="en"> <head> <title>Encode Restro - Order Summary </title> <?php include'style.php'; ?> </head> <body> <div id="main-wrapper"> <?php include'header.php'; ?> <?php include'sidebar.php'; ?> <div class="content-body"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="inventory_div"> <ul class="nav nav-tabs mb-3"> <li><a data-toggle="tab" href="#dineIn_orderlist">DineIn_orderlist</a></li> <li><a data-toggle="tab" href="#takeAway_orderlist">TakeAway_orderlist</a></li> </ul> <div class="tab-content"> <div id="dineIn_orderlist" class="tab-pane fade"> <div class="table-responsive"> <table id="example4" class="display" style="min-width: 845px"> <thead> <tr> <th>Serial No</th> <th>Table Id</th> <th>Order Id</th> <th>Customer Phone</th> <th>Total Payment</th> <th>Order_date</th> <th>Waiter name</th> <th>Order Status </th> <th>Action</th> </tr> </thead> <tbody> <?php $s_no = 0; $view_table_order = mysqli_query($conn, "SELECT * FROM dinein_order"); if($view_table_order-> num_rows > 0){ while($row = mysqli_fetch_assoc($view_table_order)){ $order_id = $row['order_id']; $table_id = $row['table_id']; $order_date = $row['order_date']; $customer_phone = $row['customer_phone']; $total_payment = $row['total_payment']; $waiter_name = $row['waiter_name']; $payment_status = $row['order_status']; $s_no++; echo "<tr> <td>0".$s_no."</td> <td>".$table_id."</td> <td>".$order_id."</td> <td>".$customer_phone."</td> <td>".$total_payment."</td> <td>".$order_date."</td> <td>".$waiter_name."</td> "; if ($payment_status == "paid"){ echo "<td><span class='badge light badge-success'>".$payment_status."</span></a></td>"; } elseif ($payment_status == "running") { echo "<td><span class='badge light badge-danger'>".$payment_status."</span></a></td>"; } echo "<td> <ul class='list-inline'> <li class='list-inline-item px-0'> <a class='btn btn-light bg-primary d-block' href='view_table_orderdetails.php?cust_phone=$customer_phone&order_id=$order_id'> <svg class='mr-0' xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='#fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'></path><circle cx='12' cy='12' r='3'></circle></svg> </a> </li> </ul> </td> </tr>"; } } ?> </tbody> </table> </div> </div> <div id="takeAway_orderlist" class="tab-pane fade"> <div class="table-responsive"> <table id="" class="display example4 dataTable mb-4"> <thead> <tr> <th><strong class="font-w600">ID</strong></th> <th><strong class="font-w600">Order ID</strong></th> <th><strong class="font-w600">Order Date</strong></th> <th><strong class="font-w600">Customer Phone</strong></th> <th><strong class="font-w600">Total Payment</strong></th> <th><strong class="font-w600">Order Type</strong></th> <th><strong class="font-w600">Order Status</strong></th> <th><strong class="font-w600">Action</strong></th> </tr> </thead> <tbody> <?php $show_items = "select * from delivery_order"; $run_query = mysqli_query($conn, $show_items); if($run_query-> num_rows > 0){ $serial = 0; while($res = mysqli_fetch_assoc($run_query)) { $order_id = $res['order_id']; $d_order_date = $res['order_date']; $d_cust_phone = $res['customer_phone']; $res['total_payment']; $res['order_type']; $order_status = $res['order_status']; $serial++; echo "<tr> <td>".$serial.".</td> <td>".$res['order_id'].".</td> <td>".$res['order_date']."</td> <td>".$res['customer_phone']."</td> <td>".$res['total_payment']."</td> <td>".$res['order_type']."</td>"; if ($order_status == "paid"){ echo "<td><span class='badge light badge-success'>".$order_status."</span></a></td>"; } elseif ($order_status == "running") { echo "<td><span class='badge light badge-danger'>".$order_status."</span></a></td>"; } echo "<td> <ul class='list-inline'> <li class='list-inline-item px-0'> <a class='btn btn-light bg-primary' href='view_takeAway_orderdetails.php?cust_phone=$d_cust_phone&order_date=$d_order_date&order_id=$order_id'> <svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='#fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'></path><circle cx='12' cy='12' r='3'></circle></svg> </a> </li> </ul> </td> </tr>"; } } else{ echo "<span style='color:#fe0002;font-size:15px;'>Pickup Order list is Empty.</span>"; } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <?php include'footer.php'; ?> <script type="text/javascript"> $(document).ready(function(){ $('.inventory_div > ul.nav-tabs > li:first').addClass('active'); $('.inventory_div > .tab-content > .tab-pane:first').addClass('in active show'); $('.inventory_div ul.nav-tabs li a').click(function (ek) { $('.inventory_div ul.nav-tabs li').removeClass('active'); $(ek.currentTarget).parent('li').addClass('active'); }); }); </script> </body> </html>