📄 photo_search.asp
字号:
<!--#include file="Inc/func_Photo.asp"-->
<%
'请勿改动下面这三行代码
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
%>
<html>
<head>
<title><%=strPageTitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="inc/Skin_CSS.asp"-->
<%call MenuJS()%>
</head>
<body <%=Body_Label%> onmousemove='HideMenu()'>
<!--#include file="Top.asp"-->
<%
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
%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border2">
<tr>
<td width="180" rowspan="2" align="left" valign="top" class="tdbg_leftall">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="180" border="0" cellspacing="0" cellpadding="0">
<tr><td>
<table width="90%" border="0" cellpadding="0" cellspacing="0" align=center>
<tr><td>
<fieldset><legend class='title_bg_center'>用户登录</legend><% call ShowUserLogin() %></fieldset>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="title_left2"></td>
</tr>
<%if Child>0 then%>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="title_left">
<tr>
<td class='title_bg_center' align="center"><%=ClassName%> 分类</td>
</tr>
</table></td>
</tr>
<tr>
<td class="tdbg_left"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td height="80" valign="top"> <%call ShowChildClass(1)%> </td>
</tr>
</table></td>
</tr>
<tr>
<td class="title_left2"></td>
</tr>
<%end if%>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="title_left">
<tr>
<td class='title_bg_center' align="center">热门图片</td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" class="tdbg_left"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td height="80" valign="top"> <%call ShowHot(10,100)%> </td>
</tr>
</table></td>
</tr>
<tr>
<td class="title_left2"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="title_left">
<tr>
<td class='title_bg_center' align="center">推荐图片</td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top" class="tdbg_left"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td height="80" valign="top"> <%call ShowElite(10,100)%> </td>
</tr>
</table></td>
</tr>
<tr>
<td class="title_left2"></td>
</tr>
</table></td>
<td width="99%" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom" class='title_bg_center'>
<%
if keyword="" then
response.write "所有图片"
else
select case strField
case "PhotoName"
response.write "图片名称含有 <font color=red>"&keyword&"</font> 的图片"
case "PhotoIntro"
response.write "图片简介含有 <font color=red>"&keyword&"</font> 的图片"
case "Author"
response.write "作者姓名含有 <font color=red>"&keyword&"</font> 的图片"
case "Editor"
response.write "编辑姓名含有 <font color=red>"&keyword&"</font> 的图片"
case else
response.write "图片名称含有 <font color=red>"&keyword&"</font> 的图片"
end select
end if
%>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="5">
<tr>
<td height="100" valign="top"><%call ShowPhoto(100,arrClassID)%></td>
</tr>
<tr>
<td valign="top">
<%
if totalput>0 then
call showpage(strFileName,totalput,MaxPerPage,false,true,"张图片")
end if
%>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="title" style="border-top:solid #999999 1px">
<tr>
<td width="100" align="center"><img src="Images/checkphoto.gif" width="15" height="15" align="absmiddle"> 图片搜索:</td>
<td align="center"><%call ShowSearchForm("Photo_Search.asp",2)%></td>
</tr>
</table>
</td>
</tr>
</table>
<% call Bottom() %>
</td>
</tr></table>
<% call PopAnnouceWindow(400,300) %>
</body>
</html>
<script>
mtDropDown.initialize();
</script>
<%
set rsPhoto=nothing
set rsPic=nothing
call CloseConn()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -