Exemplo n.º 1
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use common\includes\CommonUtility;
use yii\widgets\LinkPager;
/**
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var common\models\search\FragmentCategorySearch $searchModel
 */
$this->title = '碎片分类';
$this->addBreadcrumb(CommonUtility::getFragmentType($type) . '管理', ['fragment/index', 'type' => $type]);
$this->addBreadcrumb($this->title);
?>
<div class="fragment-category-index">
    <p>
        <?php 
echo Html::a('新建分类', ['create', 'type' => $type], ['class' => 'btn btn-success']);
?>
    </p>
	<table class="table">
	    <tr class="tb_header">
	      <th width="50">ID</th>
	      <th >分类名称</th>
	      <th width="80px">排序</th>
	      <th width="150">操作</th>
	    </tr>
		<?php 
foreach ($rows as $row) {
    ?>
Exemplo n.º 2
0
<?php

use yii\helpers\Html;
use yii\grid\GridView;
use common\includes\CommonUtility;
use yii\widgets\LinkPager;
/**
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var common\models\search\FragmentSearch $searchModel
 */
$this->title = CommonUtility::getFragmentType($type) . '管理';
$this->addBreadcrumb($this->title);
?>
<div class="fragment-index">

    <p>
        <?php 
echo Html::a('新建碎片', ['create', 'type' => $type], ['class' => 'btn btn-success']);
?>
        <?php 
echo Html::a('碎片分类', ['fragment-category/index', 'type' => $type], ['class' => 'btn btn-success']);
?>
    </p>
	<table class="table">
	    <tr class="tb_header">
	      <th width="50">ID</th>
	      <th >碎片名称</th>
	      <th width="120px">分类</th>
	      <th width="80px">排序</th>
	      <th width="150px">操作</th>