<?php echo $this->fetch('header.html'); ?>
<div class="row">
<div class="span12">
<h3>购物车</h3>
<table class="table table-bordered">
	<tr>
    	<td>商品图片</td>
    	<td>商品名称</td>
        <td>数量</td>
        <td>价格</td>
        <td>操作</td>
    </tr>
<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
    <tr>
    	<td><a href="<?php echo R("/index.php?m=show&id=".$this->_var["c"]["object_id"]."");?>" target="_blank"><img src="<?php echo IMAGES_SITE; ?><?php echo $this->_var['c']['imgurl']; ?>.100x100.jpg" width="50"></a></td>
        <td><a href="<?php echo R("/index.php?m=show&id=".$this->_var["c"]["object_id"]."");?>" target="_blank"><?php echo $this->_var['c']['title']; ?></a></td>
        <td><div class="orderCartNum_row">
        	<span>
            	<a href="javascript:;" class="orderCartNum_plus" oid="<?php echo $this->_var['c']['id']; ?>"><i class="icon-plus "  ></i></a></span>
                <span class="orderCartNum"><?php echo $this->_var['c']['amount']; ?></span> 
            <span><a href="javascript:;" class="orderCartNum_minus" oid="<?php echo $this->_var['c']['id']; ?>"><i class="icon-minus"></i></a></span></div></td>
        <td><?php echo $this->_var['c']['price']; ?></td>
        <td><a href="javascript:;" class="delete" url="/index.php?m=order_cart&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
    </tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<div class="right">总价：<?php echo $this->_var['total_money']; ?>元  &nbsp;&nbsp;<a href="<?php echo R("/index.php?m=order&a=confirm");?>" class="btn btn-large btn-success">确认购买</a></div>
</div>

 
</div>
<?php echo $this->fetch('footer.html'); ?>