123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <?php /* Smarty version 2.6.17, created on 2018-05-26 19:57:19
- compiled from admin/activity/user_feedback.html */ ?>
- <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
- smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date', 'admin/activity/user_feedback.html', 44, false),)), $this); ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/header.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/left.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/nav.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "get_kindeditor.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <div id="activity_container">
- <div class="activity_center">
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_nav.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['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>
- <?php if ($this->_tpl_vars['fdData']): ?>
- <?php $_from = $this->_tpl_vars['fdData']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['data']):
- ?>
- <tr>
- <td>
-
- <?php if ($this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['headimgurl']): ?>
- <img class="img-rounded" width="48" height="48" src="<?php echo $this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['headimgurl']; ?>
- " />
- <?php else: ?>
- <img class="img-rounded" width="48" height="48" src="http://news.mydrivers.com/Img/20110518/04481549.png" />
- <?php endif; ?>
- <?php if ($this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['nickname']): ?><?php echo $this->_tpl_vars['userData'][$this->_tpl_vars['data']['uid']]['nickname']; ?>
- <?php else: ?>游客<?php endif; ?></td>
- <td><?php echo $this->_tpl_vars['data']['uid']; ?>
- </td>
- <td><?php echo ((is_array($_tmp="Y-m-d H:i:s")) ? $this->_run_mod_handler('date', true, $_tmp, $this->_tpl_vars['data']['create_time']) : date($_tmp, $this->_tpl_vars['data']['create_time'])); ?>
- </td>
- <td>
- <?php $_from = $this->_tpl_vars['data']['pic']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
- foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['value']):
- ?>
- <a href="<?php echo $this->_tpl_vars['value']; ?>
- " target="_blank"><img class="img-rounded" width="100" src="<?php echo $this->_tpl_vars['value']; ?>
- " /></a>
- <?php endforeach; endif; unset($_from); ?>
- </td>
- <td><?php echo $this->_tpl_vars['data']['content']; ?>
- </td>
- <th><input type="checkbox" class="status" name="status[<?php echo $this->_tpl_vars['data']['id']; ?>
- ]" value="<?php echo $this->_tpl_vars['data']['id']; ?>
- " <?php if ($this->_tpl_vars['data']['status'] == 1): ?>checked<?php endif; ?>/></th>
- </tr>
- <?php endforeach; endif; unset($_from); ?>
- <?php else: ?>
- <tr>
- <td colspan="3" align="center" class="text-muted">无数据</td>
- </tr>
- <?php endif; ?>
- </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"><?php echo $this->_tpl_vars['page_html']; ?>
- </div><p style="float:right" >反馈总数:<?php echo $this->_tpl_vars['total_num']; ?>
- </p>
-
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/activity/common_right.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
- <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 = '<?php echo $this->_tpl_vars['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>
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
- $this->_smarty_include(array('smarty_include_tpl_file' => "./admin/bottom.html", 'smarty_include_vars' => array()));
- $this->_tpl_vars = $_smarty_tpl_vars;
- unset($_smarty_tpl_vars);
- ?>
|