Example #1
0
            <div class="col-sm-8 hidden-xs">
                <h4 class="book-title">
                    Trạch Thiên Ký - 择天记 - Đông Phương Huyền Huyễn
                </h4>
                <div class="book-desc">
                    Thái Thủy nguyên niên, có thần thạch từ không gian bay tới, phân tán khắp nhân gian, trong đó có thần thạch rơi vào Đông Thổ đại lục , phía trên có khắc đồ đằng kỳ quái, có người bởi vì xem đồ đằng mà ngộ đạo, sau lập ra quốc giáo.
                    <br><br>
                    Mấy ngàn năm sau, thiếu niên cô nhi Trần Trường Sinh mười bốn tuổi, vì chữa bệnh cải mệnh rời khỏi sư phụ của mình, mang theo một tờ hôn ước đi tới thần đô, từ đó mở ra một hành trình quật khởi của nghịch thiên cường giả.
                </div>
            </div>
        </div>
        <hr>
        <div class="row">
            <div class="col-sm-12">
                <?php 
echo yii\bootstrap\Tabs::widget(['items' => $data, 'options' => ['tag' => 'div'], 'itemOptions' => ['tag' => 'div'], 'headerOptions' => ['class' => 'my-class'], 'clientOptions' => ['collapsible' => false]]);
?>
            </div>
        </div>
    </div>
    <div class="col-md-3 hidden-sm hidden-xs">
        <div class="author-info">
            <?php 
echo Html::img('@web/image/tacgia.jpg', ['alt' => 'trachthienky', 'class' => '']);
?>
            <br><br>
            <p>Tác giả : Miêu Nị</p>
            <p style="text-align: justify">Miêu Nị sinh năm 1977, tên thật là Hiểu Phong, từng sử dụng bút danh là Bắc Dương Thử. Miêu Nị sinh ra ở Hồ Bắc, đã từng học đại học Tứ Xuyên, nghề nghiệp chính là tác giả tiểu thuyết mạng.</p>
            <p style="text-align: justify">Các tác phẩm chính : Chu Tước Ký, Gian Khách, Khánh Dư Niên, Tương Dạ, Trạch Thiên Ký</p>
        </div>
    </div>
Example #2
0
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5><?php 
echo Yii::t('common', 'Information');
?>
</h5>
                </div>
                <div class="ibox-content">
                    <?php 
$form = ActiveForm::begin(['id' => 'formDefault', 'layout' => 'horizontal', 'options' => ['enctype' => 'multipart/form-data'], 'fieldConfig' => ['horizontalCssClasses' => ['label' => 'col-sm-2', 'wrapper' => 'col-sm-10', 'error' => 'help-block m-b-none', 'hint' => '']]]);
// Image
$imageConfig = ['options' => ['accept' => 'uploads/*'], 'pluginOptions' => ['previewFileType' => 'image', 'showCaption' => FALSE, 'showRemove' => FALSE, 'showUpload' => FALSE, 'browseClass' => 'btn btn-primary btn-block', 'browseIcon' => '<i class="glyphicon glyphicon-camera"></i> ', 'browseLabel' => 'Select Photo', 'removeClass' => 'btn btn-danger', 'removeLabel' => "Delete", 'removeIcon' => '<i class="glyphicon glyphicon-trash"></i>', 'allowedFileExtensions' => ['jpg', 'gif', 'png', 'jpeg']]];
if (!empty($model->image)) {
    $imageConfig['pluginOptions']['initialPreview'] = [Html::img(LetHelper::getFileUploaded($model->image), ['class' => 'file-preview-image'])];
}
// END Image
$tabs = [['label' => Yii::t('common', 'General information'), 'content' => $form->field($model, 'name')->textInput() . $form->field($model, 'class')->textInput() . $form->field($model, 'skin')->textInput() . $form->field($model, 'image')->widget(FileInput::classname(), $imageConfig) . $form->field($model, 'content')->widget(letyii\tinymce\Tinymce::className(), ['options' => ['style' => 'height: 400px;'], 'configs' => ['plugins' => 'moxiemanager advlist autolink lists link image charmap print preview hr anchor pagebreak ' . 'searchreplace wordcount visualblocks visualchars code fullscreen ' . 'insertdatetime media nonbreaking save table contextmenu directionality ' . 'emoticons template paste textcolor colorpicker textpattern', 'toolbar1' => 'insertfile undo redo | styleselect | fontselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image', 'toolbar2' => 'print preview media | forecolor backcolor emoticons', 'moxiemanager_image_settings' => ['moxiemanager_title' => 'Images', 'moxiemanager_extensions' => 'jpg,png,gif', 'moxiemanager_rootpath' => '/uploads/editor', 'moxiemanager_view' => 'thumbs'], 'external_plugins' => ['moxiemanager' => Url::base() . '/plugins/moxiemanager/plugin.min.js'], 'entity_encoding' => 'raw', 'force_p_newlines' => true, 'force_br_newlines' => false, 'auto_cleanup_word' => false, 'relative_urls' => true, 'convert_urls' => false, 'remove_script_host' => true, 'verify_html' => false, 'forced_root_block' => false, 'content_css' => 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', 'templates' => Url::to(['template'])]]) . $form->field($model, 'description')->textarea() . $form->field($model, 'promotion')->widget(SwitchInput::className(['type' => SwitchInput::RADIO])) . $form->field($model, 'status')->widget(SwitchInput::className(['type' => SwitchInput::RADIO])), 'active' => true], ['label' => 'Seo', 'content' => $form->field($model, 'slug')->textInput() . $form->field($model, 'slug_prefix')->textInput() . $form->field($model, 'seo_url')->textInput() . $form->field($model, 'seo_title')->textInput() . $form->field($model, 'seo_desc')->textInput(), $form->field($model, 'seo_keyword')->textInput()]];
echo Html::hiddenInput('save_type', 'save');
echo yii\bootstrap\Tabs::widget(['items' => $tabs]);
ActiveForm::end();
?>
                </div>
            </div>
        </div>
    </div>
</div>


Example #3
0
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row m-b-sm">
        <div class="col-lg-12">
            <div class="btn-group pull-right">
                <?php 
echo $buttons;
?>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5><?php 
echo Yii::t('common', 'Information');
?>
</h5>
                </div>
                <div class="ibox-content">
                    <?php 
$form = ActiveForm::begin(['id' => 'formDefault', 'layout' => 'horizontal', 'options' => ['enctype' => 'multipart/form-data'], 'fieldConfig' => ['horizontalCssClasses' => ['label' => 'col-sm-2', 'wrapper' => 'col-sm-10', 'error' => 'help-block m-b-none', 'hint' => '']]]);
echo Html::hiddenInput('save_type', 'save');
echo yii\bootstrap\Tabs::widget(['items' => [['label' => Yii::t('common', 'General information'), 'content' => $form->field($model, 'module')->dropDownList(LetHelper::setValueForKey(array_keys(Yii::$app->modules)), ['options' => [Yii::$app->request->get('module') => ['selected ' => true]]]) . $form->field($model, 'type')->dropDownList(\app\modules\common\models\Setting::$options['type']) . $form->field($model, 'key')->textInput() . $form->field($model, 'items')->widget(\app\modules\common\components\fields\FieldSettingItems::className()), 'active' => true]]]);
ActiveForm::end();
?>
                </div>
            </div>
        </div>
    </div>
</div>
Example #4
0
<?php

use yii\bootstrap\Modal;
use yii\helpers\ArrayHelper;
use yii\bootstrap\Html;
// Display button add image and modal add image
Modal::begin(['header' => Yii::t('yii', 'Add Image'), 'footer' => '<button class="btn btn-success" id="insert_image" data-type="' . \sya\gallery\Gallery::TYPE_UPLOAD . '">' . Yii::t('yii', 'Insert Image') . '</button>', 'toggleButton' => ['label' => Yii::t('yii', 'Add Image'), 'class' => 'btn btn-success'], 'size' => 'modal-lg custom_modal_gallery', 'options' => ['id' => 'sya_gallery']]);
echo Html::beginTag('div', ['class' => 'tabs-container']);
echo Html::beginTag('div', ['class' => 'tabs-left']);
echo yii\bootstrap\Tabs::widget(['navType' => 'nav-tabs', 'encodeLabels' => false, 'items' => [['label' => Yii::t('yii', 'Insert Media'), 'content' => '<div class="panel-body"><div id="my-awesome-dropzone" class="dropzone sya_custom_dropzone">
                        <div class="dropzone-previews"></div>
                    </div></div>', 'linkOptions' => ['data-type' => \sya\gallery\Gallery::TYPE_UPLOAD]], ['label' => Yii::t('gallery', 'Insert from URL'), 'content' => '<div class="panel-body">
                        <input type="url" id="image" class="form-control"/>
                        <div id="embed_url_settings" class="row">

                        </div>
                    </div>', 'linkOptions' => ['data-type' => \sya\gallery\Gallery::TYPE_URL]]]]);
echo Html::endTag('div');
echo Html::endTag('div');
Modal::end();
// End Display button add image and modal add image
?>
<!-- Begin Display image gallery -->
<table class="table table-bordered table-stripped" style="margin-top: 30px;">
    <!-- Begin header table -->
    <thead>
        <tr>
            <th>
                Image preview
            </th>
            <th>
Example #5
0
use source\LsYii;
use common\widgets\TreeView;
use source\modules\menu\models\Menu;
/* @var $this yii\web\View */
/* @var $searchModel source\models\search\MenuSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = '菜单管理';
$this->registerJs("\$(function(){\n    \$('.nav-tabs .active').mouseover(function(){\n        \$(this).find('.attribute-remove').show();\n    }).mouseout(function(){\n        \$(this).find('.attribute-remove').hide();\n    });\n    \$('.nav-tabs .active .attribute-remove').click(function(){\n        window.open('" . \source\helpers\Url::to(['/menu/site/delete', 'id' => $model->id]) . "' , '_self');\n        return false;\n    });\n})", \source\core\back\BackView::POS_END);
echo source\libs\Message::getMessage();
?>
<div class="page-header">
    <h3>
        <strong><?php 
echo Html::encode($this->title);
?>
</strong>
        <div class="pull-right">
            <?php 
echo Html::a('<span class="glyphicon glyphicon-plus"></span> ' . LsYii::gT('添加新菜单'), ['/menu/site/create'], ['class' => 'btn btn-primary']);
?>
        </div>
    </h3>
</div>
<div class="menu-index">
    <?php 
echo yii\bootstrap\Tabs::widget(['items' => Menu::getItems($model->id, '/menu/site/index')]);
echo TreeView::widget(['data' => Menu::getTreeData($model->root, $model->id, true, false, ['updateUrl' => '/menu/site/update', 'addChildrenUrl' => '/menu/site/create', 'deleteUrl' => '/menu/site/delete'])]);
?>

</div>
Example #6
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\Items */
/* @var $form yii\widgets\ActiveForm */
?>

<?php 
$form = ActiveForm::begin();
echo yii\bootstrap\Tabs::widget(['items' => [['label' => 'English', 'content' => $this->render('forms\\enForm.php', array('model' => $model, 'trips_array' => $trips_array, 'form' => $form)), 'active' => true], ['label' => 'Հայերեն', 'content' => $this->render('forms\\armForm.php', array('model' => $model_tr, 'form' => $form))], ['label' => 'Russian', 'content' => $this->render('forms\\ruForm.php', array('model' => $model_tr, 'form' => $form))]]]);
?>

 <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
    </div>

    <?php 
ActiveForm::end();
Example #7
0
use source\LsYii;
use common\widgets\TreeView;
use source\modules\category\models\Category;
/* @var $this yii\web\View */
/* @var $searchModel source\models\search\MenuSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = '分类管理';
$this->registerJs("\$(function(){\n    \$('.nav-tabs .active').mouseover(function(){\n        \$(this).find('.attribute-remove').show();\n    }).mouseout(function(){\n        \$(this).find('.attribute-remove').hide();\n    });\n    \$('.nav-tabs .active .attribute-remove').click(function(){\n        window.open('" . \source\helpers\Url::to(['/category/default/delete', 'id' => $model->id]) . "' , '_self');\n        return false;\n    });\n})", \source\core\back\BackView::POS_END);
echo source\libs\Message::getMessage();
?>
<div class="page-header">
    <h3>
        <strong><?php 
echo Html::encode($this->title);
?>
</strong>
        <div class="pull-right">
            <?php 
echo Html::a('<span class="glyphicon glyphicon-plus"></span> ' . LsYii::gT('添加新分类'), ['/category/default/create'], ['class' => 'btn btn-primary']);
?>
        </div>
    </h3>
</div>
<div class="menu-index">
    <?php 
echo yii\bootstrap\Tabs::widget(['items' => Category::getItems($model->id, '/category/default/index')]);
echo TreeView::widget(['data' => Category::getTreeData($model->root, $model->id, true, false, ['updateUrl' => '/category/default/update', 'addChildrenUrl' => '/category/default/create', 'deleteUrl' => '/category/default/delete'])]);
?>

</div>