📄 editserver.asp
字号:
<!--#include file="conn.asp"-->
<%
dim typ
typ=request.QueryString("typ")
if typ="" then
response.write("<script>alert('非法提交参数!');window.location.href('addserver.asp')</script>")
response.end
end if
set rs1=server.CreateObject("adodb.recordset")
cmd1="select * from question where id="&typ
rs1.open cmd1,conn,1,3
if rs1.eof then
response.write("<script>alert('无此文章!');window.location.href('addserver.asp')</script>")
response.end
end if
if rs1("type")=5 then
if session("user")="" or session("group")<>1 then
response.write("<script>alert('您没有权限,请与管理员联系');window.location.href('vir.asp')</script>")
response.end
end if
end if
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 { font-size: 12px;
color: #FFFFFF;
}
.style2 {font-size: 12px}
.style4 {font-size: 12px; color: #FF0000; }
-->
</style>
</head>
<body>
<form name="form1" method="post" action="saveserver.asp">
<table width="700" border="0" align="center" bgcolor="#6699cc">
<tr>
<td colspan="3"><span class="style1">添加服务器相关备忘</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="62"><div align="center"><span class="style2">问题描述:</span></div></td>
<td colspan="2"><label>
<input name="title" type="text" id="title" value="<%=rs1("title")%>" size="80" />
</label></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="center"><span class="style2">解决方案:</span></div></td>
<td colspan="2"><label>
<textarea name="all" cols="80" rows="20" id="all"><%=rs1("all")%></textarea>
</label></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="style2">问题分类:</span></td>
<td width="260"><label>
<select name="types" id="types">
<option value="0" selected="selected">〓请选择问题分类〓</option>
<option value="1">Web服务器相关问题</option>
<option value="2">Ftp服务器相关问题</option>
<option value="3">Mail服务器相关问题</option>
<option value="4">SqlServer服务器问题</option>
<option value="5">事情及密码备忘</option>
<option value="6">编程文章备忘</option>
<option value="7">程序源码收藏</option>
<option value="8">网络设备相关问题</option>
<option value="9">网络相关问题</option>
<option value="10">布线相关问题</option>
</select>
</label></td>
<td width="364"><div align="left">
<input type="submit" name="Submit" value="保存问题 " />
<span class="style4">*提交时请选择问题分类</span></div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -