📄 frm_ydwxfy_add_confirm.asp
字号:
<!--#include virtual="/include/DBCon.inc"-->
<%
syear=request.form("year")
smonth=request.form("month")
isSub=request.form("isSub")
wellId=request.form("wellId")
text1=request.form("text1")
text2=request.form("text2")
text3=request.form("text3")
text4=request.form("text4")
text5=request.form("text5")
%>
<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">
添加<%=syear%>年<%=smonth%>月井<%=wellId%>的维修费用结算数据
</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>
您确认要添加新数据吗?
</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=30%>维修种类</td>
<td align=left width=70%>  
<%=split(text1,"@")(1)%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=30%>维修日期</td>
<td align=left width=70%>  
<%=text2%>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=30%>维修原因</td>
<td align=left width=70%>  
<textarea rows=2 cols=25 class=text><%=text3%></textarea>
</td>
</tr>
<tr height="20">
<td class="title" align=center width=30%>费用结算</td>
<td align=left width=70%>  
<%=text4%>
</td>
<tr height="20">
<td class="title" align=center width=30%>备注</td>
<td align=left width=70%>  
<textarea rows=2 cols=25 class=text><%=text5%></textarea>
</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=year value="<%=syear%>">
<input type=hidden name=month value="<%=smonth%>">
<input type=hidden name=wellId value="<%=wellId%>">
<input type=hidden name=text1 value="<%=text1%>">
<input type=hidden name=text2 value="<%=text2%>">
<input type=hidden name=text3 value="<%=text3%>">
<input type=hidden name=text4 value="<%=text4%>">
<input type=hidden name=text5 value="<%=text5%>">
<input type=hidden name=isSub value="yes">
<input type=submit name=submit1 value=" 确定 " class=button>
<input type="button" name="Submit32" value=" 返回 " class=button LANGUAGE=javascript onclick='history.go(-1);'>
</td>
</tr>
</table>
<%
else
dim maxId
Set Rs = Server.CreateObject("ADODB.RecordSet")
SQL="select * from oil.oil_owc"
rs.open SQL,conn,1,1
if rs.eof and rs.bof then
maxId=0
rs.close
else
rs.close
SQL="select MAX(owc_id) as maxId from oil.oil_owc"
rs.open SQL,conn,1,1
maxId=rs("maxId")
rs.close
end if
sdate=cdate(syear & "-" & smonth & "-1")
SQL="insert into oil.oil_owc values('" &cint(maxId)+1& "','" &wellId& "','" &split(text1,"@")(0)& "','" &text2& "','" &text3& "','" &text4& "','" &text5& "','" &sdate& "')"
rs.open SQL,conn,1,3
%>
<table width=80% border=0 cellspacing="0" cellpadding="0">
<tr>
<td align=left height=40>
新数据已经成功添加到数据库。
</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_ydwxfy.asp?year=<%=syear%>&month=<%=smonth%>&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 + -