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

📄 getfile.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'************************************************************************************************
' 文件名: getfile.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司

'  创建人 : 周秋舫
'  日 期 : 2002-08-15
' 修改历史 :
'   ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 : 上载文件到数据库
'  版 本 :
'************************************************************************************************
option explicit
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
<!-- #include file="../include/config.inc" -->
<!-- #include file="../include/common.inc" -->
<!-- #include file="../include/debug.inc" -->
<!-- #include file="../include/db.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->

<!-- #include file="../common/commonpage.inc" -->
<%
'' 检查已经登录并在线
call CheckSecurity()

dim iEmpSerial	: iEmpSerial = GetEmpSerial()
%>

<html>
<head>
<title>上海信息大楼 Shanghai Information Tower</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../common/common.css" type="text/css">
<style type="text/css">
input	{color:blue}
</style>
<script language="javascript">
function TransSlctEmp()
{
	// 将选中的人员列表(从 frmSendMsg 的 receiver_serial 取到)作为参数传递到子窗口
	//var emp_serial_list = formTask.executor_serial.value;
	var emp_serial_list = "";
	var rtn = window.showModalDialog("../common/slctEmp.asp", emp_serial_list, "center:yes;dialogWidth:246px;dialogHeight:253px;status:no");
	if (typeof(rtn) == "undefined")		return;

	
	// 返回员工序列号的组合,重新保存到 frmSendMsg 的 receiver_serial 中
	FormUploadFile.opentoEmpSerial.value = rtn;

	// 将消息接收者人员编号转化成名字,并以逗号隔开
	// 方法是比较emp_serial和select object中的option的value,如果相同,则名字就是option的text
	var arrayEmpSerial = rtn.split(",")
	var emp_serial;
	var namelist = "";

	for (var x=0; x<arrayEmpSerial.length; x++)
	{
		var emp_serial = arrayEmpSerial[x];
		for (var j=0; j<document.all.slctEmplist.length; j++)
		{
			var opt = document.all.slctEmplist.options[j];
			if (emp_serial.toString() == opt.value.toString())
			{
				if (namelist != "") namelist = namelist + ",";
				namelist = namelist + opt.text;
				break;
			}
		}
	}
	FormUploadFile.opentoEmpName.value = namelist;
}
</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="../images/bg/bg0.jpg">
<br>

<%
Response.Write OuterTableHeader
Response.Write HeaderWithMenu
Response.Write InnerTableHeader
'********************************************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------------------------------------------------------------------------
%>
<form name="FormUploadFile" method="post" enctype="multipart/form-data" action="savetodb.asp">
<input type="hidden" name="opentoEmpSerial" size=75>
<table width=600 align=center border=0 cellspacing=0 cellpadding=5 bgcolor=silver style="border:1px solid silver">
<tr height=20 bgcolor=navy style="color:white;font-weight:600"><td align=center>上 传 文 件</td></tr>
<tr height=40 bgcolor=white><td>上传文件:<input type="file" name="blob" size=75></td></tr>
<tr height=20 bgcolor=white><td>重命名为:<input type="text" name="filename_new" size=75><br><img border=0 width=60 height=0><span style="color:gray">(重命名后后缀名保持不变,因此重命名名称不应包括后缀名)</span></td></tr>
<tr height=40 bgcolor=white><td>上传目录:<select name="folder" style="width:461px">
				<option value="">/( 根目录 )</option>
					<%=selectOptions(dbLocal,"t_filefolder", "folder_id", "folder_name", "", "emp_serial=" & iEmpSerial & "order by folder_name")%></select><br></td></tr>
<tr height=40 bgcolor=white ondblclick="TransSlctEmp();"><td>共享人员:<input type="text" name="opentoEmpName" size=75 readonly>&nbsp;<img border=0 src="../images/openswin.gif" onclick="TransSlctEmp();"></td></tr>
<tr height=40 bgcolor=white><td align=center><input type="submit" name="Enter" value="上传文件内容"></td></tr>
</table>
</form> 

<!-- 这一段用于翻译人名 -->
<select id="slctEmplist" multiple size=10 style="display:none">
		<%=selectOptions(dbLocal,"t_employee", "serial", "name", "", "co_id=" & GetCoId & " and isdummy=0 and dismissed=0")%>
</select>

<!-- 页面链接 -->
<table width=600 cellspacing=0 cellpadding=0 border=0 align=center>
<tr height=10><td width=600><img src="../images/bg/line.gif" width=600 height=3></td></tr>
<tr height=20><td width=600>
	<img src="../images/goto.gif">&nbsp;<a href="file_l.asp">文件列表</a>
	&nbsp;&nbsp;&nbsp;
	<img src="../images/goto.gif">&nbsp;<a href="folder.asp">文件统计及文件夹管理</a>
	&nbsp;&nbsp;&nbsp;
	<img src="../images/goto.gif">&nbsp;<a href="#" onclick="window.open('folder_a.asp','','height=124,width=350,left=200,top=200');">新建文件夹</a></td></tr>
</table>

<%
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>

</body>
</html> 

⌨️ 快捷键说明

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