%
'请勿改动下面这三行代码
const ChannelID=4
Const ShowRunTime="Yes"
MaxPerPage=20
strFileName="Photo_Class.asp?ClassID=" & ClassID
Set rsPhoto= Server.CreateObject("ADODB.Recordset")
Set rsPic= Server.CreateObject("ADODB.Recordset")
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 where C.ParentID=" & ClassID & " or C.ParentPath like '%" & ParentPath & "," & ClassID & "%' 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%>
<%=ClassName%>分类
<%call ShowChildClass(1)%>
<%end if%>
热门图片
<%call ShowHot(10,100)%>
推荐图片
<%call ShowElite(10,100)%>
<%=ClassName%> 图片列表
<%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()
%>