<?php require "../common/pro-head.html"; ?> </div><!--shop_top_full--> <!--产品区--> <div class="shop_main_full"> <?php require_once $realLibPath . "model/car.model.php"; $car = new Car(); ?> <div class="shop_main"> <!--搜索栏和按钮--> <input id="search_input" type="text" value="输入您想找的宝贝吧"/> <input id="search_button" type="button"/> <input id="car_button" type="button" value="购物车共<?php echo count($car->query(array('status' => 'Y', 'userID' => '1'), array())); ?> 件商品!" /> <!--热销产品--> <div class="hot_product"> <ul> <?php require_once "../admin/web.config.php"; require_once $realLibPath . "model/product.model.php"; require_once $realLibPath . "model/images.model.php"; $pro = new Product(); //echo "热销产品"; $rxPro = $pro->getFirstNum(3); foreach ($rxPro as $itemrx) { $rximgs = new Images();
<th width="90" class="pro_delete">删除</th> <th width="90">商品编号</th> <th width="90">商品名称</th> <th width="90">原价</th> <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/car.model.php"; require_once $realLibPath . "model/product.model.php"; $car = new Car(); $userid = $_GET['userID']; $productArray = $car->query(array('status' => 'Y', 'userID' => $userid), 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