📄 admin.asp
字号:
<%
if session("admin")<>"on" then
Response.Redirect"login.asp"
end if
%>
<!--#include file="config.asp" -->
<html>
<head>
<title><%=title%> <%=desktoptitle%>管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="INDEX.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.xzy {border: <%=xcolor%> solid; border-width: 0px 1px 1px}
-->
</style>
</head>
<body bgcolor="<%=bgcolor%>" text="#000000">
<!--#include file="top.asp" -->
<table width="778" border="0" cellspacing="0" cellpadding="5" align="center" bgcolor="#FFFFFF">
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="50" valign="top"><table width="766" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td>管理选项:<a href="admin.asp">管理首页</a> | <a href="addfile.asp">添加文件</a> | <a href="adminfile.asp">管理文件</a> | <a href="setup.asp">系统设置</a> | <a href="ly.asp">留言管理</a> |
<a href="modifypsw.ASP">修改密码</a> | <a href="loginout.asp">退出管理</a></td>
</tr>
</table></td>
</tr>
<form name="form1" method="post" action="saveadmintype.asp?cz=addtype">
<tr>
<td height="50"> 添 加 分 类:
<input type="text" name="classname" class="cp" size="15" maxlength="50">
<input type="submit" name="Submit" value="添加">
</td>
</tr>
</form>
<form name="form2" method="post" action="saveadmintype.asp">
<tr>
<td height="50" class="table-xia"> 管 理 分 类:
<select name="classid" class="cp2">
<%
sql = "SELECT * FROM type"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,1,1
if rs.eof and rs.bof then
Response.Write"<option>还没有任何分类</option>"
else
do while not rs.eof
Response.Write"<option value='"&rs("id")&"'>"&rs("name")&"</option>"
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
</select>
<select name="cz" class="cp">
<option value="delclass">删除</option>
<option value="editclass" selected>修改</option>
</select>
<input type="submit" name="Submit2" value="确定" class="an">
新名称:
<input type="text" name="classname" class="cp" maxlength="50" size="15">
*选择删除分类不用填写,删除请慎重!</td>
</tr>
</form>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="41" valign="top"><table width="766" height="29" border="0" align="center" cellpadding="3" cellspacing="0" >
<tr>
<td width="766" height="35" align="center" bgcolor=""><%=cy%> </td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -