<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/Beauty.asp" -->
<%
Dim rsAllCatalogs
Dim rsAllCatalogs_cmd
Dim rsAllCatalogs_numRows

Set rsAllCatalogs_cmd = Server.CreateObject ("ADODB.Command")
rsAllCatalogs_cmd.ActiveConnection = MM_Beauty_STRING
rsAllCatalogs_cmd.CommandText = "SELECT * FROM b_Catalogs ORDER BY CatalogID ASC" 
rsAllCatalogs_cmd.Prepared = true

Set rsAllCatalogs = rsAllCatalogs_cmd.Execute
rsAllCatalogs_numRows = 0
%>
<%
Dim rsAllProduct
Dim rsAllProduct_cmd
Dim rsAllProduct_numRows

Set rsAllProduct_cmd = Server.CreateObject ("ADODB.Command")
rsAllProduct_cmd.ActiveConnection = MM_Beauty_STRING
rsAllProduct_cmd.CommandText = "SELECT * FROM b_Product ORDER BY CatalogID ASC" 
rsAllProduct_cmd.Prepared = true

Set rsAllProduct = rsAllProduct_cmd.Execute
rsAllProduct_numRows = 0
%>
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows

Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_Beauty_STRING
Recordset1_cmd.CommandText = "SELECT * FROM b_Catalogs" 
Recordset1_cmd.Prepared = true

Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 10
Repeat1__index = 0
rsAllCatalogs_numRows = rsAllCatalogs_numRows + Repeat1__numRows
%>
<%
Dim Repeat2__numRows
Dim Repeat2__index

