<div id="orderCart_inc">
<div class="panel panel-primary">
  <div class="panel-heading f14"><i class="icon-shopping-cart icon-white"></i> 购物车</div>
  <?php $this->skymvc->loadControl("order_cartapi");$this->assign("t_c",$_ENV["order_cartapiControl"]->cart()); ?>
  <table class="table" style="">
    <tr>
      <td>商品名称</td>
      <td style="text-align:center; width:100px;">数量</td>
      <td style="text-align:center; width:50px;">价格</td>
    </tr>
    <?php $_from = $this->_var['t_c']['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
    <tr class="orderCart_row">
      <td><a href="<?php echo R("/index.php?m=show&id=".$this->_var["c"]["object_id"]."");?>" target="_blank"><?php echo $this->cutstr($this->_var['c']['title'],24,'...'); ?></a></td>
      <td ><div  style="text-align:center"> <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']; ?> <a href="javascript:;" class="delete" url="/index.php?m=order_cart&a=delete&id=<?php echo $this->_var['c']['id']; ?>"><i class=" icon-remove"></i></a></td>
    </tr>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </table>
</div>
<div class="btn-group right"><span class="btn " style="color:red;">￥<span class="orderCard_totalmoney"><?php echo intval($this->_var['t_c']['total_money']); ?></span></span><a href="<?php echo R("/index.php?m=order&a=confirm");?>" class="btn   btn-success">确认购买</a></div>
</div>