乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      ASP 購物車

       昵稱5422718 2011-01-25
      <%@LANGUAGE="VBScript"%>
      <!--#include file="Connections/conn.asp" -->
      <%
      if not IsObject(session("cart")) then
      Set session("cart")=CreateObject("Scripting.Dictionary")
      end if
      Set cart=session("cart")
      productID=Cstr(request("productID"))
      dim detail(1)
      detail(0)=Int(request("quantity"))
      if request("productID")<>"" then
      if cart.Exists(productID) then
      cart.Remove(productID)
      end if
      cart.add productID,detail
      end if
      keys=cart.keys
      items=cart.items
      set session("cart")=cart
      %>
      <td width="25%" align="center" height="19"><font color="#FFFFFF">商品名稱</font></td>
      <td width="25%" align="center" height="19"><font color="#FFFFFF">購買數(shù)量</font></td>
      <td width="12%" align="center" height="19"><font color="#FFFFFF">更新</font></td>
      <td width="13%" align="center" height="19"><font color="#FFFFFF">刪除</font></td>
      </tr>
      <% For i = 0 To cart.Count -1 %>
      <% Dim list__MMColParam
      list__MMColParam = keys(i) %>
      <% set list = Server.CreateObject("ADODB.Recordset")
      list.ActiveConnection = MM_conn_STRING
      list.Source = "SELECT * FROM pro_table WHERE id = " + Replace(list__MMColParam, "’", "’’") + ""
      list.CursorType = 0
      list.CursorLocation = 2
      list.LockType = 3
      list.Open()
      %>
      <form method="post" action="cart.asp" onSubmit="return checkform(this);"> ’更新產(chǎn)品數(shù)量用
      <tr bgcolor="#ECECFF">
      <td width="25%" align="center" height="1"><a href="detail.asp?productID=<%=keys(i)%>"><font color="#000077" ></font></a><%=(list.Fields.Item("proname").Value)%></td>
      <td width="25%" align="center" height="1">
      <input name="quantity" size=4 class="edit" value="<%=items(i)(0)%>">
      <input type="hidden" name="productID" value="<%=keys(i)%>">
      </td>
      <td width="12%" align="center" height="1">
      <input type="image" border="0" name="imageField" src="images/ref.gif" width="17" height="19">
      </td>
      <td width="13%" align="center" height="1"><a href="delcart.asp?productID=<%=keys(i)%>"><img src="images/del.gif" width="17" height="19" border="0"></a></td>
      </tr>
      </form>
      <%
      list.Close()
      %>
      <% next %>
      <tr >
      <td width="75%" bgcolor="#000000" align="center" height="1" colspan="2">
      <p align="right"><font color="#FFFFFF">總價合計:</font>
      </td>
      <td width="25%" bgcolor="#000000" align="center" height="1" colspan="2"><font color="#FFFFFF">¥<%=price%></font></td>
      </tr>
      </table>
      <p align="center"><b><a href="index.asp">繼續(xù)選購</a> <a href="order.asp">付款</a></b>
      最佳答案
      <form method="post" action="cart.asp" onSubmit="return checkform(this);">
      <input type="image" border="0" name="imageField" src="images/ref.gif" width="17" height="19">
      </form>
      <%
      if not IsObject(session("cart")) then
      Set session("cart")=CreateObject("Scripting.Dictionary")
      end if
      Set cart=session("cart")
      productID=Cstr(request("productID"))
      dim detail(1)
      detail(0)=Int(request("quantity"))
      if request("productID")<>"" then
      if cart.Exists(productID) then
      cart.Remove(productID)
      end if
      cart.add productID,detail
      end if
      keys=cart.keys
      items=cart.items
      set session("cart")=cart
      %>
      這些地方是在更新的,表單里的那個input src 的是提交按鈕
      下面段是在更新數(shù)據(jù)的

        本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多