温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:星幻短信群发平台Web源码
当前文件路径:XingHuanWebSms/SMS_SendGroup.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SMS_SendGroup.aspx.cs" Inherits="SMS_SMS_SendGroup" %> 2
3
<html xmlns="http://www.w3.org/1999/xhtml" > 4
<head id="Head1" runat="server"> 5
<title>短信息群发</title> 6
<link href="CSS/style.css" type="text/css" rel="stylesheet" /> 7
<script language="javascript"> 8
9
function CLen() 10
{ 11
//alert('ASDF'); 12
var sj = parseInt(document.getElementById("smemo").value.length); 13
var arg =parseInt(sj/70)+1; 14
if(sj%70==0) 15
{ 16
arg =parseInt(sj/70); 17
} 18
document.getElementById("CharLen").innerHTML='当前字符<font color=red>'+document.getElementById("smemo").value.length+'</font>个,共拆分<font color=red>'+arg+'</font>条发送.'; 19
} 20
21
function sub() 22
{ 23
if(document.getElementById("smemo").value =="") 24
{ 25
document.getElementById("smemo").focus(); 26
alert("短信内容不能为空!"); 27
return false; 28
} 29
document.getElementById("msc").style.display='none'; 30
document.getElementById("msg").style.display='block'; 31
return true; 32
} 33
function cls() 34
{ 35
document.getElementById("smemo").value=""; 36
} 37
</script> 38
</head> 39
<body> 40
<form id="form1" runat="server" enctype="multipart/form-data" onsubmit="javascript:return sub();"> 41
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> 42
<tr> 43
<td height="20" colspan="2" align="center"><strong>短消息群发</strong></td> 44
</tr> 45
<tr> 46
<td height="20" colspan="2" align="center"><span class="STYLE3" style="color: #ff3300">群发短消息前,检查金币的余额是否能满足要发送的短信个数,否则请先充值</span></td> 47
</tr> 48
<tr> 49
<td width="11%" height="20" align="right"> 50
群发号码:</td> 51
<td width="89%" align="left"><input name="file" type="file" style="width: 598px" class="sms_bg"> 52
<br> 53
<span style="color: #0066ff">接受列表只可以上传TXT格式文件,里面只包含有效的号码(移动/联通/<span style="color: #6699ff">小灵通</span>)</span></td> 54
</tr> 55
<tr> 56
<td height="20" align="right">短信类型:</td> 57
<td align="left"> 58
<input name="stype" id="stype1" type="radio" value="0" checked> 59
<label for="stype1">普通短信</label> 60
<input name="stype" id="stype2" type="radio" value="1"> 61
<label for="stype2">免提短信</label> 62
</td> 63
</tr> 64
<tr> 65
<td height="20" align="right"> 66
短信内容:</td> 67
<td align="left"> 68
超过70个字符,系统自动拆分多条发送.(最好把要发送的内容精简到70个字符)<br /> 69
<textarea name="smemo" class="sms_bg" id="smemo" onkeyup="CLen();" runat="server" style="width: 600px; height: 172px;"></textarea> 70
</td> 71
</tr> 72
<tr> 73
<td height="20" align="right"> </td> 74
<td height="20"><div id="CharLen"></div></td> 75
</tr> 76
<tr id="msc"> 77
<td height="20" align="right"> 78
<asp:Button ID="Button1" runat="server" Text="发 送" class="sms_btn"/></td> 79
<td height="20"><input type="button" name="Submit2" value="清 空" onclick="cls();" class="sms_btn"> 80
81
</td> 82
</tr> 83
<tr> 84
<td align="right" height="20"> 85
</td> 86
<td height="20"> <div id="msg" style="color:Red;display:none" >正在上传和处理短信息,请等待...</div> 87
</td> 88
</tr> 89
<tr> 90
<td height="20" colspan="2"> 91
<strong> 92
<br /> 93
<span style="color: #0066ff"> 短信发送步骤:<br /> 94
1.获取要发送的号码文件,对每个号码进行验证。<br /> 95
2.累计所有的有效号码,计算需要发送的金币和当前余额比较。<br /> 96
3.如果超出当前余额,系统终止操作。提示客户需要充值!<br /> 97
4.当前金额可以满足发送的个数,系统根据短信内容长度拆分多条信息。<br /> 98
5.写入数据库,操作完成。 99
<br /> 100
</span></strong> 101
</td> 102
</tr> 103
</table> 104
</form> 105
</body> 106
</html> 107





}
}