fix warnings

This commit is contained in:
2019-10-23 09:05:09 +02:00
committed by Roland Schneider
parent bf85c737d5
commit 9c0e2a56ee
8 changed files with 23 additions and 49 deletions

View File

@@ -1,12 +1,12 @@
<?php
<?php /** @noinspection PhpUnhandledExceptionInspection */
use common\modules\event\models\copy\CopyWeekSearch;
use kartik\widgets\DatePicker;
use kartik\widgets\DateTimePicker;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\EventSearch */
/* @var $model CopyWeekSearch */
/* @var $form yii\widgets\ActiveForm */
?>

View File

@@ -1,22 +1,19 @@
<?php
<?php /** @noinspection PhpUnhandledExceptionInspection */
use common\modules\event\models\timetable\TimeTableSearch;
use kartik\widgets\DatePicker;
use kartik\widgets\DateTimePicker;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\EventSearch */
/* @var $model TimeTableSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="event-search">
<?php $form = ActiveForm::begin([
'action' => ['timetable'],
'method' => 'get',
]); ?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Keresés</h3>
@@ -40,7 +37,5 @@ use yii\widgets\ActiveForm;
<?= Html::submitButton(Yii::t('event', 'Search'), ['class' => 'btn btn-primary']) ?>
</div>
</div>
<?php ActiveForm::end(); ?>
</div>

View File

@@ -1,16 +1,13 @@
<?php use common\modules\event\models\copy\CopyWeekSearch;
<?php /** @noinspection PhpUnhandledExceptionInspection */
use common\modules\event\models\copy\CopyWeekSearch;
use common\modules\event\widgets\timetable\TimeTableMonthView;
/* @var $this yii\web\View */
/* @var $tableHeaders string */
/* @var $model CopyWeekSearch */
use common\modules\event\models\timetable\TimeTableModel;
use yii\grid\GridView as GridViewAlias; ?>
<style>
</style>
?>
<h1>Hét másolása</h1>
<?php

View File

@@ -1,4 +1,6 @@
<?php use common\modules\event\models\timetable\TimeTableSearch;
<?php /** @noinspection PhpUnhandledExceptionInspection */
use common\modules\event\models\timetable\TimeTableSearch;
/* @var $this yii\web\View */
/* @var $tableHeaders string */
@@ -14,17 +16,12 @@ use common\modules\event\models\timetable\TimeTableModel;
use common\modules\event\widgets\timetable\TimeTableMonthView;
?>
<style>
</style>
<h1>Órarend</h1>
<?php echo $this->render('_timetable_search', ['model' => $model]); ?>
<h2>
<?= $timeTable->interval->firstActiveDate->format("Y") ?>
<?= $timeTable->interval->firstActiveDate->format('Y') ?>
-
<?= $timeTable->interval->firstActiveDate->format("m") ?>
<?= $timeTable->interval->firstActiveDate->format('m') ?>
</h2>
<?= TimeTableMonthView::widget(['timeTable' => $timeTable]) ?>