|
|
|
noname / 2000-08-30 / ¿ÀÈÄ 7:40:41 / 211.59.68.244
Á¶È¸¼ö : 132
|
[Áú¹®] ºÎŹµå¸³´Ï´Ù.
|
¿¡·¯¸Þ½ÃÁö....
Microsoft VBScript ·±Å¸ÀÓ ¿À·ù error '800a000d'
Çü½ÄÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù: 'Basket'
/hosteng/shopping/shopping.asp, line 90
--------------------------------------------------
ÀÌ ºÎ¹®ÀÌ ¼Ò½ºÀÔ´Ï´Ù.
Á» ºÎŹµå¸³´Ï´Ù.
<%@ LANGUAGE="VBSCRIPT" %>
<% response.buffer= true%>
»óÇ° ÁÖ¹® »ó¼¼Á¤º¸
<%
Session("iSubTotal") = 0
iCount = Session("ItemCount")
Basket = Session("MyBasket")
goodscode = request("goodscode")
If Request("order") = "ok" Then
'°í°´ÀÌ ¼±ÅÃÇÑ Á¦Ç°ÀÇ Å¸ÀÔÀ» µ¥ÀÌÅͺ£À̽º·Î Àü´ÞÇÏ¿© ÇØ´ç Á¦Ç°¸¸À» °¡Á®¿Â´Ù.
fr = Request("fr")
kind = Request("kind")
If kind = "" Then
kind = "00"
End If
'Response.write "==>" &fr
SQL = "SELECT HG_COMPANY,HF_FIRSTCODE,HG_STANDARD,HS_SECONDCODE,HT_THIRDCODE,HG_KIND,HG_NAME,HG_PRICE,HG_SEQ,HG_UNIT FROM HOST_FIRST,HOST_SECOND,HOST_THIRD,HOST_GOODS"
SQL = SQL &" WHERE HG_FIRSTCODE = '"& Request("firstcode") &"' AND HG_FIRSTCODE = HF_FIRSTCODE AND HF_FIRSTCODE = HS_FIRSTCODE AND HS_FIRSTCODE = HT_FIRSTCODE "
SQL = SQL &" AND HG_SECONDCODE = '"& Request("secondcode") &"' AND HG_SECONDCODE = HS_SECONDCODE AND HS_SECONDCODE = HT_SECONDCODE AND HT_SECONDCODE = HG_SECONDCODE"
SQL = SQL &" AND HG_THIRDCODE = '"& Request("thirdcode") &"' AND HG_THIRDCODE = HT_THIRDCODE"
SQL = SQL &" AND HG_KIND = '"& kind &"'"
SQL = SQL &" AND HG_GOODSCODE = '"& goodscode &"'"
' Response.write SQL
Set RS = DbCon.Execute(SQL)
'°¢ ¹è¿¿¡ Á¦Ç°À» Á¤º¸¸¦ ³Ö´Â´Ù.
iCount = iCount + 1
Session("ItemCount") = iCount
If Not IsEmpty(RS) Then
response.write(Basket(constcompany,iCount))
Basket(constcompany,iCount) = RS("HG_COMPANY")
Basket(constfirstcode,iCount) = RS("HF_FIRSTCODE")
Basket(conststandard,iCount) = RS("HG_STANDARD")
Basket(constsecondcode,iCount) = RS("HS_SECONDCODE")
Basket(constthirdcode,iCount) = RS("HT_THIRDCODE")
Basket(constkind,iCount) = RS("HG_KIND")
Basket(constno,iCount) = goodscode
goodsname = RS("HG_NAME")
If RS("HG_KIND") <> "00" Then
KINDSQL = "SELECT HD_KINDNAME FROM HOST_KIND WHERE HD_FIRSTCODE = '"& RS("HF_FIRSTCODE") &"' AND HD_SECONDCODE = '"& RS("HS_SECONDCODE") &"' AND HD_THIRDCODE = '"& RS("HT_THIRDCODE") &"' AND HD_KIND = '"& RS("HG_KIND") &"'"
'Response.write kindsql
Set kind = DbCon.Execute(KINDSQL)
kindname = kind(0)
kind.Close
Set kind = Nothing
goodsname = RS("HG_name")&"("& kindname &")"
End If
Basket(constName,iCount) = goodsname
Basket(constQuantity,iCount) = Request("howmany"& fr &"")
Basket(constUnitPrice,iCount) = RS("HG_PRICE")
Basket(constseq,iCount) = RS("HG_SEQ")
Basket(constunit,iCount) = RS("HG_UNIT")
Session("MyBasket") = Basket
End If
RS.Close
DbCon.Close
End If
If Request("del") = "ok" Then 'ÁÖ¹®Áß ÀϺΠ»èÁ¦.
ReDim tmpBasket(50,30)
j = 0
For i = 1 to iCount
If (i <> int(goodscode)) Then
j = j + 1
For n = 1 to 30
tmpBasket(n,j) = Basket(n,i)
Next
End If
Next
Session("MyBasket") = tmpBasket
Basket = Session("MyBasket")
Session("ItemCount") = j
iCount = j
ElseIf Request("Action") = "°è»êÇϱâ" Then 'ÁÖ¹®Çϱâ
Response.Redirect "shoppinglogin.asp"
ElseIf Request("Action") = "¼öÁ¤" Then '´Ù½Ã°è»ê
If iCount = 1 Then
If asc(left(Request("Quantity"& 1),1)) > asc(9) Then
tcount = 100
Else
tcount = Round(Request("Quantity" & 1),0)
If tcount = 0 Then
tcount = 1
End If
End If
Basket(constQuantity,1) = tcount
Session("MyBasket") = Basket
Else
For i = 1 to iCount
If asc(left(Request("Quantity"& i),1)) > asc(9) Then
tcount = 100
Else
tcount = Round(Request("Quantity" & i),0)
If tcount = 0 Then
tcount = 1
End If
End If
Basket(constQuantity,i) = tcount
Session("MyBasket") = Basket
Next
End If
ElseIf Request("Action") = "ÁÖ¹®Ãë¼Ò" Then 'Àüü ÁÖ¹®Ãë¼Ò
file= Request("file")
iCount = 0
Session("ItemCount") = iCount
If file = "" Then
Response.Redirect "../index_body.asp"
Else
Response.Redirect ""& file &""
End If
End If
If session("ItemCount") = "0" Then
Response.Write(" ")
End If
%>
<%=session("id") %>ȸ¿ø´ÔÀÇ Shopping Cart ³»¿ëÀº ¾Æ·¡¿Í °°½À´Ï´Ù.
|
|
|
|
|