netmeetinginfo.asp

来自「很好的OA办公系统」· ASP 代码 · 共 58 行

ASP
58
字号
<%response.expires=0%>
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
username=request("username")
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="expires" content="no-cache">
<title>NetMeeting---网络会议</title>
</head>
<body>
<%
'查找当前用户是否在线
function find_online_user(oabusyusername)
	dim i,dimsums,siteinfo,findok
	findok=0
	Application.Lock
	netmeetinginfo=application("netmeetinginfo")
	dimsums=ubound(netmeetinginfo)
	for i=0 to dimsums
		siteinfo=netmeetinginfo(i)
		if siteinfo<>"" then
			if instr(siteinfo,oabusyusername&"$")>0 then
				findok=1
				exit for
			end if
		end if
	next
	Application.UnLock
	find_online_user=findok
end function

'写入在线用户队列
sub write_online_user(username,name,dept)
	dim userinfo
	Application.Lock
	userinfo=username&"$"&name&"$"&dept&"$"&request.servervariables("REMOTE_ADDR")
	netmeetinginfo=application("netmeetinginfo")
	dimsums=ubound(netmeetinginfo)
	redim preserve netmeetinginfo(dimsums+1)
	netmeetinginfo(dimsums+1)=userinfo
	application("netmeetinginfo")=netmeetinginfo
	Application.UnLock
end sub
if find_online_user(username)=0 then
	call write_online_user(username,oabusyname,oabusyuserdept)
end if
response.write("<script language=""javascript"">")
response.write("alert(""已向对方发出NetMeeting呼叫请求,请等待对方响应!"");")
response.write("</script>")
%>
</body>
</html>

⌨️ 快捷键说明

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