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

📄 fileadd.asp

📁 企业信息化管理系统:针对的是一个计算机配件生产公司为背景实现的。
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加文件</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	font-family:Arial, Helvetica, sans-serif;
}
.style1 {color: #C60001;font-size:17px;}
.style2 {
color: #669999;
font-size:14px;
}
-->
</style>
<script language="vbscript"> 
sub add()

if form1.zhuti.value="" and form1.content.value="" then
    window.alert("主题或内容不能为空!")
else
   yes =window.confirm("要送审这个文件?")
if yes = true then
	form1.submit()
end if
end if
end sub

sub guanbi()
window.close()
end sub
</script>    
</head>

<body>
<!--#include file="auto.asp" -->
<%
   sql="select * from Message where Position='jingli'" 
   set rs1=CN.execute(sql)
   sql2="select * from part"
   set rs2=CN.execute(sql2)
   
%>
  <form name="form1" action="fileaddz.asp" method="post">
<table width="603" height="231" border="0" cellpadding="-2" cellspacing="1" bgcolor="#336699">
  <tr>
    <td width="603" height="229" valign="top">
	    <table width="100%" height="224"  border="0" align="center" cellpadding="-2" cellspacing="1" bgcolor="#336699">
          <tr>
            <td width="11%" height="29" bgcolor="#FFFFFF">主题:</td>
            <td width="89%" bgcolor="#FFFFFF"><input name="zhuti" type="text"  size="35">
           部门:
          <select name="part">
           <%
		     while not rs2.eof
			%>
          <option value="<%=rs2("cpart")%>" ><%=rs2("cpart")%></option>
		   <%
		    rs2.movenext
    	    wend
			rs2.close
			%>
        </select>
            &nbsp;</span>审批人:
			<select name="spr">
           <%
		     while not rs1.eof
			%>
          <option value="<%=rs1("ID")%>" ><%=rs1("Name")%></option>
		   <%
		    rs1.movenext
    	    wend
			rs1.close
			CN.close
			%>
        </select>
			</td>
          </tr>
          <tr>
            <td height="129" valign="top" bgcolor="#FFFFFF">内容:</td>
            <td bgcolor="#FFFFFF"><textarea name="content" cols="70" rows="8"  id="content"></textarea></td>
          </tr>
          <tr>
            <td colspan="2" bgcolor="#FFFFFF"><div align="center">
                <input name="fileadd" type="button"  id="fileadd" value="送审文件" onclick="add()">
			    <input name="myclose" type="button"  id="myclose" value="关闭窗口" onClick="guanbi()">
            </div></td>
          </tr>
        </table>
    </form></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -