📄 addchild.asp
字号:
<%
if instr(session("EAPurview"),"31")=0 then
response.redirect "../login.asp"
response.end
end if
%>
<!--#include file="../../Inc/DBConn1.asp" -->
<LINK href="../../CSS/style.css" rel="stylesheet" type="text/css"></LINK>
<script language=jscript>
function Check()
{
if(document.form1.ChildName.value=="")
{
document.form1.ChildName.focus();
alert("请输入行业小类名称!");
return false;
}
}
</script>
<%
if request("action")="add" then
set Rs=server.CreateObject("ADODB.Recordset")
Rs.Open "select * from Sort3",conn,3,3
Rs.AddNew
Rs("ChildName")=trim(request("ChildName"))
Rs("TypeID")=request("TypeID")
Rs.Update
Rs.Close
Set Rs=nothing
response.Redirect "Child.asp?SortID=" & request("SortID") & "&TypeID=" & request("TypeID")
end if
%>
<CENTER>
<table width="100%" border="0" cellspacing="0" cellpadding="3" ID="Table1">
<form action="AddChild.asp?action=add" method=post name=form1 onsubmit="return Check();" ID="Form1">
<input type=hidden name="SortID" value="<%=request("SortID")%>" ID="Hidden1">
<input type=hidden name="TypeID" value="<%=request("TypeID")%>" ID="Hidden2">
<TR height=30 bgcolor="#F78200">
<TD colspan=2><b><font color="#FFFFFF">添加行业小类</font></b></td>
</tr>
<tr height=40>
<td width=20% align=right style="padding-left:5px;">
<b>行业中类小称:</b>
</td>
<td width=80%>
<input name="ChildName" type=text size=16 ID="Text1">
<input type=submit value=" 添 加 " ID="Submit1" NAME="Submit1">
</td>
</tr>
</form>
</TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -