</h3> </blockquote> <?php $label = 'disable host'; $cls = 'warning'; if ($value == 1) { $cls = 'success'; $label = 'enable host'; } ?> <span class="btn btn-<?php echo $cls; ?> "> <?php echo Html::a(__($label), url('host/site/config')); ?> </span> <?php $form = ActiveForm::begin(array('options' => array('class' => 'form-horizontal', 'id' => 'host-sort'), 'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge')))); echo app\core\widget\Table::widget(array('models' => $models, 'pages' => $pages, 'title' => __('revmoe?'), 'fields' => array('ids', 'redirect'))); \app\core\UI::sort('#host-sort', url('host/site/sort')); ?> <?php ActiveForm::end(); ?>
</h3> </blockquote> <?php $colunm = array('comment_form'); $flag = false; if ($form) { $colunm = array('ids', 'content', 'display_raw'); $sort = true; } if (true === $sort) { ?> <?php $form = ActiveForm::begin(array('options' => array('class' => 'form-horizontal', 'id' => 'comment-sort'), 'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge')))); \app\core\UI::sort('#comment-sort', url('comment/site/sort')); } ?> <?php echo app\core\widget\Table::widget(array('models' => $models, 'pages' => $pages, 'update' => false, 'delete' => true, 'create' => false, 'fields' => $colunm)); ?> <?php if (true === $sort) { ?> <?php ActiveForm::end(); } ?>
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /** * @var yii\base\View $this */ $this->title = __('oauth'); $this->params['breadcrumbs'][] = array('label' => __('oauth'), 'url' => url('oauth/site/index')); $this->params['breadcrumbs'][] = __('list'); ?> <blockquote> <h3> <?php echo $this->title; ?> </h3> </blockquote> <?php $form = ActiveForm::begin(array('options' => array('class' => 'form-horizontal', 'id' => 'oauth-sort'), 'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge')))); echo app\core\widget\Table::widget(array('models' => $models, 'pages' => $pages, 'delete' => false, 'fields' => array('ids', 'name', 'key1', 'display_raw'))); \app\core\UI::sort('#oauth-sort', url('oauth/site/sort')); ?> <?php ActiveForm::end(); ?>