Esempio n. 1
0
<?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>
Esempio n. 2
0
<?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>
Esempio n. 3
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']);
?>
Esempio n. 4
0
<?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>