Repeat2__numRows = 10
Repeat2__index = 0
rsAllCatalogs_numRows = rsAllCatalogs_numRows + Repeat2__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
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE1 {
	font-family: "黑体";
	font-size: 14px;
	color: #FFFFFF;
}
.STYLE3 {
	font-size: 12px;
	color: #7C327F;
	font-family: "宋体";
}
.STYLE4 {
	color: #5A105D;
	font-size: 18px;
	font-family: "黑体";
}
.biao {
	background-repeat: no-repeat;
}
.STYLE9 {font-family: "黑体"; font-size: 12px; color: #FFFFFF; }
.STYLE10 {font-family: "黑体"; font-size: 12px; color: #000000; }
#biao01{
    border-bottom:1px solid #999999;}
.biao02{
    border:1px solid #999999;
	}
.STYLE11 {
	color: #78011F;
	font-family: "宋体";
	font-size: 12px;
}
.STYLE12 {
	color: #CC0000;
	font-size: 12px;
	font-family: "宋体";
}
.STYLE13 {
	font-family: "黑体";
	font-size: 14px;
	color: #5A105D;
}
-->
</style>
</head>

<body>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="300"><img src="images/logo.jpg" width="299" height="80" /></td>
    <td width="680"><img src="images/daohang.gif" width="680" height="35" /></td>
  </tr>
</table>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/banner.jpg" width="980" height="214" /></td>
  </tr>
</table>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="224" valign="top"><table width="224" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="224" align="left" valign="top"><table width="224" border="0" align="center" cellpadding="0" cellspacing="5">
          <tr>
            <td height="147" align="center" background="images/huiyuan.jpg"><table width="213" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="40" colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td height="25" colspan="2">　<span class="STYLE1">用户名：</span>
                  <label>
                  <input name="textfield" type="text" id="textfield" size="10" maxlength="20" />
                  </label></td>
              </tr>
              <tr>
                <td height="25" colspan="2">　<span class="STYLE1">密　码：</span>
                  <input name="textfield2" type="text" id="textfield2" size="10" maxlength="20" /></td>
              </tr>
              <tr>
                <td width="107" height="30">　<img src="images/denglu.jpg" width="66" height="19" /></td>
                <td width="108">　<img src="images/qingchu.jpg" width="66" height="19" /></td>
              </tr>
              <tr>
                <td height="25" colspan="2" align="center"><span class="STYLE3">新用户注册　 忘记密码？</span></td>
              </tr>
            </table></td>
          </tr>
        </table>
          <table width="224" border="0" align="center" cellpadding="0" cellspacing="5">
            <tr>
              <td valign="top" bgcolor="#F6EDEF"><table width="213" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="35" valign="middle" background="images/tiao_bg.jpg">　　　<span class="STYLE4">商品分类</span></td>
                </tr>
                <% 
While ((Repeat1__numRows <> 0) AND (NOT rsAllCatalogs.EOF)) 
%>
                  <tr>
                    <td height="25" align="center" valign="middle"><span class="STYLE13"> <a href="products_list.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "CatalogID=" & rsAllCatalogs.Fields.Item("CatalogID").Value %>"><%=(rsAllCatalogs.Fields.Item("CatalogName").Value)%></a> </span></td>
                  </tr>
                  <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  rsAllCatalogs.MoveNext()
Wend
%>
              </table></td>
            </tr>
          </table>
          <table width="224" border="0" align="center" cellpadding="0" cellspacing="5">
            <tr>
              <td bgcolor="#F6EDEF"><table width="213" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="35" background="images/tiao_bg.jpg">　　　<span class="STYLE4">产品查询    </span></td>
                </tr>
                <tr>
                  <td height="25">　　
                    <label>
                    <select name="select" id="select">
                      <option>产品名称</option>
                    </select>
                    </label></td>
                </tr>
                <tr>
                  <td height="25">　　
                    <label>
                    <select name="select2" id="select2">
                      <option>所有大类　　　　　　</option>
                    </select>
                    </label></td>
                </tr>
                <tr>
                  <td height="25">　　
                    <select name="select3" id="select3">
                      <option>所有小类</option>
                    </select></td>
                </tr>
                <tr>
                  <td height="25">　　                    
                    <select name="select4" id="select4">
                      <option selected="selected">关键字</option>
                        </select>　
                    　<img src="images/search.gif" width="49" height="15" /></td>
                </tr>
              </table></td>
            </tr>
          </table>
          <table width="224" border="0" align="center" cellpadding="0" cellspacing="5">
            <tr>
              <td bgcolor="#F6EDEF"><table width="213" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="35" background="images/tiao_bg.jpg">　　　</td>
                </tr>
                <tr>
                  <td height="25" align="center" valign="middle"><img src="images/li_01.gif" width="7" height="7" />　　   0386-8204574</td>
                </tr>
                <tr>
                  <td height="25" align="center" valign="middle"><img src="images/li_01.gif" alt="" width="7" height="7" />　　   0386-8204576</td>
                </tr>
                <tr>
                  <td height="25" align="center" valign="middle"><img src="images/li_01.gif" alt="" width="7" height="7" />　　   0386-8204578<br /></td>
                </tr>
                <tr>
                  <td height="25" align="center" valign="middle">&nbsp;</td>
                </tr>
              </table></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
    <td width="755" align="left" valign="top"><table width="746" border="0" align="left" cellpadding="0" cellspacing="0">
      <tr>
        <td width="753" height="30" valign="bottom"><table width="746" border="0" cellpadding="0" cellspacing="0" id="biao01">
          <tr>
            <td height="30" valign="middle"><img src="images/zuixinSP-01.gif" width="190" height="17" /></td>
            <td width="84" height="30" valign="middle"><img src="images/more.gif" width="35" height="11" /></td>
          </tr>
        </table></td>
        </tr>
      
    </table>
    <br />
    <br />
    <% 
While ((Repeat2__numRows <> 0) AND (NOT rsAllCatalogs.EOF)) 
%>
      <table width="180" border="0" cellspacing="5" cellpadding="0">
          <tr>
            <td width="180" height="152" class="biao02"><img src="<%=(rsAllProduct.Fields.Item("img").Value)%>" /></td>
          </tr>
          <tr>
            <td><table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="30" colspan="2"><span class="STYLE11"><%=(rsAllProduct.Fields.Item("productName").Value)%></span></td>
                </tr>
                <tr>
                  <td height="20" colspan="2"><span class="STYLE12">市场价：<%=(rsAllProduct.Fields.Item("MarketPrice").Value)%></span></td>
                </tr>
                <tr>
                  <td height="20" colspan="2" class="STYLE12">会员价：<%=(rsAllProduct.Fields.Item("MemberPrice").Value)%> </td>
                </tr>
                <tr>
                  <td width="90" align="left" valign="middle"><img src="images/goumai-01.gif" width="52" height="18" /></td>
                  <td width="90" height="20" align="left"><img src="images/ZFB-01.gif" width="55" height="18" /></td>
                </tr>
            </table></td>
          </tr>
          </table>
      <% 
  Repeat2__index=Repeat2__index+1
  Repeat2__numRows=Repeat2__numRows-1
  rsAllCatalogs.MoveNext()
Wend
%></td>
  </tr>
</table>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="135" height="35" bgcolor="#FF86BA">&nbsp; </td>
    <td width="105" bgcolor="#FF86BA"><span class="STYLE9">关于我们　｜</span></td>
    <td width="100" bgcolor="#FF86BA"><span class="STYLE9">会员中心　｜</span></td>
    <td width="100" bgcolor="#FF86BA"><span class="STYLE9">产品中心　｜</span></td>
    <td width="100" bgcolor="#FF86BA"><span class="STYLE9">招商引资　｜</span></td>
    <td width="100" bgcolor="#FF86BA"><span class="STYLE9">联系我们　</span></td>
    <td width="340" bgcolor="#FF86BA">&nbsp;</td>
  </tr>
</table>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="80" align="center" valign="middle" bgcolor="#EAEAEA"><p class="STYLE10">版权所有： | Copyright© 2005 All rights reserved  地址:**********</p>
      <p><span class="STYLE10">电话:**********     　　传真:**********</span><br />
      </p></td>
  </tr>
</table>
</body>
</html>
<%
rsAllCatalogs.Close()
Set rsAllCatalogs = Nothing
%>
<%
rsAllProduct.Close()
Set rsAllProduct = Nothing
%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
