</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(); } ?>
?> " class="alert" style="display:none"></div> <?php $form = ActiveForm::begin(array('options' => array('class' => 'form-horizontal', 'id' => $formId), 'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge')))); ?> <?php echo Html::textArea('Comment[body]', null, array('required' => 'required', 'id' => 'Comment_body')); ?> <p style='margin-top:10px;'> <?php echo Html::button(__('comment'), null, null, array('class' => 'btn')); ?> </p> <?php ActiveForm::end(); UI::ajaxForm($formId, "\n\t\tif(data){\n\t\t\t\$('#" . $infoMessage . "').addClass('alert-error')\n\t\t\t\t.html(data).fadeIn();\n\t\t\t\$('#" . $formId . " .btn').html('" . __('comment') . "')\n\t\t\t\t\t.removeAttr('disabled','disabled');\n\t\t\n\t\t}else{\n\t\t\t\$('#" . $infoMessage . "').removeClass('alert-error')\n\t\t\t\t\t.addClass('alert-success')\n\t\t\t\t\t.html('" . __('commit success') . "')\n\t\t\t\t\t.fadeIn();\n\t\t\t\$('#" . $formId . " .btn').html('" . __('commented') . "');\n\t\t\t" . UI::ajax(url('comment/ajax/index'), $query, "#" . $paginatFormId, $script, false) . "\n\t\t}\n\t \n\t"); js("\$('#" . $formId . " .btn').click(function(){\n\t\t\$('#" . $formId . "').submit();\n\t\t\$(this).html('" . __('commenting') . "……');\n\t\t\$(this).attr('disabled','disabled');\n\t\treturn false;\n\t});"); } else { ?> <div class='alert alert-waring'><?php echo __('please login first'); ?> </div> <?php } if ($top === false) { echo "<div id='" . $paginatFormId . "'></div>"; } widget('redactor', array('tag' => "#Comment_body"));
</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(); ?>
<?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(); ?>