|
|
@@ -2,87 +2,87 @@
|
|
|
<style type="text/css" media="all">
|
|
|
.table .img p {
|
|
|
display: inline-block;
|
|
|
- float: left;
|
|
|
- height: 100px;
|
|
|
+ float: left;
|
|
|
+ height: 100px;
|
|
|
}
|
|
|
.table .img img {
|
|
|
width: 80px;
|
|
|
- height: 50px;
|
|
|
- float: right;
|
|
|
- display: block;
|
|
|
- margin-top: 30px;
|
|
|
+ height: 50px;
|
|
|
+ float: right;
|
|
|
+ display: block;
|
|
|
+ margin-top: 30px;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
-<div class="wrap js-check-wrap">
|
|
|
- <ul class="nav nav-tabs">
|
|
|
- <li class="active"><a href="{:url('activity/index')}">{:lang('ADMIN_ACTIVITY_LIST')}</a></li>
|
|
|
- <li ><a href="{:url('activity/add')}">添加活动</a></li>
|
|
|
- </ul>
|
|
|
- <form class="well form-inline margin-top-20" method="get" action="{:url('Activity/index')}">
|
|
|
- 活动名称:
|
|
|
- <input type="text" class="form-control" name="act_name" style="width: 150px;" value="{:input('request.user_login/s','')}" placeholder="请输入活动名称">
|
|
|
- <!-- 邮箱:
|
|
|
- <input type="text" class="form-control" name="user_email" style="width: 120px;" value="{:input('request.user_email/s','')}" placeholder="请输入">-->
|
|
|
- <input type="submit" class="btn btn-primary" value="搜索" />
|
|
|
- <a class="btn btn-danger" href="{:url('Activity/index')}">清空</a>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- </form>
|
|
|
- <form class="js-ajax-form" action="" method="post">
|
|
|
- <div class="table-actions">
|
|
|
-
|
|
|
-
|
|
|
- <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
- data-action="{:url('Activity/top',array('yes'=>1))}" data-subcheck="true">置顶
|
|
|
- </button>
|
|
|
- <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
- data-action="{:url('Activity/top',array('no'=>1))}" data-subcheck="true">取消置顶
|
|
|
- </button>
|
|
|
-
|
|
|
- <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
- data-action="{:url('Activity/issort',array('yes'=>1))}" data-subcheck="true">排序
|
|
|
- </button>
|
|
|
- <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
- data-action="{:url('Activity/issort',array('no'=>1))}" data-subcheck="true">取消排序
|
|
|
- </button>
|
|
|
- <button class="btn btn-primary btn-sm js-ajax-submit" style=" background-color: #d9534f; width: 38px; border-color: #d9534f;" type="submit"
|
|
|
- data-action="{:url('Activity/delactivity',array('yes'=>1))}" onclick="return confirm('确定要删除该活动吗?')" data-subcheck="true">删除
|
|
|
- </button>
|
|
|
-
|
|
|
- </div>
|
|
|
+ <div class="wrap js-check-wrap">
|
|
|
+ <ul class="nav nav-tabs">
|
|
|
+ <li class="active"><a href="{:url('activity/index')}">{:lang('ADMIN_ACTIVITY_LIST')}</a></li>
|
|
|
+ <li ><a href="{:url('activity/add')}">添加活动</a></li>
|
|
|
+ </ul>
|
|
|
+ <form class="well form-inline margin-top-20" method="get" action="{:url('Activity/index')}">
|
|
|
+ 活动名称:
|
|
|
+ <input type="text" class="form-control" name="act_name" style="width: 150px;" value="{:input('request.user_login/s','')}" placeholder="请输入活动名称">
|
|
|
+<!-- 邮箱:
|
|
|
+ <input type="text" class="form-control" name="user_email" style="width: 120px;" value="{:input('request.user_email/s','')}" placeholder="请输入">-->
|
|
|
+ <input type="submit" class="btn btn-primary" value="搜索" />
|
|
|
+ <a class="btn btn-danger" href="{:url('Activity/index')}">清空</a>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </form>
|
|
|
+ <form class="js-ajax-form" action="" method="post">
|
|
|
+ <div class="table-actions">
|
|
|
+
|
|
|
+
|
|
|
+ <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
+ data-action="{:url('Activity/top',array('yes'=>1))}" data-subcheck="true">置顶
|
|
|
+ </button>
|
|
|
+ <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
+ data-action="{:url('Activity/top',array('no'=>1))}" data-subcheck="true">取消置顶
|
|
|
+ </button>
|
|
|
+
|
|
|
+ <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
+ data-action="{:url('Activity/issort',array('yes'=>1))}" data-subcheck="true">排序
|
|
|
+ </button>
|
|
|
+ <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
|
|
|
+ data-action="{:url('Activity/issort',array('no'=>1))}" data-subcheck="true">取消排序
|
|
|
+ </button>
|
|
|
+ <button class="btn btn-primary btn-sm js-ajax-submit" style=" background-color: #d9534f; width: 38px; border-color: #d9534f;" type="submit"
|
|
|
+ data-action="{:url('Activity/delactivity',array('yes'=>1))}" onclick="return confirm('确定要删除该活动吗?')" data-subcheck="true">删除
|
|
|
+ </button>
|
|
|
+
|
|
|
+ </div>
|
|
|
<table class="table table-hover table-bordered">
|
|
|
<thead>
|
|
|
- <tr>
|
|
|
- <th width="16">
|
|
|
- <label>
|
|
|
- <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
|
|
|
- </label>
|
|
|
- </th>
|
|
|
- <th width="50">ID</th>
|
|
|
- <th>图片</th>
|
|
|
- <th>活动标题</th>
|
|
|
- <th>活动开始时间</th>
|
|
|
- <th>活动结束时间</th>
|
|
|
- <th style="text-align: center;">参与名额</th>
|
|
|
- <th>是否置顶</th>
|
|
|
- <th>{:lang('STATUS')}</th>
|
|
|
- <th width="180">{:lang('ACTIONS')}</th>
|
|
|
- </tr>
|
|
|
+ <tr>
|
|
|
+ <th width="16">
|
|
|
+ <label>
|
|
|
+ <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
|
|
|
+ </label>
|
|
|
+ </th>
|
|
|
+ <th width="50">ID</th>
|
|
|
+ <th>图片</th>
|
|
|
+ <th>活动标题</th>
|
|
|
+ <th>活动开始时间</th>
|
|
|
+ <th>活动结束时间</th>
|
|
|
+ <th style="text-align: center;">参与名额</th>
|
|
|
+ <th>是否置顶</th>
|
|
|
+ <th>{:lang('STATUS')}</th>
|
|
|
+ <th width="180">{:lang('ACTIONS')}</th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
-
|
|
|
- <tbody>
|
|
|
- <php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
|
|
|
- <foreach name="activitys" item="vo">
|
|
|
+
|
|
|
+ <tbody>
|
|
|
+ <php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
|
|
|
+ <foreach name="activitys" item="vo">
|
|
|
<tr>
|
|
|
|
|
|
- <td>
|
|
|
- <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
|
|
|
- value="{$vo.id}">
|
|
|
- </td>
|
|
|
-
|
|
|
+ <td>
|
|
|
+ <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
|
|
|
+ value="{$vo.id}">
|
|
|
+ </td>
|
|
|
+
|
|
|
<td>{$vo.id}</td>
|
|
|
<td class="img"><p></p><img src="/upload/{$vo.cover_img}" style="width: 80px;height: 50px;"></td>
|
|
|
<td>{$vo.title}</td>
|
|
|
@@ -92,57 +92,57 @@
|
|
|
<span style="color:red">{$vo.bks}</span>/{$vo.act_nums}
|
|
|
</td>
|
|
|
<td>
|
|
|
- <switch name="vo.is_top">
|
|
|
- <case value="0"><font style="color: red"> 未置顶</font></case>
|
|
|
+ <switch name="vo.is_top">
|
|
|
+ <case value="0"><font style="color: red"> 未置顶</font></case>
|
|
|
<case value="1"><font style="color: green"> 已置顶 </font></case>
|
|
|
-
|
|
|
- </switch>
|
|
|
- </td>
|
|
|
+
|
|
|
+ </switch>
|
|
|
+ </td>
|
|
|
<td>
|
|
|
- <switch name="vo.act_status">
|
|
|
- <case value="0"><font style="color: red"> 未开始 </font></case>
|
|
|
+ <switch name="vo.act_status">
|
|
|
+ <case value="0"><font style="color: red"> 未开始 </font></case>
|
|
|
<case value="1"><font style="color: green"> 进行中 </font></case>
|
|
|
<case value="2"><font style="color: blue"> 已结束 </font></case>
|
|
|
- </switch>
|
|
|
-
|
|
|
+ </switch>
|
|
|
+
|
|
|
</td>
|
|
|
<td>
|
|
|
<a class="btn btn-xs btn-primary" href="{:url('activity/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
|
|
|
|
|
|
+
|
|
|
+ <!-- <a class="btn btn-xs btn-danger" onclick="if(!confirm('删除后将不可恢复,确定删除吗?')) return false;" href="{:url('activity/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">
|
|
|
+ {:lang('DELETE')}
|
|
|
+ </a> -->
|
|
|
+ <a class="btn btn-xs btn-success" href="{:url('books/index',array('id'=>$vo['id']))}">报名记录</a>
|
|
|
|
|
|
- <!-- <a class="btn btn-xs btn-danger" onclick="if(!confirm('删除后将不可恢复,确定删除吗?')) return false;" href="{:url('activity/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">
|
|
|
- {:lang('DELETE')}
|
|
|
- </a> -->
|
|
|
- <a class="btn btn-xs btn-success" href="{:url('books/index',array('id'=>$vo['id']))}">报名记录</a>
|
|
|
-
|
|
|
- <a class="btn btn-xs btn-primary" style="margin-top:5px; border-color:#E161F3;background-color:#E161F3" onclick="getPaike({$vo['id']})">时间提醒</a>
|
|
|
+ <a class="btn btn-xs btn-primary" style="margin-top:5px; border-color:#E161F3;background-color:#E161F3" onclick="getPaike({$vo['id']})">时间提醒</a>
|
|
|
|
|
|
- <a class="btn btn-xs btn-primary" style="margin-top:5px;border-color:#7349B8;background-color:#7349B8" onclick="if (!confirm('确定要进行互动匹配发送吗?')) return false;" href="{:url('books/matching',array('id'=>$vo['id']))}">互动匹配</a>
|
|
|
+ <a class="btn btn-xs btn-primary" style="margin-top:5px;border-color:#7349B8;background-color:#7349B8" onclick="if (!confirm('确定要进行互动匹配发送吗?')) return false;" href="{:url('books/matching',array('id'=>$vo['id']))}">互动匹配</a>
|
|
|
|
|
|
- <a class="btn btn-xs btn-primary" style="margin-top:5px;border-color:#d9534f;;background-color:#d9534f;" onclick="if (!confirm('确定要进行互动匹配发送吗?')) return false;" href="{:url('books/twomatching',array('id'=>$vo['id']))}">重新匹配</a>
|
|
|
-
|
|
|
- <a class="btn btn-xs btn-primary" style="margin-top:5px;border-color:#7349B8;background-color:#7349B8" href="{:url('books/allhuxuan',array('id'=>$vo['id']))}">互选情况</a>
|
|
|
+ <a class="btn btn-xs btn-primary" style="margin-top:5px;border-color:#d9534f;;background-color:#d9534f;" onclick="if (!confirm('确定要进行互动匹配发送吗?')) return false;" href="{:url('books/twomatching',array('id'=>$vo['id']))}">重新匹配</a>
|
|
|
|
|
|
+ <a class="btn btn-xs btn-primary" style="margin-top:5px;border-color:#7349B8;background-color:#7349B8" href="{:url('books/allhuxuan',array('id'=>$vo['id']))}">互选情况</a>
|
|
|
+
|
|
|
|
|
|
</td>
|
|
|
-
|
|
|
+
|
|
|
</tr>
|
|
|
- </foreach>
|
|
|
- </tbody>
|
|
|
-
|
|
|
+ </foreach>
|
|
|
+ </tbody>
|
|
|
+
|
|
|
</table>
|
|
|
-
|
|
|
+
|
|
|
<div class="pagination">{$page}</div>
|
|
|
- </form>
|
|
|
-</div>
|
|
|
-<script src="__STATIC__/js/admin.js"></script>
|
|
|
-<script src="__STATIC__/js/layer/layer.js"></script>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <script src="__STATIC__/js/admin.js"></script>
|
|
|
+ <script src="__STATIC__/js/layer/layer.js"></script>
|
|
|
|
|
|
-<script >
|
|
|
+ <script >
|
|
|
|
|
|
- function getPaike(id){
|
|
|
- var addUrl = "{:url('Books/reminder')}?id="+id;
|
|
|
- layer.open({
|
|
|
+ function getPaike(id){
|
|
|
+ var addUrl = "{:url('Books/reminder')}?id="+id;
|
|
|
+ layer.open({
|
|
|
type: 2, //1:页面层,2:iframe层,3:加载层,4:tips层。
|
|
|
title: '时间提醒设置',
|
|
|
shadeClose: false, //不开启遮罩关闭,也就是说,点击弹出层其它地方不会关闭弹出框
|
|
|
@@ -150,12 +150,12 @@
|
|
|
area: ['470px', '470px'],
|
|
|
content: addUrl,
|
|
|
end: function () { //最后执行reload
|
|
|
- location.reload();
|
|
|
- }
|
|
|
- });
|
|
|
+ location.reload();
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
- }
|
|
|
-</script>
|
|
|
+ }
|
|
|
+ </script>
|
|
|
|
|
|
</body>
|
|
|
</html>
|