<% strCurrMenu="15424" ThisPage=request.ServerVariables("URL") %> <% strClassName=GetVariable("classname") if strClassName="" then strClassName="所有产品" end if strQuery="" strClass=GetVariable("class") if strClass<>"" then SourCode=conn.execute("Select c_code From web_product_class Where mn_id=" & strCurrMenu & " and id="&strClass)(0) strQuery=strQuery & " And c_code Like '" & SourCode &"%'" end if strKey=GetVariable("key") if strKey<>"" then strQuery=strQuery & " And (p_name Like '%" & strKey & "%' Or p_detail Like '%" & strKey & "%') " strClassName="搜索:" & strKey end if strPrice1=GetVariable("price1") if strPrice1<>"" then strQuery=strQuery & " And p_price>=" & strPrice1 strClassName=strClassName & "  最低价格 " & strPrice1 end if strPrice2=GetVariable("price2") if strPrice2<>"" then strQuery=strQuery & " And p_price<=" & strPrice2 strClassName=strClassName & "  最高价格 " & strPrice1 end if %> <% '读取产品展示的属性,以确定显示那个字段 showClass=GetKey("showClass",WebUserID,"product_" & strCurrMenu ) showPrice=GetKey("showPrice",WebUserID,"product_" & strCurrMenu ) showSize=GetKey("showSize",WebUserID,"product_" & strCurrMenu ) showSymbol=GetKey("showSymbol",WebUserID,"product_" & strCurrMenu ) showFace=GetKey("showFace",WebUserID,"product_" & strCurrMenu ) showShop=GetKey("showShop",WebUserID,"product_" & strCurrMenu ) showDetail=GetKey("showDetail",WebUserID,"product_" & strCurrMenu ) %> 产品展示-嘉光五金厂
 公司简介
 企业文化
 厂房厂貌
 荣誉证书
<% '开始输出分类 strcode="" for i=1 to Len(SourCode) \ 4 strcode=strcode&" or c_code like '"&left(SourCode,i*4)&"____'" next if strcode<>"" then strcode="(1<>1"&strcode&" or Len(c_code)=4)" else strcode=" Len(c_code)=4" end if strSQL="Select * From v_web_product Where mn_id=" & strCurrMenu & strQuery & " Order by p_code,ID Desc" 'response.Write(strsql) Set rs=Server.CreateObject("ADODB.RecordSet") rs.open strSQL,conn,1,1 for i=1 to rs.recordcount Level=(Len(rs("c_code"))/4-1)*3 %> <% rs.movenext next %>
 <% If Len(rs("c_code"))>4 Then Response.Write "├" Response.Write String(Level,"-") %>&mnid=<%=strCurrMenu%>&classname=<%=trim(rs("c_name"))%>"><%=trim(rs("c_name"))%>
 
您的位置: > 产品介绍  >  <%=strClassName%>
<% strSQL="Select * From v_web_product Where mn_id=" & strCurrMenu & strQuery & " Order by p_code,ID Desc" Set rs=Server.CreateObject("ADODB.RecordSet") rs.open strSQL,conn,1,1 '分页显示初始化 page=GetVariable("page") if page="" then page=1 else page=Cint(page) end if Section=GetVariable("section") if Section="" then Section=1 else Section=Cint(Section) end if '变量赋值 intPageSize=6 '每页显示记录数 intSectionSize=5 '多少页为一段,像GOOGLE一样 PrevSectionText="7" '上一段的链接文字 NextSectionText="8" '下一段的链接文字 PrevPageText="3" '上页的链接文字 NextPageText="4" '下页的链接文字 strPageUrl="?class=" & GetVariable("class") & "&key=" & GetVariable("key") & "&price1=" & GetVariable("price1") & "&price2=" & GetVariable("price2") rs.pagesize=intPageSize intCount=rs.RecordCount intPageCount=rs.pagecount intSectionCount=(intPageCount - 1) \ intSectionSize + 1 if intCount>0 then rs.AbsolutePage=page end if %>
<% '循环输出 for i=1 to (intPageSize + 1) \ 2 if rs.eof then exit for %> <% for j=1 to 2 if rs.eof then exit For %> <% rs.movenext next %>
<%if showClass<>"none" then %> <%end if%> <%if showSymbol<>"none" then %> <%end if%> <%if showFace<>"none" And showFace<>"Null" then %> <%end if%> <%if showSize<>"none" then %> <%end if%> <%if showPrice<>"none" then %> <%end if%> <%if showShop<>"none" then %> <%end if%>
&mnid=<%=strCurrMenu%>&classname=<%=trim(rs("c_name"))%>">" width="229" border="0" />
<%if showDetail<>"none" then %> &mnid=<%=strCurrMenu%>&classname=<%=trim(rs("c_name"))%>&uppage=<%=ThisPage%>"><%=trim(rs("p_name"))%> <%else%> <%=trim(rs("p_name"))%> <%end if%>
 类别: <%=trim(rs("c_name"))%>
 编号:<%=trim(rs("p_symbol"))%>
   
<% next %>
共有<%=intCount%>条记录,分<%=intPageCount%>页,当前页<%=Page%>,每页显示<%=intPageSize%>条记录 <% '计算每一段的开始页 intStarPage=(Section-2) * intSectionSize + 1 '前一段 if Section<=1 then response.Write(PrevSectionText & " ") else response.Write("" & PrevSectionText & " ") end if '显示页码列表 response.Write("第") intStarPage=(Section-1) * intSectionSize + 1 for p=intStarPage to intStarPage + intSectionSize - 1 if p > intPageCount then exit for if p=page then response.Write("[" & p & "] ") else response.Write("[" & p & "] ") end if next response.Write("页") '后一段 intStarPage=(Section) * intSectionSize + 1 if Section>=intSectionCount then response.Write(" " & NextSectionText) else response.Write(" " & NextSectionText & " ") end if %>
 
      本厂专业生产:铆钉,半空心铆钉,彩色抽芯铆钉,沉头抽芯铆钉,灯笼型抽芯铆钉,封闭型抽芯铆钉,开口型抽芯铆钉,开口型大帽沿抽芯铆钉,拉花型抽芯铆钉,拉丝型抽芯铆钉,铝双鼓型抽芯铆钉,小五金冲压件等。
    欢迎广大国内外客商来函来电洽谈业务。