|
|
@@ -1,5 +1,42 @@
|
|
|
<#include "../_inc/_layout.html"/>
|
|
|
<#macro script>
|
|
|
+function changeCommentSataus(id) {
|
|
|
+ var commentStatusObj = $("#commentStatus"+id);
|
|
|
+ var commentStatus = commentStatusObj.find("option:selected").val();
|
|
|
+
|
|
|
+ $.get("${CPATH}/admin/content/changeCommentSataus?ucode=${ucode}&id="+id+"&commentStatus="+commentStatus, function(result){
|
|
|
+ if(result.errorCode > 0){
|
|
|
+ alert(result.message);
|
|
|
+ }else{
|
|
|
+ location.reload();
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+function changePage(flag) {
|
|
|
+ var comment = $('.commentManage');
|
|
|
+ var group = $('.groupManage');
|
|
|
+ var pageChange = $('.pageChange');
|
|
|
+ if (flag == 0 && !comment.hasClass("active")) {
|
|
|
+ comment.addClass("active");
|
|
|
+ group.removeClass("active");
|
|
|
+ } else if (flag == 1 && !group.hasClass("active")) {
|
|
|
+ group.addClass("active");
|
|
|
+ comment.removeClass("active");
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function showMessageSelect(id) {
|
|
|
+ var isShowMessageSelect = $("#isShowMessageSelect"+id);
|
|
|
+ var showStatus = isShowMessageSelect.find("option:selected").val();
|
|
|
+ if (showStatus == "normal") {
|
|
|
+ pub(id);
|
|
|
+ } else if (showStatus == "draft") {
|
|
|
+ draft(id);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
function trash(id){
|
|
|
$.get("${CPATH}/admin/comment/trash?ucode=${ucode}&id="+id, function(result){
|
|
|
if(result.errorCode > 0){
|
|
|
@@ -86,99 +123,7 @@ function reply(id){
|
|
|
.navUas a.active,.navUas a:hover{
|
|
|
border-bottom: 3px solid #1ba047;
|
|
|
}
|
|
|
- /*table表格*/
|
|
|
- .box-content .box-message{
|
|
|
- border-top: none;
|
|
|
- margin-top: 40px;
|
|
|
- }
|
|
|
- .box-content .box-message table thead tr{
|
|
|
- background: #f1f1f1;
|
|
|
- }
|
|
|
- .box-content .box-message table thead tr th.chooseCount span{
|
|
|
- color: #9d9d9d;
|
|
|
- }
|
|
|
- .bodyUas .messageContent{
|
|
|
- overflow: hidden;
|
|
|
- width: 240px;
|
|
|
- }
|
|
|
- .bodyUas .messageContent .leftImg{
|
|
|
- width: 65px;
|
|
|
- height: 50px;
|
|
|
- float: left;
|
|
|
- }
|
|
|
- .bodyUas .messageContent .leftImg img{
|
|
|
- max-width: 65px;
|
|
|
- max-height: 50px;
|
|
|
- }
|
|
|
- .bodyUas .messageContent .rightContent{
|
|
|
- float: left;
|
|
|
- margin-left: 10px;
|
|
|
- }
|
|
|
- .bodyUas .messageContent .rightContent p{
|
|
|
- font-size: 16px;
|
|
|
- color: #333;
|
|
|
- }
|
|
|
- .bodyUas .messageContent .rightContent span{
|
|
|
- font-size: 16px;
|
|
|
- color: #9d9d9d;
|
|
|
- }
|
|
|
- .bodyUas .messageTime{
|
|
|
- font-size: 16px;
|
|
|
- color: #333;
|
|
|
- }
|
|
|
- .bodyUas .handleMessage a{
|
|
|
- margin-right: 20px;
|
|
|
- font-size: 14px;
|
|
|
- color: #0a44ff;
|
|
|
- width: 50px;
|
|
|
- display: inline-block;
|
|
|
- }
|
|
|
- .bodyUas .handleMessage a.showInfo{
|
|
|
- background: url('${CPATH}/static/jpress/admin/image/xiala.png') no-repeat 35px 8px;
|
|
|
- color: #0a44ff;
|
|
|
- }
|
|
|
- .box-content .box-message .table tbody.bodyUas tr {
|
|
|
- background-color: #fff;
|
|
|
- }
|
|
|
- .box-content .box-message .table tbody.bodyUas tr td{
|
|
|
- vertical-align: middle;
|
|
|
- height: 70px;
|
|
|
- }
|
|
|
- .box-content .box-message .table tbody.bodyUas tr:last-child{
|
|
|
- border-bottom: 3px solid #000;
|
|
|
- }
|
|
|
- .box-content .box-message .messageNav{
|
|
|
- margin-bottom: 15px;
|
|
|
- }
|
|
|
- .box-content .box-message .messageNav ul{
|
|
|
- overflow: hidden;
|
|
|
- height: 40px;
|
|
|
- }
|
|
|
- .box-content .box-message .messageNav ul li{
|
|
|
- float: left;
|
|
|
- width: 140px;
|
|
|
- height: 40px;
|
|
|
- line-height: 40px;
|
|
|
- text-align: center;
|
|
|
|
|
|
- list-style: none;
|
|
|
- }
|
|
|
- .box-content .box-message .messageNav ul li a{
|
|
|
- display: inline-block;
|
|
|
- width: 140px;
|
|
|
- height: 40px;
|
|
|
- color: #333;
|
|
|
- border-radius: 5px;
|
|
|
- border: 1px solid #797979;
|
|
|
- }
|
|
|
- .box-content .box-message .messageNav ul li:hover a,.box-content .box-message .messageNav ul li.active a{
|
|
|
- border: none;
|
|
|
- background: #379bd5;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- .content-wrapper{
|
|
|
- background-color: #fff!important;
|
|
|
- }
|
|
|
</style>
|
|
|
<@layout active_id=p child_active_id=c>
|
|
|
|
|
|
@@ -189,90 +134,22 @@ function reply(id){
|
|
|
</section>
|
|
|
<section class="content-header">
|
|
|
<div class="navUas">
|
|
|
- <a class="active">留言管理</a><a>群发消息管理</a>
|
|
|
+ <a class="commentManage <#if !way?? || (way?? && way == 'comment')>active</#if>" onclick="changePage(0)" href="${CPATH}/admin/comment?t=comment&m=uuhelper&p=uuhelper&c=comment&way=comment">留言管理</a>
|
|
|
+ <a class="groupManage <#if way?? && way == 'group'>active</#if>" onclick="changePage(1)" href="${CPATH}/admin/comment?t=comment&m=uuhelper&p=uuhelper&c=comment&way=group">群发消息管理</a>
|
|
|
</div>
|
|
|
</section>
|
|
|
<!-- Main content -->
|
|
|
- <section class="content box-content">
|
|
|
- <div class="box box-message">
|
|
|
- <div class="messageNav">
|
|
|
- <ul>
|
|
|
- <li><a>已显示</a></li>
|
|
|
- <li><a>未显示</a></li>
|
|
|
- <li><a>已回复</a></li>
|
|
|
- <li><a>未回复</a></li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <!-- /.box-header -->
|
|
|
- <div class="box-body">
|
|
|
- <form action="" method="POST" id="form">
|
|
|
- <input type="hidden" name="ucode" value="${ucode}">
|
|
|
- <table class="table table-striped" style="word-break:break-all">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th style="padding-left: 40px;" width="25"><input type="checkbox"></th>
|
|
|
- <th width="500" class="chooseCount">留言 <span>(已选中 <span>0</span>条)</span></th>
|
|
|
- <th width="400">留言时间</th>
|
|
|
- <th width="400">操作</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody class="bodyUas">
|
|
|
- <tr>
|
|
|
- <td style="padding-left: 40px;"><input type="checkbox"></td>
|
|
|
- <td>
|
|
|
- <div class="messageContent">
|
|
|
- <div class="leftImg">
|
|
|
- <img src="${CPATH}/static/jpress/admin/image/nothumbnail.jpg" alt="">
|
|
|
- </div>
|
|
|
- <div class="rightContent">
|
|
|
- <p>电量十足</p>
|
|
|
- <span>赞</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="messageTime">
|
|
|
- 2017-08-26 17:24:23
|
|
|
- </td>
|
|
|
- <td class="handleMessage">
|
|
|
- <a class="showInfo">显示</a><a>置顶</a><a>回复</a><a>删除</a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td style="padding-left: 40px;"><input type="checkbox"></td>
|
|
|
- <td>
|
|
|
- <div class="messageContent">
|
|
|
- <div class="leftImg">
|
|
|
- <img src="${CPATH}/static/jpress/admin/image/nothumbnail.jpg" alt="">
|
|
|
- </div>
|
|
|
- <div class="rightContent">
|
|
|
- <p>电量十足</p>
|
|
|
- <span>赞</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="messageTime">
|
|
|
- 2017-08-26 17:24:23
|
|
|
- </td>
|
|
|
- <td class="handleMessage">
|
|
|
- <a class="showInfo">显示</a><a>置顶</a><a>回复</a><a>删除</a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
- <!-- /.box-body -->
|
|
|
- </div>
|
|
|
- <div class="cf">
|
|
|
- <div class="pull-right " >
|
|
|
- <#if page??>
|
|
|
- <#include "../_inc/_paginate.html" />
|
|
|
- <@paginate currentPage=page.pageNumber totalPage=page.totalPage actionUrl="?p="+(p!)+"&c="+(c!)+"&m="+(m!)+"&t="+(t!)+"&s="+(s!)+"&k="+(k!)+"&tids="+(tids!)+"&page="/>
|
|
|
- </#if>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <!-- /.row -->
|
|
|
- </section>
|
|
|
+ <#if way?? && way == "comment">
|
|
|
+ <#include "uuHelperCommentList.html" />
|
|
|
+ <#elseif way?? && way == "group">
|
|
|
+ <#include "uuHelperGroupList.html" />
|
|
|
+ <#elseif way?? && way == "detail">
|
|
|
+ <#include "uuHelperGroupDetail.html" />
|
|
|
+ <#else>
|
|
|
+ <#include "uuHelperCommentList.html" />
|
|
|
+ </#if>
|
|
|
+
|
|
|
+
|
|
|
<#else>
|
|
|
<section class="content-header">
|
|
|
<h1>所有内容</h1>
|