halohalo
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
aramiyarkai
/
public_html
/
admin
/
Upload FileeE
HOME
<?php error_reporting (0); include "dbc.php"; page_protect(); ?> <?php include'header.php';?> <div class="main-bar"> <h3><i class="fa fa-archive"></i> Orders</h3> </div> <!-- /.main-bar --> </header> <!-- /.head --> </div> <!-- /#top --> <?php include'admin_admin.php';?> <!-- /#left --> <div id="content"> <div class="outer"> <div class="inner bg-light lter"> <style> .form-control.col-lg-6 { width: 50% !important; } </style> <div class="row"> <div class="col-lg-12"> <div class="box"> <header> <?php $order_id = $_GET['order_id']; ?> <h5><i class="halflings-icon th"></i><span class="break"></span>Order Details For #<?php echo $order_id; ?></h5> <div class="toolbar"></div> </header> <div class="row"> <div class="col-lg-12"> <div class="box"> <div id="collapse4" class="body"> <?php include 'msg_display.php'?> <ul class="nav tab-menu nav-tabs" id="myTab"> <li class="active"><a href="#order">Order Details</a></li> <li><a href="#payment">Payment Details</a></li> <li><a href="#shipping">Shipping Details</a></li> <li><a href="#products">Product Details</a></li> <li><a href="#history">History</a></li> </ul> <?php $sno=1; $sel_order = mysqli_query($link,"select * from shopping_tbl where `order_id` = '$order_id' group by order_id order by id desc "); $rw_order = mysqli_fetch_object($sel_order); $cust = $rw_order->customer_details; $cus = explode(",",$cust); $cust_name = $cus[0]; $cust_mobile = $cus[1]; $cust_email = $cus[2]; $address = $rw_order->delivery_details; $district = $rw_order->district; $state = $rw_order->state; $pincode = $rw_order->pincode; $del_address = $address."<br>".$district.", ".$state.", ".$pincode; ?> <div id="myTabContent" class="tab-content"> <div class="tab-pane active" id="order"> <table class="table table-bordered"> <tbody> <tr> <td width="30%">Order ID:</td> <td>#<?php echo $rw_order->order_id; ?></td> </tr> <tr> <td>Invoice No.:</td> <td><?php echo $inv; ?></td> </tr> <tr> <td>Customer:</td> <td><?php echo $cust_name; ?></td> </tr> <tr> <td>E-Mail:</td> <td><a href="mailto:<?php echo $cust_email; ?>"><?php echo $cust_email; ?></a></td> </tr> <tr> <td>Mobile:</td> <td><?php echo $cust_mobile; ?></td> </tr> <tr> <td>Total:</td> <td><i class="fa fa-inr"></i> <?php echo $rw_order->grand_total; ?></td> </tr> <tr> <td>Order Status:</td> <td id="order-status"><?php echo $rw_order->order_status; ?></td> </tr> <tr> <td>Pyament Status:</td> <td id="order-status"><?php echo $rw_order->payment_status; ?></td> </tr> <tr> <td>IP Address:</td> <td><?php echo $rw_order->ip_address; ?></td> </tr> <tr> <td>User Agent:</td> <td><?php echo $rw_order->browser; ?></td> </tr> <tr> <td>Date Added:</td> <td><?php echo $rw_order->order_date; ?></td> </tr> <tr> <td>Date Modified:</td> <td><?php echo $rw_order->order_modified; ?></td> </tr> </tbody> </table> </div> <div class="tab-pane" id="payment"> <table class="table table-bordered"> <tbody> <tr> <td>Pyament Status:</td> <td id="order-status"><?php echo $rw_order->payment_status; ?> </td> </tr> <tr> <td>Payment Type:</td> <td id="order-status"><?php echo $rw_order->payment_type; ?> </td> </tr> <tr> <td>Payment Date:</td> <td id="order-status"><?php echo $rw_order->payment_date; ?></td> </tr> <tr> <td>Pyament Ref No:</td> <td id="order-status"><?php echo $rw_order->payment_refno; ?></td> </tr> <tr> <td>Payment Desc:</td> <td id="order-status"><?php echo $rw_order->payment_desc; ?></td> </tr> </tbody> </table> </div> <div class="tab-pane" id="shipping"> <table class="table table-bordered"> <tbody> <tr> <td width="30%">Name:</td> <td><?php echo $cust_name; ?></td> </tr> <tr> <td>Delivery Address:</td> <td><?php echo $del_address; ?></td> </tr> <tr> <td>Mobile:</td> <td><?php echo $cust_mobile; ?></td> </tr> </tbody> </table> </div> <div class="tab-pane" id="products"> <table class="table table-bordered"> <thead> <tr> <td class="text-left">Product</td> <td class="text-right">Quantity</td> <td class="text-right">Unit Price</td> <td class="text-right">Total</td> </tr> </thead> <tbody> <?php $sel_order1 = mysqli_query($link,"select * from shopping_tbl where order_id='$order_id' and `item_status`!='Cancelled'"); $sno=1; while($rw_details1 = mysqli_fetch_object($sel_order1)){ $proid = $rw_details1->product_id; $product_name = $rw_details1->product_name; $product_name_en = $rw_details1->product_name_en; $psize = $rw_details1->size; ?> <tr> <td class="text-left"> <p> <?php echo $product_name; ?> - <?php echo $product_name_en; ?> - <?php echo $psize; ?><br> <?php echo $rw_details1->product_id; ?><br> </p> </td> <td class="text-right"><?php echo $rw_details1->quantity; ?></td> <td class="text-right"><i class="fa fa-inr"></i> <?php echo $rw_details1->price; ?></td> <td class="text-right"><i class="fa fa-inr"></i> <?php echo $rw_details1->line_total; ?></td> </tr> <?php $sno++; } ?> <tr> <td colspan="3" class="text-right">Sub-Total:</td> <td class="text-right"><i class="fa fa-inr"></i> <?php echo $rw_order->total; ?></td> </tr> <tr> <td colspan="3" class="text-right">Delivery:</td> <td class="text-right"><i class="fa fa-inr"></i> <?php echo $rw_order->delivery_charge; ?></td> </tr> <tr> <td colspan="3" class="text-right">Discount:</td> <td class="text-right"><i class="fa fa-inr"></i> <?php echo $rw_order->discount; ?></td> </tr> <tr> <td colspan="3" class="text-right">Total:</td> <td class="text-right"><i class="fa fa-inr"></i> <?php echo $rw_order->grand_total; ?></td> </tr> </tbody> </table> </div> <div class="tab-pane" id="history"> <table class="table table-bordered"> <thead> <tr> <td class="text-left">Date Added</td> <td class="text-left">Order Detail Id</td> <td class="text-left">Ordered Product</td> <td class="text-left">Comment</td> <td class="text-left">Status</td> <td class="text-left">Customer Notified</td> </tr> </thead> <tbody> <?php $sel_orderdetail = mysqli_query($link,"select * from orderdetails_tbl where `order_id` = '$order_id'"); while($rw_orderdetail = mysqli_fetch_object($sel_orderdetail)){ $sno_id = $rw_orderdetail->sno_id; if($sno_id == "all"){ $sel_product_name = "All"; } else { $sel_order1 = mysqli_query($link,"select * from shopping_tbl where `product_id`='$sno_id'"); $rw_order1 = mysqli_fetch_object($sel_order1); $sel_product_name = $rw_order1->product_name." - ".$rw_order1->product_name_en; } ?> <tr> <td class="text-left"><?php echo $rw_orderdetail->order_modified; ?></td> <td class="text-left"><?php echo $rw_orderdetail->orderdetail_id; ?></td> <td class="text-left"><?php echo $sel_product_name; ?></td> <td class="text-left"><?php echo $rw_orderdetail->order_modify_desc; ?></td> <td class="text-left"><?php echo $rw_orderdetail->order_status; ?></td> <td class="text-left"><?php echo $rw_orderdetail->customer_notify; ?></td> </tr> <?php }?> </tbody> </table> </div> </div> </div> </div><!--/span--> </div> <!--/row--> </div><!--/.fluid-container--> <!-- end: Content --> </div><!--/#content.span10--> </div><!--/fluid-row--> <div class="modal hide fade" id="myModal"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h3>Settings</h3> </div> <div class="modal-body"> <p>Here settings can be configured...</p> </div> <div class="modal-footer"> <a href="#" class="btn" data-dismiss="modal">Close</a> <a href="#" class="btn btn-primary">Save changes</a> </div> </div> </div> </div> </div><!-- /.outer --> </div><!-- /#content --> <div id="right" class="bg-light lter"> <div class="alert alert-danger"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>Warning!</strong> Best check yo self, you're not looking too good. </div> <!-- .well well-small --> <div class="well well-small dark"> <ul class="list-unstyled"> <li>Visitor <span class="inlinesparkline pull-right">1,4,4,7,5,9,10</span> </li> <li>Online Visitor <span class="dynamicsparkline pull-right">Loading..</span> </li> <li>Popularity <span class="dynamicbar pull-right">Loading..</span> </li> <li>New Users <span class="inlinebar pull-right">1,3,4,5,3,5</span> </li> </ul> </div><!-- /.well well-small --> <!-- .well well-small --> <div class="well well-small dark"> <button class="btn btn-block">Default</button> <button class="btn btn-primary btn-block">Primary</button> <button class="btn btn-info btn-block">Info</button> <button class="btn btn-success btn-block">Success</button> <button class="btn btn-danger btn-block">Danger</button> <button class="btn btn-warning btn-block">Warning</button> <button class="btn btn-inverse btn-block">Inverse</button> <button class="btn btn-metis-1 btn-block">btn-metis-1</button> <button class="btn btn-metis-2 btn-block">btn-metis-2</button> <button class="btn btn-metis-3 btn-block">btn-metis-3</button> <button class="btn btn-metis-4 btn-block">btn-metis-4</button> <button class="btn btn-metis-5 btn-block">btn-metis-5</button> <button class="btn btn-metis-6 btn-block">btn-metis-6</button> </div><!-- /.well well-small --> <!-- .well well-small --> <div class="well well-small dark"> <span>Default</span> <span class="pull-right"><small>20%</small> </span> <div class="progress xs"> <div class="progress-bar progress-bar-info" style="width: 20%"></div> </div> <span>Success</span> <span class="pull-right"><small>40%</small> </span> <div class="progress xs"> <div class="progress-bar progress-bar-success" style="width: 40%"></div> </div> <span>warning</span> <span class="pull-right"><small>60%</small> </span> <div class="progress xs"> <div class="progress-bar progress-bar-warning" style="width: 60%"></div> </div> <span>Danger</span> <span class="pull-right"><small>80%</small> </span> <div class="progress xs"> <div class="progress-bar progress-bar-danger" style="width: 80%"></div> </div> </div> </div><!-- /#right --> </div><!-- /#wrap --> <?php include'footer.php';?>