Authored by wuxiao
@@ -42,13 +42,13 @@ class Master extends \yii\db\ActiveRecord @@ -42,13 +42,13 @@ class Master extends \yii\db\ActiveRecord
42 public function attributeLabels() 42 public function attributeLabels()
43 { 43 {
44 return [ 44 return [
45 - 'master_id' => 'Master ID',  
46 - 'name' => 'Name',  
47 - 'meta' => 'Meta',  
48 - 'pic' => 'Pic', 45 + 'master_id' => '主播ID',
  46 + 'name' => '主播名称',
  47 + 'meta' => '主播标签',
  48 + 'pic' => '主播头像',
49 'live_nums' => 'Live Nums', 49 'live_nums' => 'Live Nums',
50 - 'create_time' => 'Create Time',  
51 - 'update_time' => 'Update Time', 50 + 'create_time' => '创建时间',
  51 + 'update_time' => '更新时间',
52 ]; 52 ];
53 } 53 }
54 54
@@ -53,20 +53,20 @@ class Room extends \yii\db\ActiveRecord @@ -53,20 +53,20 @@ class Room extends \yii\db\ActiveRecord
53 { 53 {
54 return [ 54 return [
55 'id' => 'ID', 55 'id' => 'ID',
56 - 'room_id' => 'Room ID',  
57 - 'title' => 'Title',  
58 - 'watermark' => 'Watermark',  
59 - 'master_id' => 'Master ID', 56 + 'room_id' => '房间ID',
  57 + 'title' => '直播标题',
  58 + 'watermark' => '水印文案',
  59 + 'master_id' => '主播ID',
60 'app' => 'App', 60 'app' => 'App',
61 - 'secret' => 'Secret',  
62 - 'pic' => 'Pic',  
63 - 'starting_time' => 'Starting Time',  
64 - 'best' => 'Best',  
65 - 'vest' => 'Vest',  
66 - 'living' => 'Living',  
67 - 'status' => 'Status',  
68 - 'create_time' => 'Create Time',  
69 - 'update_time' => 'Update Time', 61 + 'secret' => '房间密钥',
  62 + 'pic' => '头图',
  63 + 'starting_time' => '预告开始时间',
  64 + 'best' => '是否精选',
  65 + 'vest' => '马甲状态',
  66 + 'living' => '直播状态',
  67 + 'status' => '房间状态',
  68 + 'create_time' => '创建时间',
  69 + 'update_time' => '更新时间',
70 ]; 70 ];
71 } 71 }
72 72
@@ -36,6 +36,7 @@ $this->title = $this->params['main_title'].'-'.$this->params['sub_title']; @@ -36,6 +36,7 @@ $this->title = $this->params['main_title'].'-'.$this->params['sub_title'];
36 <th>头图</th> 36 <th>头图</th>
37 <th>主播</th> 37 <th>主播</th>
38 <th>预告开始时间</th> 38 <th>预告开始时间</th>
  39 + <th>房间密钥</th>
39 <th>是否精选</th> 40 <th>是否精选</th>
40 <th>马甲状态</th> 41 <th>马甲状态</th>
41 <th>直播状态</th> 42 <th>直播状态</th>
@@ -52,6 +53,7 @@ $this->title = $this->params['main_title'].'-'.$this->params['sub_title']; @@ -52,6 +53,7 @@ $this->title = $this->params['main_title'].'-'.$this->params['sub_title'];
52 <td><img height="70" alt="房间封面图片" src="<?=CommonImages::getImageUrl($model->pic, 70, 70, 2)?>"></td> 53 <td><img height="70" alt="房间封面图片" src="<?=CommonImages::getImageUrl($model->pic, 70, 70, 2)?>"></td>
53 <td><?=$model->master ? $model->master->master_id.' '.$model->master->name : '无主播'?></td> 54 <td><?=$model->master ? $model->master->master_id.' '.$model->master->name : '无主播'?></td>
54 <td style="white-space:nowrap"><?=$model->starting_time ? date('Y-m-d H:i:s',$model->starting_time) : ''?></td> 55 <td style="white-space:nowrap"><?=$model->starting_time ? date('Y-m-d H:i:s',$model->starting_time) : ''?></td>
  56 + <td><?=$model->secret?></td>
55 <td><?=Yii::$app->params['config']['best'][$model->best]?></td> 57 <td><?=Yii::$app->params['config']['best'][$model->best]?></td>
56 <td><?=Yii::$app->params['config']['vest'][$model->vest]?></td> 58 <td><?=Yii::$app->params['config']['vest'][$model->vest]?></td>
57 <td><?=Yii::$app->params['config']['room_living'][$model->living]?></td> 59 <td><?=Yii::$app->params['config']['room_living'][$model->living]?></td>
@@ -60,9 +60,9 @@ $this->registerJs($this->blocks['javascript'],View::POS_END) @@ -60,9 +60,9 @@ $this->registerJs($this->blocks['javascript'],View::POS_END)
60 </div> 60 </div>
61 61
62 <div class="form-group"> 62 <div class="form-group">
63 - <label class="col-sm-3 control-label">主播: </label> 63 + <label class="col-sm-3 control-label">主播: <span class="asterisk">*</span></label>
64 <div class="col-sm-5"> 64 <div class="col-sm-5">
65 - <?php echo Html::dropDownList('master_id', $model->master_id,$masters, ['class' => 'width300 select-basic']);?> 65 + <?php echo Html::dropDownList('master_id', $model->master_id,$masters, ['class' => 'width300 select-basic', 'required'=>"required"]);?>
66 </div> 66 </div>
67 67
68 </div> 68 </div>