📄 frm_layer_remove.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
layerId=request.form("chlayer")
if layerId="" then
response.redirect "/profile/errorpage.asp?title=删除层基本数据&msg=您没有选择任何数据!"
end if
wellId=request.form("wellId")
isSub=request.form("isSub")
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_layer l,oil.oil_dict d where dict_type='layer' and dict_code=layer_type and layer_id in (" &layerId& ")"
rs.open SQL,conn,1,1
dim layer(),layerCount
layerCount=0
do while not rs.eof
layerCount=layerCount+1
redim preserve layer(layerCount)
layer(layerCount-1)=""
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_id")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("dict_value")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_date")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_manner")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_position")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_ycjd")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_ychd")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_instruct")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_skjd")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_skhd")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_dcyl")
layer(layerCount-1)=layer(layerCount-1)& "@" & rs("layer_memo")
rs.movenext
loop
rs.close
%>
<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>
<!--
-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><br>
<form action="" method=post name=form1>
<span class="subject">删除数据</span>
<hr size="1" class=hr width="98%" align="center">
<%
if isSub="" then
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
您确定要删除井<font color=cc0000><%=wellId%></font>中的层基本数据<font color=cc0000><%=layerId%></font>吗?
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=850>
<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=60>层种类</td>
<td class="title" align=center width=100>投产日期</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=60>油层厚度</td>
<td class="title" align=center width=100>综合解释</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=100>备注</td>
</tr>
<%for i=0 to layerCount-1%>
<tr height="20" align=center>
<td> <input type=checkbox name=chlayer value=<%=split(layer(i),"@")(1)%>></td>
<td> <%=split(layer(i),"@")(1)%></td>
<td> <%=split(layer(i),"@")(2)%></td>
<td> <%=split(layer(i),"@")(3)%></td>
<td> <%=split(layer(i),"@")(4)%></td>
<td> <%=split(layer(i),"@")(5)%></td>
<td> <%=split(layer(i),"@")(6)%></td>
<td> <%=split(layer(i),"@")(7)%></td>
<td> <%=split(layer(i),"@")(8)%></td>
<td> <%=split(layer(i),"@")(9)%></td>
<td> <%=split(layer(i),"@")(10)%></td>
<td> <%=split(layer(i),"@")(11)%></td>
<td> <%=split(layer(i),"@")(12)%></td>
</tr>
<%next%>
</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=chlayer value="<%=layerId%>">
<input type=hidden name=isSub value="true">
<input type=submit name=submit1 value=" 确定 " class=button>
<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_layer.asp?well_id=<%=wellId%>");'>
</td>
</tr>
</table>
<%
else
SQL="delete from oil.oil_layer where layer_id in (" &layerId& ")"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
井<font color=cc0000><%=wellId%></font>中的层基本数据<font color=cc0000><%=layerId%></font>已经成功删除。
</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=isSub value="true">
<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_layer.asp?well_id=<%=wellId%>");'>
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -