<th width="90">现价</th> <th width="90">数量</th> <th width="90">总价</th> </tr> <?php //echo "dddd"; require_once "../admin/web.config.php"; require_once $realLibPath . "model/orderDetail.model.php"; require_once $realLibPath . "model/order.model.php"; require_once $realLibPath . "model/product.model.php"; $orderid = $_GET['orderID']; $order = new Order(); $orderdata = current($order->query(array('status' => '0', 'ID' => $orderid), array())); //var_dump($orderdata); $orderDetail = new OrderDetail(); $productArray = $orderDetail->query(array('status' => '0', 'order_id' => $orderid), array('ID', 'pro_ID', 'number')); //var_dump($productArray); //获取所有商品信息 //$productArray = array(); if (count($productArray)) { foreach ($productArray as $pitem) { $product = new Product(); $productDetail = current($product->query(array('status' => 'Y', 'ID' => $pitem['pro_ID']), array("ID", 'name', 'price', 'realPrice'))); ?> <tr class='product'> <td><input type="checkbox"/></td> <input type="hidden" value="<?php echo $pitem['ID']; ?> " /> <td><?php