| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <style>
- /*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: 300px;
- }
- .bodyUas .messageContent .leftImg{
- width: 65px;
- height: 50px;
- float: left;
- }
- .bodyUas .messageContent .leftImg img{
- max-width: 65px;
- max-height: 50px;
- }
- .bodyUas .messageContent .rightContent{
- width: 70%;
- float: left;
- margin-left: 10px;
- }
- .bodyUas .messageContent .rightContent p{
- width: 175px;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- font-size: 14px;
- color: #333;
- }
- .bodyUas .messageContent .rightContent span{
- width: 175px;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- font-size: 14px;
- color: #9d9d9d;
- display: inline-block;
- }
- .bodyUas .messageTime{
- font-size: 14px;
- color: #333;
- }
- .bodyUas .handleMessage select {
- border: none;
- outline: none;
- }
- .bodyUas .handleMessage a{
- margin-right: 20px;
- font-size: 14px;
- 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: 2px 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;
- }
- /*分頁*/
- .box-content .pageUas{
- margin-top: 20px;
- }
- </style>
- <!-- Main content -->
- <section class="content box-content">
- <div class="box box-message">
- <div class="messageNav">
- <ul>
- <li><a href="${CPATH}/admin/comment?t=${t!}&m=${m!}&p=${p!}&c=${c!}&s=normal&cid=${cid!}&way=${way!}">
- 已显示 <span class="count">(${normal_count!"0"})</span>
- </a>
- </li>
- <li><a href="${CPATH}/admin/comment?t=${t!}&m=${m!}&p=${p!}&c=${c!}&s=draft&cid=${cid!}&way=${way!}">
- 未显示 <span class="count">(${draft_count!"0"})</span>
- </a>
- </li>
- <li><a href="${CPATH}/admin/comment?t=${t!}&m=${m!}&p=${p!}&c=${c!}&son=true&cid=${cid!}&way=${way!}">
- 已回复<span class="count">(${answered_count!"0"})</span>
- </a>
- </li>
- <li><a href="${CPATH}/admin/comment?t=${t!}&m=${m!}&p=${p!}&c=${c!}&son=false&cid=${cid!}&way=${way!}">
- 未回复<span class="count">(${unanswered_count!"0"})</span>
- </a>
- </li>
- <li><a href="${CPATH}/admin/comment?t=${t!}&m=${m!}&p=${p!}&c=${c!}&s=delete&cid=${cid!}&way=${way!}">
- 垃圾箱 <span class="count">(${delete_count!"0"})</span>
- </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 name="dataItem" onclick="checkAll(this)" 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">
- <#if page??>
- <#list page.getList() as bean>
- <tr>
- <td style="padding-left: 40px;"><input name="dataItem" type="checkbox"></td>
- <td>
- <div class="messageContent">
- <div class="leftImg">
- <#if bean?? && bean.uu_user_avatar??>
- <img src="${(bean.uu_user_avatar)!}" alt="头像">
- <#else>
- <img src="${CPATH}/static/jpress/admin/image/defaultUuUserPhoto.png" alt="头像">
- </#if>
- </div>
- <div class="rightContent">
- <p>${bean.author!}<#if bean?? && bean.user_id?? && bean.getContentUserId() == bean.user_id>(作者)</#if></p>
- <span>${bean.text!}<#if "draft" == bean.status!>(待审核)<#elseif "delete" == bean.status!>(垃圾箱)</#if></span>
- </div>
- </div>
- </td>
- <td class="messageTime">
- ${bean.created!}
- </td>
- <td class="handleMessage">
- <#if "delete" == bean.status!>
- <a href="javascript:restore(${bean.id})">放回草稿</a>
- <a href="javascript:del(${bean.id})">永久删除</a>
- <#else>
- <a><select id="isShowMessageSelect${bean.id}" onchange="showMessageSelect(${bean.id})">
- <option value="draft" <#if bean?? && bean.status?? && bean.status=="draft"> selected="selected" </#if>>不显示</option>
- <option value="normal" <#if bean?? && bean.status?? && bean.status=="normal"> selected="selected" </#if>>显示</option>
- </select>
- </a>
- <a><select id="isTopSelect${bean.id}" onchange="topSelect(${bean.id})">
- <option value="default" <#if bean?? && bean.order_number?? && bean.order_number==0> selected="selected" </#if>>默认</option>
- <option value="top" <#if bean?? && bean.order_number?? && bean.order_number==1> selected="selected" </#if>>置顶</option>
- </select>
- </a>
- <a href="javascript:reply(${bean.id})">回复</a>
- <a href="javascript:trash(${bean.id})">删除</a>
- </#if>
- </td>
- </tr>
- </#list>
- </#if>
- </tbody>
- </table>
- </form>
- </div>
- <!-- /.box-body -->
- </div>
- <div class="cf pageUas">
- <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>
|