<!--cart template-->
<style>
{%literal%}
.input {
	BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BACKGROUND: #ffffff; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid
}
{%/literal%}
</style>
<table width=100% border=0 cellpadding=8 cellspacing=1 bordercolor="#ffffff">
  <form name=listCart action=index.php method=get>
    <input name=module value=cart type=hidden>
    <input name=action value=rCount type=hidden>
    <tr bgcolor="#666666"> 
      <td height="20"><B><font color="#FFFFFF">编号</font></B></td>
      <td height="20"><B><font color="#FFFFFF">名称</font></B></td>
      <td height="20"><B><font color="#FFFFFF">价格</font></B></td>
      <td height="20"><B><font color="#FFFFFF">数量</font></B></td>
      <td height="20"><B><font color="#FFFFFF">删除</font></B></td>
    </tr>
    {%section name=c loop=$cart%} 
    <tr> 
      <td>{%$cart[c].oid%}</td>
      <td>{%$cart[c].title%}</td>
      <td>{%$currency%}{%$cart[c].price|string_format:"%.2f"%}</td>
      <td> 
        <input type=text name=num[{%$cart[c].id%}] value={%$cart[c].num%}  size=3>
      </td>
      <td> 
        <input type=checkbox name=del[] value={%$cart[c].id%}>
        删除</td>
    </tr>
    {%/section%} 
    <tr> 
      <td colspan=2 align=right><font color="#009999"><b>合计</b></font>:</td>
      <td colspan=3>{%$currency%}{%$sum|string_format:"%.2f"%}</td>
    </tr>
  </form>
</table>
<div align=center><a href="javascript:listCart.submit()">[重新计算]</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="{%$root%}/index.php?module=cart&action=deleteCart">[清空记录]</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href={%$root%}>[继续购物]</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href=index.php?module=cart&action=checkOut>[去收银台]</a></div>
