Esempio n. 1
0
?>
<div class="site-index">
    <div class="body-content">
        <div id="schoolMap">

        </div>
        <br/>
        <div class="row">
            <div class="col-md-8">
                <ul class="nav nav-tabs nav-main-tabs">
                    <li class="tab-title"><?php 
echo Lang::t('main', 'mainButtonSchools');
?>
</li>
                </ul>
                <?php 
echo Html::a(Lang::t('main', 'mainButtonAddSchool'), ['/schools/add'], ['class' => 'btn btn-success btn-label-main add-item visible-sm-block visible-xs-block']);
?>
                <?php 
echo SchoolList::widget(['orderBy' => SchoolList::ORDER_BY_LIKE_SHOW, 'dateCreateType' => SchoolList::DATE_CREATE_ALL]);
?>
            </div>
            <div class="col-md-4">
                <?php 
echo Html::a(Lang::t('main', 'mainButtonAddSchool'), ['/schools/add'], ['class' => 'btn btn-success btn-label-main add-item']);
echo $this->render('/list/listRightBlock');
?>
            </div>
        </div>
    </div>
</div>
Esempio n. 2
0
 public function actionSchools()
 {
     $lastDate = Yii::$app->request->post('lastDate', 0);
     $lastIds = Yii::$app->request->post('loadSchoolId', []);
     $schoolIds = Yii::$app->request->post('lastIds', []);
     $order = Yii::$app->request->post('order', SchoolList::ORDER_BY_LIKE_SHOW);
     $dateCreateType = Yii::$app->request->post('dateCreateType', SchoolList::DATE_CREATE_ALL);
     return SchoolList::widget(['lastIds' => $schoolIds, 'lastDate' => $lastDate, 'onlySchool' => true, 'orderBy' => $order, 'dateCreateType' => $dateCreateType]);
 }