📄 frm_zsgcrb.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>
<!--
function subcheck(act) {
if (act==0)
form1.action="frm_zsgcrb_remove.asp";
else
form1.action="frm_zsgcrb_modify.asp";
form1.submit();
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<%
sdate=cdate(request("year") & "-" & request("month") & "-" & request("day"))
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_zsrb,oil.oil_dict where zsrb_date='" &sdate& "' and zsrb_danw=dict_code and dict_type='area'"
rs.open SQL,conn,1,1
dim zsrb(),zsrbCount
zsrbCount=0
do while not rs.eof
zsrbCount=zsrbCount+1
redim preserve zsrb(zsrbCount)
zsrb(zsrbCount-1)=""
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_id")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("dict_value")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_jhkj")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_sjkj")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_lyl")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_jhrz")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_sjrz")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_ylj")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_nlj")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_xbzr")
zsrb(zsrbCount-1)=zsrb(zsrbCount-1)& "@" & rs("zsrb_sjyy")
rs.movenext
loop
rs.close
%>
<span class="subject">
<%=sdate%>的注水工程日报
</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=900>
<tr height="20">
<td class="title" align=center width=20> </td>
<td class="title" align=center width=60>作业区</td>
<td class="title" align=center width=80>计划开井口数</td>
<td class="title" align=center width=80>实际开井口数</td>
<td class="title" align=center width=60>利用率</td>
<td class="title" align=center width=60>计划日注</td>
<td class="title" align=center width=60>实际日注</td>
<td class="title" align=center width=80>月累计注水量</td>
<td class="title" align=center width=80>年累计注水量</td>
<td class="title" align=center width=80>与昨日相比</td>
<td class="title" align=center width=180>当日水量升降原因分析</td>
</tr>
<%for i=0 to zsrbCount-1%>
<tr height="20" align=center>
<td> <input type=checkbox name=chzsrb value=<%=split(zsrb(i),"@")(1)%>></td>
<td> <%=split(zsrb(i),"@")(2)%></td>
<td> <%=split(zsrb(i),"@")(3)%></td>
<td> <%=split(zsrb(i),"@")(4)%></td>
<td> <%=split(zsrb(i),"@")(5)%></td>
<td> <%=split(zsrb(i),"@")(6)%></td>
<td> <%=split(zsrb(i),"@")(7)%></td>
<td> <%=split(zsrb(i),"@")(8)%></td>
<td> <%=split(zsrb(i),"@")(9)%></td>
<td> <%=split(zsrb(i),"@")(10)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(zsrb(i),"@")(11)%></textarea></td>
</tr>
<%next%>
</table>
<br>
<table width="98%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td align=center>
<input type="button" name="bt1" value="添加新数据" class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_zsgcrb_add.asp?sdate=<%=sdate%>");'>
<input type="button" name="bt1" value="更新选中的数据" class=button LANGUAGE=javascript onclick=subcheck(1)>
<input type="button" name="bt1" value="删除选中的数据" class=button LANGUAGE=javascript onclick=subcheck(0)>
<input type=hidden name=sdate value=<%=sdate%>>
</td>
</tr>
</table>
<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="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_zsgcrb_form.asp");'>
</td>
</tr>
</table>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -