Commit 004fd035 by 冷斌

踢人

parent c82e6f7b
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a >直播封面图审核</a></li>
</ul>
<form class="well form-search" method="post" action="{:U('Liveing/image')}">
时间:
<input type="text" name="start_time" class="js-date date" value="{$formget.start_time}" style="width: 80px;" autocomplete="off">-
<input type="text" class="js-date date" name="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
关键字:
<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入会员id...">
<input type="submit" class="btn btn-primary" value="搜索">
</form>
<form method="post" class="js-ajax-form" >
<table class="table table-hover table-bordered">
<thead>
<tr>
<th align="center">编号</th>
<th>会员昵称</th>
<th>直播ID</th>
<th>直播状态</th>
<th>直播开始时间</th>
<th>直播分类</th>
<th>房间类型</th>
<th>封面图</th>
<th>视频类型</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<php>$islive=array("0"=>"直播结束","1"=>"直播中");$type=array("0"=>"普通房间","1"=>"密码房间","2"=>"门票房间","3"=>"计时房间");</php>
<foreach name="lists" item="vo">
<tr>
<td align="center">{$vo.uid}</td>
<td>{$vo['userinfo']['user_nicename']} </td>
<td>{$vo['live']['showid']}</td>
<td>{$islive[$vo['live']['islive']]}</td>
<td>{$vo['live']['starttime']|date="Y-m-d H:i:s",###}</td>
<td>{$liveclass[$vo['live']['liveclassid']]}</td>
<td>{$type[$vo['live']['type']]}</td>
<td><a href="{$vo['thumb']}" target="_blank"><img width="25" height="25" src="{$vo['thumb']}" /></a></td>
<td><if condition="$vo['live']['anyway'] eq 0">竖屏<else/>横屏</if></td>
<if condition="$vo['isvideo']==1">
<td>
<a href="{:U('Liveing/edit',array('uid'=>$vo['uid']))}" >编辑</a>
|
<a href="{:U('Liveing/del',array('uid'=>$vo['uid']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除吗?">删除</a>
</td>
<else/>
<td></td>
</if>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
...@@ -244,13 +244,12 @@ class LiveingController extends AdminbaseController { ...@@ -244,13 +244,12 @@ class LiveingController extends AdminbaseController {
->select(); ->select();
foreach($lists as $k=>$v){ foreach($lists as $k=>$v){
$userinfo=getUserInfo($v['uid']); $userinfo=getUserInfo($v['uid']);
$v['thumb'] = get_upload_path($v['thumb']);
$v['userinfo']=$userinfo; $v['userinfo']=$userinfo;
$v['live'] = M("users_live")->where("id='{$v['uid']}'")->find();
$lists[$k]=$v; $lists[$k]=$v;
} }
var_dump($map, $lists);
die;
$this->assign('lists', $lists); $this->assign('lists', $lists);
$this->assign('formget', $_GET); $this->assign('formget', $_GET);
$this->assign("page", $page->show('Admin')); $this->assign("page", $page->show('Admin'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment