<th width="15%"><strong> Khách hàng </strong></th> <th width="10%"><strong> Điện thoại </strong></th> <th width="25%"><strong> Địa chỉ </strong></th> <th width="10%"><strong> Thời gian </strong></th> <th width="8%"><strong> Tổng giá trị (1.000 VNĐ) </strong></th> <th width="7%"><strong>Trạng thái</strong></th> <th width="18%"><strong> Thao tác </strong></th> </tr> </thead> <tbody style="width:100%;"> <?php foreach ($ordersList as $order) { //print_r($order); $num++; $user_info = get_userdata($order->userID); $orderDetail = getOrdersDetails($order->ID); $total = 0; $infor_user = explode('-', $order->name); ?> <tr valign="top" class="result" style="height:30px;line-height:30px;"> <td style="text-align:center"><?php _e($num); ?> </td> <td style="text-align:center"><?php echo $order->ID; ?> </td> <td><?php _e($infor_user[0]); ?>
<?php _e("<h1>Chi Tiết Hóa Đơn</h1>"); $ordersDetail = getOrdersDetails($orderID); $order = getOrders($orderID); foreach ($order as $info) { $user_info = get_userdata($info->userID); $total = get_total_from_db($info->ID); $infor_user = explode('-', $info->name); _e('Hóa đơn lập lúc: ' . date('h:i d-m-Y', $info->datetime) . "<br/>"); _e('Khách hàng: <strong>' . $infor_user[0] . "</strong><br/>"); _e('Email: <strong>' . $user_info->user_email . "</strong><br/>"); _e('Điện Thoai: <strong>' . $infor_user[1] . "</strong><br/>"); _e('Địa Chỉ: <strong>' . $infor_user[2] . "</strong>"); } $num = 0; ?> <table id="insured_list" class="tablesorter center"> <thead> <tr class="center"> <th> STT </th> <th> Tên Sản phẩm </th> <th style="width: 150px;"> Đơn giá (VND)</th> <th style="width: 100px;"> Giảm giá (%)</th> <th style="width: 150px;"> Số lượng (cái)</th> <th style="width: 150px;"> Thành tiền (VND) </th> </tr> </thead> <tbody> <?php foreach ($ordersDetail as $detail) {
<?php $order_id = decrypt($_GET['orderID']); $ordersDetail = getOrdersDetails($order_id); $order = getOrders($order_id); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Hóa Đơn</title> <style type="text/css"> *{ margin:0; padding:0; font-size:12px; font-family:Arial, Helvetica, sans-serif; } ul { list-style:none; } #container { width:593px; height:840px; margin:0px auto; border:1px solid #000; } #header { overflow:hidden;