📄 economiclaw_shjdlist_edit.asp
字号:
<%
'==============================================================
'OA 表单生成器
'版本: 1.1.0 -- 2005-5-24
'程序版权:(c) 2004 by 展亮
'说明:本代码为自由代码,用户可以自由使用,但请保留作者文件头部说明
' 在使用过程中如出现什么问题请及时与作者联系。
' 电子邮件:zlbox@yeah.net QQ:2343397
'=============================================================
'功能:添加/编辑行政执法案件时候监督一览表
'参数: request.form("addedit_subed")="true"#表单提交; request("id")#要编辑记录的ID;
'=============================================================
%>
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<!--#include file="../inc/ronger.asp"-->
<%
'response.buffer=false
'------------------------------------------------设置参数
LoginID=trim(Session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
pid=request("id"):if pid="" then pid=0 '记录ID
'------------------------------------------------
'------------------------------------------------添加/修改记录
table="tbioaEconomicLaw_shjdlist" '表名
if request.form("addedit_subed")="true" then
'表单提交后
if pid=0 then
call insert(table,false)
response.write "<script>alert('行政执法案件时候监督一览表录入成功!');this.location='EconomicLaw_shjdlist_list.asp'</script>"
response.end
else
call update(table,"id",pid,false)
response.write "<script>alert('行政执法案件时候监督一览表修改成功!');history.go(-2)</script>"
response.end
end if
end if
'--------------------------------------------取记录
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from " & table & " where ID="&pid
rs.open sql,oConn,1,1
'------------------------------------------------
function showvalue(field)
if rs.eof then
showvalue=""
else
if (isnull(rs(field))) then showvalue="" else showvalue=Server.HTMLEncode(rs(field))
end if
end function
%>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK rel="stylesheet" href="../css/main.css" type=text/css>
<TITLE>main</TITLE>
<SCRIPT src="../js/Popup.js"></SCRIPT>
<SCRIPT src="../js/formatdate.js"></SCRIPT>
<SCRIPT src="../js/front_chec.js"></SCRIPT>
</HEAD>
<BODY topmargin="10" leftmargin="10">
<!--#include file="EconomicLaw_shjdlist_menu.html"-->
<HR width="100%" size=1 color="#000000">
<BR>
<DIV align="center">
<TABLE width="500" cellspacing="1" cellpadding="2" class="tab">
<TR>
<TD width="100%" class="tdTop">
<TABLE border="0" width="100%" cellspacing="0" cellpadding="0">
<TR>
<TD class="tdTop">
<P align="left"><IMG border="0" src="../images/icon_title.gif" align="left">录入行政执法案件时候监督一览表</P>
</TD>
<TD width="90" class="tdTop">
<P align="left"><IMG border="0" src="../images/icon_return.gif" align="left">
<A href="javascript:history.back()" class="linkTop">返回列表</A>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD width="25%" class="td1">
<FORM name="eventfrm" method="POST" action="?id=<%=pid%>" onSubmit="return checknull(this)">
<INPUT type=hidden name="addedit_subed" value="true">
<INPUT type=hidden name="userid" value="<%=LoginID%>">
<TABLE border="0" width="100%" cellspacing="10" cellpadding="0">
<TR>
<TD align="right" valign="top" nowrap>所属所:</TD>
<TD nowrap><SELECT size="1" name="area" class="input">
<OPTION value="<%=Session("DepID")%>" <%if area=Session("DepID") then response.write"selected"%>><%=GetTableValue("tbioaDepartment","Name","id",Session("DepID"))%></OPTION>
<%Call pOptions("tbioaDepartment","Name",Session("DepID"),showvalue("area"),"├-")%>
</SELECT>
<FONT COLOR="RED">*</FONT> </TD>
</TR>
<TR>
<TD align="right" valign="top" nowrap>案件名称:</TD>
<TD nowrap><INPUT type="text" name="ajmc" value="<%=showvalue("ajmc")%>" size="40" maxlength="250" class="input" check_null="请填写案件名称"> <FONT COLOR="RED">*</FONT> </TD>
</TR>
<TR>
<TD align="right" valign="top" nowrap>监督内容:</TD>
<TD nowrap><TEXTAREA name="jdnr" rows="5" cols="39" class="textarea" check_null="请填写监督内容"><%=showvalue("jdnr")%></TEXTAREA> <FONT COLOR="RED">*</FONT> </TD>
</TR>
<TR>
<TD align="right" valign="top" nowrap>备注:</TD>
<TD nowrap><TEXTAREA name="bz" rows="5" cols="39" class="textarea"><%=showvalue("bz")%></TEXTAREA> </TD>
</TR>
<TR>
<TD colspan="2" align="center">
<INPUT type="submit" value="确定" class="button0" onmouseout=className="button0" onmouseover=className="button1"> <INPUT type="reset" value="全部重写" class="button0" onmouseout=className="button0" onmouseover=className="button1"> </TD>
</TR>
</TABLE>
</FORM>
</TD>
</TR>
<TR>
<TD width="25%" class="tdBottom">
</TD>
</TR>
</TABLE>
</DIV>
</BODY>
</HTML>
<%'释放对象变量
rs.close
oConn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -