Пример #1
0
/* @var $this IllustController */
/* @var $dataProvider CActiveDataProvider */
$this->breadcrumbs = array('Illusts');
$this->pageTitle = "活動場次 - ";
?>

<ol class="breadcrumb">
    <li class="active"> <span class="glyphicon glyphicon-chevron-down"></span> 活動列表</li>
</ol>

        <?php 
$form = $this->beginWidget('CActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
?>
                <div class="row">
                        <?php 
$this->renderPartial('/site/_BSSortDropDownListWidget', array('model' => $model, 'form' => $form, 'defaultDesc' => false));
?>

                        <?php 
$this->renderPartial('/site/_BSSortRevertWidget', array('model' => $model, 'defaultDesc' => false));
?>
                </div>                               
        <?php 
$this->endWidget();
?>


<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $indexData, 'emptyText' => '沒有相關活動', 'enablePagination' => true, 'summaryText' => '共 {count} 活動', 'template' => '<div class="pagination pull-right"><h6>{summary}</h6></div>{pager}<div class="clearfix"></div>{items}{pager}', 'itemView' => '_singleEventItem', 'ajaxUpdate' => true, 'itemsCssClass' => 'row', 'pagerCssClass' => 'whatever', 'afterAjaxUpdate' => JSHelper::ListViewAfterAjaxUpdate(), 'pager' => array('maxButtonCount' => 5, 'cssFile' => null, 'pageSize' => 6, 'header' => '', 'firstPageLabel' => '|&lt;', 'prevPageLabel' => '&lt;', 'nextPageLabel' => '&gt;', 'lastPageLabel' => '&gt;|', 'hiddenPageCssClass' => 'disabled', 'internalPageCssClass' => '', 'nextPageCssClass' => '', 'previousPageCssClass' => '', 'lastPageCssClass' => '', 'firstPageCssClass' => '', 'selectedPageCssClass' => 'active', 'htmlOptions' => array('class' => 'pagination'))));
Пример #2
0
<?php

$this->pageTitle = "作品管理 - 會員中心 - ";
?>

<ol class="breadcrumb">
    <li class="active"> <span class="glyphicon glyphicon-chevron-down"></span> 我的作品列表</li>
</ol>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $model->onlyBelongToUser(Yii::app()->user->id)->search(), 'emptyText' => '沒有相關作品', 'enablePagination' => true, 'summaryText' => '共 {count} 作品', 'template' => '<div class="pagination pull-right"><h6>{summary}</h6></div>{pager}<div class="clearfix"></div>{items}{pager}', 'itemView' => '_manageGroup', 'afterAjaxUpdate' => JSHelper::ListViewAfterAjaxUpdate(), 'ajaxUpdate' => true, 'itemsCssClass' => 'row', 'pagerCssClass' => 'whatever', 'pager' => array('maxButtonCount' => 5, 'cssFile' => null, 'pageSize' => 10, 'header' => '', 'firstPageLabel' => '|&lt;', 'prevPageLabel' => '&lt;', 'nextPageLabel' => '&gt;', 'lastPageLabel' => '&gt;|', 'hiddenPageCssClass' => 'disabled', 'internalPageCssClass' => '', 'nextPageCssClass' => '', 'previousPageCssClass' => '', 'lastPageCssClass' => '', 'firstPageCssClass' => '', 'selectedPageCssClass' => 'active', 'htmlOptions' => array('class' => 'pagination'))));
Пример #3
0
$this->pageTitle = "喜愛的作者作品 - 會員中心 - ";
?>

<ol class="breadcrumb">
    <li class="active"> <span class="glyphicon glyphicon-chevron-down"></span> 喜愛的作者作品列表</li>
</ol>

        <?php 
$form = $this->beginWidget('CActiveForm', array('action' => Yii::app()->createUrl($this->route), 'method' => 'get'));
?>
						<div class="row">
							<?php 
$this->renderPartial('/site/_BSFilterDropDownListWidget', array('form' => $form, 'fieldName' => 'illust_category_enum', 'model' => $model));
?>

							<?php 
$this->renderPartial('/site/_BSSortDropDownListWidget', array('model' => $model, 'form' => $form, 'defaultDesc' => false));
?>
                                                    
                                                    <?php 
$this->renderPartial('/site/_BSSortRevertWidget', array('model' => $model, 'defaultDesc' => false));
?>
						</div>
<?php 
$this->endWidget();
?>


<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $model->showOnlyFollowingAuther($user->getFollowingUsersIdArr())->search(), 'emptyText' => '沒有相關作品', 'enablePagination' => true, 'summaryText' => '共 {count} 作品', 'template' => '<div class="pagination pull-right"><h6>{summary}</h6></div>{pager}<div class="clearfix"></div>{items}{pager}', 'itemView' => 'application.views.illust._singleIllustItem', 'ajaxUpdate' => true, 'afterAjaxUpdate' => JSHelper::ListViewAfterAjaxUpdate(), 'itemsCssClass' => 'row', 'pagerCssClass' => 'whatever', 'pager' => array('maxButtonCount' => 5, 'cssFile' => null, 'pageSize' => 6, 'header' => '', 'firstPageLabel' => '|&lt;', 'prevPageLabel' => '&lt;', 'nextPageLabel' => '&gt;', 'lastPageLabel' => '&gt;|', 'hiddenPageCssClass' => 'disabled', 'internalPageCssClass' => '', 'nextPageCssClass' => '', 'previousPageCssClass' => '', 'lastPageCssClass' => '', 'firstPageCssClass' => '', 'selectedPageCssClass' => 'active', 'htmlOptions' => array('class' => 'pagination'))));