?? frm_sgsj_remove.asp
字號(hào):
<!--#include virtual="/include/DBCon.inc"-->
<%
sgsjId=request.form("chsgsj")
if sgsjId="" then
response.redirect "/profile/errorpage.asp?title=刪除措施作業(yè)施工設(shè)計(jì)數(shù)據(jù)&msg=您沒有選擇任何數(shù)據(jù)!"
end if
wellId=request.form("wellId")
sdate=request.form("sdate")
ctype=request.form("cstype")
isSub=request.form("isSub")
datest=cdate(sdate & "-1-1")
dateed=cdate(sdate & "-12-31")
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select file_obj_date,file_id,dict_value,file_name,file_create_date,file_memo from oil.oil_file,oil.oil_dict where file_id in (" &sgsjId& ") and dict_type='cstype' and dict_code=file_cs_type"
rs.open SQL,conn,1,1
dim sgsj(),sgsjCount
sgsjCount=0
do while not rs.eof
tdate=cdate(rs("file_obj_date"))
if tdate>=datest and tdate<=dateed then
sgsjCount=sgsjCount+1
redim preserve sgsj(sgsjCount)
sgsj(sgsjCount-1)=""
sgsj(sgsjCount-1)=sgsj(sgsjCount-1)& "@" & rs("file_id")
sgsj(sgsjCount-1)=sgsj(sgsjCount-1)& "@" & rs("dict_value")
sgsj(sgsjCount-1)=sgsj(sgsjCount-1)& "@" & rs("file_name")
sgsj(sgsjCount-1)=sgsj(sgsjCount-1)& "@" & rs("file_create_date")
sgsj(sgsjCount-1)=sgsj(sgsjCount-1)& "@" & rs("file_memo")
end if
rs.movenext
loop
rs.close
%>
<html>
<head>
<title>油田采油工藝綜合管理系統(tǒng)</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">刪除數(shù)據(jù)</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>
您確定要?jiǎng)h除<%=sdate%>年度井<%=wellId%>的措施作業(yè)施工設(shè)計(jì)數(shù)據(jù)<font color=cc0000><%=sgsjId%></font>嗎?
</td>
</tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" align="center" class="table2"
bordercolor="#000000" bordercolordark="#F8EDEB" width=600>
<tr height="20">
<td class="title" align=center width=60>措施類型</td>
<td class="title" align=center width=200>查看文檔</td>
<td class="title" align=center width=80>上傳日期</td>
<td class="title" align=center width=200>文件備注</td>
</tr>
<%for i=0 to sgsjCount-1%>
<tr height="20" align=center>
<td> <%=split(sgsj(i),"@")(2)%></td>
<td> <%=split(sgsj(i),"@")(3)%></td>
<td> <%=split(sgsj(i),"@")(4)%></td>
<td> <textarea rows=2 cols=25 class=text><%=split(sgsj(i),"@")(5)%></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=wellId value="<%=wellId%>">
<input type=hidden name=sdate value="<%=sdate%>">
<input type=hidden name=cstype value="<%=ctype%>">
<input type=hidden name=chsgsj value="<%=sgsjId%>">
<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_sgsj.asp?well_id=<%=wellId%>&date=<%=sdate%>&cstype=<%=ctype%>");'>
</td>
</tr>
</table>
<%
else
SQL="delete from oil.oil_file where file_id in (" &sgsjId& ")"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
措施作業(yè)施工設(shè)計(jì)數(shù)據(jù)<font color=cc0000><%=sgsjId%></font>已經(jīng)成功刪除。
</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_sgsj.asp?well_id=<%=wellId%>&date=<%=sdate%>&cstype=<%=ctype%>");'>
</td>
</tr>
</table>
<%
end if
%>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -