📄 frm_gsz_basic_remove.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
gsz_basicId=request.form("chgsz_basic")
if gsz_basicId="" then
response.redirect "/profile/errorpage.asp?title=删除供水站概况&msg=您没有选择任何数据!"
end if
isSub=request.form("isSub")
Set Rs = Server.CreateObject("ADODB.RecordSet")
if isSub="" then
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_gsz,oil.oil_zsz where gsz_id in (" &gsz_basicId& ") and gsz_zsz_id=zsz_id order by gsz_id"
rs.open SQL,conn,1,1
dim gsz_basic(),gsz_basicCount
gsz_basicCount=0
do while not rs.eof
gsz_basicCount=gsz_basicCount+1
redim preserve gsz_basic(gsz_basicCount)
gsz_basic(gsz_basicCount-1)=""
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_id")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("zsz_name")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_name")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_where")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_date")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_sj_yl")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_sj_zsl")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_sy_syj")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_sy_csnl")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_sy_csl")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_sy_gg")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_sy_memo")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_gsl")
gsz_basic(gsz_basicCount-1)=gsz_basic(gsz_basicCount-1)& "@" & rs("gsz_memo")
rs.movenext
loop
rs.close
end if
%>
<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><%=gsz_basicId%></font>吗?
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=1400>
<tr height="20">
<td class="title" align=center width=60 rowspan=2>注水站</td>
<td class="title" align=center width=60 rowspan=2>供水站名称</td>
<td class="title" align=center width=100 rowspan=2>所处地理位置</td>
<td class="title" align=center width=60 rowspan=2>建站时间</td>
<td class="title" align=center colspan=2>设计能力</td>
<td class="title" align=center colspan=5>水源情况</td>
<td class="title" align=center width=60 rowspan=2>目前供水量</td>
<td class="title" align=center width=180 rowspan=2>备注</td>
</tr>
<tr height="20">
<td class="title" align=center width=100>设计压力(MPa)</td>
<td class="title" align=center width=100>设计注水量(m3)</td>
<td class="title" align=center width=100>水源井名称</td>
<td class="title" align=center width=120>水源井单井产水能力(m3/d)</td>
<td class="title" align=center width=120>水源井单井产水量(m3/d)</td>
<td class="title" align=center width=120>水源井供水管线规格及长度</td>
<td class="title" align=center width=100>备注</td>
</tr>
<%for i=0 to gsz_basicCount-1%>
<tr height="20" align=center>
<td> <%=split(gsz_basic(i),"@")(2)%></td>
<td> <%=split(gsz_basic(i),"@")(3)%></td>
<td> <%=split(gsz_basic(i),"@")(4)%></td>
<td> <%=split(gsz_basic(i),"@")(5)%></td>
<td> <%=split(gsz_basic(i),"@")(6)%></td>
<td> <%=split(gsz_basic(i),"@")(7)%></td>
<td> <%=split(gsz_basic(i),"@")(8)%></td>
<td> <%=split(gsz_basic(i),"@")(9)%></td>
<td> <%=split(gsz_basic(i),"@")(10)%></td>
<td> <%=split(gsz_basic(i),"@")(11)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(gsz_basic(i),"@")(12)%></textarea></td>
<td> <%=split(gsz_basic(i),"@")(13)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(gsz_basic(i),"@")(14)%></textarea></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=chgsz_basic value="<%=gsz_basicId%>">
<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_gsz_basic.asp");'>
</td>
</tr>
</table>
<%
else
SQL="delete from oil.oil_gsz where gsz_id in (" &gsz_basicId& ")"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
供水站<font color=cc0000><%=gsz_basicId%></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="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='javascript:location.replace("frm_gsz_basic.asp");'>
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -