📄 frm_psj_basic_add_confirm.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
text1=request.form("text1")
text2=request.form("text2")
text3=request.form("text3")
text4=request.form("text4")
text5=request.form("text5")
text6=request.form("text6")
text7=request.form("text7")
text8=request.form("text8")
text9=request.form("text9")
text10=request.form("text10")
text11=request.form("text11")
text12=request.form("text12")
text13=request.form("text13")
text14=request.form("text14")
text15=request.form("text15")
text16=request.form("text16")
text17=request.form("text17")
'以下从数据库取出注水站
dim zsz(1)
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_zsz where zsz_id='" &text6& "'"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
response.redirect "/profile/errorpage.asp?title=注水站&msg=数据库里没有注水站信息"
else
zsz(0)=rs("zsz_name") & "-" & rs("zsz_id")
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 method=post name=form1>
<span class="subject">
添加新配水间资料
</span>
<hr size="1" class=hr width="98%" align="center">
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
新数据成功添加
</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 colspan=2>配水间名称</td>
<td align=left width=70%>  
<%=text1%>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>所处地理位置</td>
<td align=left width=70%>  
<%=text2%>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2>建站时间</td>
<td align=left width=70%>  
<%=text3%>
</td>
</tr>
<tr height="20">
<td class="title" align=center rowspan=2 width=10%>设计能力</td>
<td class="title" align=center width=20%>设计压力</td>
<td align=left width=70%>  
<%=text4%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>设计注水量</td>
<td align=left width=70%>  
<%=text5%>
</td>
</tr>
<tr height="20">
<td class="title" align=center rowspan=3 width=10%>供水情况</td>
<td class="title" align=center width=20%>隶属注水站名称</td>
<td align=left width=70%>  
<%=split(zsz(0),"-")(0)%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>供水管线规格及长度</td>
<td align=left width=70%>  
<%=text7%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>供水量</td>
<td align=left width=70%>  
<%=text8%>
</td>
</tr>
<tr height="20">
<td class="title" align=center rowspan=8 width=10%>目前生产情况</td>
<td class="title" align=center width=20%>所辖注水井数量</td>
<td align=left width=70%>  
<%=text9%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>目前注水量</td>
<td align=left width=70%>  
<%=text10%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>流程方式(单管,双管)</td>
<td align=left width=70%>  
<%=text11%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>几井式分水器</td>
<td align=left width=70%>  
<%=text12%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>分水器安装方式</td>
<td align=left width=70%>  
<%=text13%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>已用几个头子</td>
<td align=left width=70%>  
<%=text14%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>还剩几个空头子</td>
<td align=left width=70%>  
<%=text15%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=20%>空头子配件情况</td>
<td align=left width=70%>  
<%=text16%>
</td>
</tr>
<tr height="20">
<td class="title" align=center colspan=2%>备注</td>
<td align=left width=70%>  
<textarea cols=30 rows=3 class=text><%=text17%></textarea>
</td>
</tr>
</table>
<%
dim maxId
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select psj_id from oil.oil_psj"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
maxId=0
rs.close
else
rs.close
SQL="select MAX(psj_id) as maxId from oil.oil_psj"
rs.open SQL,conn,1,1
maxId=rs("maxId")
rs.close
end if
SQL="select * from oil.oil_psj"
rs.open SQL,conn,1,3
rs.addnew
rs("psj_id")=cint(maxId)+1
rs("psj_name")=text1
rs("psj_where")=text2
rs("psj_date")=text3
rs("psj_des_yl")=text4
rs("psj_des_zsl")=text5
rs("psj_gs_zsz_id")=text6
rs("psj_gs_gsg")=text7
rs("psj_gs_gsl")=text8
rs("psj_sc_zsj")=text9
rs("psj_sc_zsl")=text10
rs("psj_sc_lc")=text11
rs("psj_sc_fsq")=text12
rs("psj_sc_azfs")=text13
rs("psj_sc_tz")=text14
rs("psj_sc_ktz")=text15
rs("psj_sc_ktzpj")=text16
rs("psj_memo")=text17
rs.Update
rs.close
%>
<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_psj_basic.asp");'>
</td>
</tr>
</table>
</form>
</body>
</html>
<!--#include virtual="/include/DBClose.inc"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -