📄 frm_cyj.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_cyj_remove.asp";
else
form1.action="frm_cyj_modify.asp";
form1.submit();
}
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<%
syear=request.form("year")
if syear="" then
syear=year(now)
end if
stdate=cdate(syear &"-1-1")
eddate=cdate(syear &"-12-31")
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_cyj,oil.oil_dict,oil.oil_well where cyj_well_id=well_id and well_area=dict_code and dict_type='area'"
rs.open SQL,conn,1,1
dim cyj(),cyjCount
cyjCount=0
do while not rs.eof
tdate=cdate(rs("cyj_date"))
if tdate>=stdate and tdate<=eddate then
cyjCount=cyjCount+1
redim preserve cyj(cyjCount)
cyj(cyjCount-1)=""
cyj(cyjCount-1)=cyj(cyjCount-1)& "@" & rs("cyj_id")
cyj(cyjCount-1)=cyj(cyjCount-1)& "@" & rs("dict_value")
cyj(cyjCount-1)=cyj(cyjCount-1)& "@" & rs("cyj_well_id")
cyj(cyjCount-1)=cyj(cyjCount-1)& "@" & rs("cyj_date")
cyj(cyjCount-1)=cyj(cyjCount-1)& "@" & rs("cyj_yxsl")
end if
rs.movenext
loop
rs.close
%>
<span class="subject">
<%=syear%>年的测压井动态表
</span>
<hr size="1" class=hr width="98%" align="center">
<br>
<form action="" method=post name=form1>
<table border=0 width=90%>
<tr>
<td>
<select name=year onchange=submit()>
<%for i=0 to 20%>
<option value=<%=2000+i%> <%if cint(syear)=2000+i then response.write " selected" end if%>><%=2000+i%></option>
<%next%>
</select>年
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=560>
<tr height="20">
<td class="title" align=center width=20> </td>
<td class="title" align=center width=120>作业区</td>
<td class="title" align=center width=120>水井号</td>
<td class="title" align=center width=120>测压日期</td>
<td class="title" align=center width=140>影响水量</td>
</tr>
<%for i=0 to cyjCount-1%>
<tr height="20" align=center>
<td> <input type=checkbox name=chcyj value=<%=split(cyj(i),"@")(1)%>></td>
<td> <%=split(cyj(i),"@")(2)%></td>
<td> <%=split(cyj(i),"@")(3)%></td>
<td> <%=split(cyj(i),"@")(4)%></td>
<td> <%=split(cyj(i),"@")(5)%></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_cyj_add.asp?syear=<%=syear%>");'>
<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)>
</td>
</tr>
</table>
<hr size="1" class=hr width="98%" align="center">
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -