%@ LANGUAGE="VBSCRIPT" %> <%Response.Buffer=true%> <% Dim CommandText,ConnecObj Dim M_let,M_cont_id,M_coun_id,M_stat_id,M_city_id,M_cate_id,M_user_id,DefCurr,M_Selected_id(100,2),M_cPage Dim M_arrLimit If Session("shopCartItems")="" then Session("shopCartItems")=0 ReDim Preserve Dummy_ItemNos(0),Dummy_ItemQtys(0) Dummy_ItemNos(0) = "" Dummy_ItemQtys(0) = 0 Session("ItemNoArray") = Dummy_ItemNos Session("ItemQtyArray")= Dummy_ItemQtys End if Set ConnecObj=Server.CreateObject("ADODB.Connection") ConnecObj.Open "orientaljewels","plunia","PL765$" If Session("cont_id")="" then Session("cont_id")=8 Session("coun_id")=0 Session("stat_id")=0 Session("city_id")=0 End if M_cate_id=Request.QueryString("cate_id") M_cPage=Request.QueryString("cPage") If (M_cPage="") then M_cPage=1 rowCount = 0 End if %>
|
ORIENTAL JEWELS INC. 301 EAST 47th Street #14A NEW YORK, N.Y.-10017 TELEPHONE : 212-486-0423 FAX: 212-759-4434 |
<%
If Session("user_id")="" then%>
Action4bid - User LoginInvalid access - Please use login box to access your INBOX. Request through entering proper user ID and password is allowed ONLY. <% Else CommandText="Select * from buyerTB where UPPER(user_id) IN (Select UPPER(user_id) from sellerTB where cate_id=" & M_cate_id & ")" Set RS_seller = ConnecObj.Execute(CommandText,RecordsAffected,adCmdText) prodStr="" bktoStr="" postStr="" i=0 M_arrLimit=0 WHILE (NOT RS_seller.EOF) If (Request.QueryString(RS_seller("user_id"))<>"") then i=i+1 M_arrLimit = M_arrLimit + 1 M_Selected_id(i,1)=RS_seller("user_id") M_Selected_id(i,2)=Request.QueryString(RS_seller("user_id")) '*******bktoStr used to send parameter with bkto*********** bktoStr = bktoStr & "&" & M_Selected_id(i,1) & "=" & M_Selected_id(i,2) '********************************************************** '*******Making selected sellers posting string *********** postStr = postStr & "" '********************************************************** '******* string formation for searching product/services for selected sellers*********** prodStr = prodStr & " OR UPPER(user_id)='" & UCASE(M_Selected_id(i,1)) & "'" '*************************************************************************************** End if RS_seller.MoveNext WEND '***************Getting all the items which are ordered and their respective quantities******* '*******1. Getting posted items **************** CommandText = "Select * from storeTB where user_id='dummy' " & prodStr & " ORDER BY user_id" SET RS_prods = Server.CreateObject("ADODB.Recordset") RS_prods.CursorType = adOpenStatic RS_prods.PageSize = 20 RS_prods.Open CommandText,ConnecObj M_arrLimit = UBOUND(Session("ItemNoArray"),1) '****Maximum Items selected '*****Getting latest collection of items ****** AllItemNos = Session("ItemNoArray") AllItemQtys = Session("ItemQtyArray") '*********************************************** '*********End************************************** '*******2. Getting posted Only Items details ****** '*******Making Query String****** prodSelectedQry="" For i=1 to UBOUND(AllItemNos,1) prodSelectedQry = prodSelectedQry & " OR item_id=" & cSTR(AllItemNos(i)) NEXT '******************************** CommandText = "Select * from storeTB where item_id=-1 " & prodSelectedQry & " ORDER BY currency" SET RS_selectedProds = Server.CreateObject("ADODB.Recordset") RS_selectedProds.CursorType = adOpenStatic RS_selectedProds.PageSize = 20 RS_selectedProds.Open CommandText,ConnecObj '********End*************************************** '********************************************************************************************* M_cont_id=Session("cont_id") M_coun_id=Session("coun_id") M_stat_id=Session("stat_id") M_city_id=Session("city_id") M_user_id=Session("user_id") If (M_user_id="") then Response.ReDirect "intm_login.asp?bkto=startshopping.asp?cate_id=" & M_cate_id & bktoStr Else CommandText="Select * from buyerTB where user_id='" & TRIM(M_user_id) & "'" Set RS_user = ConnecObj.Execute (CommandText,RecordsAffected,adCmdText) End if LocStr="" CommandText="Select cont_name from continTB where cont_id=" & M_cont_id Set RS_cont = Server.CreateObject("ADODB.Recordset") RS_cont.Open CommandText, ConnecObj If (NOT RS_cont.EOF) then LocStr=RS_cont("cont_name") CommandText="Select * from countrTB where coun_id=" & M_coun_id & " AND cont_id=" & M_cont_id Set RS_coun = Server.CreateObject("ADODB.Recordset") RS_coun.Open CommandText, ConnecObj If (NOT RS_coun.EOF) then LocStr = LocStr & " - " & RS_coun("coun_name") DefCurr = RS_coun("currency") CommandText="Select stat_name from stateTB where stat_id=" & M_stat_id & " AND coun_id=" & M_coun_id Set RS_stat = Server.CreateObject("ADODB.Recordset") RS_stat.Open CommandText, ConnecObj If (NOT RS_stat.EOF) then LocStr = LocStr & " - " & RS_stat("stat_name") CommandText="Select city_name from cityTB where city_id=" & M_city_id & " AND stat_id=" & M_stat_id & " AND coun_id=" & M_coun_id Set RS_city = Server.CreateObject("ADODB.Recordset") RS_city.Open CommandText, ConnecObj If (NOT RS_city.EOF) then LocStr = LocStr & " - " & RS_city("city_name") End if End if End if End if CommandText = "Select * from categoTB where cate_id=" & cINT(M_cate_id) Set RS_cate = ConnecObj.Execute(CommandText,RecoredsAffected,adCmdText) %>
| ||||||||
|