• <%sortid=request.QueryString("sortid") select case sortid case "" response.Write("全部产品") case 1 response.Write("普通(带支架/带法兰)压力表") case 2 response.Write("耐震充油(带支架/带法兰)压力表") case 3 response.Write("全钢耐震(带支架/带法兰)压力表") case 4 response.Write("真空(带支架/带法兰)压力表") case 5 response.Write("医用压力表") case 6 response.Write("电接点(带法兰)压力表") case 7 response.Write("CNG压力表") case 8 response.Write("微压膜盒(带支架/带法兰)压力表") case 9 response.Write("隔膜压力表") case 10 response.Write("安全型压力表") case 11 response.Write("冷媒(带支架/带法兰)压力表") case 12 response.Write("气体(带支架/带法兰)压力表") case 13 response.Write("双针压力表") case 14 response.Write("仪表标牌/铭牌") end select %>
  • <%if request.QueryString("sortid")="1" then%>
  • class="typeon"<%else%>class="type"<%end if%>>黑铁壳
  • class="typeon"<%else%>class="type"<%end if%>>塑料壳
  • <%end if%> <%if request.QueryString("sortid")="12" then%>
  • class="typeon"<%else%>class="type"<%end if%>>氨气压力表
  • class="typeon"<%else%>class="type"<%end if%>>氧气压力表
  • class="typeon"<%else%>class="type"<%end if%>>球压力表
  • <%end if%>
      <% Function RegExp_Execute(patrn, strng) Dim regEx, Match, Matches,values '建立变量。 Set regEx = New RegExp '建立正则表达式。 regEx.Pattern = patrn '设置模式。 regEx.IgnoreCase = true '设置是否区分字符大小写。 regEx.Global = True '设置全局可用性。 Set Matches = regEx.Execute(strng) '执行搜索。 For Each Match in Matches '遍历匹配集合。 values=values&Match.Value&"," Next RegExp_Execute = values End Function function nohtml(str) dim re Set re=new RegExp re.IgnoreCase =true re.Global=True re.Pattern="(\<.[^\<]*\>)" str=re.replace(str,"") re.Pattern="(\<\/[^\<]*\>)" str=re.replace(str,"") re.Pattern="( )" str=re.replace(str,"") nohtml=str set re=nothing end function Set rs = Server.CreateObject("ADODB.Recordset") maxannounce=15 if not isempty(request("page")) then currentpage=cint(request("page")) else currentpage=1 end if if request.QueryString("sortid")="" then sql="select * from pro order by id desc" else if request.QueryString("classid")="" then sql="select * from pro where sortid="&request.QueryString("sortid")&" order by id desc" else sql="select * from pro where sortid="&request.QueryString("sortid")&" and classid="&request.QueryString("classid")&" order by id desc" end if end if rs.open sql,conn,1,1 if not rs.eof and not rs.bof then totalannounce=rs.recordcount if currentpage<>1 then if (currentpage-1)*maxannounceNo product !") end if if totalAnnounce mod maxannounce=0 then n= totalAnnounce \ maxannounce else n= totalAnnounce \ maxannounce+1 end if 'if not (Rs.bof and Rs.eof) then do while not Rs.eof and j <% strurl=rs("content") regstr="src\=.+?\.(gif|jpg)" 'response.write b= RegExp_Execute(regstr,strurl) a=split(b,",") %>
    • " target="_blank"> <%if b="" then%> No Preview Pic <%else%> "><%end if%>
      <%=rs("title")%>
    • <% Rs.movenext j=j+1 loop 'end if%>