Esempio n. 1
0
<?php

use source\LsYii;
use source\helpers\Html;
use source\models\User;
/* @var $this yii\web\View */
/* @var $model source\models\User */
$this->title = '新建注册会员';
echo source\libs\Message::getMessage();
?>
<div class="page-header">
    <h3>
        <strong><?php 
echo Html::encode($this->title);
?>
</strong>
    </h3>
</div>
<div class="user-create">
    <?php 
echo $this->render('_form', ['model' => $model]);
?>

</div>
Esempio n. 2
0
<?php

use source\LsYii;
use source\helpers\Html;
/* @var $this yii\web\View */
/* @var $model source\models\Menu */
$this->title = '更新菜单';
?>
<div class="page-header">
    <h3>
        <strong><?php 
echo Html::encode($this->title);
?>
</strong>
        <small><?php 
echo Html::encode($model->name);
?>
</small>
    </h3>
</div>
<div class="menu-update">
    <?php 
echo $this->render('_form', ['model' => $model]);
?>

</div>
Esempio n. 3
0
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
    <head>
        <meta charset="<?php 
echo Yii::$app->charset;
?>
">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php 
echo Html::csrfMetaTags();
?>
        <title><?php 
echo Html::encode(LsYii::getName() . '-' . $this->title);
?>
</title>
        <style>
            ul li {
                list-style: none;
            }
        </style>
        <?php 
$this->head();
?>
    </head>
    <body class="container-body">
        <?php 
$this->beginBody();
?>
Esempio n. 4
0
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php 
echo Html::encode("LsYii CMS安装向导 ——" . $this->title);
?>
</title>
    <?php 
echo Html::csrfMetaTags();
?>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico" />
    <?php 
$this->head();
?>
    <style type="text/css" id="custom-background-css">
        body.custom-background { background-color: #f0f0f0; }
    </style>
</head>
Esempio n. 5
0
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
    <head>
        <meta charset="<?php 
echo Yii::$app->charset;
?>
">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php 
echo Html::csrfMetaTags();
?>
        <title><?php 
echo Html::encode(LsYii::getName());
?>
</title>
        <?php 
$this->head();
?>
    </head>
    <body class="container-body">
        <?php 
$this->beginBody();
?>
        <div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
            <div class="container bs-docs-container clear">
                <div class="navbar-header">
                    <?php 
echo Html::a(LsYii::getName(), Url::to(['/site/index']), ['class' => 'navbar-brand']);
Esempio n. 6
0
use source\modules\dict\models\DictCategory;
use source\core\grid\ActionColumn;
/* @var $this yii\web\View */
/* @var $searchModel source\models\search\DictSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = '字典管理';
echo source\libs\Message::getMessage();
?>
<div class="page-header">
    <h3>
        <strong><?php 
echo Html::encode($this->title);
?>
</strong>
        <small><?php 
echo Html::encode(DictCategory::getDictCategoryName($category_id));
?>
</small>
        <div class="pull-right">
            <?php 
echo Html::a('<span class="glyphicon glyphicon-plus"></span> ' . LsYii::gT('添加字典'), ['/dict/dict/create', 'category_id' => $category_id], ['class' => 'btn btn-primary']);
?>
            <?php 
echo Html::a('<span class="glyphicon glyphicon-share-alt"></span> ' . LsYii::gT('Return'), ['/dict/dictcategory/index'], ['class' => 'btn btn-primary']);
?>
        </div>
    </h3>
</div>
<div class="dict-index">
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'layout' => '{items} {summary} {pager}', 'tableOptions' => ['class' => 'table table-hover'], 'columns' => [['attribute' => 'name'], ['attribute' => 'value'], ['attribute' => 'status', 'filter' => \source\libs\Constants::getDictStatus(), 'content' => function ($model, $key, $index, $gridView) {
Esempio n. 7
0
    #main-content {
        margin-left: 0px;
    }
    .container {
        width: 100%;
    }
    .due-time {
        color: red;
    }
</style>
<div class="site-error">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <div class="alert alert-danger">
        <?php 
echo nl2br(Html::encode($message));
?>
    </div>
    
    <p>
        页面将在<span class="due-time">3</span>秒后自动跳转,如未跳转<?php 
echo Html::a(\source\LsYii::gT('这里'), LsYii::getRequest()->getReferrer(), ["node-type" => "run-link"]);
?>
    </p>
</div>
<?php 
$this->registerJs("\$(function() {\n        var dt = setInterval(function() {\n            var due = \$('.due-time').html();\n            if(parseInt(due) <= 1) {\n                clearInterval(dt);\n                var url = \$('a[node-type=run-link]').attr('href');\n                window.location.href = url;\n            }\n            \$('.due-time').html(parseInt(due) - 1);\n        } , 1000);\n     })", yii\web\View::POS_END);
Esempio n. 8
0
<?php

use source\helpers\Html;
use yii\grid\GridView;
use source\LsYii;
use source\modules\dict\models\Dict;
use source\modules\dict\models\DictCategory;
/* @var $this yii\web\View */
/* @var $model source\models\Dict */
$this->title = '修改字典';
echo source\libs\Message::getMessage();
?>
<div class="page-header">
    <h3>
        <strong><?php 
echo Html::encode($this->title);
?>
</strong>
        <small><?php 
echo Html::encode(DictCategory::getDictCategoryName($category_id) . '-' . $model->name);
?>
</small>
    </h3>
</div>
<div class="dict-update">
    <?php 
echo $this->render('_form', ['model' => $model, 'category_id' => $category_id]);
?>

</div>