Author: Cosmo (daixianceng@gmail.com)
Inheritance: extends yii\web\AssetBundle
示例#1
1
<?php

use backend\assets\AppAsset;
use yii\bootstrap\BootstrapAsset;
AppAsset::register($this);
$this->registerCssFile('/matis/lib/bootstrap/css/bootstrap.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('/matis/lib/font-awesome/css/font-awesome.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('/matis/css/main.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('/matis/lib/metismenu/metisMenu.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('http://fonts.googleapis.com/css?family=Open+Sans:400,600,700', ['depends' => BootstrapAsset::className()]);
$this->registerCssFile('http://fonts.googleapis.com/css?family=Kaushan+Script:400', ['depends' => BootstrapAsset::className()]);
//$this->registerJsFile('/js/last/jquery.js', ['depends' => AppAsset::className()]);
//$this->registerJsFile('/matis/lib/jquery/jquery.min.js', ['depends' => AppAsset::className()]);
//$this->registerJsFile('/matis/lib/switch/js/bootstrap-switch.min.js', ['depends' => AppAsset::className()]);
//$this->registerJsFile('/matis/lib/bootstrap/js/bootstrap.min.js', ['depends' => AppAsset::className()]);
$this->registerJsFile('/matis/lib/modernizr/modernizr.min.js', ['depends' => AppAsset::className()]);
$this->registerJsFile('/matis/lib/metismenu/metisMenu.min.js', ['depends' => AppAsset::className()]);
$this->registerJsFile('/js/youtube.js', ['depends' => AppAsset::className()]);
$this->registerJsFile('/js/custom/flash.js', ['depends' => AppAsset::className()]);
$this->registerCssFile('/switch/bootstrap-switch.min.css', ['depends' => BootstrapAsset::className()]);
$this->registerJsFile('/switch/bootstrap-switch.min.js', ['depends' => AppAsset::className()]);
示例#2
0
 public static function addCss($view, $cssfile)
 {
     $view->registerCssFile($cssfile, ['depends' => AppAsset::className()]);
 }
示例#3
0
<?php

use yii\widgets\ActiveForm;
use yii\helpers\Html;
//use frontend\assets\AppAsset;
/* @var $this \yii\web\View */
/* @var $content string */
//AppAsset::register($this);
$model = new \common\models\ImageSlider();
//$this->registerJsFile('/js/last/jquery.js');
use backend\assets\AppAsset;
$this->registerJsFile('/js/custom/upload.js', ['depends' => AppAsset::className()]);
?>
<div id="content">
    <div class="outer">
        <div class="inner bg-light lter">
            <div id="collapse4" class="body">
                <div class="video-categoria-index">
                    <?php 
$form = ActiveForm::begin(['action' => ['/image/submit'], 'options' => ['enctype' => 'multipart/form-data'], 'id' => 'form-send-file']);
?>
                    <?php 
echo $form->field($model, 'file')->fileInput(['class' => 'send-file']);
?>
                    <?php 
echo $form->field($model, 'link')->textInput();
?>
                    <?php 
echo Html::submitButton($model->isNewRecord ? 'Создать' : 'Редактировать', ['class' => $model->isNewRecord ? 'btn btn-success send-file-submit' : 'btn btn-success send-file-submit']);
?>
                    <?php 
示例#4
0
">
<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 
AppAsset::registerCssFile('/basic/css/admin_login.css');
?>
    <?php 
$this->head();
?>
</head>
<body>
    <?php 
$this->beginBody();
?>
    <?php 
echo $content;
?>
    <?php 
$this->endBody();
?>
示例#5
0
<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\Breadcrumbs;
use yii\widgets\Menu;
\backend\assets\AppAsset::register($this);
$this->title = $this->title . " | Панель Управления";
$this->beginPage();
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="<?php 
echo Yii::$app->charset;
?>
">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
?>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
示例#6
0
<?php

/* @var $this \yii\web\View */
/* @var $content string */
use source\LsYii;
use backend\assets\AppAsset;
use source\helpers\Html;
use source\helpers\Url;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;
use source\models\Menu;
AppAsset::registerBasic();
$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">
        <?php 
echo Html::csrfMetaTags();
?>
        <title><?php 
示例#7
0
<?php

use yii\helpers\Url;
use common\models\User;
use common\models\Comment;
use yii\helpers\StringHelper;
use app\components\TemplateWidget;
Yii::$app->formatter->locale = 'ru-RU';
$this->registerJsFile('/js/custom/comment.js', ['depends' => \backend\assets\AppAsset::className()]);
//vd($model);
?>


<div class="container" style="text-align: center; padding: 0px 35px">
    <div class="row pos bg_preview_post">


        <div class="row">
            <div class="col-md-12" style="text-align: center">
                <input type="hidden" id="comment_id" value="<?php 
echo $model->id;
?>
">
                <h3><?php 
echo $model->title;
?>
</h3>
            </div>
        </div>

   
示例#8
0
<?php

use backend\assets\AppAsset;
use yii\widgets\ActiveForm;
use yii\widgets\LinkPager;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
$this->registerMetaTag(['name' => 'keywords', 'content' => '添加品牌']);
$this->registerMetaTag(['name' => 'description', 'content' => '添加品牌'], 'description');
$this->title = '代理系统-添加品牌';
$this->params['breadcrumbs'][] = '商品管理';
$this->params['breadcrumbs'][] = '添加品牌';
AppAsset::register($this);
AppAsset::addScript($this, '@web/js/plugins/validate/jquery.validate.min.js');
?>
<div class="wrapper wrapper-content">
	<div class="row">
		<div class="col-lg-12">
        <div class="ibox float-e-margins">
	        <div class="ibox-title">
	            <h5>添加品牌</h5>
	        </div>

            <div class="ibox-content">
                <div class="row">
                    <div class="col-sm-9 m-b-xs tooltip-demo">
                        <a href="<?php 
echo Url::toRoute(['brandlist']);
?>
示例#9
0
文件: index.php 项目: RoyZeng/weimp
<?php

use backend\widgets\Delete;
use yii\helpers\Url;
use backend\assets\AppAsset;
AppAsset::addCss($this, '@web/css/select2.css');
AppAsset::addScript($this, '@web/js/jquery.uniform.js');
AppAsset::addScript($this, '@web/js/select2.min.js');
AppAsset::addScript($this, '@web/js/unicorn.js');
AppAsset::addScript($this, '@web/js/jquery.dataTables.min.js');
AppAsset::addScript($this, '@web/js/unicorn.tables.js');
AppAsset::addScript($this, '@web/js/custom-menus/custommenus.js');
$fid = intval(Yii::$app->request->get('fid', 0));
if ($fid) {
    $this->params = ['breadcrumb' => [['name' => '一级菜单【' . $parent_menu['title'] . '】', 'url' => Url::to(['custom-menus/index', 'pid' => Yii::$app->controller->pid]), 'current' => 0], ['name' => '二级菜单', 'url' => '#', 'current' => 1]]];
} else {
    $this->params = ['breadcrumb' => [['name' => '一级菜单', 'url' => '#', 'current' => 1]]];
}
?>
<div class="row-fluid">
<div class="span12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="icon-th"></i>
			</span>
			<h5>自定义菜单列表</h5>
			<a class="btn btn-info label" href="<?php 
echo Url::to(['custom-menus/form', 'pid' => Yii::$app->controller->pid, 'fid' => $fid]);
?>
">创建</a>
示例#10
0
                    <div>
                        <span class="btn btn-default btn-file"><span class="fileinput-new">Select image</span><span class="fileinput-exists">Change</span>
                            <?php 
echo Html::activeFileInput($model, "avatarFile");
?>
                        </span>
                        <a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php 
ActiveForm::end();
$this->registerCssFile("@web/plugin/jasny-bootstrap/css/jasny-bootstrap.min.css", ['depends' => [AppAsset::className()]]);
$this->registerJsFile('@web/plugin/jasny-bootstrap/js/jasny-bootstrap.min.js', ['depends' => [\yii\web\JqueryAsset::className()], 'position' => View::POS_HEAD]);
$this->registerJsFile('@web/plugin/tinymce/js/tinymce/tinymce.min.js', ['depends' => [\yii\web\JqueryAsset::className()], 'position' => View::POS_HEAD]);
?>
<script>
    //moxiemanager
    tinymce.init({
        selector: '#content-body',
        height: 800,
        plugins: [
            'advlist autolink autoresize charmap code codesample textcolor colorpicker contextmenu directionality emoticons fullscreen hr image imagetools',
            'legacyoutput link lists media paste preview table textcolor visualblocks wordcount'
        ],
        toolbar1: 'bold italic strikethrough bullist numlist blockquote hr | alignleft aligncenter alignright link unlink fullscreen code',
        toolbar2: 'formatselect underline alignjustify forecolor removeformat charmap indent outdent undo redo image',
        content_css: ['<?php 
示例#11
0
<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
use backend\assets\AppAsset;
use yii\bootstrap\ActiveForm;
$this->title = 'Login';
$this->registerCssFile("@web/css/signin.css", ['depends' => [AppAsset::className()]]);
$form = ActiveForm::begin(['id' => 'login-form', 'options' => ['class' => 'form-signin'], 'fieldConfig' => ['template' => "{input}"]]);
?>
<h2 class="form-signin-heading">Please sign in</h2>

<?php 
echo $form->field($model, 'username');
echo $form->field($model, 'password')->passwordInput();
?>

<div class="checkbox">
    <?php 
echo $form->field($model, 'rememberMe')->checkbox();
?>
</div>
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
<?php 
ActiveForm::end();
示例#12
0
文件: form.php 项目: RoyZeng/weimp
<?php

use yii\helpers\Html;
use yii\helpers\Url;
use backend\assets\AppAsset;
AppAsset::addCss($this, '@web/css/select2.css');
AppAsset::addScript($this, '@web/js/jquery.uniform.js');
AppAsset::addScript($this, '@web/js/select2.min.js');
AppAsset::addScript($this, '@web/js/unicorn.js');
AppAsset::addScript($this, '@web/js/jquery.tmpl.min.js');
AppAsset::addScript($this, '@web/js/forever-material/forevermaterial.js');
$action = 'create';
$op_text = '创建';
$this->params = ['breadcrumb' => [['name' => '素材管理', 'url' => '#', 'current' => 0], ['name' => '永久素材', 'url' => Url::to(['forever-material/index', 'pid' => Yii::$app->controller->pid]), 'current' => 0], ['name' => $op_text . '永久素材', 'url' => '#', 'current' => 1]]];
?>
<div class="row-fluid">
	<div class="span12">
		<div class="widget-box">
			<div class="widget-title">
				<span class="icon">
					<i class="icon-align-justify"></i>								
				</span>
				<h5>创建永久素材</h5>
			</div>
			<div class="widget-content nopadding">
				<form action="<?php 
echo Url::to(['forever-material/' . $action]);
?>
" method="post" class="form-horizontal" enctype="multipart/form-data" />
					<div class="control-group">
						<label class="control-label">素材名称</label>
示例#13
0
    <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'content')->textarea(['rows' => 6]);
?>

    <?php 
echo $form->field($model, 'created_at')->textInput();
?>

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

    <?php 
ActiveForm::end();
?>

</div>
<?php 
$this->registerJsFile('/admin/js/_guest-book.js', ['depends' => AppAsset::className()]);
示例#14
0
<?php

/* @var $this \yii\web\View */
/* @var $content string */
use source\LsYii;
use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;
use source\libs\Resource;
AppAsset::registerDefault();
AppAsset::registerCssFile('/default/css/admin_login.css');
$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">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
示例#15
0
<?php

/* @var $this yii\web\View */
use yii\helpers\Url;
$this->title = Yii::$app->name . '- Dashboard';
//$this->registerCssFile(Yii::$app->request->baseUrl . '/css/xenon-components.css');
//$this->registerCssFile(Yii::$app->request->baseUrl . '/css/fonts/linecons/css/linecons.css');
$this->registerCssFile('//code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css');
////code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css
//echo \Yii::$app->session->get('branch');
//echo 'branchId :'.Yii::$app->user->identity->branchId;
//echo 'role :'.Yii::$app->user->identity->role;
$this->registerJsFile('https://apis.google.com/js/platform.js', ['jsOptions' => ['asynch', 'defer'], 'depends' => [\backend\assets\AppAsset::className()]]);
?>
<p>&nbsp;</p>
<div class="row">
    <div class="col-lg-3 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-aqua">
            <div class="inner">
                <h3>2
                    <?php 
//echo app\models\Transaction::find()->count();
?>
                </h3>
                <p>
                    Transactions
                </p>
            </div>
            <div class="icon">
                <i class="ion ion-bag"></i>
 public function init()
 {
     parent::init();
     \Yii::$app->view->registerJsFile('/js/app/online.js', ['depends' => [AppAsset::className()]]);
 }
示例#17
0
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use backend\assets\AppAsset;
AppAsset::register($this);
$this->registerJsFile('/js/jquery.js', ['depends' => AppAsset::className()]);
$this->title = 'Signup';
$this->params['breadcrumbs'][] = $this->title;
?>
<section id="content">
    <div class="sub-content">
        <div class="container">
            <div class="row">

                <div class="col-md-6 col-md-offset-4">
                    <h4>Вход</h4>
                    <div class="contact-form">
                        <?php 
$form = ActiveForm::begin(['action' => '/site/login', 'id' => 'contact-form', 'enableAjaxValidation' => true]);
?>
                        <fieldset>
                            <label class="name">
                                <?php 
echo $form->field($model, 'username')->label('')->textInput(['placeholder' => 'Имя']);
?>
	 						
                            </label>	         
                            <label class="password">
                                <?php 
echo $form->field($model, 'password')->label('')->passwordInput(['placeholder' => 'Password']);
示例#18
0
文件: index.php 项目: RoyZeng/weimp
<?php

use yii\helpers\Html;
use common\helpers\Common;
use backend\widgets\LinkPager;
use backend\widgets\Delete;
use yii\helpers\Url;
use backend\assets\AppAsset;
AppAsset::addCss($this, '@web/css/select2.css');
AppAsset::addScript($this, '@web/js/jquery.uniform.js');
AppAsset::addScript($this, '@web/js/select2.min.js');
AppAsset::addScript($this, '@web/js/unicorn.js');
AppAsset::addScript($this, '@web/js/jquery.dataTables.min.js');
AppAsset::addScript($this, '@web/js/unicorn.tables.js');
$this->params = ['breadcrumb' => [['name' => '素材管理', 'url' => '#', 'current' => 0], ['name' => '本地素材', 'url' => '#', 'current' => 1]]];
?>
<div class="row-fluid">
<div class="span12">
	<div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="icon-th"></i>
			</span>
			<h5>本地素材列表</h5>
		</div>
		<div class="widget-content">
			<table class="table table-bordered table-striped with-check">
				<thead>
					<tr>
						<th><input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" /></th>
						<th>文件名</th>
示例#19
0
<?php

use yii\widgets\ListView;
use yii\grid\GridView;
use yii\helpers\html;
use yii\helpers\Url;
$this->registerCssFile('/backend/web/css/show-transactions.css', ['depends' => [\backend\assets\AppAsset::className()]]);
/* @var $this yii\web\View */
$this->title = 'Выплаты автосалонам';
?>

<div class="row site-index">
    <div class="col-xs-12" id="box-list-transaction">

        <div id="box-transaction">
            <h1>Заявки на выплату</h1>

            <ul id="list-tp">
                <li id="lit1">авто</li>
                <li id="lit2">дата платежа</li>
                <li id="lit3">номер операции</li>
                <li id="lit4">реквизиты салона</li>
                <li id="lit5">расчеты</li>
                <li id="lit6">статус</li>
            </ul>


            <?php 
yii\widgets\Pjax::begin();
?>
            <?php 
示例#20
0
 /**
  *
  */
 public function registerClientScript()
 {
     $view = $this->getView();
     if ($this->language !== null) {
         $this->clientOptions['locale'] = $this->language;
         AppAsset::register($view)->js[] = $this->localePath . $this->language . '.js';
     } else {
         AppAsset::register($view);
     }
     $id = $this->options['id'];
     $selector = "jQuery('#{$id}')";
     if (strpos($this->template, '{button}') !== false) {
         $selector .= ".parent()";
     }
     $options = !empty($this->clientOptions) ? Json::encode($this->clientOptions) : '';
     $js[] = "{$selector}.datetimepicker({$options});";
     if (!empty($this->clientEvents)) {
         foreach ($this->clientEvents as $event => $handler) {
             $js[] = "{$selector}.on('{$event}', {$handler});";
         }
     }
     $view->registerJs(implode("\n", $js));
 }
示例#21
0
<?php

/* @var $this \yii\web\View */
/* @var $content string */
use source\LsYii;
use backend\assets\AppAsset;
use source\helpers\Html;
use source\helpers\Url;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use common\widgets\Alert;
use source\core\back\BackView;
AppAsset::registerDefault();
$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">
        <?php 
echo Html::csrfMetaTags();
?>
        <title><?php 
示例#22
0
 public static function addCss($view, $cssfile)
 {
     $view->registerCssFile($cssfile, [AppAsset::className(), 'depends' => 'backend\\assets\\AppAsset']);
 }
示例#23
0
<?php

use yii\helpers\Html;
// 引入 AppAsset 资源包
use backend\assets\AppAsset;
use yii\helpers\Url;
// 在本视图注册此资源包
AppAsset::register($this);
// 获取发布后资源包对应的临时目录
$baseUrl = $this->assetBundles[AppAsset::className()]->baseUrl . '/';
$this->beginPage();
?>
<!DOCTYPE html>
<html lang="<?php 
echo Yii::$app->language;
?>
">
<head>
<meta charset="<?php 
echo Yii::$app->charset;
?>
">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php 
$this->registerMetaTag(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1']);
echo Html::csrfMetaTags();
?>
<title><?php 
echo Html::encode($this->title);
?>
</title>
示例#24
0
文件: main.php 项目: nicevoice/ddll
<?php

use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use yii\helpers\Url;
/* @var $this \yii\web\View */
/* @var $content string */
AppAsset::register($this);
$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">
    <?php 
echo Html::csrfMetaTags();
?>
    <title><?php 
echo Html::encode($this->title);
?>
</title>
    <?php 
$this->head();
示例#25
0
 /**
  * Renders the widget.
  */
 public function run()
 {
     AppAsset::register($this->getView());
     return $this->renderItems($this->items, $this->options);
 }