<table width="100%"  border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td>
        <form name='form1' method='post' >
        <input name="username" type="hidden"  value="<?php echo $rsUser['username'] ;?>">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td>
                <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>
                        </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 
$total_price = 0;
foreach($cartContents as $row):
$total_price += $row['price'] * $row['quantity'];
$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" ><?php echo $row["quantity"];?></td>
                    <td width="80" align="center"><?php echo $row["price"];?></td>
                  </tr>
<?php endforeach; ?>
                 </table>
                      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td>&nbsp;</td>
                        </tr>
                      </table>
                      <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="1" class="tabletbl">
                        <tr> 
                        <td align="right"><a href=cart.php> 
                      <img src="<?php echo SYS_FRONT_STYLE_PATH ?>images/edit-undo.png"  border=0>修改购物车</a></td>
                          <td align="right">总计：<?php echo $total_price ;?>元 
                            <input name="total_price" type="hidden"  value="<?php echo $total_price ;?>"></td>
                        </tr>
                      </table>
                        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr> 
                          <td>&nbsp;</td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table></td>
            </tr>
            <tr> 
              <td align="center">&nbsp; </td>
            </tr>
            <tr> 
              <td align="center"></td>
            </tr>
            <tr> 
              <td align="center">
              <table cellpadding="0" cellspacing="0" width="98%" border="0" >
                <tr><td>
                <table width="98%" border="0" cellpadding="0" cellspacing="0" >
                  <tr>
                    <td width="20%" class="edit_td_txt">支付方式:</td>
                    <td width="80%"  class="edit_td_input"><input name='payment_id' type='radio' value='pay_face' />
                      当面交易&nbsp;
                      <input type='radio' name='payment_id' value='pay_online' />
                      在线支付&nbsp;
                      <input name='payment_id' type='radio' value='pay_bank' checked="checked" />
                      银行转账&nbsp;
                      <input type='radio' name='payment_id' value='pay_post' />
                      邮局汇款&nbsp;</td>
                  </tr>
                  <tr>
                    <td class="edit_td_txt">送货方式:</td>
                    <td class="edit_td_input"><input type='radio' name='delivery_id' value='none' />
                      无&nbsp;
                      <input name='delivery_id' type='radio' value='express_delivery' checked="checked" />
                      快递&nbsp;
                      <input type='radio' name='delivery_id' value='common_post' />
                      平邮&nbsp;
                      <input type='radio' name='delivery_id' value='EMS' />
                      EMS&nbsp;</td>
                  </tr>
                  <tr>
                    <td width="20%" class="edit_td_txt">发票:</td>
                    <td width="80%"  class="edit_td_input"><input type="checkbox" name="is_invoice" class="input_checkbox" value="1" />
                    </td>
                  </tr>
                  <tr>
                    <td class="edit_td_txt">留言:</td>
                    <td  class="edit_td_input">
                        <textarea name="leave_words" class="input_textarea" rows="3" style="width:90%"></textarea>
                    </td>
                  </tr>
                </table>
                </td>
            </tr>
            <tr>
              <td class="edit_subtitle"><b>收货人信息</b></td>
            </tr>
            <tr>
              <td>
                <table cellpadding="0" cellspacing="0" width="100%" border="0" id="area_buyer" >
                    <tr>
                      <td width="20%"  class="edit_td_txt">姓名:</td>

                      <td width="80%"  class="edit_td_input">
                        <input name="realname" type="text" class="input_text" value="<?php echo $rsUser['realname'] ?>">&nbsp;&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="20%"  class="edit_td_txt">地址:</td>
                      <td width="80%"  class="edit_td_input">

                        <input name="address" type="text" class="input_text" value="<?php echo $rsUser['address'] ?>">&nbsp;&nbsp;邮编:&nbsp;&nbsp;<input name="zipcode" type="text" class="input_text" value="<?php echo $rsUser['zipcode'] ?>"> </td>
                    </tr>
                    <tr>
                      <td width="20%"  class="edit_td_txt">电话:</td>
                      <td width="80%"  class="edit_td_input">
                        <input name="tel" type="text" class="input_text" value="<?php echo $rsUser['tel'] ?>"> </td>
                    </tr>
                    <tr>
                      <td width="20%"  class="edit_td_txt">手机:</td>
                      <td width="80%"  class="edit_td_input">
                        <input name="mobile" type="text" class="input_text" value="<?php echo $rsUser['mobile'] ?>"> </td>
                    </tr>
                </table>
                </td>
            </tr>
            <tr>
                <td width="100%"> </td>
            </tr>
        </table>
              </td>
            </tr>
            <tr> 
              <td align="center"> &nbsp; &nbsp;  <table width="92%"  border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr> 
                    <td height="30" align="right"> 
                      <input name="imageField" type="image" src="<?php echo SYS_FRONT_STYLE_PATH ?>images/submit.gif" width="86" height="21" border="0" onClick="this.form.action='cart.php?act=save';this.form.submit()"></td>
                  </tr>
                  <tr> 
                    <td height="30" align="right"></td>
                  </tr>
                </table></td>
            </tr>
          
        </table>
      </form>
      </td>
    </tr>
  </table>