📄 sysusermessage.asp
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/NosqlHack.asp" -->
<!--#include file="../../../Inc/Function.asp" -->
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../../../Inc/Cls_User.asp" -->
<%
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.2SP1)
'最新更新:2006.5
'==============================================================================
'Copyright (C) 2002-2004 Foosun.Net All rights reserved.
'商业注册联系:028-85098980-601,项目开发:028-85098980-606、609,客户支持:608
'产品咨询QQ:394226379,159410,125114015
'技术支持QQ:315485710,66252421
'项目开发QQ:415637671,655071
'程序开发:四川风讯科技发展有限公司(Foosun Inc.)
'Email:service@Foosun.cn
'MSN:skoolls@hotmail.com
'论坛支持:风讯在线论坛(http://bbs.foosun.net)
'官方网站:www.Foosun.cn 演示站点:test.cooin.com
'网站通系列(智能快速建站系列):www.ewebs.cn
'==============================================================================
'免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接
'风讯公司保留此程序的法律追究权利
'如需进行2次开发,必须经过风讯公司书面允许。否则将追究法律责任
'==============================================================================
Dim DBC,Conn,UserConn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
DBC.ConnStr = "DBQ=" + Server.MapPath(UserDBConnectStr) + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
Set UserConn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if Not (JudgePopedomTF(Session("Name"),"P040904")) then Call ReturnError()
Dim StrUserID,StrUserName,ArrUser,t_i,Fs_User
Set Fs_User = new Cls_User
StrUserID = Replace(Request("UserID"),"'","")
If InStr(StrUserID,"***")>0 Then
ArrUser = Split(StrUserID,"***")
else
ArrUser = Array(StrUserID)
End If
For t_i=LBound(ArrUser) To UBound(ArrUser)
If t_i=LBound(ArrUser) Then
Fs_User.ID = ArrUser(t_i)
StrUserName = Fs_User.EName
Else
Fs_User.ID = ArrUser(t_i)
StrUserName = StrUserName & "," & Fs_User.EName
End If
Next
Set Fs_User = Nothing
If Request.Form("act")="send" Then
Dim t_fields,t_values,t_title,t_from,t_to,t_content,t_Send,t_ArrUser,t_StrUser,t_Len,FS_Message
Set FS_Message = new Cls_Message
t_fields = "MeTitle,MeFrom,MeRead,MeContent,FromDate,ReadTF,IsRecyle,IsDels,IsDelR,isSend,LenContent"
t_from = Replace(Request.Form("SendFrom"),"'","")
t_title = Replace(Request.Form("title"),"'","")
t_Send=0
t_content = Replace(Request.Form("SelfIntro"),"'","")
t_Len = Len(t_content)
t_StrUser = Replace(Request.Form("SendTo"),"'","")
'2006-4-27,修改挺多,这个页面可以全部覆盖
If t_title="" Or t_content="" Or t_StrUser="" Or t_from="" Then
Response.write "<script>alert('请输入有效值');history.back();</script>"
Response.End
End If
If InStr(t_StrUser,",")>0 Then
t_ArrUser = Split(t_StrUser,",")
else
t_ArrUser = Array(t_StrUser)
End If
For t_i=LBound(t_ArrUser) To UBound(t_ArrUser)
t_values = "'"&t_title&"','"&t_from&"','"&t_ArrUser(t_i)&"','"&t_content&"','"&Now()&"',0,0,0,0,"&t_Send&","&t_Len
Call FS_Message.update(t_fields,t_values,"_new_")
Next
Set FS_Message = Nothing
Response.write "<script>alert('发送成功!');location='SysUserList.asp';</script>"
Response.End
End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>发送短信</title>
</head>
<link href="../../../CSS/FS_css.css" rel="stylesheet">
<script src="../../SysJS/PublicJS.js" language="JavaScript"></script>
<body scrolling=no leftmargin="2" topmargin="2">
<form action="" id="MessageForm" method="post" name="MessageForm">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#999999">
<tr bgcolor="#EEEEEE">
<td height="26" colspan="5" valign="middle">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width=35 align="center" alt="发送" onClick="document.MessageForm.submit();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">发送</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="后退" onClick="top.GetEkMainObject().history.back();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">后退</td><input type="hidden" name="act" value="send">
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DDDDDD">
<tr bgcolor="#E8E8E8"><td colspan="2" height="30"></td></tr>
<tr>
<td width="100" height="26" bgcolor="#E8E8E8">
<div align="right">短信主题
</div></td>
<td bgcolor="#FFFFFF">
<input value="" name="title" style="width:70%;" type="text" size="36" maxlength="40" onblur="value=value.replace(/\s/g,'');if(value.length==0)alert('请在主题里输入有效字符');"> </td>
</tr>
<tr>
<td height="26" bgcolor="#E8E8E8">
<div align="right">收信人</div></td>
<td bgcolor="#FFFFFF">
<input style="width:70%;" value="<%=StrUserName%>" name="SendTo" type="text" id="SendTo" size="36" maxlength="50" onblur="value=value.replace(/\s/g,'');if(value.length==0)alert('收信人不能为空');"></td>
</tr>
<tr>
<td height="26" bgcolor="#E8E8E8">
<div align="right">发信人</div></td>
<td bgcolor="#FFFFFF">
<input style="width:70%;" value="系统管理员" name="SendFrom" type="text" id="SendFrom" size="36" maxlength="50" onblur="value=value.replace(/\s/g,'');if(value.length==0)alert('发信人不能为空');"></td>
</tr>
<tr>
<td bgcolor="#E8E8E8">
<div align="right">内容</div></td>
<td bgcolor="#FFFFFF">
<textarea style="width:70%;" name="SelfIntro" cols="34" rows="8" id="textarea" onblur="value=value.replace(/\s/g,'');if(value.length==0)alert('请在内容里输入有效字符');"></textarea>
</td>
</tr>
</table>
</form>
</body>
</html>
<%
Set Conn = Nothing
Set UserConn = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -