📄 file_e.asp
字号:
<%
'************************************************************************************************
' 文件名: file_l.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
' 创建人 : 周秋舫
' 日 期 : 2002-08-16
' 修改历史 :
' ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 : 显示文件列表
' 版 本 :
'************************************************************************************************
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/emp.inc" -->
<!-- #include file="../include/date.inc" -->
<!-- #include file="../include/datahandle.inc" -->
<!-- #include file="../include/recordlist.inc" -->
<!-- #include file="../include/security.inc" -->
<!-- #include file="../include/message.inc" -->
<!-- #include file="../common/commonpage.inc" -->
<!-- #include file="file.inc" -->
<!-- #include file="file_e.inc" -->
<%
call CheckSecurity()
dim iEmpSerial : iEmpSerial = GetEmpSerial
dim pFileSerial : pFileSerial = GetParam("serial")
if IsEmpty(pFileSerial) then
Response.Clear
Server.Transfer("../common/error.asp")
Response.end
end if
'' 如果是提交,则更新文件属性
if UCase(Request.ServerVariables("REQUEST_METHOD") = "POST") then
call UpdateFile()
end if
%>
<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}
.tdValue {color:gray}
.tdLink {color:blue;cursor:hand}
</style>
<script language="javascript">
function DeleteFile(serial)
{
var bDelete = window.confirm("文件一旦删除,将无法恢复。\n\n您确认要删除该文件吗?");
if (bDelete)
window.open('file_d.asp?serial=' + serial + '&');
}
function TransSlctEmp()
{
// 将选中的人员列表(从 frmSendMsg 的 receiver_serial 取到)作为参数传递到子窗口
var emp_serial_list = FormUpdateFile.opentoEmpSerial.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 中
FormUpdateFile.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;
}
}
}
FormUpdateFile.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
'********************************************************************************************************
' 主体从这里开始
'-------------------------------------------------------------------------------------------------------------------------------------------------
Response.Write FormFileUpdate
Response.Write TableLink
'-------------------------------------------------------------------------------------------------------------------------------------------------
' 主体到这里结束
'********************************************************************************************************
Response.Write InnerTableTailer
Response.Write Footer
Response.Write OuterTableTailer
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -