📄 frm_layercs_by_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() {
form1.action="frm_layercs_by_add_confirm.asp";
form1.submit();
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<%
wellId=request("wellId")
sdate=request("sdate")
'以下从数据库取出层种类
dim layerType(),layerTypeCount
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_dict where dict_type='layer'"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
response.redirect "/profile/errorpage.asp?title=查询油水井数据&msg=数据库里没有层种类信息"
else
layerTypeCount=0
do while not rs.eof
layerTypeCount=layerTypeCount+1
redim preserve layerType(layerTypeCount)
layerType(UBound(layerType)-1)=rs("dict_value") & "-" & rs("dict_code")
rs.movenext
loop
end if
%>
<span class="subject">
添加新数据到井<%=wellId%>的爆压措施情况表
</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" colspan=2 align=center width=30%>层类别</td>
<td align=left width=70%>  
<select name=text1>
<option value="">请选择......</option>
<%for i=0 to layerTypeCount-1%>
<option value=<%=split(layerType(i),"-")(1)%>><%=split(layerType(i),"-")(0)%></option>
<%next%>
</select>
</td>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>层位</td>
<td align=left width=70%>  <input type=text name=text2 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=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" colspan=2 align=center width=30%>措施方式</td>
<td align=left width=70%>  <textarea name=text4 cols=30 rows=3 class=text></textarea></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=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" colspan=2 align=center width=15%>压档液配方</td>
<td align=left width=70%>  <textarea name=text7 cols=30 rows=3 class=text></textarea></td>
</tr>
</tr>
<tr height="20">
<td class="title" colspan=2 align=center width=30%>备注</td>
<td align=left width=70%>  <textarea name=text8 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=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_layercs_by.asp?well_id=<%=wellId%>&date=<%=sdate%>");'>
</td>
</tr>
</table>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -