room.php
4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
use yii\helpers\Html;
use backend\widgets\LinkPager;
$this->title = $this->params['main_title'].'-'.$this->params['sub_title'];
?>
<div class="panel panel-default">
<div class="panel-body">
<form aciton="" method="GET" class="form-inline">
<div>
<div class="form-group">
<label class="control-label">状态:</label>
<?php echo Html::dropDownList('filter[status]', null,[''=>'==请选择==',0=>'直播未开始',1=>'直播中'], ['class' => 'form-control']);?>
</div>
<div class="form-group">
<label class="control-label">关键字:</label>
<input type="text" class="form-control" name="filter[keyword]" placeholder="输入关键字">
</div>
<input type="submit" class="btn btn-primary btn-sm mr5" value="查询" id="filter_submit">
<input type="reset" class="btn btn-primary btn-sm mr5" value="重置" id="filter_reset">
</div>
</form>
</div>
</div>
<div class="form-group">
<label>
<a href="/live/roomcreate" class="btn btn-primary">+ 创建房间</a>
</label>
</div>
<div class="row">
<div class="col-md-12">
<div class="table-responsive">
<table class="table mb30">
<thead>
<tr style="white-space:nowrap">
<th><input type="checkbox" onclick="checkall(this)">选择</th>
<th>房间号</th>
<th>直播标题</th>
<th>头图</th>
<th>主播</th>
<th>预告开始时间</th>
<th>是否精选</th>
<th>马甲状态</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php foreach ($list as $row):?>
<tr data-stock="1" data-source="1" data-status="2" data-id="5011880">
<td><input type="checkbox" value="<?=$row['id']?>" name="room[]"></td>
<td><?=$row['room_id']?></td>
<td><?=$row['title']?></td>
<td><img height="70" alt="商品封面图片" src="http://img13.static.yhbimg.com/global/2016/08/09/17/02c4f32295d862be8d7d332ecf9b42337d.jpg"></td>
<td><?=$row['master_id']?></td>
<td style="white-space:nowrap"><?=date('Y-m-d H:i:s',$row['starting_time'])?></td>
<td><?=Yii::$app->params['config']['best'][$row['best']]?></td>
<td><?=Yii::$app->params['config']['vest'][$row['vest']]?></td>
<td><?=Yii::$app->params['config']['room_status'][$row['status']]?></td>
<td>
<a href="/live/roomedit/<?=$row['id']?>" class="btn btn-default btn-white">编辑</a>
<a href="/forbidden/index?room_id=<?=$row['id']?>" class="btn btn-default btn-white">禁言</a>
<span type="status">
<button type="disable" onclick="javascript:void(0)" class="btn btn-danger btn-metro">删除</button>
<button type="close" onclick="set_shelf('5011880', 'off')" class="btn btn-danger btn-metro" style="display:none">关闭直播</button>
</span>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
<!-- table-responsive -->
<?php echo LinkPager::widget(['pagination' => $pagination]);?>
</div>
<!-- col-md-12 -->
</div>