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

📄 kucunadd.asp

📁 一款用ASP写的办公自动化软件
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=data/conn.asp-->
<!--#include file=connfig.asp-->
<!--#include file=inc/yan.asp-->
<% 
	'判断用户权限
	call case8
	if request("post")<>"" and  (ps("kucun")=1 or ps("chaoji")=1) then 
	call write1
	end if
	function write1
		if request("xinghao")<>"" and request("fa")<>"" and request("ru")<>"" then
			set rs=server.CreateObject("adodb.recordset")
			sql="select * from kucun"
			rs.open sql,conn,1,3
			rs.addnew
			rs("name")=session("admin_name")
			rs("xinghao")=request("xinghao")
			rs("fa")=request("fa")
			rs("ru")=request("ru")
			rs("time")=now()
			rs.update
			rs.close
			response.Redirect("chenggong.htm")
		else
			response.Write("<script language=javascript>alert('请把信息填写完整!')</script>")
		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;
	font-size: 14px;
}
-->
</style>
</head>

<body>
<form name="form1" method="post" action="">
  <table width="322" height="200" border="0" align="center" cellspacing="1" bgcolor="#336699">
    <tr>
      <td height="45" colspan="2" background="images/tile_sub.gif"><div align="center" class="style1 style3">发布库存</div></td>
    </tr>
    <tr>
      <td width="100" height="36" bgcolor="#FFFFFF"><div align="center">产品名称:</div></td>
      <td width="212" bgcolor="#FFFFFF"><input name="xinghao" type="text" id="xinghao">
      <input name="post" type="hidden" id="post" value="true"></td>
    </tr>
    <tr>
      <td height="34" bgcolor="#FFFFFF"><div align="center">&nbsp;&nbsp;&nbsp;&nbsp;出库:</div></td>
      <td bgcolor="#FFFFFF"><input name="fa" type="text" id="fa" value="0"></td>
    </tr>
    <tr>
      <td height="39" bgcolor="#FFFFFF"><div align="center">&nbsp;&nbsp;&nbsp;&nbsp;入库:</div></td>
      <td bgcolor="#FFFFFF"><input name="ru" type="text" id="ru" value="0"></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td height="40" 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 + -