⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_pic.asp

📁 这个是一个<图片系统>,但是又是不能用的..所以..上传上来..等你们改良一下
💻 ASP
字号:
<%
if session("AdminName") = "" then
    response.Redirect "Admin_Login.asp"
end if
%>
<!--#include file="conn.asp"-->
<%
dim key
if trim(Request.QueryString("key"))<>"" then
key=trim(Request.QueryString("key"))
end if
%>

<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="images/Admin_Style.css">
<head>
<title>讯网wap图片后台管理中心</title>
<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0">
<table cellpadding="2" cellspacing="1" border="0" width="100%" class="border" align=center>
<tr align="center">
    <td height=23 colspan=2 class="topbg"><strong>图 片 管 理</strong></tr>
<tr>
    <td width="100" class="tdbg" height=25><strong>管理快捷方式:</strong></td>
    <td class="tdbg"><a href="Admin_All.asp">管理首页</a>
     | <a href="Admin_All.asp">图片管理</a>
     | <a href="Admin_PicAdd.asp">添加图片</a>
	 | <a href="Admin_Affiche.asp">公告管理</a>
     </td>
</tr>
</table>
<br>

<TABLE border=0 cellPadding=0 cellSpacing=0 width=100% align=center class="border">
  <TBODY>
  <TR>
    <TD align=middle bgColor=#f2f2f2 vAlign=top width=701>
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
  <tr>
    <td bgcolor="#f2f2f2" width="100%"> 
      <%
Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='5'>"

Dim ipagecount
Dim ipagecurrent
Dim strorderBy
Dim irecordsshown  
if request.querystring("page")="" then
ipagecurrent=1
else
ipagecurrent=cint(request.querystring("page"))
end if

if key<>"" then
sql = "SELECT Desktopminipic,Desktopck,Desktopname,Desktopid,Desktoplx FROM desktop where Desktopname like '%"&key&"%' ORDER BY Desktopid DESC" 
else
sql = "SELECT Desktopminipic,Desktopck,Desktopname,Desktopid,Desktoplx FROM desktop ORDER BY Desktopid DESC" 
end if
Set rs = Server.CreateObject("ADODB.Recordset")
rs.pagesize = 9
rs.cachesize = 9
rs.open sql,conn,1,1
ipagecount = rs.pagecount
If ipagecurrent > ipagecount Then ipagecurrent = ipagecount
If ipagecurrent < 1 Then ipagecurrent = 1
if ipagecount=0 then
response.write "<tr><td align='center'>没有任何文件</tr></td>" 
else
rs.absolutepage = ipagecurrent
irecordsshown = 0
do while irecordsshown<9 and NOT rs.EOF
Response.Write"<tr align='center'>"

for i=1 to 3

Response.Write"<td width='33%'>"
if not rs.eof then
if rs("Desktoplx")=0 then
Response.Write"<table align=center bgcolor='#ffffff' border=0 cellpadding=5 cellspacing=0 class='bk1'><tbody><td><a href='../display.asp?id="&rs("Desktopid")&"' target='_blank'><img src='"&rs("Desktopminipic")&"' border='0' width=141 height=141 class='bk'></a></td></tbody></table><br><a href='../display.asp?id="&rs("Desktopid")&"' target='_blank'>"&rs("Desktopname")&"</a> [<a href='Admin_Savefile.ASP?id="&rs("Desktopid")&"&cz=del'>删除</a>|<a href='Admin_PicEdit.asp?NumID="&rs("Desktopid")&"'>编辑</a>]</td>"
elseif rs("Desktoplx")=1 then
Response.Write"<table align=center bgcolor='#ffffff' border=0 cellpadding=5 cellspacing=0 class='bk1'><tbody><td><a href='../display.asp?id="&rs("Desktopid")&"' target='_blank'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' border='0' width=141 height=141 class='bk'><param name=movie value='"&rs("Desktopminipic")&"'><param name=quality value=high><embed src='"&rs("Desktopminipic")&"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' border='0' width=141 height=141 class='bk'></embed></object></a></td></tbody></table><br><a href='../display.asp?id="&rs("Desktopid")&"' target='_blank'>"&rs("Desktopname")&"</a> [<a href='Admin_Savefile.ASP?id="&rs("Desktopid")&"&cz=del'>删除</a>|<a href='Admin_PicEdit.asp?NumID="&rs("Desktopid")&"'>编辑</a>]</td>"
end if
irecordsshown = irecordsshown +1
rs.movenext 
end if

next

Response.Write"</tr>"
loop
end if
rs.Close
set rs=nothing
Response.Write"</table>"

Response.Write"<table width='100%' border='0' cellspacing='0' cellpadding='5' class='s'><form name='form1' method='get' action='Admin_Pic.asp'><tr><td height='20' align='center'>每页显示 9 个文件 共有 "&ipagecount&" 页 当前为第 "&ipagecurrent&" 页 "
if ipagecurrent=1 then
Response.Write"首页 | "
else
Response.Write"<a href='Admin_Pic.asp?key="&key&"&page=1'>首页</a> | "
end if
if ipagecurrent=1 then
Response.Write"上一页 | "
else
Response.Write"<a href='Admin_Pic.asp?key="&key&"&page="&ipagecurrent-1&"'>上一页</a> | "
end if
if ipagecount>ipagecurrent then
Response.Write"<a href='Admin_Pic.asp?key="&key&"&page="&ipagecurrent+1&"'>下一页</a> "
else
Response.Write"下一页" 
end if
if ipagecount>ipagecurrent then
Response.Write"| <a href='Admin_Pic.asp?key="&key&"&page="&ipagecount&"'>末页</a> "
else
Response.Write"| 末页 "
end if
Response.Write"| 搜索文件:<input type='text' name='key' size='15' class='an'> <input type='submit' name='Submit' value='确定' class='an'></td></tr></form></table>"
%>
    </td>
 </tr>
        <TR>
          <TD></TD></TR></TBODY></TABLE><BR></TD></TR></TBODY></TABLE>
<!--#include file="copyright.asp" -->
</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -