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

📄 frm_well_tube_modify.asp

📁 一套石油公司内部的运营管理系统
💻 ASP
字号:
<!--#include virtual="/include/DBCon.inc"-->
<html>
<head>
 
<title>油田采油工艺综合管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/css/oil.css" type="text/css">
<SCRIPT LANGUAGE="javascript" src="/include/calender.js"></SCRIPT>
<SCRIPT LANGUAGE=javascript>
<!--
function subcheck() {
	form1.submit();
}
-->
</SCRIPT>

</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
	<%
	tubeId=request.form("chtube")
	if tubeId="" then
		response.redirect "/profile/errorpage.asp?title=删除套管数据&msg=您没有选择任何套管!" 
	else
		tubeId=split(tubeId,",")(0)
	end if
	wellId=request("wellId")
	isSub=request.form("isSub")
	if isSub="" then
	%>
	<span class="subject">
		修改井<%=wellId%>的套管数据<%=tubeId%>
	</span> 
	<hr size="1" class=hr width="98%" align="center">
	<br>
	<form action="" method=post name=form1>
	<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2" 
	  bordercolor="#000000" bordercolordark="#F8EDEB" width="90%">
	  <tr height="20">
	   <td class="title" align=center width=30%>套破日期</td>
	   <td align=left width=70%>&nbsp&nbsp<input type=text name=text1 size=20 class=text>&nbsp<input type=button value=".." class=button onclick="fPopCalendar(text1,text1); return false" alt="按此选时"></td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>工程测井日期</td>
	   <td align=left width=70%>&nbsp&nbsp<input type=text name=text2 size=20 class=text>&nbsp<input type=button value=".." class=button onclick="fPopCalendar(text2,text2); return false" alt="按此选时"></td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>测井仪器</td>
	   <td align=left width=70%>&nbsp&nbsp<textarea name=text3 cols=30 rows=3 class=text></textarea></td>
	  </tr> 
	  <tr height="20">
	   <td class="title" align=center width=30%>公测结果</td>
	   <td align=left width=70%>&nbsp&nbsp<textarea name=text4 cols=30 rows=3 class=text></textarea></td>
	  </tr> 
	</table>
	<br>
	<hr size="1" class=hr width="98%" align="center">
	  <br>
	  <table width="98%" border="0" cellspacing="0" cellpadding="2" align="center">
		<tr align="center"> 
		  <td> 
			<input type=hidden name=wellId value=<%=wellId%>>
			<input type=hidden name=chtube value=<%=tubeId%>>
			<input type=hidden name=isSub value=true>
			<input type="button" name="Submit32" value=" 更新 " class=button onclick=subcheck()>
			<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_well_tube.asp?wellId=<%=wellId%>");'>
		  </td>
		</tr>
	  </table>
	</form>
	<%
	else
		text1=request.form("text1")
		text2=request.form("text2")
		text3=request.form("text3")
		text4=request.form("text4")
		Set Rs = Server.CreateObject("ADODB.RecordSet")
		SQL="select * from oil.oil_tube where tube_id='" &tubeId& "'"
		rs.open SQL,conn,1,3
		if text1<>"" then
			rs("tube_date")=text1
		end if
		if text2<>"" then
			rs("tube_test_date")=text2
		end if
		if text3<>"" then
			rs("tube_test_appa")=text3
		end if
		if text4<>"" then
			rs("tube_test_result")=text4
		end if
		rs.update
		rs.close
		response.redirect "frm_well_tube.asp?wellId=" &wellId
	end if
	%>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->

⌨️ 快捷键说明

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