<% '请勿改动下面这三行代码 const ChannelID=4 Const ShowRunTime="Yes" MaxPerPage=20 strFileName="Photo_Search.asp?ClassID=" & ClassID Set rsPhoto= Server.CreateObject("ADODB.Recordset") Set rsPic= Server.CreateObject("ADODB.Recordset") PageTitle="搜索结果" strFileName="Photo_Search.asp?Field=" & strField & "&Keyword=" & keyword & "&ClassID=" & ClassID SkinID=0 %> <%=strPageTitle%> <%call MenuJS()%> onmousemove='HideMenu()'> <% dim sqlRoot,rsRoot,trs,arrClassID,TitleStr sqlRoot="select C.ClassID,C.ClassName,C.RootID,L.LayoutFileName,L.LayoutID,C.Child,C.ParentPath From PhotoClass C inner join Layout L on C.LayoutID=L.LayoutID " if ClassID<>0 then sqlRoot = sqlRoot & " where C.ParentID=" & ClassID & " or C.ParentPath like '%" & ParentPath & "," & ClassID & "%' " else sqlRoot = sqlRoot & " where 1 " end if sqlRoot = sqlRoot & " and C.IsElite=True and C.LinkUrl='' and C.BrowsePurview>=" & UserLevel & " order by C.OrderID" Set rsRoot= Server.CreateObject("ADODB.Recordset") rsRoot.open sqlRoot,conn,1,1 arrClassID=ClassID do while not rsRoot.eof arrClassID=arrClassID & "," & rsRoot(0) rsRoot.movenext loop rsRoot.close set rsRoot=nothing %>
<%if Child>0 then%> <%end if%>
<%=ClassName%>分类
<%call ShowChildClass(1)%>
热门图片
<%call ShowHot(10,100)%>
推荐图片
<%call ShowElite(10,100)%>
 
  <% if keyword="" then response.write "所有图片" else select case strField case "PhotoName" response.write "图片名称含有 "&keyword&" 的图片" case "PhotoIntro" response.write "图片简介含有 "&keyword&" 的图片" case "Author" response.write "作者姓名含有 "&keyword&" 的图片" case "Editor" response.write "编辑姓名含有 "&keyword&" 的图片" case else response.write "图片名称含有 "&keyword&" 的图片" end select end if %>
<%call ShowPhoto(100,arrClassID)%>
<% if totalput>0 then call showpage(strFileName,totalput,MaxPerPage,false,true,"张图片") end if %>
站内图片搜索:
<% call ShowSearchForm("Photo_Search.asp",2) %>
<% call Bottom() %> <% call PopAnnouceWindow(400,300) %> <% set rsPhoto=nothing set rsPic=nothing call CloseConn() %>