📄 admin_dictionary_action.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>在线考试系统</title>
<link rel="stylesheet" type="text/css" href="../default.css">
<script language="JavaScript">
function submitit(myform)
{
if (editform.objname.value=="") {
alert("类别名称不能为空!");
return false;
}
}
</script>
<script language="JavaScript1.2" src="../js/lock.js"></script>
</head>
<body oncontextmenu="self.event.returnValue=false" bgcolor="#FFFFFF">
<%
if request("btn")<>"编辑" then
dim i
dim j
dim id
id=request("id")
id=split(id,",")
i=ubound(id)
for j=0 to i
sql="select * from dictionary where id="&cint(id(j))
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
rs.delete
rs.update
rs.close
next
response.redirect "admin_dictionary.asp?objtype="&request("objtype")
else
sql="select * from dictionary where id="&request("id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
if not rs.eof then
%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#007CD0" width="100%" id="AutoNumber1">
<tr>
<td width="100%">当前位置:系统管理 > 字典库维护 > <font color="#FF0000">编辑</font></td>
</tr>
</table>
<form method="POST" name="editform" action="admin_dictionary_edit_save.asp" onsubmit="return submitit();">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#007CD0" width="100%" id="AutoNumber2" bgcolor="#F1F1F1">
<tr>
<td class="border_blue" colspan="2"> 字典库编辑</td>
</tr>
<tr>
<td colspan="2"> 带有<img border="0" src="../images/15X12.GIF" width="15" height="12">
标记的将保存到数据库中</td>
</tr>
<tr>
<td width="120">
<p align="right">类别</td>
<td><input type="hidden" name="id" value="<%=request.querystring("id")%>">
<input type="text" name="objtype" size="20" value="<%=rs("objtype")%>" class="s01" readonly>
不能修改!</td>
</tr>
<tr>
<td width="120">
<p align="right">类别名称</td>
<td>
<input type="text" name="objname" size="40" class="s01" value="<%=rs("objname")%>"><img border="0" src="../images/15X12.GIF" width="15" height="12"></td>
</tr>
<tr>
<td width="120">
<p align="right">等级</td>
<td>
<input type="text" name="parent" size="5" class="s01" onkeyup="if(isNaN(this.value)) this.value='';" onblur="if(isNaN(this.value)) this.value='';" value="<%=rs("parent")%>"><img border="0" src="../images/15X12.GIF" width="15" height="12"></td>
</tr>
<tr>
<td colspan="2" class="border" style="height: 30">
<p align="right"><input type="submit" value="保 存" name="B1" class="s02">
</td>
</tr>
</table>
</form>
</body>
<% rs.close
end if
end if %>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -