You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
414 lines
14 KiB
Plaintext
414 lines
14 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "邮件发送记录";
|
|
}
|
|
|
|
@section styles
|
|
{
|
|
<link type="text/css" rel="stylesheet" href="../Content/hplus/css/bootstrap.min.css" />
|
|
<link type="text/css" rel="stylesheet" href="../Content/hplus/css/style.min.css" />
|
|
<link type="text/css" rel="stylesheet" href="../Content/css/application.css">
|
|
<link type="text/css" rel="stylesheet" href="../Content/css/subscription.css">
|
|
<link type="text/css" rel="stylesheet" href="../Content/font/iconfont.css">
|
|
<style type="text/css">
|
|
.gray-bg {
|
|
background: #FFF !important;
|
|
}
|
|
/*顶部按钮*/
|
|
.navbar-top-nav li span.glyphicon-batch {
|
|
width: 15px;
|
|
height: 15px;
|
|
display: block;
|
|
background: url(../../../Content/img/batch-subscribe.png) no-repeat;
|
|
float: left;
|
|
}
|
|
|
|
.navbar-top-nav li a {
|
|
background: #42b0d5 !important;
|
|
border: 1px solid #42b0d5 !important;
|
|
color: #FFF !important;
|
|
}
|
|
|
|
.navbar-top-nav li a:hover {
|
|
opacity: .9;
|
|
}
|
|
/*标题*/
|
|
.track_subscription .ibox-title {
|
|
width: 100%;
|
|
height: 20px !important;
|
|
min-height: 20px !important;
|
|
background: url(../../Content/img/ibox-title.jpg) repeat-x center;
|
|
position: relative;
|
|
margin-bottom: 0px;
|
|
border: none !important;
|
|
}
|
|
|
|
.track_subscription .ibox-title h5 {
|
|
width: 100px;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
background: #FFF;
|
|
position: absolute;
|
|
left: 43px;
|
|
top: -5px;
|
|
border-left: none;
|
|
font-size: 15px;
|
|
text-align: center;
|
|
}
|
|
/*按钮*/
|
|
.btn-query {
|
|
opacity: .9;
|
|
}
|
|
|
|
.button {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.button a i {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.btn-F {
|
|
margin-right: 10px !important;
|
|
}
|
|
/*表单*/
|
|
.form-subscribe .form-group {
|
|
margin-left: 0px !important;
|
|
margin-right: 0px !important;
|
|
}
|
|
/*表格头部按钮*/
|
|
.table-nav {
|
|
margin-bottom: 5px;
|
|
float: right;
|
|
}
|
|
|
|
.table-nav li a {
|
|
border: none !important;
|
|
padding: 7px 0px !important;
|
|
margin-right: 15px !important;
|
|
}
|
|
|
|
.table-nav li a:hover {
|
|
background: none !important;
|
|
color: #42b0d5 !important;
|
|
}
|
|
|
|
.table-nav li a i {
|
|
margin-right: 3px !important;
|
|
}
|
|
|
|
.table-nav li a i.fa-trash {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.table-nav li span {
|
|
width: 2px;
|
|
height: 15px;
|
|
display: inline-block;
|
|
background: #cfd0cd;
|
|
margin-top: 8px;
|
|
margin-right: 15px;
|
|
}
|
|
/*表格复制*/
|
|
.stand-table tbody tr td a.audit {
|
|
display: block;
|
|
float: left;
|
|
}
|
|
|
|
.stand-table tbody tr td i.glyphicon-duplicate {
|
|
width: 15px;
|
|
margin-top: 3px;
|
|
color: #23527c;
|
|
display: block;
|
|
cursor: pointer;
|
|
float: left;
|
|
margin-left: 5px;
|
|
}
|
|
/*表格状态*/
|
|
.stand-table tbody tr td i.fa-adjust {
|
|
/*未完成*/
|
|
/* transform: rotate(180deg);*/
|
|
color: #06ac8d;
|
|
font-size: 14px;
|
|
background: #d8d8d8;
|
|
border-radius: 10px;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.stand-table tbody tr td .fa-circle {
|
|
/*已完成*/
|
|
color: #06ac8d;
|
|
font-size: 14px;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.fa-red {
|
|
color: #ff0000;
|
|
}
|
|
|
|
.fa-circle-grey {
|
|
/*无*/
|
|
color: #d8d8d8 !important;
|
|
}
|
|
/*日期图标去掉*/
|
|
input.date {
|
|
background: none !important;
|
|
padding-left: 5px !important;
|
|
}
|
|
|
|
input.form-control, select.form-control {
|
|
height: 40px !important;
|
|
}
|
|
/*漂浮框不遮盖*/
|
|
.bootstrap-table .fixed-table-container .fixed-table-body {
|
|
overflow-x: initial !important;
|
|
overflow-y: initial !important;
|
|
}
|
|
/*弹出框按钮*/
|
|
.btn-primary {
|
|
background: #42b0d5;
|
|
border: 1px solid #42b0d5;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #53b7d8 !important;
|
|
border: 1px solid #53b7d8 !important;
|
|
}
|
|
|
|
#State {
|
|
width: 64% !important;
|
|
height: 32px !important;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
option {
|
|
text-align: center;
|
|
}
|
|
|
|
.standing_book .nav li .btnAdd-bg {
|
|
width: 110px;
|
|
height: 36px;
|
|
background: #42b0d5;
|
|
margin-right: 12px;
|
|
border-radius: 3px;
|
|
padding: 7px 20px;
|
|
padding-top: 9px;
|
|
padding-bottom: 9px;
|
|
color: #FFF;
|
|
position: relative;
|
|
padding-right: 0px;
|
|
}
|
|
|
|
.standing_book .nav li .btnAdd-bg .btnAdd {
|
|
width: 55px;
|
|
float: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.standing_book .nav li .btnAdd-bg .btnAdd span.glyphicon-plus {
|
|
color: #FFF;
|
|
margin-right: 7px;
|
|
}
|
|
|
|
.standing_book .nav li .btnAdd-bg .arrow {
|
|
width: 35px;
|
|
height: 33px;
|
|
margin-top: -7px;
|
|
position: relative;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.standing_book .nav li .btnAdd-bg span.glyphicon-triangle-bottom {
|
|
font-size: 14px;
|
|
padding-top: 8px;
|
|
padding-left: 3px;
|
|
z-index: -1;
|
|
}
|
|
|
|
.standing_book .select-state {
|
|
width: 130px;
|
|
box-shadow: rgba(0,0,0,.15) 0px 4px 4px;
|
|
position: absolute;
|
|
top: 37px;
|
|
left: 0px;
|
|
z-index: 1;
|
|
background: #FFF;
|
|
padding: 6px 5px;
|
|
border: 1px solid #e5e5e5;
|
|
border-radius: 2px;
|
|
display: none;
|
|
}
|
|
|
|
.standing_book .select-state table tr {
|
|
line-height: 26px;
|
|
}
|
|
|
|
.standing_book .select-state table tr td {
|
|
width: 124px;
|
|
padding-left: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.standing_book .select-state table tr:hover {
|
|
background: #e0f5fc;
|
|
}
|
|
|
|
.standing_book .select-state span, .standing_book .select-state i {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.standing_book .select-state a {
|
|
background: none !important;
|
|
padding: 0 !important;
|
|
margin-right: 0px !important;
|
|
border: 0px !important;
|
|
color: #676a6c !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.standing_book .select-state a:hover {
|
|
color: #676a6c !important;
|
|
}
|
|
|
|
.standing_book .select-state a i {
|
|
color: #676a6c !important;
|
|
}
|
|
</style>
|
|
}
|
|
|
|
<div class="wrapper wrapper-content standing_book booklist track_subscription" style="background:#FFF;padding:20px;padding-top:10px;">
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="ibox">
|
|
<div class="ibox-title">
|
|
<h5>邮件发送记录</h5>
|
|
</div>
|
|
</div>
|
|
<div class="ibox float-e-margins fixed-top">
|
|
<div class="ibox-content" style="overflow:hidden;padding-top:10px;padding-bottom:0px;padding-left:0px;padding-right:0px;">
|
|
<form class="form-horizontal form-subscribe" id="formCond">
|
|
<div class="form-group">
|
|
<label class="control-label">发件邮箱</label>
|
|
<input type="text" name="Sender" autocomplete="off" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label">收件邮箱</label>
|
|
<input type="text" name="SendTo" autocomplete="off" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label">标题</label>
|
|
<input type="text" name="Title" autocomplete="off" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label">发送日期</label>
|
|
<input class="date" type="date" name="SendTimeBegin" />
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label date-label">--</label>
|
|
<input class="date" type="date" name="SendTimeEnd" />
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div class="form-group">
|
|
<label class="control-label">发送状态</label>
|
|
<select class="form-control" name="SendStatus" style="width:64% !important">
|
|
<option value="">全部</option>
|
|
<option value="Success">成功</option>
|
|
<option value="Fail">失败</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-lg-5 col-md-5 button" style="margin-top:0px;">
|
|
<a class="btn btn-query" id="btnSearch"><i class="fa fa-search"></i> 查询</a>
|
|
<a class="btn btn-reset" id="btnreset"><i class="fa fa-refresh"></i> 重置</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="ibox-content" style="padding-top:0px;">
|
|
<table id="table"
|
|
data-classes="table stand-table"
|
|
data-toggle="table"
|
|
data-show-refresh="false"
|
|
data-show-toggle="false"
|
|
data-show-columns="false"
|
|
data-url="@Url.Action("SendListData")"
|
|
data-content-type="application/x-www-form-urlencoded"
|
|
data-pagination="true"
|
|
data-pagination-use-intermediate="true"
|
|
data-pagination-successively-size="6"
|
|
data-pagination-pages-by-side="3"
|
|
data-side-pagination="server"
|
|
data-total-field="Total"
|
|
data-data-field="DataList"
|
|
data-page-number="1"
|
|
data-page-size="20"
|
|
data-query-params="queryParams"
|
|
data-method="get">
|
|
<thead>
|
|
<tr>
|
|
<th data-field="Title">邮件标题</th>
|
|
<th data-field="Sender">发送邮箱</th>
|
|
<th data-field="SendTo">接收邮箱</th>
|
|
<th data-field="StrCreateTime">创建时间</th>
|
|
<th data-field="StrSendTime">发送时间</th>
|
|
<th data-field="TryCount">发送次数</th>
|
|
<th data-field="SendStatus" data-formatter="fmtSendStatus">发送状态</th>
|
|
<th data-field="GID" data-formatter="fmtOpt">操作</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@section scripts
|
|
{
|
|
<script>
|
|
$(function () {
|
|
|
|
$('#table').bootstrapTable();
|
|
|
|
|
|
$("#btnSearch").click(function () {
|
|
$('#table').bootstrapTable('refresh')
|
|
})
|
|
//回车查询
|
|
$("#formCond input").on('keyup', function (e) {
|
|
if (e.keyCode == 13) {
|
|
$('#table').bootstrapTable('refresh');
|
|
}
|
|
})
|
|
|
|
$("#btnreset").click(function () {
|
|
$(".form-horizontal input,select").val('');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
function queryParams(params) {
|
|
var cond = $("#formCond").serializeObject();
|
|
params.Sender = cond.Sender;
|
|
params.SendTo = cond.SendTo;
|
|
params.Title = cond.Title;
|
|
params.SendStatus = cond.SendStatus;
|
|
params.SendTimeBegin = cond.SendTimeBegin;
|
|
params.SendTimeEnd = cond.SendTimeEnd;
|
|
return params
|
|
}
|
|
|
|
function fmtSendStatus(value, row, index) {
|
|
if (row.SendStatus == 'Success') {
|
|
return '<span style="color:green;">发送成功</span>'
|
|
}
|
|
else {
|
|
return '<span style="color:red;" title="' + row.ResultText + '">发送失败</span>'
|
|
}
|
|
}
|
|
|
|
function fmtOpt(value, row, index) {
|
|
return '<a href="@Url.Action("DownloadEml")?gid='+row.GID+'" target="_blank">下载</a>'
|
|
}
|
|
</script>
|
|
} |