	<form name="theForm" action="cart.php?act=modify" method='post'>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                      <tr> 
                        <td></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
              <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td><table width="100%" height="30" border=0 align=center cellpadding=0 cellspacing=0 class="tabletbl">
                      <tr bgcolor="f5f5f5"> 
                        <td width="200" align="center">&nbsp;</td>
                        <td align="left" bgcolor="f5f5f5">商品名称</td>
                        <td width="60" align="center">数量</td>
                        <td width="80" align="center">价格</td>
                        <td width=40 align=center>删除</td>
                      </tr>
                    </table>
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td height="8" valign="top"></td>
                      </tr>
                    </table>
                    <table width="100%" border=0 align=center cellpadding=0 cellspacing=0 >
<?php 
if (!$cartContents):
  print "<tr><td bgcolor=#FFFFFF>&nbsp;您暂时没有兑商品</td></tr>";
else:
	foreach($cartContents as $row):
	$picurl = Common::getImageByFileurl($row['fileurl'], SYS_FRONT_STYLE_PATH.'images/noneimg.gif', 0);
?>
                      <tr> 
                        <td width="200" align="center" > <table border="0" cellpadding="0" cellspacing="0" >
                            <tr> 
                              <td bgcolor="#FFFFFF"> <a href="article.php?id=<?php echo $row["id"] ?>"><img src="<?php echo $picurl;?>" width="100" height="100" border="0" class="pdpicbox"></a> 
                              </td>
                            </tr>
                          </table>
                          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td height="2" valign="top"></td>
                            </tr>
                          </table></td>
                        <td align="left" ><a href=article.php?id=<?php echo $row["id"];?> target=_blank><?php echo $row["title"];?></a></td>
                        <td width="60" align="center" ><input name=quantity[] value="<?php echo $row["quantity"];?>" size=4 ></td>
                        <td width="80" align="center"><?php echo $row["price"];?></td>
                        <td width="40" align="center"> <a href=cart.php?act=del&id=<?php echo $row["id"];?>> 
                          <img src="<?php echo SYS_FRONT_STYLE_PATH ?>images/trash.gif" width="15" height="17" border="0"></a></td>
                      </tr>
<?php 
endforeach;
endif;
?>
                    </table>
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td>&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
              </table>
 <?php if ($cartContents):?>

              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td>&nbsp;</td>
                </tr>
              </table>
              <table width="92%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td height="30" align="right"><a href=cart.php?act=empty> 
                          <img src="<?php echo SYS_FRONT_STYLE_PATH ?>images/trash.gif" width="15" height="17" border="0">清空购物车</a></td>
                  <td align="right"><input name="s1" type="submit" id="s1" value="下一步" /></td>
                </tr>
                
              </table>
 <?php endif ?>
            </td>
          </tr>
        
	</table>
	</form>