<?php /* Smarty version 2.6.19, created on 2008-07-29 11:21:04
         compiled from shopping_car.tpl */ ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>购物车模块</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div align="center"><img src="images/sy_2.jpg" width="1003" height="75"></div></td>
  </tr>
</table>
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><img src="images/sy_4.jpg" width="825" height="140"></td>
  </tr>
</table>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="89">&nbsp;</td>
    <td width="825"><table width="825" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#D0D0D0">
<tr>
<td align="center" bgcolor="#FFFFFF"><img src="images/sy_8.jpg" width="781" height="25">
  
<table width="750" height="60" border="0" align="center" cellpadding="0" cellspacing="0">
        
        <tr>
          <td><br>
		  
		  <table width="720" height="47" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
           
			
            <tr>
              <td height="22" bgcolor="#CCCCCC">			    <div align="center">商品名称</div></td>
              <td bgcolor="#CCCCCC"><div align="center">单价（元）</div></td>
              <td bgcolor="#CCCCCC"><div align="center">数量（个）</div></td>
              <td bgcolor="#CCCCCC"><div align="center">小计</div></td>
              <td bgcolor="#CCCCCC"><div align="center">操作</div></td>
            </tr>
			<?php if ($this->_tpl_vars['isShow'] == 'F'): ?>
			
			
			<tr>
              <td height="22" colspan="5" bgcolor="#FFFFFF"><div align="center">对不起，您的购物车中暂无商品信息！</div></td>
            </tr>
			
<?php else: ?>
<?php unset($this->_sections['data']);
$this->_sections['data']['name'] = 'data';
$this->_sections['data']['loop'] = is_array($_loop=$this->_tpl_vars['myrow']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['data']['show'] = true;
$this->_sections['data']['max'] = $this->_sections['data']['loop'];
$this->_sections['data']['step'] = 1;
$this->_sections['data']['start'] = $this->_sections['data']['step'] > 0 ? 0 : $this->_sections['data']['loop']-1;
if ($this->_sections['data']['show']) {
    $this->_sections['data']['total'] = $this->_sections['data']['loop'];
    if ($this->_sections['data']['total'] == 0)
        $this->_sections['data']['show'] = false;
} else
    $this->_sections['data']['total'] = 0;
if ($this->_sections['data']['show']):

            for ($this->_sections['data']['index'] = $this->_sections['data']['start'], $this->_sections['data']['iteration'] = 1;
                 $this->_sections['data']['iteration'] <= $this->_sections['data']['total'];
                 $this->_sections['data']['index'] += $this->_sections['data']['step'], $this->_sections['data']['iteration']++):
$this->_sections['data']['rownum'] = $this->_sections['data']['iteration'];
$this->_sections['data']['index_prev'] = $this->_sections['data']['index'] - $this->_sections['data']['step'];
$this->_sections['data']['index_next'] = $this->_sections['data']['index'] + $this->_sections['data']['step'];
$this->_sections['data']['first']      = ($this->_sections['data']['iteration'] == 1);
$this->_sections['data']['last']       = ($this->_sections['data']['iteration'] == $this->_sections['data']['total']);
?>
            <tr>
			<form name="form<?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_id']; ?>
" method="post" action="change_commodity_counts.php">
              <td height="22" align="center" bgcolor="#FFFFFF"><?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_name']; ?>
</td>
              <td height="22" bgcolor="#FFFFFF"><div align="center"><?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_price']; ?>
</div></td>
              <td height="22" bgcolor="#FFFFFF"><div align="center"><input type="text" name="goodsnum" value="<?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['7']; ?>
" class="inputcss" size="8" ><input type="hidden" name="id" value="<?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_id']; ?>
"></div></td>
              <td bgcolor="#FFFFFF"><?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['7']*$this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_price']; ?>
</td>
              <td height="22" bgcolor="#FFFFFF"><div align="center"><a href="javascript:form<?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_id']; ?>
.submit();" class="a1">更改数量</a>&nbsp;|&nbsp;<a href="delete_commodity.php?id=<?php echo $this->_tpl_vars['myrow'][$this->_sections['data']['index']]['tb_commodity_id']; ?>
" class="a1">删除该项</a></div></td>
            </form>
			</tr>
<?php endfor; endif; ?>
<?php endif; ?>
          </table>
		  <br>
		  <table width="720" height="22" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#999999">
            <tr>
              <td bgcolor="#FFFFFF"><table width="720" height="22" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="247">&nbsp;<< &nbsp;<a href='index.php' class='a1'>继续购买</a>&nbsp;&nbsp;<a href='clear_shopping_car.php' class='a1'>清空购物车</a>&nbsp;>></td>
                  <td width="292">&nbsp;商品金额总计：&nbsp;<?php echo $this->_tpl_vars['totalprice']; ?>
&nbsp;元</td>
                  <td width="181"><div align="center"><a href="shopping_order_form.php"><img src="images/sy_13.jpg" width="60" height="25" border="0"/></a></div></td>
                </tr>
              </table></td>
            </tr>
          </table>
		  <br>		  </td>
        </tr>
      </table></td>
</tr>
</table></td>
    <td width="89">&nbsp;</td>
  </tr>
  
  <tr>
    <td colspan="3"><img src="images/sy_21.jpg" width="1003" height="45"></td>
  </tr>
</table>
</body>
</html>
