📄 guikou_add.asp
字号:
<!--#include file="sysconfig.asp"-->
<!--#include file="Inc/Function_1.asp"-->
<%
'黄华于2008年3月
%>
<%
dim Action,guikou_name,rs,FoundErr,ErrMsg
Action=trim(Request("Action"))
guikou_name=trim(request("guikou_name"))
if yzcv<>zcv then response.end
if Action="Add" then
if guikou_name="" then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>归口名不能为空!</li>"
end if
if FoundErr<>True then
Set rs=Server.CreateObject("Adodb.RecordSet")
rs.open "Select * from guikou Where guikou_name='" & guikou_name & "'",conn,1,3
if not (rs.bof and rs.EOF) then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>归口“" & guikou_name & "”已经存在!</li>"
else
rs.addnew
rs("guikou_name")=guikou_name
rs("cost_delete")=0
rs.update
rs.Close
set rs=Nothing
call CloseConn()
Response.Redirect "Class.asp"
end if
end if
end if
if FoundErr=True then
call WriteErrMsg()
else
%>
<script language="JavaScript" type="text/JavaScript">
function checkBig()
{
if (document.form1.guikou_name.value=="")
{
alert("归口名称不能为空!");
document.form1.guikou_name.focus();
return false;
}
}
</script>
<!-- #include file="Inc/Head.asp" -->
<BR>
<table cellpadding="2" cellspacing="1" border="0" width="360" align="center" class="a2">
<tr>
<td class="a1" height="25" align="center"><strong>预 算 类 别 设 置</strong></td>
</tr>
<tr class="a4">
<td align="center">
<br>
<form name="form1" method="post" action="guikou_Add.asp" onSubmit="return checkBig()">
<table width="350" border="0" align="center" cellpadding="0" cellspacing="2" class="border">
<tr bgcolor="#999999" class="title">
<td height="25" colspan="2" align="center" align=right><strong>添加业务科室</strong></td>
</tr>
<tr bgcolor="#E3E3E3" class="tdbg">
<td width="126" height="22" bgcolor="#C0C0C0">
<div align="right" align=right><strong>业务科室名称:</strong></div></td>
<td width="218" bgcolor="#E3E3E3">
<input name="guikou_name" type="text" size="20" maxlength="30">
</td>
</tr>
<tr bgcolor="#C0C0C0" class="tdbg">
<td height="22" align="center" bgcolor="#C0C0C0"> </td>
<td height="22" align="center" bgcolor="#E3E3E3">
<div align="left">
<input name="Action" type="hidden" id="Action" value="Add">
<input name="Add" type="submit" value=" 添 加 ">
</div>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<BR>
<%htmlend%>
<%
end if
call CloseConn()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -