echo $model->getAttributeLabel("pre_content"); ?> </h2> <p><?php echo Html::textarea('', $model->pre_content, ['style' => 'width:100%', 'rows' => '20', 'readonly' => true]); ?> </p> <p style="text-align: center;"> <?php echo Html::a('预览', Yii::$app->params['www_domain'] . $model->pre_url, ['class' => 'btn btn-success', 'target' => '_blank']); ?> </p> </div> </div> </div><!-- /.tab-pane --> <div id="activity2" class="tab-pane"> <?php Pjax::begin(['id' => 'countries']); echo GridView::widget(['dataProvider' => new ActiveDataProvider(['query' => PieceOperateLog::find()->where(['piece_id' => $model->id]), 'sort' => ['defaultOrder' => ['id' => SORT_DESC]]]), 'columns' => [['attribute' => 'created_at', 'value' => function ($data) { return date('Y-m-d H:i:s', $data->created_at) . '(' . $data->mgId->username . ')'; }], ['attribute' => 'yesterday_content', 'contentOptions' => ['style' => "width:80%"], 'format' => 'raw', 'value' => function ($data) { return Html::textarea('', $data->yesterday_content, ['style' => 'width:100%', 'rows' => '5', 'readonly' => true]); }]]]); Pjax::end(); ?> <table class="table table-condensed"> <tr></tr> </table> </div><!-- /.tab-pane --> </div><!-- /.tab-content --> </div><!-- /.nav-tabs-custom --> </div>