📄 sendmail.jsp
字号:
<%@ page language="java" contentType="text/html;charset=UTF-8" %><%@ include file="../inc/common.jsp" %><%
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${basic.name}后台管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<club:html type="css" />
<style>.tabform th{width:200px;}label{font-weight:normal}</style>
<script type="text/javascript" src="../scripts/common.js"></script>
<script type="text/javascript">
var iv;
var i = 0;
function emailUtils(act){
c.hint('',false);
i = 0;
clearInterval(iv);
iv = setInterval("process()",3000);
var params = "act="+act;
params +="&subject="+c.o("subject").value;
params +="&content="+c.o("content").value;
params +="¬in="+c.o("notin").value;
params +="&emails="+c.o("emails").value;
params +="&noAllowedChar="+c.o("noAllowedChar").value;
params += "&r="+new Date().getTime();
myxmlhttp = CreateXmlHttpReq(xmlHttpHandler);
XmlHttpPOST(myxmlhttp, "admin.do",params);
}
function xmlHttpHandler(){
if (myxmlhttp.readyState !=4 ) {
return;
}
var html = myxmlhttp.responseText;
c.hint(html,true);
c.p('qwSubmit',false);
c.p('qwSubmit_',false);
clearInterval(iv);
}
function pxmlHttpHandler(){
if (myxmlhttp.readyState !=4 ) {
return;
}
var text = myxmlhttp.responseText;
var rs = text.parseJSON();
var s = rs["state"];
if(s==1){
c.setHtml("state","<font class=\"red\">执行中...</font>");
}
else if(s==2){
c.setHtml("state","任务完成");
i++;
if(i>5){clearInterval(iv);}
}
else if(s==0){
c.setHtml("state","任务停止");
i++;
if(i>5){clearInterval(iv);}
}
c.setHtml("total",rs["total"]);
c.setHtml("emailAddress",rs["emailAddress"]);
}
function process(){
var params = "act=getEmailJsonObject";
params += "&r="+new Date().getTime();
myxmlhttp = CreateXmlHttpReq(pxmlHttpHandler);
XmlHttpGET(myxmlhttp, "admin.do?"+params);
}
</script>
</head>
<body>
<div id="wrap">
<div class="sitemap"><ul><li>您的位置:</li><li>后台管理>></li><li><h3>Email群发</h3></li></ul></div>
<%@ include file="../inc/msgHint.jsp" %>
<div class="sidebar gform">
<table class="tabform">
<tbody>
<tr>
<th scope="row">任务状态:</th>
<td><span id="state"></span></td>
</tr>
<tr>
<th scope="row">发送进度:</th>
<td>
系统发现有效Email地址<strong><span id="total"></span></strong>个
<br/>正在发送<strong><span id="emailAddress"></span></strong>
</td>
</tr>
<tr>
<th scope="row">Email标题:</th>
<td class="lab">
<club:html type="input" htmlType="text" name="subject" id="subject" value="" property=" class=\"input\""/>
</td>
</tr>
<tr>
<th scope="row">Email内容:</th>
<td class="lab">
<textarea name="content" id="content" style="width:480px;height:200px;"/></textarea>
</td>
</tr>
<tr>
<th scope="row">Email地址集合</th>
<td class="lab">
<textarea name="emails" style="width:480px;height:100px;"/></textarea>
<br/>将TXT中的EMAIL地址复制粘贴到上面的文本框内,单数线或换行分割多个地址!
</td>
</tr>
<tr>
<th scope="row">过滤设置:</th>
<td class="lab">
<textarea name="noAllowedChar" style="width:480px;height:100px;"/></textarea>
<br/>过滤包含关键词的Email地址,单数线或换行分割多个关键词!
</td>
</tr>
<tr>
<th scope="row">不发送地址集:</th>
<td class="lab">
<textarea name="notin" style="width:480px;height:100px;"/></textarea>
<br/>不给上面的Email地址发送信息,单数线或换行分割多个地址!
</td>
</tr>
<tr>
<th scope="row"></th>
<td class="t_end">
<input type="button" name="qwSubmit" id="qwSubmit" value="开始发送" onclick="emailUtils('sendsEmail');c.p('qwSubmit',true);"/>
<input type="button" name="qwSubmit_" id="qwSubmit_" value="停止发送" onclick="emailUtils('stopSendsEmail');c.p('qwSubmit_',true);"/>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
process();
iv = setInterval("process()",3000);
</script>
</div>
</body>
</html>
<!-- Powered by www.YeQiangWei.com -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -