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

📄 edit.asp

📁 功能齐全的oa系统
💻 ASP
字号:
<% option explicit%>
<!-- #include virtual="include/DataEnvi.asp" -->
<!-- #include virtual="include/Page.asp" -->

<%
	Dim ObjDB
	Dim C
	Dim IntID,IntParentID
	Dim ObjRS
	
	IntID = Request.QueryString("ID")
	
	Set ObjDB = Server.CreateObject("ADODB.Connection")
	OpenDB ObjDB

	Set C = Server.CreateObject ("CMS2003.DBhandle")
	C.Init(ObjDB)

	If Request.Form.Count > 0 Then
		IntID = Request.Form("ID")
	
		Call C.Edit(IntID,"_","t_OA_EI_DataUP")
	    ObjDB.Close
     	Set ObjDB = Nothing
%>
<script language=javascript>
parent.doList()
</script>
<%
		Response.End 
	End If

	Set ObjRS = C.View("Select * From t_OA_EI_DataUP Where ID = " & IntID)
	
	ObjDB.Close
	Set ObjDB = Nothing

Sub Main
%>
	<form action="" method="post" onsubmit="return(CheckForm(this))" id=form1 name=form1>
	<input type=hidden name=ID value="<%=IntID%>">
	<table class=Ltable cellspacing=1 cellpadding=3>
	<tr class=LHtr>
		<td width="15%">新增资料</td>
		<td width="85%"> </td>
	</tr>
	<tr class=Ltr>
		<td>新增</td>
		<td>
			<table border=0>
			<tr>
			<td><img src="../../../images/oa/private/data/file.gif"></td>
			<td>文件  </td>
			</tr>
			</table>		
		</td>
	</tr>
	
	<tr class=Ltr id=Content21 style="display=''">
		<td>文件名</td>
		<td><input type="text" class=Input Check=1 Show="文件名" name="_FileName" value="<%=ObjRS("FileName")%>"></td>
	</tr>
	<tr class=Ltr id=Content21 style="display=''">
		<td>所属科室</td>
		<td>
			<select name="_BelongTo">
				<option value=1 <%If ObjRS("BelongTo")=1 Then Response.Write " Selected"%>>生产运行科</option>
				<option value=2 <%If ObjRS("BelongTo")=2 Then Response.Write " Selected"%>>综合办公室</option>
				<option value=3 <%If ObjRS("BelongTo")=3 Then Response.Write " Selected"%>>技术安全科</option>
				<option value=4 <%If ObjRS("BelongTo")=4 Then Response.Write " Selected"%>>计划财务科</option>
				<option value=5 <%If ObjRS("BelongTo")=5 Then Response.Write " Selected"%>>车辆管理科</option>
				<option value=6 <%If ObjRS("BelongTo")=6 Then Response.Write " Selected"%>>保  卫  科</option>
			</select>
		</td>
	</tr>
	<tr class=Ltr id=Content4 style="display=''">
		<td>检索关键字</td>
		<td><input type="text" class=Input  name="_KeyWord" value="<%=ObjRS("KeyWord")%>"></td>
	</tr>
	</table>
	<table cellspacing=1 cellpadding=3>
	<tr>
		<td>
		<input type="submit"  name="Submit" class=Button value="提 交">
		<input type="button" class=Button value="取 消" onclick="doList()" id=button1 name=button1>
		</td>
		<td>
		</td>
	</tr>
	</table>

	</form>
<%
End Sub
%>
<!-- #include file="templet.asp" -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -