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

📄 receiver.asp

📁 物业管理和办公自动化系统
💻 ASP
字号:
<%
'************************************************************************************************
' 文件名: receiver.asp
' Copyright(c) 2001-2002 上海阿尔卡特网络支援系统有限公司
'
'  创建人 : 周秋舫
'  日 期 : 2002-05-13
' 修改历史 :
'   ****年**月**日 ****** 修改内容:**************************************************
' 功能描述 : 消息接收者
'  版 本 :
'************************************************************************************************
'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="../include/emp.inc" -->

<!-- #include file="msg.inc" -->

<%
'call CheckSecurity()

'********************************************************************************************************
' 服务器端代码
%>

<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">
select {color:navy}
</style>
<script language="javascript" src="../include/common.js"></script>

<script language="JavaScript">
function btnOk_OnClick()
{
	var receiver;
	var tmp_value = "";
	var tmp_text = "";
	var opt;
	for(var x=0; x<slctTo.length; x++)
	{
			opt = slctTo.options[x];
			if (tmp_value != "")
					tmp_value = tmp_value + ",";
			tmp_value = tmp_value + opt.value;

			if (tmp_text != "")
					tmp_text = tmp_text + ", ";
			tmp_text = tmp_text + opt.text
	}
//	receivers_1.innerText = tmp_value;
//	receivers_2.innerText = tmp_text;

//	alert(document.all.receivers_1.innerText);
	window.returnValue = tmp_value;
	window.close();
}

function btnCancel_OnClick()
{
	window.close();
//	receivers_1.innerText = this.parent.opener;
}
</script>

<SCRIPT LANGUAGE="JavaScript">
function SelectAll(obj)
{
	window.event.srcElement.checked = false;
	for(var x=0;x<obj.length;x++)
	{
		var opt = obj.options[x];
		opt.selected = true;
	}
}
</script>
</head>

<script language="JavaScript" for="window" event="onLoad">
	var args = window.dialogArguments;
	var arrayEmpSerial = args.split(",")
	var emp_serial
	for (var x=0; x<arrayEmpSerial.length; x++)
	{
		var emp_serial = arrayEmpSerial[x];
		for (var j=0; j<slctFrom.length; j++)
		{
			var opt = slctFrom.options[j];
			if (emp_serial.toString() == opt.value.toString())
			{
				opt.selected = true;
				break;
			}
		}
	}
	MoveOptions(slctFrom, slctTo);
</script>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll=no>
<table cellspacing=0 cellpadding=3 border=0>
<tr>
		<td>备选者:<br>
				<select name="slctFrom" multiple size=10 style="width:86" ondblclick="MoveOptions(slctFrom, slctTo)">
						<%=selectOptions(dbLocal,"t_employee", "serial", "name", "", "co_id=" & GetCoId & " and isdummy=0 and dismissed=0")%>
				</select><br>
				<span onclick="SelectAll(slctFrom);MoveOptions(slctFrom, slctTo);" style="cursor:hand;color:#990000"><img height=15 width=0>&nbsp;全部选中</span>
		</td>
		<td>
				<span onclick="MoveOptions(slctFrom,slctTo)"><button style="border:1px solid navy;height:18">&nbsp;&gt;&gt;&gt;&nbsp;</button></span>
				<br>
				<span onclick="MoveOptions(slctTo, slctFrom)"><button style="border:1px solid navy;height:18">&nbsp;&lt;&lt;&lt;&nbsp;</button></span>
		</td>
		<td>接收者:<br>
				<select name="slctTo" multiple size=10 style="width:86" ondblclick="MoveOptions(slctTo, slctFrom)">
				</select><br>
				<span onclick="SelectAll(slctTo);MoveOptions(slctTo, slctFrom);" style="cursor:hand;color:#990000"><img height=15 width=0>&nbsp;全部删除</span>
		</td>
</tr>
<tr height=40>
		<td colspan=3 align=center>
				<img border=0 src="../images/button/ok.gif" onclick="btnOk_OnClick()" style="cursor:hand">
				&nbsp;&nbsp;&nbsp;&nbsp;
				<img border=0 src="../images/button/cancel.gif" onclick="btnCancel_OnClick()" style="cursor:hand">
		</td>
</tr>
</table>
<div id=receivers_1></div>
<br>
<div id=receivers_2></div>

</body>
</html>
<script language="javascript">
//var a = window.dialogArguments();
//alert(a);
</script>

⌨️ 快捷键说明

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