Пример #1
0
echo $sort == 'asc' ? 'btn-asc-enable' : 'btn-asc';
?>
"
                               href="<?php 
echo Url::to(['/tour', 'sort' => 'asc', 'dateBegin' => $dateBegin]);
?>
">Возрастание</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div><!-- /.col-sm-9 -->
        <div class="row">
            <div class="col-sm-3">
                <?php 
echo SearchPanel::widget(['dateBegin' => $dateBegin]);
?>
            </div><!-- /.col-sm-3 -->
            <div class="col-sm-9">
                <?php 
Pjax::begin();
?>
                <div class="row">
                    <?php 
foreach ($models as $model) {
    ?>
                        <div class="item-card">
                            <div class="col-sm-7">
                                <?php 
    $imgs = array();
    foreach ($model->getBehavior('galleryBehavior')->getImages() as $image) {
Пример #2
0
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\widgets\LinkPager;
use yii\widgets\Pjax;
$this->title = $model->objreservation->name;
$this->params['breadcrumbs'][] = ['label' => 'Экскурсии', 'url' => ['/tour/']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="container">

    <div class="col-sm-3">
        <?php 
$dateBegin = new DateTime();
?>
        <?php 
echo SearchPanel::widget(['dateBegin' => $dateBegin->format('Y-m-d')]);
?>
    </div><!-- /.col-sm-3 -->
    <div class="col-sm-9">
        <?php 
if ($model) {
    ?>
            <div class="row">
                <div class="item-card">
                    <div class="col-sm-12">
                        <h1>
                            <?php 
    echo $model->objreservation->name . ' ' . date('Y-m-d', $model->date_begin);
    ?>
                        </h1>
                        <?php