📄 callmng.asp
字号:
<%@LANGUAGE="VBScript"%>
<!--#include file="../public/wxl_conn.asp"-->
<!--#include file="../public/PublicFunction.asp"-->
<%
response.expires = 0
wxl=request("wxl")
if wxl="Look" then
CallId=request("CallId")
conn.Execute("UPdate web_SysCallMesg set CallMark=1 where CallId="&CallId)
Query="select * from web_SysCallMesg where CallId="&CallId
set sql=conn.Execute(Query)
HtmlCallHead("呼叫记录")
Look(sql)
elseif wxl="LookAll" then
set sql=server.createobject("ADODB.recordset")
Query="select * from web_SysCallMesg where ToMen="&UserInfo("int_sOleUserID")&" or FromMem="&UserInfo("int_sOleUserID")&" order by CallTime desc"
sql.open Query,conn,1,1
HtmlHead("呼叫记录")
Look(sql)
elseif wxl="Add" then
ToMen=request("ToMen")
CallMesg=request("Mesg")
IsDept=request("IsDept")
CallID=GetID("select Max(CallID)+1 from web_SysCallMesg")
if IsDept=0 then
Query="insert into web_SysCallMesg (CallID,FromMem,ToMen,Mesg,CallTime,CallIp,CallMark) values("&CallID&","
Query=Query&UserInfo("int_sOleUserID")&","&ToMen&",'"&CallMesg&"',#"&Now&"#,'"&AddIp&"','0')"
conn.Execute(Query)
else
tmpDept=request("int_sOperGrpID")
if tmpDept="" then Back("请选择指定组")
set sql1=conn.Execute("select int_sOperID from web_SysOperators where int_sOperGrpID= "&tmpDept&" order by int_sOperGrpID")
while not sql1.eof
Query="insert into web_SysCallMesg (CallID,FromMem,ToMen,Mesg,CallTime,CallIp,CallMark) values("&CallID&","
Query=Query&UserInfo("int_sOleUserID")&","&sql1("int_sOperID")&",'"&CallMesg&"',#"&Now&"#,'"&AddIp&"','0')"
conn.Execute(Query)
CallID=CallID+1
sql1.movenext
wend
end if
Back("信息成功发出!")
else
ToMen=request("ToMen")
AddHtml(ToMen)
end if
sub Look(sql)
%>
<bgsound src=../images/msg.wav loop=1>
<table border="1" width="600" cellpadding="3" cellspacing="0" bgcolor="#D6D3CE" bordercolordark="#FFFFFF" bordercolorlight="#808080" align="center" >
<tr bgcolor=#dddddd><td colspan=4>点击姓名即可进行回复 [<a href=callmng.asp?wxl=LookAll>所有呼叫</a>]</td></tr>
<tr align=middle bgcolor=#dddddd>
<td width=66>发信人</td>
<td width=66>收信人</td>
<td width=66>时 间 </td>
<td>内 容</td></tr>
<%
while not sql.eof
response.write "<tr bgcolor=#ffffff><td width=66 nowrap align=center><a href='callmng.asp?ToMen="&sql("FromMem")&"'>"&GetName("select str_sOperName from web_SysOperators where int_sOperID="&sql("FromMem"))&"</a></td><td width=66 nowrap align=center><a href='callmng.asp?ToMen="&sql("ToMen")&"'>"&GetName("select str_sOperName from web_SysOperators where int_sOperID="&sql("ToMen"))&"</a></td><td width=66 align=center>"&formatdatetime(sql("CallTime"),vbShortTime)&"</td><td> "&sql("Mesg")&"</td></tr>"
sql.movenext
wend
%>
</table>
<%
HtmlEnd
end sub
sub AddHtml(ToMen)
HtmlHead("向同事发送呼叫信息")
%>
<table border="1" width="550" cellpadding="3" cellspacing="0" bgcolor="#D6D3CE" bordercolordark="#FFFFFF" bordercolorlight="#808080" align="center" >
<form name=form1 action='<%response.write(UrlFile)%>' method="post">
<tr><td>传呼对象:</td><td align=left>
<script language=javascript>
function changepage(selObj)
{
eval("window.location='callmng.asp?int_sOperGrpID="+selObj.options[selObj.selectedIndex].value+"'");
}
</script>
<select name="int_sOperGrpID" id="int_sOperGrpID" onchange="changepage(this)">
<option value="">----不限用户组---</option>
<%
set sql1=conn.Execute("select int_sOperGrpID,str_sOperGrpName from web_SysOperGroup ")
while not sql1.eof
tmpStr=""
for i=3 to len(sql1(0))
tmpStr=tmpStr&" "
i=i+1
next
response.write("<option value='"&sql1(0)&"'>"&tmpStr&sql1(1)&"</option>")
sql1.movenext
wend
%>
</select>
<!--部门列表结束-->
人员:<select name="ToMen">
<%
if request("int_sOperGrpID")<>"" then
set sql1=conn.Execute("select int_sOperID,str_sOperName from web_SysOperators where int_sOperGrpID = "&request("int_sOperGrpID")&" and bln_sOperIsDeleted=0 order by int_sOperShowIndex")
else
set sql1=conn.Execute("select int_sOperID,str_sOperName from web_SysOperators where bln_sOperIsDeleted=0 order by int_sOperShowIndex")
end if
while not sql1.eof
response.write "<option value='"&sql1(0)&"'>"&sql1(1)&"</option>"
sql1.movenext
wend
%>
</select>
</td></tr>
<tr><td valign=top>内 容:</td><td><textarea name="Mesg" rows="15" cols="57"></textarea>
</td></tr><tr><td>传呼类型:</td><td ><input type='radio' name='IsDept' value=0 checked>指定人
<input type='radio' name='IsDept' value=1>指定用户组
</td></tr>
<tr><td colspan=2 align=center>
<input type="submit" name="B1" value=" 提 交" class="submit" style="width:60; height:25;">
<input type="hidden" name="wxl" value="Add">
<input type="reset" name="B2" value=" 重 置" class="submit" style="width:60; height:25;">
<input type=button name="B3" value=" 放 弃" onclick="location.href='/program/welcome.asp';" class="submit" style="width:60; height:25;">
<input type=button name="B3" value=" 查看记录" onclick="location.href='callmng.asp?wxl=LookAll';" class="submit" style="width:90; height:25;">
</td></tr>
</form></table>
<%
response.write "<script>document.form1.int_sOperGrpID.value='"&request("int_sOperGrpID")&"'</script>"
if ToMen<>"" then
response.write "<script>document.form1.ToMen.value='"&ToMen&"'</script>"
end if
HtmlEnd
end sub
sub OkHtml()
%>
<body class=navy0 leftmargin=3 topmargin=10>
<table height=100% width=100%><tr><td align=center valign=center>
<table width=400 align=center cellspacing=0 cellpadding=0 border=1 BORDERCOLORLIGHT=#000000 BORDERCOLORDARK=#ffffff>
<tr><td class=navy1><font color=990000>信息反馈</font>
<tr><td><font style="color:#ff7799;"><br><B>你成功地发出了呼叫信息!</b></font>
<br><br><input class=navy1 type="button" name="cmdBack" value="后退" onClick="javascript:history.go(-1)">
<br> </table></td></tr></table></body>
<%
end sub
sub HtmlCallHead(Title)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=Title%></title>
<LINK href="/program/js/newcss.css" type=text/css rel=stylesheet>
</head>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 style='overflow:scroll;overflow-y:hidden;overflow-x:hidden;cursor:default;' onkeyDown="javascript:return vConfirm();" ondragstart = "CancelEvent()" onselectstart = "CancelEvent()">
<div align="center">
<table border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td width="100%" height="5" align="right"></td>
</tr>
<tr>
<td width="100%" height="100%" valign="top">
<table border="0" width="99%" cellpadding="0" cellspacing="1" bgcolor="#0063C6">
<tr>
<td valign="top" align="center" bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center" background="/program/images/bg1.gif">
<tr>
<td style="font-size:11pt; color:#FFFFFF"> <b><%=Title%></b></td>
<td height="25" align="right"><a href="#" onClick='window.close();'><img border="0" src="/program/images/button03.jpg"></a>
</td>
<td width="2"></td>
</tr>
</table>
<table width='100%' bgcolor=#ffffff><tr height=15><td> </td></tr></table>
<%
end sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -