📄 admin_filetype.asp
字号:
<!--#include file="conn_admin.asp" -->
<!--#include file="check_admin.asp"-->
<!--#include file="../char.asp" -->
<html>
<head>
<%
type_name=Request.QueryString("type_name")
typeid=cint(Request.QueryString("typeid"))
classview=cint(Request.QueryString("classview"))
set temprs=conn.execute("select name,classid from type where id="&typeid)
%>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="sys_admin.css" rel="stylesheet" type="text/css">
</head>
<body text="#000000" leftmargin="0" topmargin="0">
<table width="100%" height="70" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td width="100%" height="43" bgcolor="#006600">
<div align="center">
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="3%"> <div align="left"><br>
</div></td>
<%
sql = "SELECT * FROM type ORDER BY typeid ASC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,0,1
if rs.eof and rs.bof then
Response.Write"还没有分类"
else
do while not rs.eof %>
<td> <a href='admin_filetype.asp?type_name=<%=rs("name")%>&typeid=<%=rs("id")%>&classview=<%=rs("classview")%>'><font color="#FFFFFF"><%=rs("name")%></font></a>
</td>
<%
rs.movenext
loop
end if
rs.close
Set rs=Nothing
%>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="27" bgcolor="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="form1" method="get" action="search.asp">
<tr align="center">
<td>
<div align="left">
<table width="100%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td width="62%" bgcolor="#000000">
<div align="right"><strong><font color="#FFFFFF">后台图片搜索</font></strong> </div></td>
<td width="12%"><div align="center">
<input type="text" name="key" size="15">
</div></td>
<td width="26%"> <div align="center">
<input type="submit" name="Submit" value="搜索">
</div></td>
</tr>
</table>
</div></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="121" align="center" valign="top">
<table width="100%" height="64%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="121" valign="top">
<table width='100%' border='0' cellspacing='0' cellpadding='5'>
<%
Dim ipagecount
sql = "SELECT * FROM produce where typeid="&typeid&" ORDER BY listid asc,id DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open sql,conn,1,1
ipagecount = rs.pagecount
if ipagecount=0 then%>
<tr>
<td align='center'>暂时没有发布作品展示</td>
</tr>
<% else
Response.Write"<tr><td>您当前的位置:<a href='"&homeurl&"'>"&title&"<a> - <a href='product.asp'>"&desktoptitle&"</a> - <a>"&type_name&"</a></td></tr>"
do while NOT rs.EOF %>
<tr align='left'>
<td width='33%'>
<%if not rs.eof then%>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">·编号: <%=rs("id")%> [<a href='save_file.asp?id=<%=rs("id")%>&cz=del'>删除</a>|<a href='add_file.asp?id=<%=rs("id")%>&cz=editfile'>编辑</a>]
</td>
</tr>
<tr>
<td height="8" colspan="2"></td>
</tr>
<tr>
<td width="23%"> <table width="122" height="92" border=0 align=left cellpadding=0 cellspacing=1 bgcolor='#000000' class='bk1'>
<tbody>
<td width="182" bgcolor="#FFFFFF"><a href='../display.asp?id=<%=rs("id")%>' target="_blank"><img src='<%=rs("smallimg")%>' border='0' width=220></a></td>
</table>
<br> </td>
<td width="77%" valign="top">
<table width="95%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td> ·标题:<font color="#CC3300"><%=rs("name")%></font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="8" colspan="2"></td>
</tr>
<tr>
<td height="1" colspan="2" background="../images/line.gif"></td>
</tr>
</table>
<%
irecordsshown = irecordsshown +1
rs.movenext
end if
%>
<%
loop
end if
rs.Close
set rs=nothing
%>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -