📄 writesmsqungroup.asp
字号:
<!--#include file="../../Connections/oavbsconn.asp" -->
<!--#include file="../../Connections/ifr/ifrasp.asp" -->
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT * FROM usertertggbng ORDER BY 排序 ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
function DbCombox()
Dim Recordset3
Dim Recordset3_numRows
Set Recordset3 = Server.CreateObject("ADODB.Recordset")
Recordset3.ActiveConnection = MM_oavbsconn_STRING
Recordset3.Source = "SELECT 部门 FROM sms部门表 ORDER BY 排序 asc"
Recordset3.CursorType = 0
Recordset3.CursorLocation = 2
Recordset3.LockType = 1
Recordset3.Open()
while not Recordset3.eof
msg = msg & "<option value=""" &Recordset3("部门") & """>" & Recordset3("部门") & "</option>"
Recordset3.movenext
wend
Recordset3.close
set Recordset3 = nothing
DbCombox = msg
End function
Recordset3_numRows = 0
%>
<%
Dim confirmqun__MMColParam
confirmqun__MMColParam = "1"
If (Request.QueryString("组名") <> "") Then
confirmqun__MMColParam = Request.QueryString("组名")
End If
%>
<%
Dim confirmqun__varuser
confirmqun__varuser = "1"
If (Session("userssdfgfhtrh") <> "") Then
confirmqun__varuser = Session("userssdfgfhtrh")
End If
%>
<%
Dim confirmqun
Dim confirmqun_numRows
Set confirmqun = Server.CreateObject("ADODB.Recordset")
confirmqun.ActiveConnection = MM_oavbsconn_STRING
confirmqun.Source = "SELECT * FROM 群组 WHERE 组名 = '" + Replace(confirmqun__MMColParam, "'", "''") + "' and 群组拥有人帐号='" + Replace(confirmqun__varuser, "'", "''") + "'"
confirmqun.CursorType = 0
confirmqun.CursorLocation = 2
confirmqun.LockType = 1
confirmqun.Open()
confirmqun_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
confirmqun_numRows = confirmqun_numRows + Repeat1__numRows
%>
<script language ="javascript" >
Citys = new Array();
<%
Dim shi
Dim shi_numRows
Set shi = Server.CreateObject("ADODB.Recordset")
shi.ActiveConnection = MM_oavbsconn_STRING
shi.Source = "SELECT * FROM usertertggbng ORDER BY 排序 ASC"
i = 0
shi.CursorType = 0
shi.CursorLocation = 2
shi.LockType = 1
shi.Open()
while not shi.eof
shi_numRows = 0
%>
Citys[<%=i%>] =new Array("<%=shi("部门")%>","<%=shi("names")%>");
<%
i = i + 1
shi.movenext
wend
shi.close
set shi = nothing
%>
function changeselect(selvalue){
var selvalue = selvalue;
var i;
document.form1.City.length = 0 ;
document.form1.City.options[document.form1.City.length] = new Option("请选择对象","");
for (i = 0 ;i <Citys.length;i++){
if(Citys[i][0]==selvalue){
document.form1.City.options[document.form1.City .length] = new Option(Citys[i][1],Citys[i][1]);
}
}
}
</script>
<html>
<head>
<script language="JavaScript">
<!--
function check() {
if (document.form1.标题.value=="") {
window.alert ("请您输入标题!")
document.form1.标题.focus()
return false
}
return true
}
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>短消息发送</title>
<style type="text/css">
<!--
.style5 {color: 12; font-size: 12px; }
.style7 {font-size: 12}
.style8 {font-size: 12px}
.style9 {
color: #FFFFFF;
font-weight: bold;
}
.style10 {font-size: 13px}
-->
</style>
</head>
<body>
<div align="center">
<table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../../img/bw/line.gif">
<tr>
<td background="../../img/bw/line.gif"><div align="center" class="style9 style10">群 组 消 息 发 送</div></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5EAE19">
<tr>
<td bgcolor="#FFFFFF"><form action="writepostqungroup.asp" method="post" name="form1" onsubmit="return check()">
<table width="99%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="#FFFFFF">
<td colspan="2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="10" colspan="2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="81"><div align="left" class="style5"><span class="style8">群组</span>相关:</div></td>
<td width="722"><div align="left">
<input type="button" name="Submit" value="选择群组" onClick="javascript:document.location.href='../sms/qun/myqun.asp'">
<input type="button" name="Submit" value="建立群组" onClick="javascript:document.location.href='../sms/qun/createqun1.asp'">
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="style8">群组<span class="style5">:</span></span></td>
<td><span class="style7"><%=(confirmqun.Fields.Item("组名").Value)%>
<input name="sendto" type="hidden" id="sendto" value="<%=(confirmqun.Fields.Item("好友姓名").Value)%>">
<input name="组名" type="hidden" id="组名" value="<%=(confirmqun.Fields.Item("组名").Value)%>">
</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><span class="style8">接收同事<span class="style5">:</span></span></td>
<td><%
While ((Repeat1__numRows <> 0) AND (NOT confirmqun.EOF))
%>
<span class="style7"> |<%=(confirmqun.Fields.Item("好友姓名").Value)%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
confirmqun.MoveNext()
Wend
%>
</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="left" class="style5">标题:</div></td>
<td><input name="标题" type="text" id="标题" size="30"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><p align="center"><img src="../../toall/gw/img/gif/pic4.gif" width="43" height="50"><br>
</p></td>
<td><input name="content" type="hidden" id="content">
<iframe ID="content" src="/toall/htmledit/ewebeditor.asp?id=content&style=standard" frameborder="0" scrolling="no" width="550" HEIGHT="350"> </iframe>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="6" colspan="2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="6"><input name="信息属性" type="hidden" id="信息属性" value="短消息">
<input name="发送人帐号" type="hidden" id="发送人帐号" value="<%= Session("userssdfgfhtrh") %>">
<input name="发送人姓名" type="hidden" id="发送人姓名" value="<%= Session("names") %>">
<input name="datas" type="hidden" id="datas" value="<%=date%>"></td>
<td height="6"><span class="style8"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<input name="提交" type=submit style="FONT-SIZE: 12px; HEIGHT: 27px" value=" 发 送 " >
</font></strong></FONT></STRONG></font></strong></FONT></STRONG> <STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px" value= " 重 写 " >
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> </font></strong></font></strong></font></strong> </font></strong></FONT></STRONG> </FONT></STRONG> <STRONG><FONT color=#ffffff> <strong><font color=#ffffff>
<input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px" onClick="javascript:history.go(-1)" value= " 取 消 " >
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></span></span></span></td>
</tr>
</table>
</form></td>
</tr>
</table>
<p> </p>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<%
confirmqun.Close()
Set confirmqun = Nothing
%>
<iframe width=0 height=0 frameborder=0 scrolling=auto src=filesupadmin/getmaxid.asp></iframe>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -