123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <{include file="./admin/header.html"}>
- <{include file="./admin/left.html"}>
- <{include file="./admin/nav.html"}>
- <{include file="get_kindeditor.html"}>
- <div id="activity_container">
- <div class="activity_center">
- <{include file="./admin/activity/common_nav.html"}>
- <input name="events_id" type="hidden" value="<{$events_Data.events.id}>">
-
- <div class="block_10"></div>
-
- <div class="panel panel-default">
- <div class="panel-body">
- <div class="form-group">
- <div>
- <table class="table table-hover">
- <thead>
- <tr>
- <th>参与人</th>
- <th>UID</th>
- <th>反馈时间</th>
- <th>反馈图片</th>
- <th>反馈内容</th>
- <th>是否显示</th>
- </tr>
- </thead>
- <tbody>
- <{if $fdData}>
- <{foreach from=$fdData item=data}>
- <tr>
- <td>
-
- <{if $userData[$data.uid].headimgurl}>
- <img class="img-rounded" width="48" height="48" src="<{$userData[$data.uid].headimgurl}>" />
- <{else}>
- <img class="img-rounded" width="48" height="48" src="http://news.mydrivers.com/Img/20110518/04481549.png" />
- <{/if}>
- <{if $userData[$data.uid].nickname}><{$userData[$data.uid].nickname}><{else}>游客<{/if}></td>
- <td><{$data.uid}></td>
- <td><{"Y-m-d H:i:s"|date:$data.create_time}></td>
- <td>
- <{foreach from=$data.pic key=index item=value}>
- <a href="<{$value}>" target="_blank"><img class="img-rounded" width="100" src="<{$value}>" /></a>
- <{/foreach}>
- </td>
- <td><{$data.content}></td>
- <th><input type="checkbox" class="status" name="status[<{$data.id}>]" value="<{$data.id}>" <{if $data.status == 1}>checked<{/if}>/></th>
- </tr>
- <{/foreach}>
- <{else}>
- <tr>
- <td colspan="3" align="center" class="text-muted">无数据</td>
- </tr>
- <{/if}>
- </tbody>
- </table>
- <div style="float:right" ><input type="checkbox" id="status" value="2" />全选
- <a id="status_submit" href="javascript:;" class="button button-default button-rounded">更新显示</a>
- </div>
- <br /><br /><br />
- <div class="page"><{$page_html}></div><p style="float:right" >反馈总数:<{$total_num}></p>
-
- </div>
- </div>
- </div>
- </div>
- </div>
- <{include file="./admin/activity/common_right.html"}>
- <div style="clear:both;"></div>
- </div>
- <script>
- KISSY.use('node, io, event', function (S, Node, IO, Event) {
- var $ = S.all;
-
- });
- function checkAll()
- {
- $("#status").click(function(){
- if ($(this).prop('checked')) {
- $(".status").prop('checked',true);
- } else {
- $(".status").prop('checked',false);
- }
- })
- }
- function submit()
- {
- $("#status_submit").click(function()
- {
- var yes = [];
- var no = [];
- $(".status").each(function(){
- if ($(this).prop('checked')) {
- yes.push($(this).val());
- } else {
- no.push($(this).val());
- }
- });
- var state = true;
- if (state) {
- var url = '<{$web_cfg.domain}>/?c=Admin_Activity_FeedBack&a=Status';
- $.post(url, {yes:yes.join(','),no:no.join(',')}, function(res) {
- alert('更新成功');
- });
- } else {
- alert('请选择一个选项');
- }
- })
- }
- checkAll();
- submit();
- </script>
- <{include file="./admin/bottom.html"}>
|