📄 frm_xgrb_add.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() {
var well=form1.text1.value;
var wellnew=form1.text1new.value;
if (well=="" && wellnew=="") {
window.alert("您没有选择井!");
}
else {
form1.action="frm_xgrb_add_confirm.asp";
form1.submit();
}
}
function wtCh() {
form1.submit();
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<%
sdate=request("sdate")
syear=split(sdate,"-")(0)
smonth=split(sdate,"-")(1)
sday=split(sdate,"-")(2)
welltype=request.form("welltype")
dim well(),wellCount
%>
<span class="subject">
添加<%=split(sdate,"-")(0)%>年<%=split(sdate,"-")(1)%>月<%=split(sdate,"-")(2)%>日的措施井效果跟踪日报
</span>
<hr size="1" class=hr width="98%" align="center">
<br>
<form action="" method=post name=form1>
<%
if welltype=0 then
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select DISTINCT(xgrb_well_id) from oil.oil_xgrb where xgrb_well_type='0'"
rs.open SQL,conn
wellCount=0
do while not rs.eof
wellCount=wellCount+1
redim preserve well(wellCount)
well(wellCount-1)=rs("xgrb_well_id")
rs.movenext
loop
rs.close
%>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width="90%">
<tr height="20">
<td class="title" colspan=2 align=center width=30%>油井种类</td>
<td align=left width=70%>  
<select name=welltype onchange=wtCh()>
<option value=0 selected>油井</option>
<option value=1>水井</option>
</select>
</td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>井号</td>
<td align=left width=70%>  
<select name=text1>
<option value="">请选择...</option>
<%for i=0 to wellCount-1%>
<option value=<%=well(i)%>><%=well(i)%></option>
<%next%>
</select>
                新井
<input type=text name=text1new size=20 class=text>
</td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>措施内容</td>
<td align=left width=70%>  <textarea name=text2 cols=30 rows=3 class=text></textarea></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>完井日期</td>
<td align=left width=70%>  <input type=text name=text3 size=20 class=text> <input type=button value=".." class=button onclick="fPopCalendar(text3,text3); return false" alt="按此选时"></td>
</tr>
<tr height="20">
<td class="title" rowspan=3 align=center width=15%>措施前</td>
<td class="title" align=center width=15%>日产液</td>
<td align=left width=70%>  <input type=text name=text4 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>日产油</td>
<td align=left width=70%>  <input type=text name=text5 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>含水</td>
<td align=left width=70%>  <input type=text name=text6 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" rowspan=3 align=center width=15%>目前</td>
<td class="title" align=center width=15%>日产液</td>
<td align=left width=70%>  <input type=text name=text7 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>日产油</td>
<td align=left width=70%>  <input type=text name=text8 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>含水</td>
<td align=left width=70%>  <input type=text name=text9 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>日增油</td>
<td align=left width=70%>  <input type=text name=text10 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>备注</td>
<td align=left width=70%>  <textarea name=text11 cols=30 rows=3 class=text></textarea></td>
</tr>
</table>
<%
else
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select DISTINCT(xgrb_well_id) from oil.oil_xgrb where xgrb_well_type='1'"
rs.open SQL,conn
wellCount=0
do while not rs.eof
wellCount=wellCount+1
redim preserve well(wellCount)
well(wellCount-1)=rs("xgrb_well_id")
rs.movenext
loop
rs.close
%>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width="90%">
<tr height="20">
<td class="title" colspan=2 align=center width=30%>油井种类</td>
<td align=left width=70%>  
<select name=welltype onchange=wtCh()>
<option value=0>油井</option>
<option value=1 selected>水井</option>
</select>
</td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>井号</td>
<td align=left width=70%>  
<select name=text1>
<option value="">请选择...</option>
<%for i=0 to wellCount-1%>
<option value=<%=well(i)%>><%=well(i)%></option>
<%next%>
</select>
                新井
<input type=text name=text1new size=20 class=text>
</td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>措施内容</td>
<td align=left width=70%>  <textarea name=text2 cols=30 rows=3 class=text></textarea></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>完井日期</td>
<td align=left width=70%>  <input type=text name=text3 size=20 class=text> <input type=button value=".." class=button onclick="fPopCalendar(text3,text3); return false" alt="按此选时"></td>
</tr>
<tr height="20">
<td class="title" rowspan=2 align=center width=15%>措施前</td>
<td class="title" align=center width=15%>管压</td>
<td align=left width=70%>  <input type=text name=text4 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>日注量</td>
<td align=left width=70%>  <input type=text name=text5 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" rowspan=2 align=center width=15%>目前</td>
<td class="title" align=center width=15%>管压</td>
<td align=left width=70%>  <input type=text name=text6 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" align=center width=15%>日注量</td>
<td align=left width=70%>  <input type=text name=text7 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>日增注</td>
<td align=left width=70%>  <input type=text name=text8 size=20 class=text></td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>备注</td>
<td align=left width=70%>  <textarea name=text9 cols=30 rows=3 class=text></textarea></td>
</tr>
</table>
<%
end if
%>
<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=sdate value=<%=sdate%>>
<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_xgrb.asp?year=<%=syear%>&month=<%=smonth%>&day=<%=sday%>");'>
</td>
</tr>
</table>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -