+ -
当前位置:首页 → 问答吧 → 购物车取消了原来模版的session改建立数据库,结果网页显示不完全!

购物车取消了原来模版的session改建立数据库,结果网页显示不完全!

时间:2011-10-27

来源:互联网

cart.html:

{[Execute(include(about_us &"templates/"& skin_folder&"/style/index_top.html"))]}
<form id="formcart" name="formcart" method="post" action="cart.asp">
<div id="cart">
  <div style="background-color:#FFFFFF; padding:10px;" align="center">
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#e7e7e7">
<tr>
<td width="12%" align="center" bgcolor="#eeeeee">商品编号/ID </td>
  <td width="17%" align="center" bgcolor="#eeeeee">商品名称/Product Name</td>
  <td width="9%" align="center" bgcolor="#eeeeee">颜色/Color</td>
  <td width="8%" align="center" bgcolor="#eeeeee">尺码/Size</td>
  <td width="14%" align="center" bgcolor="#eeeeee">购买数量/Quantity</td>
  <td width="9%" align="center" bgcolor="#eeeeee">单价/Price</td>
<td width="15%" align="center" bgcolor="#eeeeee">单个总价/Item Price</td>
  <td width="16%" align="center" bgcolor="#eeeeee">操作/Operation</td>
</tr>

<!--{['将编号和数量和name值分离,并赋值]}
<!--{[account = 0]}-->
<!--{[intn = 1]}-->
<!--{[dim buynum,quatity]}-->
{[cartDetail()]}
{['修改购物车商品数量程序]}
{[changeNum()]}
<!--{[clearCart(cart)]}-->
<!-- <script language= "jscript " src= "../include/item_cart.asp "> </script>-->
<tr>
</table>
<div align="right" class="font1" ><b>金额总计/Total Sum:¥{$account}</b></div>
<div align="center" style="margin:20px;">
<input name="button1" type="button" value="&lt;&lt; 继续购物/Continue Shopping" class="button" onClick="location.href='../index.asp'"/ >
<input name="button2" type="button" class="button" onclick="location.href='order.asp'" value="结算中心/Settle Accounts &gt;&gt;" />
<input name="changenum" type="submit" class="button" value="修改数量/Edit Quantity"/>
  <input name="clear_all" type="button" class="button" value="清空购物车/Empty The Cart" onclick="clearall();" />
  <input type="hidden" name="edit" value="ok" />
</div>
<div align="left">
<table width="100%" border="0">
  <tr>
  <td>▲如果您想继续购物,请点继续购物,最低购物要求为 ¥0。/ If you want to continue shopping, click the button and the minimum shopping demand is ¥0</td>
  </tr>
  <tr>
  <td bgcolor="#F3F3F3">▲如果您想更新已在购物车内的产品数量,请先修改,然后点修改数量。/ Edit the quantity first, then click the &quot;Edit Quantity&quot;button.</td>
  </tr>
  <tr>
  <td>▲如果您想删除已订购在购物车中的产品,请点删除。/ If you want to delet the products in your cart, click the"delet"</td>
  </tr>
  <tr>
  <td bgcolor="#F3F3F3">▲如果您满意您所购买的产品,请点选去结算中心。/ If you are satisfied with your shopping, click "Settle Accounts"</td>
  </tr>
</table>
</div>
</div>
</div>
</form>
{[Execute(include(about_us &"templates/"& skin_folder&"/style/footer.html"))]}

作者: yyisong998   发布时间: 2011-10-27

代码好多,看上去头晕
根据标题的描述好像是网站的某些地方需要那个session才可以正常显示

作者: cweisledxianzai   发布时间: 2011-11-03

没明白你说的"取消了原来模版的session改建立数据库"是什么意思。
修改了信息,检查相关程序调用修改的参数时是否同步修改。

作者: zhpfaff   发布时间: 2011-11-03

热门下载

更多