📄 addclass.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="../char.asp" -->
<html>
<head>
<title>栏目编辑</title>
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<script language="javascript">
<!--
function check() {
if (form1.newTitle.value == "")
{
alert("请填写栏目名称");
form1.newTitle.focus();
return false;
}
return true;
}
//-->
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF" OnLoad = "form1.newTitle.focus();">
<%
Select case Request("action")
case "step1"
newTitle = Strcheck(Request.Form("newTitle"))
conn.execute("Insert into Aclass(class)values("& newTitle &")")
Response.write "<script>alert(""添加成功"");window.close();window.opener.location.reload();</script>"
Response.End
case "step2"
newTitle = Strcheck(Request.Form("newTitle"))
id = Request.Form("id")
conn.execute("Insert into ANclass(Nclass,classID)values("& newTitle &","& id &")")
Response.write "<script>alert(""添加成功"");window.close();window.opener.location.reload();</script>"
Response.End
case "Add"
%>
<form method="POST" action="?action=step1" align="center" onsubmit="return check();" name="form1">
<table width="100%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<tr align="center">
<td bgcolor="#FFCC00">新增大栏目</td>
</tr>
<tr align="center">
<td>
<p>栏目名称:
<input type="text" name="newTitle" size="20" class=smallinput>
<input type="submit" value="新增" class="buttonface" name="B3">
</td>
</tr>
</table>
</form>
<%case "Ndd"%>
<form method="POST" action="?action=step2" align="center" onsubmit="return check();" name="form1">
<input type="hidden" name="id" value="<%=Request("id")%>">
<table width="100%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<tr align="center">
<td bgcolor="#FFCC00">新增小栏目</td>
</tr>
<tr align="center">
<td>
<p>栏目名称:
<input type="text" name="newTitle" size="20" class=smallinput>
<input type="submit" value="新增" class="buttonface" name="B3">
</td>
</tr>
</table>
</form>
<%end Select%>
<div align="center">
<input type="button" name="button" value="关闭" OnClick="Javascript:window.close();" class="buttonface">
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -