⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 client_monition_edit.asp

📁 OFFICE办公自动化
💻 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"-->
<!--#include file="./Client_menu.asp"-->

<%
'response.buffer=false
'------------------------------------------------设置参数
LoginID=trim(Session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
cid=clng(request("cid")) '记录ID
pid=request("id"):if pid="" then pid=0 '记录ID
'------------------------------------------------
'------------------------------------------------添加/修改记录
table="tbioaClient_Monition" '表名
if request.form("addedit_subed")="true" then
'表单提交后
	if pid=0 then
	  call insert(table,false)
	  response.write "<script>alert('行政告诫记录录入成功!');history.go(-2)</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">

<%call ClientMenu("行政告诫记录")%>

<div align="center">
<table width="500" cellspacing="1" cellpadding="2" class="tab">
  <tr>
    <td width="100%" class="td3">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td class="td3">
            <p align="left"><img border="0" src="../images/icon_title.gif" align="left">录入行政告诫记录</p>
          </td>
          <td width="90" class="td3">
            <p align="left"><img border="0" src="../images/icon_return.gif" align="left">
            <a href="javascript:history.back()">返回列表</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%>">
      <input type=hidden name="cid" value="<%=cid%>">
      <table border="0" width="100%" cellspacing="10" cellpadding="0">
        <tr>
          <td width="100" align="right" valign="top" nowrap>主办部门:</td>
          <td width="400" nowrap><input type="text" name="zbbm" value="<%=showvalue("zbbm")%>" size="40" maxlength="250" class="input" check_null="请填写主办部门"> <font COLOR="RED">*</font>
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>受理日期:</td>
          <td width="400" nowrap><input TYPE="TEXT" SIZE="12" MAXLENGTH="12" NAME="slrq" value="<%=showvalue("slrq")%>" class="input" check_date="日期格式错误" onKeyUp="DateFormat(this,this.value,event,false,'2')" check_null="请填写受理日期"> <a href=# title="选择日期" onClick="fPopUpDlg('../js/calendar.htm', document.eventfrm.slrq, 'winpop', 234, 261);return false"><img src="../images/datetime.gif" border=0></a> <font COLOR="RED">*</font>
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>不良行为内容:</td>
          <td width="400" nowrap><input type="text" name="blxwnr" value="<%=showvalue("blxwnr")%>" size="40" maxlength="250" class="input" check_null="请填写不良行为内容"> <font COLOR="RED">*</font>
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>处理结果:</td>
          <td width="400" nowrap><input type="text" name="cljg" value="<%=showvalue("cljg")%>" size="40" maxlength="250" class="input">
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>审批意见:</td>
          <td width="400" nowrap><input type="text" name="spyj" value="<%=showvalue("spyj")%>" size="40" maxlength="250" class="input">
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>经办人:</td>
          <td width="400" nowrap><input type="text" name="jbr" value="<%=showvalue("jbr")%>" size="40" maxlength="250" class="input">
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>审批人:</td>
          <td width="400" nowrap><input type="text" name="spr" value="<%=showvalue("spr")%>" size="40" maxlength="250" class="input">
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>有效时间:</td>
          <td width="400" nowrap><input TYPE="TEXT" SIZE="12" MAXLENGTH="12" NAME="yxsjs" value="<%=showvalue("yxsjs")%>" class="input" check_date="日期格式错误" onKeyUp="DateFormat(this,this.value,event,false,'2')" check_null="请填写有效时间"> <a href=# title="选择日期" onClick="fPopUpDlg('../js/calendar.htm', document.eventfrm.yxsjs, 'winpop', 234, 261);return false"><img src="../images/datetime.gif" border=0></a> <font COLOR="RED">*</font>
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>有效时间:</td>
          <td width="400" nowrap><input TYPE="TEXT" SIZE="12" MAXLENGTH="12" NAME="yxsje" value="<%=showvalue("yxsje")%>" class="input" check_date="日期格式错误" onKeyUp="DateFormat(this,this.value,event,false,'2')" check_null="请填写有效时间"> <a href=# title="选择日期" onClick="fPopUpDlg('../js/calendar.htm', document.eventfrm.yxsje, 'winpop', 234, 261);return false"><img src="../images/datetime.gif" border=0></a> <font COLOR="RED">*</font>
          </td>
        </tr>
        <tr>
          <td width="100" align="right" valign="top" nowrap>备注:</td>
          <td width="400" nowrap><input type="text" name="bz" value="<%=showvalue("bz")%>" size="40" maxlength="250" class="input">
          </td>
        </tr>
        <tr>
          <td width="100%" colspan="2" align="center" 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 + -