📄 riup.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=data/conn.asp-->
<!--#include file=connfig.asp-->
<!--#include file=inc/yan.asp-->
<%
call case5
%>
<%
if request("post")<>"" and (ps("huibao")=1 or ps("chaoji")=1)then
call write1
end if
function write1
hh=clng(date())
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from ri where ji='"&hh&"'"
rs1.open sql1,conn,1,1
set rs=server.CreateObject("adodb.recordset")
sql="select * from ri where id="&request("id")
rs.open sql,conn,1,3
rs("mei")=request("mei")
rs("gang")=request("gang")
rs("yun")=request("yun")
rs.update
rs.close
response.Redirect("chenggong.htm")
end function
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from ri where id="&request("id")
rs1.open sql1,conn,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style1 {
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
body,td,th {
font-size: 12px;
}
body {
background-color: #ffffff;
}
.style2 {
color: #000000;
font-size: 14px;
}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="">
<table width="378" height="209" border="0" align="center" cellspacing="1" bgcolor="#336699">
<tr>
<td height="43" colspan="2" background="images/tile_sub.gif"><div align="center" class="style1 style2">修改日报</div></td>
</tr>
<tr>
<td width="115" height="38" bgcolor="#FFFFFF"><div align="center">消耗(煤):</div></td>
<td width="253" bgcolor="#FFFFFF"><input name="mei" type="text" id="mei" value="<%=rs1("mei")%>">
(吨)
<input name="post" type="hidden" id="post" value="true"></td>
</tr>
<tr>
<td height="36" bgcolor="#FFFFFF"><div align="center">生产(钢):</div></td>
<td bgcolor="#FFFFFF"><input name="gang" type="text" id="gang" value="<%=rs1("gang")%>">
(吨)</td>
</tr>
<tr>
<td height="43" bgcolor="#FFFFFF"><div align="center">运行情况:</div></td>
<td bgcolor="#FFFFFF"><input name="yun" type="text" id="yun" value="<%=rs1("yun")%>"></td>
</tr>
<tr bgcolor="#F3F3F3">
<td height="35" colspan="2"><div align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -