⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rifa.asp

📁 一款用ASP写的办公自动化软件
💻 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
		if not rs1.eof then
			response.Write("<script language=javascript>alert('对不起,一天只能发布一次!');location='javascript:history.go(-1)'</script>")
		else
			set rs=server.CreateObject("adodb.recordset")
			sql="select * from ri"
			rs.open sql,conn,1,3
			rs.addnew
			rs("mei")=request("mei")
			rs("gang")=request("gang")
			rs("yun")=request("yun")
			rs("date")=date()
			rs("week")=weekday(date())-1
			rs("ji")=clng(date())
			rs("month")=month(date())
			rs("year")=year(date())
			rs.update
			rs.close
			response.Redirect("chenggong.htm")
		end if
	end function
%>
<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: #0000FF;
}
body,td,th {
	font-size: 12px;
}
body {
	background-color: #ffffff;
}
.style3 {color: #000000}
-->
</style>
<link href="biaodan.css" rel="stylesheet" type="text/css">
</head>

<body>
<form name="form1" method="post" action="">
  <table width="378" height="208" border="0" align="center" cellspacing="1" bgcolor="#336699">
    <tr>
      <td height="48" colspan="2" background="images/tile_sub.gif"><div align="center" class="style1 style3">发表日报表</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" class="unnamed1">
      (吨)
      <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" class="unnamed1">
      (吨)</td>
    </tr>
    <tr>
      <td height="43" bgcolor="#FFFFFF"><div align="center">运行情况:</div></td>
      <td bgcolor="#FFFFFF"> 
        <input name="yun" type="text" id="yun" class="unnamed1"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="43" 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 + -