user_photomanage.asp
来自「利用C++编写的网络跟踪代码」· ASP 代码 · 共 547 行 · 第 1/2 页
ASP
547 行
<%@language=vbscript codepage=936 %>
<%
'请勿改动下面这三行代码
const ChannelID=2
Const ShowRunTime="Yes"
response.buffer=true
%>
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Conn_User.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/ubbcode.asp"-->
<!--#include file="inc/function.asp"-->
<!--#include file="inc/admin_code_Photo.asp"-->
<%
if CheckUserLogined()=False then
response.Redirect "User_Login.asp"
end if
dim strFileName,FileName
const MaxPerPage=5
dim totalPut,CurrentPage,TotalPages
dim i,j
dim keyword,strField
dim sql,rsPhotoList
dim ClassID
dim PurviewChecked
dim ManageType
dim strAdmin,arrAdmin
dim AdminPurview,AdminPurview_Photo
dim tClass,ClassName,RootID,ParentID,Depth,ParentPath,Child,ChildID,tID,tChild,ClassMaster
FileName="User_PhotoManage.asp"
ClassID=Trim(request("ClassID"))
keyword=trim(request("keyword"))
if keyword<>"" then
keyword=ReplaceBadChar(keyword)
end if
strField=trim(request("Field"))
if ClassID="" then
ClassID=0
else
ClassID=CLng(ClassID)
end if
if ClassID>0 then
set tClass=conn.execute("select ClassName,RootID,ParentID,Depth,ParentPath,Child,ClassMaster From PhotoClass where ClassID=" & ClassID)
if tClass.bof and tClass.eof then
founderr=True
ErrMsg=ErrMsg & "<br><li>找不到指定的栏目</li>"
Call WriteErrMsg()
response.end
else
ClassName=tClass(0)
RootID=tClass(1)
ParentID=tClass(2)
Depth=tClass(3)
ParentPath=tClass(4)
Child=tClass(5)
end if
end if
strFileName=FileName & "?ClassID=" & ClassID & "&strField=" & strField & "&keyword=" & keyword
if request("page")<>"" then
currentPage=cint(request("page"))
else
currentPage=1
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员控制面板</title>
<link href="img/css.CSS" rel="stylesheet" type="text/css">
<STYLE type=text/css>BODY {
SCROLLBAR-FACE-COLOR: #E4E4E4; SCROLLBAR-HIGHLIGHT-COLOR: #cccccc; SCROLLBAR-SHADOW-COLOR: #828282; SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #797979; SCROLLBAR-TRACK-COLOR: #ECECEC; SCROLLBAR-DARKSHADOW-COLOR: #ffffff
}
</STYLE>
<SCRIPT language=javascript>
function unselectall()
{
if(document.myform.chkAll.checked){
document.myform.chkAll.checked = document.myform.chkAll.checked&0;
}
}
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.Name != "chkAll"&&e.disabled==false)
e.checked = form.chkAll.checked;
}
}
function ConfirmDel()
{
if(confirm("确定要删除选中的文章吗?一旦删除将不能恢复!"))
return true;
else
return false;
}
</SCRIPT>
</head>
<body bgcolor="#CCCCCC" topmargin="0">
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="779"><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="760" height="50" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="157" height="50" valign="bottom"><img src="imge/logo.gif" width="156" height="40"></td>
<td width="65" height="50" valign="middle"><table width="90%" height="50" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom"> </td>
</tr>
<tr>
<td valign="bottom">V4.0</td>
</tr>
</table></td>
<td width="538" valign="bottom"><table width="99%" height="23" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td> <div align="right"><font color=666666> | </font><a href='Index.asp'><font color=666666 >非常首页</font></a> <font color=666666>|</font> <a href='design.asp' ><font color=666666>平面视觉</font></a> <font color=666666>|</font> <a href='web.asp' ><font color=666666>WEB视觉</font></a> <font color=666666>|</font> <a href='dig.asp' ><font color=666666>数码影像</font></a> <font color=666666>|</font> <a href='flash.asp' ><font color=666666>多媒体视觉</font></a> <font color=666666>|</font> <a href='cg.asp' ><font color=666666>CG视觉</font></a> <font color=666666>|</font> <a href='fin.asp' ><font color=666666>时尚视觉</font></a> <font color=666666>|</font> <a href='member.asp' ><font color=666666>作品</font></a> <font color=666666>|</font> <a href='http://www.qt66.com/bbs' ><font color=666666>论坛</font></a> <font color=666666>|</font> </div></td>
</tr>
</table></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="760" height="148" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="480" rowspan="2" align="center" valign="top" > <table width="100%" class="tde" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="160">
<div align="center"> <img src="imge/banner1.gif" width="468" height="150"></div></td>
</tr>
</table></td>
<td width="10" rowspan="2" valign="top"> </td>
<td width="270" height="161" valign="top" bgcolor="#F7F7F7" class="tde">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td valign="top"> <table width="100%" height="29" border="0" cellpadding="0" cellspacing="0" bgcolor="#B6B6B6">
<tr>
<td height="30" valign="top"> <table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="e1e1e1"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10%"><div align="center"><img src="imge/top1.gif" width="20" height="20"></div></td>
<td width="90%" valign="bottom" class="14">网站公告</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<% call ShowAnnounce(1,4) %>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10"></td>
</tr>
</table> </td>
</tr>
</table>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="779">
<table width="760" height="50" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="480" height="164" align="center" valign="top" >
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="imge/topbgm.gif"> <strong>会员控制面板</strong></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="11"></td>
</tr>
</table>
<table width="100%" height="403" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10" valign="top" class="tde"><table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10" ></td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EEEEEE" class="border">
<tr class="title">
<td height="22">
<%call Admin_ShowRootClass()%>
</td>
</tr>
</table>
<br>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="f9f9f9">
<tr>
<td height="22">
<%call Admin_ShowPath("图片管理")%>
</td>
</tr>
</table>
<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10" ></td>
</tr>
</table>
<%
sql="select P.PhotoID,P.ClassID,C.ClassName,P.PhotoName,P.Keyword,P.Author,P.UpdateTime,P.Editor,P.Hits,P.PhotoUrl_Thumb,P.PhotoSize,P.OnTop,P.Elite,P.Passed,P.Stars,P.PhotoLevel,P.PhotoPoint from Photo P"
sql=sql & " inner join PhotoClass C on P.ClassID=C.ClassID where P.Deleted=False and P.Editor='" & UserName & "' "
if ClassID>0 then
if Child>0 then
ChildID=""
if Depth<=0 then
set tClass=conn.execute("select ClassID from PhotoClass where ParentID=" & ClassID & " or ParentPath like '" & ClassID & ",%'")
else
set tClass=conn.execute("select ClassID from PhotoClass where ParentID=" & ClassID & " or ParentPath like '" & ParentPath & "," & ClassID & ",%'")
end if
do while not tClass.eof
if ChildID="" then
ChildID=tClass(0)
else
ChildID=ChildID & "," & tClass(0)
end if
tClass.movenext
loop
sql=sql & " and P.ClassID in (" & ChildID & ")"
else
sql=sql & " and P.ClassID=" & ClassID
end if
end if
if keyword<>"" then
select case strField
case "PhotoName"
sql=sql & " and P.PhotoName like '%" & keyword & "%' "
case "PhotoIntro"
sql=sql & " and P.PhotoIntro like '%" & keyword & "%' "
case "Author"
sql=sql & " and P.Author like '%" & keyword & "%' "
case else
sql=sql & " and P.PhotoName like '%" & keyword & "%' "
end select
end if
sql=sql & " order by P.PhotoID desc"
Set rsPhotoList= Server.CreateObject("ADODB.Recordset")
rsPhotoList.open sql,conn,1,1
if rsPhotoList.eof and rsPhotoList.bof then
totalPut=0
if Child=0 then
response.write "<p align='center'><br>没有任何图片!<br></p>"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?