?? frm_well_tube_remove.asp
字號:
<!--#include virtual="/include/DBCon.inc"-->
<%
tubeId=request.form("chtube")
if tubeId="" 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_tube where tube_id in (" &tubeId& ")"
rs.open SQL,conn,1,1
dim tube(),tubeCount
tubeCount=0
do while not rs.eof
tubeCount=tubeCount+1
redim preserve tube(tubeCount)
tube(tubeCount-1)=""
tube(tubeCount-1)=tube(tubeCount-1)& "@" & rs("tube_id")
tube(tubeCount-1)=tube(tubeCount-1)& "@" & rs("tube_date")
tube(tubeCount-1)=tube(tubeCount-1)& "@" & rs("tube_test_date")
tube(tubeCount-1)=tube(tubeCount-1)& "@" & rs("tube_test_appa")
tube(tubeCount-1)=tube(tubeCount-1)& "@" & rs("tube_test_result")
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><%=tubeId%></font>嗎?
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=90%>
<tr height="20">
<td class="title" align=center width=10%>數據編號</td>
<td class="title" align=center width=15%>套破日期</td>
<td class="title" align=center width=15%>工程測井日期</td>
<td class="title" align=center width=20%>測井儀器</td>
<td class="title" align=center width=35%>公測結果</td>
</tr>
<%for i=0 to tubeCount-1%>
<tr height="20" align=center>
<td> <%=split(tube(i),"@")(1)%></td>
<td> <%=split(tube(i),"@")(2)%></td>
<td> <%=split(tube(i),"@")(3)%></td>
<td> <%=split(tube(i),"@")(4)%></td>
<td> <%=split(tube(i),"@")(5)%></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=chtube value="<%=tubeId%>">
<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_well_tube.asp?wellId=<%=wellId%>");'>
</td>
</tr>
</table>
<%
else
SQL="delete from oil.oil_tube where tube_id in (" &tubeId& ")"
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><%=tubeId%></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_well_tube.asp?wellId=<%=wellId%>");'>
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -