<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/shop.asp" -->
<%
Dim R1
Dim R1_cmd
Dim R1_numRows

Set R1_cmd = Server.CreateObject ("ADODB.Command")
R1_cmd.ActiveConnection = MM_shop_STRING
R1_cmd.CommandText = "SELECT * FROM class ORDER BY fenleiID DESC" 
R1_cmd.Prepared = true

Set R1 = R1_cmd.Execute
R1_numRows = 0
%>
<%
Dim R2__MMColParam
R2__MMColParam = "1"
If (Request.QueryString("shpID") <> "") Then 
  R2__MMColParam = Request.QueryString("shpID")
End If
%>
<%
Dim R2
Dim R2_cmd
Dim R2_numRows

Set R2_cmd = Server.CreateObject ("ADODB.Command")
R2_cmd.ActiveConnection = MM_shop_STRING
R2_cmd.CommandText = "SELECT * FROM Products WHERE shpID = ?" 
R2_cmd.Prepared = true
R2_cmd.Parameters.Append R2_cmd.CreateParameter("param1", 5, 1, -1, R2__MMColParam) ' adDouble

Set R2 = R2_cmd.Execute
R2_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 15
Repeat1__index = 0
R1_numRows = R1_numRows + Repeat1__numRows
%>
<%
Dim MM_paramName 
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
  MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If

MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
  End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
  End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then 
  MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "")  Then
  MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
  MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<html>
<head>
<title>index</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
#__01 tr td table tr td {
}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices (index.psd) -->
<table id="__01" width="965" height="1162" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="6" rowspan="2"><img src="images/index_01.jpg" width="276" height="74" alt=""></td>
    <td colspan="4" rowspan="2"><img src="images/index_02.jpg" width="183" height="74" alt=""></td>
    <td colspan="2"><img src="images/index_03.jpg" width="80" height="33" alt=""></td>
    <td colspan="3"><img src="images/index_04.jpg" width="70" height="33" alt=""></td>
    <td><img src="images/index_05.jpg" width="68" height="33" alt=""></td>
    <td colspan="2"><img src="images/index_06.jpg" width="70" height="33" alt=""></td>
    <td colspan="3"><img src="images/index_07.jpg" width="69" height="33" alt=""></td>
    <td><img src="images/index_08.jpg" width="69" height="33" alt=""></td>
    <td colspan="2"><img src="images/index_09.jpg" width="79" height="33" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="33" alt=""></td>
  </tr>
  <tr>
    <td height="41"><img src="images/index_10.jpg" width="39" height="41" alt=""></td>
    <td><img src="images/index_11.jpg" width="41" height="41" alt=""></td>
    <td colspan="12"><img src="images/index_12.jpg" width="425" height="41" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="41" alt=""></td>
  </tr>
  <tr>
    <td height="37"><img src="images/index_13.jpg" width="65" height="37" alt=""></td>
    <td><img src="images/index_14.jpg" width="87" height="37" alt=""></td>
    <td colspan="3"><img src="images/index_15.jpg" width="87" height="37" alt=""></td>
    <td colspan="2"><img src="images/index_16.jpg" width="88" height="37" alt=""></td>
    <td colspan="2"><img src="images/index_17.jpg" width="86" height="37" alt=""></td>
    <td colspan="2"><img src="images/index_18.jpg" width="85" height="37" alt=""></td>
    <td colspan="3"><img src="images/index_19.jpg" width="93" height="37" alt=""></td>
    <td colspan="3"><img src="images/index_20.jpg" width="114" height="37" alt=""></td>
    <td colspan="7"><img src="images/index_21.jpg" width="259" height="37" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="37" alt=""></td>
  </tr>
  <tr>
    <td colspan="20"><img src="images/index_22.jpg" width="801" height="27" alt=""></td>
    <td colspan="4"><img src="images/index_23.jpg" width="163" height="27" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="27" alt=""></td>
  </tr>
  <tr>
    <td colspan="3" rowspan="2" valign="top"><img src="images/index_24.jpg" width="194" height="80" alt=""></td>
    <td colspan="16" valign="top"><img src="images/index_25.jpg" width="565" height="61" alt=""></td>
    <td colspan="5" rowspan="3" valign="top"><img src="images/index_26.jpg" width="205" height="94" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="61" alt=""></td>
  </tr>
  <tr>
    <td colspan="5" rowspan="6"><img src="images/index_27.jpg" width="199" height="225" alt=""></td>
    <td colspan="5" rowspan="6"><img src="images/index_28.jpg" width="183" height="225" alt=""></td>
    <td colspan="6" rowspan="6"><img src="images/index_29.jpg" width="183" height="225" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="19" alt=""></td>
  </tr>
  <tr>
    <td colspan="3" rowspan="2"><img src="images/index_30.jpg" width="194" height="134" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="14" alt=""></td>
  </tr>
  <tr>
    <td colspan="5" rowspan="6"><img src="images/index_31.jpg" width="205" height="215" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="120" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_32.jpg" width="194" height="26" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="26" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_33.jpg" width="194" height="28" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="28" alt=""></td>
  </tr>
  <tr>
    <td colspan="3" rowspan="2"><img src="images/index_34.jpg" width="194" height="31" alt=""></td>
    <td height="18"><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="18" alt=""></td>
  </tr>
  <tr>
    <td colspan="16" rowspan="4"><img src="images/index_35.jpg" width="565" height="87" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="13" alt=""></td>
  </tr>
  <tr>
    <td colspan="3" rowspan="2"><img src="images/index_36.jpg" width="194" height="40" alt=""></td>
    <td height="10"><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="10" alt=""></td>
  </tr>
  <tr>
    <td colspan="5" rowspan="2"><img src="images/index_37.jpg" width="205" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="30" alt=""></td>
  </tr>
  <tr>
    <td height="34" colspan="3"><img src="images/index_38.jpg" width="194" height="34" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="34" alt=""></td>
  </tr>
  <tr>
    <td colspan="3" rowspan="2"><img src="images/index_39.jpg" width="194" height="48" alt=""></td>
    <td colspan="21"><img src="images/index_40.jpg" width="770" height="14" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="14" alt=""></td>
  </tr>
  <tr>
    <td rowspan="12"><img src="images/index_41.jpg" width="19" height="235" alt=""></td>
    <td colspan="19" rowspan="12" valign="top"><table width="95%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="25%" rowspan="3"><img src="<%=(R2.Fields.Item("image").Value)%>" width="150" height="150" hspace="15" vspace="15"></td>
        <td width="75%" height="13"><br>
          <%=(R2.Fields.Item("shpname").Value)%></td>
      </tr>
      <tr>
        <td height="34">市场价：<%=(R2.Fields.Item("shichangjia").Value)%></td>
      </tr>
      <tr>
        <td valign="top">会员价：：<%=(R2.Fields.Item("huiyuanjia").Value)%></td>
      </tr>
      <tr>
        <td colspan="2">商品价格：<%=(R2.Fields.Item("content").Value)%></td>
        </tr>
    </table></td>
    <td rowspan="12"><img src="images/index_43.jpg" width="23" height="338" alt=""></td>
    <td height="34"><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="34" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_44.jpg" width="194" height="27" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="27" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_45.jpg" width="194" height="27" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="27" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_46.jpg" width="194" height="27" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="27" alt=""></td>
  </tr>
  <tr>
    <td height="30" colspan="3"><img src="images/index_47.jpg" width="194" height="30" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="30" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_48.jpg" width="194" height="53" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="53" alt=""></td>
  </tr>
  <tr>
    <td height="60" colspan="3"><img src="images/index_49.jpg" width="194" height="60" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="60" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_50.jpg" width="194" height="24" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="24" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_51.jpg" width="194" height="29" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="29" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_52.jpg" width="194" height="38" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="1" height="38" alt=""></td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/index_53.jpg" width="194" height="50" alt=""></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><% 
While ((Repeat1__numRows <> 0) AND (NOT R1.EOF)) 
%>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><A HREF="zhanshi.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "fenleiID=" & R1.Fields.Item("fenleiID").Value %>"><%=(R1.Fields.Item("fenleiname").Value)%></A></td>
        </tr>
      </table>
      <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  R1.MoveNext()
Wend
%></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td height="2"><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="65" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="87" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="42" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="19" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="26" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="37" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="51" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="66" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="20" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="46" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="39" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="41" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="37" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="15" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="18" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="68" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="28" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="42" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="12" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="42" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="15" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="69" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="50" height="1" alt=""></td>
    <td><img src="images/&#x5206;&#x9694;&#x7b26;.gif" width="29" height="1" alt=""></td>
    <td></td>
  </tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>
<%
R1.Close()
Set R1 = Nothing
%>
<%
R2.Close()
Set R2 = Nothing
%>
