fix warnings
This commit is contained in:
parent
bf85c737d5
commit
9c0e2a56ee
@ -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 */
|
||||
?>
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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]) ?>
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
namespace common\modules\event\widgets\day;
|
||||
use common\modules\event\models\timetable\TimeTableMonthDay;
|
||||
use yii\base\Widget;
|
||||
use yii\bootstrap\Widget;
|
||||
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
@ -12,15 +12,10 @@ use yii\base\Widget;
|
||||
*
|
||||
* @property TimeTableMonthDay $day
|
||||
*/
|
||||
class TimeTableMonthDayView extends \yii\bootstrap\Widget
|
||||
class TimeTableMonthDayView extends Widget
|
||||
{
|
||||
public $day;
|
||||
|
||||
public function init(){
|
||||
parent::init();
|
||||
}
|
||||
|
||||
|
||||
public function run(){
|
||||
return $this->render('_day', [ 'day' => $this->day]);
|
||||
}
|
||||
|
||||
@ -1,19 +1,17 @@
|
||||
<?php
|
||||
namespace common\modules\event\widgets\event;
|
||||
use common\models\Event;
|
||||
use common\modules\event\models\timetable\TimeTableMonthDay;
|
||||
use yii\base\Widget;
|
||||
use DateTime;
|
||||
use yii\bootstrap\Widget;
|
||||
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
|
||||
/**
|
||||
* Class TimeTableMonthDayView
|
||||
* @package common\modules\event\widgets
|
||||
*
|
||||
* @property Event $event
|
||||
*/
|
||||
class EventView extends \yii\bootstrap\Widget
|
||||
class EventView extends Widget
|
||||
{
|
||||
public $event;
|
||||
public $start;
|
||||
@ -22,9 +20,9 @@ class EventView extends \yii\bootstrap\Widget
|
||||
public function init(){
|
||||
parent::init();
|
||||
if ( isset($this->event )){
|
||||
$this->start = new \DateTime();
|
||||
$this->start = new DateTime();
|
||||
$this->start->setTimestamp($this->event->start);
|
||||
$this->end = new \DateTime();
|
||||
$this->end = new DateTime();
|
||||
$this->end->setTimestamp($this->event->end);
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,9 +5,6 @@ use common\modules\event\models\timetable\TimeTableMonthWeek;
|
||||
use common\modules\event\widgets\day\TimeTableMonthDayView;
|
||||
use yii\bootstrap\Widget;
|
||||
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
|
||||
/**
|
||||
* Class TimeTableMonthDayView
|
||||
* @package common\modules\event\widgets
|
||||
|
||||
@ -11,15 +11,10 @@ use common\modules\event\widgets\timetable\TimeTableMonthView;
|
||||
use yii\grid\ActionColumn;
|
||||
use yii\grid\GridView;
|
||||
|
||||
?>
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $timeTable->getWeeksArrayDataProvider(),
|
||||
'layout' => '{items}',
|
||||
'columns' => [
|
||||
[
|
||||
'attribute' => 'weekNumber',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user