<% DBConnect() '預設值 dataFilter = "Qty-OrderQty>0 and Status=0" 'Item.table %> ::: SHK針織帽工場 :::
 
 
<% ItemNo = Request.QueryString("ItemNo") '顯示產品詳細資訊 If ItemNo <> "" Then Set product = xCnn.Execute("SELECT * FROM Item WHERE " & dataFilter & " and ItemNo='" & ItemNo & "'") If product.EOF Then response.write("無此產品或已無庫存!") Else %>
" onSubmit="return checkAdd(this)"> "> ">
<% If Not IsNull(product("Pic1")) Then %> "> <% End If %> <% If IsNull(product("PriceOri")) Or product("PriceOri") = 0 Then %> <% Else %> <% End If %>
編號:

<% response.write(product("ItemNo")) %>

品名:

<% response.write(product("ItemName")) %>

價格:

<% response.write(product("Price")) %>

原價:

<% response.write(product("PriceOri")) %> 元

特價:

<% response.write(product("Price")) %> 元

庫存:

<% response.write(product("Qty")-product("OrderQty")) %>

數量:



   
<% If Not IsNull(product("Pic2")) Then %> "> <% End If %>
<% response.write(product("Desc1")) %>
   
<% If Not IsNull(product("Pic3")) Then %> "> <% End If %>
<% response.write(product("Desc2")) %>
<% End If %>

回上頁

<% Else '顯示產品列表 'category cat1 = Request.QueryString("cat1") cat2 = Request.QueryString("cat2") If cat1 <> "" Then dataFilter = dataFilter + " AND category1='" & cat1 & "'" ElseIf cat2 <> "" Then dataFilter = dataFilter + " AND category2='" & cat2 & "'" Else dataFilter = dataFilter + " AND category2='1'" '預設值: 當季商品 cat2 = 1 End If '目前頁數 currentPage = Request.QueryString("page") currentPage = IIf(currentPage = "", defaultPage, currentPage) * 1 '計算總頁數、筆數 rowCount = countRow("SELECT Count(*) as cnt FROM Item WHERE " & dataFilter) pageCount = int(rowCount / itemPerPage) + IIf((rowCount mod itemPerPage) <> 0, 1, 0) currentPage = IIf((currentPage>pageCount or currentPage<0), defaultPage, currentPage) rowStart = itemPerPage * (currentPage - 1) + 1 rowEnd = IIf((rowStart + itemPerPage) > rowCount, rowCount, (rowStart + itemPerPage - 1)) If rowCount = 0 Then %>


目前無此類別的產品 <% Else '取得產品資料 Set productList = xCnn.Execute("SELECT TOP " & rowEnd & " * FROM Item WHERE " & dataFilter & " ORDER BY ID DESC") count = 1 While Not productList.EOF and count <= rowEnd If count >= rowStart and count <= rowEnd Then %>
" onSubmit="return checkAdd(this)"> "> ">
">" hspace="10" vspace="4" border="0"> 編號: <% response.write(productList("ItemNo")) %>
品名: <% response.write(productList("ItemName")) %>


">詳細規格介紹

<% If IsNull(productList("PriceOri")) Or productList("PriceOri") = 0 Then %> 價格:<% response.write(productList("Price")) %>
<% Else %> 原價:<% response.write(productList("PriceOri")) %> 元
特價:<% response.write(productList("Price")) %> 元
<% End If %> 庫存: <% response.write(productList("Qty")-productList("OrderQty")) %>


<% End If count = count + 1 productList.MoveNext WEnd %>
<% If currentPage>1 Then %> <% End If %>   <% If currentPage>1 Then %> <% End If %> <% If currentPage>1 Then %> <% End If %>   <% If currentPage>1 Then %> <% End If %> 第 <% response.write(currentPage) %> / <% response.write(pageCount) %> 頁  <% If currentPage <% End If %>   <% If currentPage <% End If %> <% If currentPage <% End If %> <% If currentPage <% End If %> <% End If End If %>
 

  【網站經營】   【直營工廠】
蒼穹設計工作室
© 2004 SKY DESIGN STUDIO ALL RIGHTS RESERVED
TEL : (02) 2370-8931 FAX : (02)2370-8932
旭輝針織股份有限公司
桃園縣平鎮市南勢里1鄰快速路二段829號
TEL : (03) 450-7008 FAX : (03) 460-5810