예제 #1
0
 * @author ptrnov  [piter@lukison.com]
 * @since 1.2
 */
$events = array();
//Testing
$Event = new \yii2fullcalendar\models\Event();
$Event->id = 1;
$Event->title = 'Testing';
$Event->start = date('Y-m-d\\Th:m:s\\Z');
$events[] = $Event;
$Event = new \yii2fullcalendar\models\Event();
$Event->id = 2;
$Event->title = 'pergi ke mana';
$Event->start = date('Y-m-d\\Th:m:s\\Z', strtotime('tomorrow 6am'));
$events[] = $Event;
$calenderRt = yii2fullcalendar\yii2fullcalendar::widget(['id' => 'calendar-user', 'options' => ['lang' => 'id'], 'ajaxEvents' => Url::to(['/sistem/personalia/jsoncalendar']), 'clientOptions' => ['selectable' => true, 'selectHelper' => true, 'droppable' => true, 'editable' => true, 'selectHelper' => true, 'select' => new JsExpression($JSCode), 'eventClick' => new JsExpression($JSEventClick)]]);
echo Html::panel(['heading' => 'CLENDER', 'body' => $calenderRt], Html::TYPE_DANGER);
/*
 * LIST EVENT CALENDAR
 * PERIODE 23-22
 * @author ptrnov  [piter@lukison.com]
 * @since 1.2
 */
$actionClass = 'btn btn-info btn-xs';
$actionLabel = 'Update';
$attDinamikEvent = [];
/*GRIDVIEW ARRAY FIELD HEAD*/
$headColomnEvent = [['ID' => 0, 'ATTR' => ['FIELD' => 'start', 'SIZE' => '10px', 'label' => 'DATE START', 'align' => 'left', 'warna' => '97, 211, 96, 0.3']], ['ID' => 1, 'ATTR' => ['FIELD' => 'end', 'SIZE' => '10px', 'label' => 'DATE END', 'align' => 'left', 'warna' => '97, 211, 96, 0.3']]];
$gvHeadColomnEvent = ArrayHelper::map($headColomnEvent, 'ID', 'ATTR');
/*GRIDVIEW ARRAY ACTION*/
$attDinamikEvent[] = ['class' => 'kartik\\grid\\ActionColumn', 'dropdown' => true, 'template' => '{view}{review}{delete}', 'dropdownOptions' => ['class' => 'pull-left dropdown', 'style' => ['disable' => true]], 'dropdownButton' => ['class' => $actionClass, 'label' => $actionLabel], 'buttons' => ['view' => function ($url, $model, $key) {
예제 #2
0
/* @var $this yii\web\View */
/* @var $searchModel backend\models\EventSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Events';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="event-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <p>
        <?php 
echo Html::a('Create Event', ['create'], ['class' => 'btn btn-success']);
?>
    </p>

    <?php 
echo yii2fullcalendar\yii2fullcalendar::widget(['options' => ['language' => 'de'], 'ajaxEvents' => Url::to(['/timetrack/default/jsoncalendar'])]);
?>
    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id', 'title', 'description:ntext', 'created_date', ['class' => 'yii\\grid\\ActionColumn']]]);
?>

</div>
예제 #3
0
           \$("#set-out-case-id").attr("href","/mastercrm/draft-plan/set-out-case?tgl="+id+"&username="******"&group="+group+"&grpid="+split+"&userid="+user);


\t   // alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
\t\t//alert('View: ' + view.name);
\t\t// change the border color just for fun
\t\t\$(this).css('border-color', 'red');
\t}
EOF;
/*
 * VIEW SCHEDULE ACTUAL
 * @author ptrnov  [ptr.nov@gmail.com]
 * @since 1.2
 */
$calenderActual = yii2fullcalendar\yii2fullcalendar::widget(['id' => 'scdl-actual', 'options' => ['lang' => 'id'], 'ajaxEvents' => Url::to(['/mastercrm/draft-plan/jsoncalendar-actual']), 'clientOptions' => ['selectable' => true, 'selectHelper' => true, 'droppable' => true, 'editable' => true, 'firstDay' => '0', 'selectHelper' => true, 'eventClick' => new JsExpression($JSEventClick)]]);
$btn_exportActual = Html::a('<i class="fa fa-file-excel-o"></i> Export Excel', '/mastercrm/draft-plan/export-modal?flag=0', ['data-toggle' => "modal", 'data-target' => "#modal-export-actual", 'class' => 'btn btn-info btn-sm']);
$btn_set_outcase = Html::a('<i class="fa fa-magic"></i> SET OUT CASE', '/mastercrm/draft-plan/set-out-valid', ['id' => 'set-out-case-id', 'data-toggle' => "modal", 'data-target' => "#modal-Case", 'class' => 'btn btn-warning btn-sm']);
$btn_sync = Html::a('<i class="fa fa-exchange"></i> Syncronize a month', '/mastercrm/draft-plan/set-sync', ['id' => 'sync-approved', 'data-toggle' => "modal", 'data-target' => "#modal-sync", 'class' => 'btn btn-danger btn-sm']);
$info = "<div id =actual><table class='table'><thead>\r\n      <tr>\r\n        <th>#</th>\r\n        <th>TGL</th>\r\n        <th>CUSTOMERS</th>\r\n        <th>LAYER</th>\r\n        <th>STATUS</th>\r\n      </tr>\r\n    </thead> <tbody>\r\n    </tbody>\r\n  </table></div>";
$viewDetailactual = Html::panel(['heading' => '<div style="width:160px">DETAIl GROUP ACTUAL </div>' . ' ' . '<div style="float:right; margin-top:-22px;margin-right:-12px;">' . $btn_set_outcase . '</div>', 'body' => $info], Html::TYPE_DANGER);
$vwScdlActual = Html::panel(['heading' => '<div style="width:160px">' . $btn_exportActual . '</div>' . ' ' . '<div style="float:right; margin-top:-32px;margin-right:0px;">' . $btn_sync . '</div>', 'body' => $ptr_spinerActual . $calenderActual], Html::TYPE_SUCCESS);
?>
<div class="row">
	<div class="col-sm-7 col-md-7 col-lg-7" style="font-family: verdana, arial, sans-serif ;font-size: 8pt">
		<?php 
echo $vwScdlActual;
?>
	</div>
	<div class="col-sm-5 col-md-5 col-lg-5">
		<?php 
예제 #4
0
        <div id="external-events">
            <h4>Події</h4>
            <?php 
$drags = \app\models\DraggableEvent::find()->all();
foreach ($drags as $draggable) {
    echo '<div class="fc-event ui-draggable ui-draggable-handle">';
    echo $draggable->title;
    echo '</div>';
}
?>
            <div class="fc-event ui-draggable ui-draggable-handle">Event 1</div>
            <div class="fc-event ui-draggable ui-draggable-handle">Event 2</div>
            <div class="fc-event ui-draggable ui-draggable-handle">Event 3</div>
            <div class="fc-event ui-draggable ui-draggable-handle">Event 4</div>
            <div class="fc-event ui-draggable ui-draggable-handle">Event 5</div>
            <p>
                <input type="checkbox" id="drop-remove">
                <label for="drop-remove">Видалити після додавання</label>
            </p>
        </div>
        <?php 
Modal::begin(['header' => '<h4>Подія</h4>', 'id' => 'modal', 'size' => 'modal-lg']);
echo "<div id = 'modalContent'></div>";
Modal::end();
?>
        <?php 
echo yii2fullcalendar\yii2fullcalendar::widget(array('events' => $events, 'clientOptions' => ['selectable' => true, 'selectHelper' => true, 'droppable' => true, 'editable' => true, 'drop' => new JsExpression($JSDropEvent), 'select' => new JsExpression($JSCode), 'eventClick' => new JsExpression($JSEventClick), 'defaultDate' => date('Y-m-d')]));
?>
    </div>
예제 #5
0
    <div  class="row" style="margin-top:15px">
        <div class="col-sm-4 col-md-4 col-lg-4" style="margin-top:15px">
			<?php 
$events = array();
//Testing
$Event = new \yii2fullcalendar\models\Event();
$Event->id = 1;
$Event->title = 'Testing';
$Event->start = date('Y-m-d\\Th:m:s\\Z');
$events[] = $Event;
$Event = new \yii2fullcalendar\models\Event();
$Event->id = 2;
$Event->title = 'pergi ke mana';
$Event->start = date('Y-m-d\\Th:m:s\\Z', strtotime('tomorrow 6am'));
$events[] = $Event;
$calenderRt = yii2fullcalendar\yii2fullcalendar::widget(['id' => 'calendar', 'options' => ['lang' => 'id'], 'ajaxEvents' => Url::to(['/master/schedule-header/jsoncalendar']), 'clientOptions' => ['selectable' => true, 'selectHelper' => true, 'droppable' => true, 'editable' => true, 'selectHelper' => true, 'select' => new JsExpression($JSCode)]]);
echo Html::panel(['heading' => 'CLENDER', 'body' => $calenderRt], Html::TYPE_DANGER);
?>
		</div>
		<div class="col-sm-8 col-md-8 col-lg-8" >
			<?php 
Pjax::begin();
?>
    
			<?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'idno', 'TerminalID', 'UserID', 'FunctionKey', 'Edited', ['class' => 'yii\\grid\\ActionColumn']]]);
?>
			<?php 
Pjax::end();
?>
			
예제 #6
0
    <!-- <p>
        <?php 
echo Html::a('Create Event', ['create'], ['class' => 'btn btn-success']);
?>
    </p>-->
    <?php 
Modal::begin(['header' => '<h4> Event </h4>', 'id' => 'modal', 'size' => 'modal-lg']);
echo "<div id='modalContent'></div>";
Modal::end();
?>
    
    
    
    
<?php 
echo yii2fullcalendar\yii2fullcalendar::widget(['options' => ['lang' => 'zh-cn'], 'events' => $events]);
?>
    
    
    
    
    <?php 
//     GridView::widget([
//         'dataProvider' => $dataProvider,
//         'filterModel' => $searchModel,
//         'columns' => [
//             ['class' => 'yii\grid\SerialColumn'],
//             'id',
//             'title',
//             'description:ntext',
//             'created_date',
예제 #7
0
							 <h5>RT EMPAT</h5>
						</div>
					</div>
				</a>
            </div>
	</div>
</div>
<?php 
$carouselEvent = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/event/event_1.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/event/event_2.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/event/event_3.jpg', ['width' => '100%', 'height' => '100%'])]]]);
$carouselInformasi = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/informasi/narkoba_1.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/informasi/narkoba_2.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/informasi/narkoba_3.jpg', ['width' => '100%', 'height' => '100%'])]]]);
$carouselArtikel = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/artikel/artikel_1.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/artikel/artikel_2.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/artikel/artikel_3.jpg', ['width' => '100%', 'height' => '100%'])]]]);
$carouselKalenderRw = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/kalender_rw/ubudsatu.png', ['width' => '150px', 'height' => '100%'])]]]);
$carouselKalenderRt = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/kalender_rt/ubudsatu.png', ['width' => '150px', 'height' => '100%'])]]]);
$carouselKalenderOlahraga = Carousel::widget(['items' => [['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/olahraga/olahraga_1.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/olahraga/olahraga_2.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/olahraga/olahraga_3.jpg', ['width' => '100%', 'height' => '100%'])], ['content' => Html::img(Yii::$app->urlManager->baseUrl . '/upload/olahraga/olahraga_4.jpg', ['width' => '100%', 'height' => '100%'])]]]);
$calenderRw = yii2fullcalendar\yii2fullcalendar::widget(['id' => 'rw-calender', 'options' => ['lang' => 'id'], 'ajaxEvents' => Url::to(['/timetrack/default/jsoncalendar'])]);
$calenderRt = yii2fullcalendar\yii2fullcalendar::widget(['id' => 'rt-calender', 'options' => ['lang' => 'id'], 'ajaxEvents' => Url::to(['/timetrack/default/jsoncalendar'])]);
?>
<div class="row">
	<div class="col-md-12">
		<h4 class="page-head-line"></h4>
		<!-- Carausel !-->
		<div class="row" style="padding-left:5px;padding-right:5px">
			<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
				<?php 
echo Html::panel(['heading' => 'Event ', 'body' => $carouselEvent], Html::TYPE_INFO);
?>
			</div>
			<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
				<?php 
echo Html::panel(['heading' => 'Informasi', 'body' => $carouselInformasi], Html::TYPE_DANGER);
?>
예제 #8
0
<?php

use yii\helpers\Html;
use yii\widgets\ListView;
use yii\helpers\Url;
use yii\web\JsExpression;
/* @var $this yii\web\View */
/* @var $searchModel app\models\PolizzenserviceSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
?>

<div class="bgwhite">

<?php 
$redirect = Url::toRoute([$targetUrl, 'entityTitleField' => $entityTitleField, 'id' => ''], true);
$JSEventClick = <<<EOF
function(calEvent, jsEvent, view) {
    var url = '{$redirect}' + calEvent.id;
    \$(location).attr('href',url);
}
EOF;
?>

	<?php 
echo yii2fullcalendar\yii2fullcalendar::widget(['options' => ['lang' => substr(\Yii::$app->language, 0, 2), 'class' => 'fullcalendar'], 'header' => ['left' => 'prev', 'center' => 'title', 'right' => 'next'], 'clientOptions' => ['defaultView' => 'agendaDay', 'height' => 400, 'selectable' => true, 'selectHelper' => true, 'defaultDate' => date('Y-m-d'), 'eventClick' => new JsExpression($JSEventClick), 'eventLimit' => true], 'ajaxEvents' => Url::toRoute(['/activity/default/jsoncalendar', 'entity' => $entity, 'entityTitleField' => $entityTitleField])]);
?>

</div>
예제 #9
0
파일: index.php 프로젝트: schw/SGE3
    echo Url::to(['evento/view', 'id' => $evento->idevento]);
    ?>
>
              <div class="divicone divicone-l1">
                  <?php 
    echo Html::img('@web/img/voltar.png', ['class' => 'imgicone']);
    ?>
                  <p class="labelicone">Voltar</p>
              </div>
          </a>
      </div>
    <?php 
}
?>
 
<div class="clear"></div>
    <?php 
echo yii2fullcalendar\yii2fullcalendar::widget(['id' => 'calendarItemProgramacao', 'options' => ['lang' => 'pt-br'], 'clientOptions' => ['defaultDate' => $evento->dataIni, 'weekends' => true, 'editable' => true, 'droppable' => true, 'defaultView' => 'agendaWeek', 'drop' => new JsExpression("function(start, end, calEvent) {\n            var tipo = calEvent.helper.context.id;\n            var dateStr = start;\n            var data = (new Date(dateStr)).toISOString().slice(0, 10);\n            var hora = (new Date(dateStr)).toISOString().slice(11, 16);\n            var idevento = getParameterByName('idevento');\n\n            if(data < '{$evento->dataIni}' || data > '{$evento->dataFim}'){\n              alert('Data inválida. Informe uma data  entre: | {$evento->dataini} | e | {$evento->datafim} |');\n              location.reload(); \n              \$('#calendarItemProgramacao').fullCalendar('removeEvents', calEvent._id);\n              return false;\n            }\n\n            \$.get('index.php?r=item-programacao/create', {'data': data, 'hora': hora, 'idevento': idevento, 'tipo': tipo, 'requ': 'AJAX'}, function(data){\n                \$('#modal').modal('show')\n                .find('#modalContent')\n                .html(data);\n            });\n        }"), 'eventClick' => new JsExpression("function(calEvent, jsEvent, view) {\n\n          if(calEvent.id)\n            \$.get('index.php?r=item-programacao/view', {'id': calEvent.id, 'requ': 'AJAX'}, function(data){\n                  \$('#modal').modal('show')\n                  .find('#modalContent')\n                  .html(data);\n              });\n          else{\n\n            var titulo = calEvent.title;\n            var dateStr = calEvent.start._d;\n            if(calEvent.end != null){\n              var dateStr2 = calEvent.end._d\n              var horaFim = (new Date(dateStr2)).toISOString().slice(11, 16);\n            }else\n              var horaFim = null;\n            var data = (new Date(dateStr)).toISOString().slice(0, 10);\n            var hora = (new Date(dateStr)).toISOString().slice(11, 16);\n\n            if(data < (new Date()).toISOString().slice(0, 10)){\n              alert('Data inválida. Informe um data futura');\n              return false;\n            }\n\n            var idevento = getParameterByName('idevento');\n            \$.get('index.php?r=item-programacao/create', {'data': data, 'hora': hora, 'horafim': horaFim, 'idevento': idevento, 'titulo': titulo, 'requ': 'AJAX'}, function(data){\n              \$('#modal').modal('show')\n              .find('#modalContent')\n              .html(data);\n            });\n          }\n        }"), 'eventDrop' => new JsExpression("function(event, delta, revertFunc) {\n        var dateStr = event.start._d;\n        var data = (new Date(dateStr)).toISOString().slice(0, 10);\n        if(data < '{$evento->dataIni}' || data > '{$evento->dataFim}'){\n          alert('Data inválida. Informe uma data  entre: {$evento->dataIni} e {$evento->dataFim}');\n          revertFunc();\n          return false;\n        }\n\n      }")], 'events' => $itensProgramacaoCalendar]);
?>
    <?php 
if (!Yii::$app->user->isGuest && (Yii::$app->user->identity->tipoUsuario == 1 || Yii::$app->user->identity->tipoUsuario == 2)) {
    ?>
    <?php 
    //echo Html::button('Itens a serem editados', ['id' => 'bota'])
    ?>
    <?php 
}
?>
    </div>
</div>
예제 #10
0
EOF;
$JSDropEvent = <<<EOF
\tfunction(date) {
\t\talert("Dropped on " + date.format());
\t\tif (\$('#drop-remove').is(':checked')) {
\t\t\t// if so, remove the element from the "Draggable Events" list
\t\t\t\$(this).remove();
\t\t}
\t}
EOF;
$JSEventClick = <<<EOF
\tfunction(calEvent, jsEvent, view) {
\t\talert('Event: ' + calEvent.id);
\t   // alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
\t\t//alert('View: ' + view.name);
\t\t// change the border color just for fun
\t\t\$(this).css('border-color', 'red');
\t}
EOF;
/*
 * MEMO CALENDAR 
 * PERIODE 23-22
 * @author ptrnov  [ptr.nov@gmail.com]
 * @since 1.2
 */
$calenderPlan = yii2fullcalendar\yii2fullcalendar::widget(['id' => 'calendar-plan', 'options' => ['lang' => 'id'], 'ajaxEvents' => $dataJson, 'clientOptions' => ['selectable' => true, 'selectHelper' => true, 'droppable' => true, 'editable' => true, 'firstDay' => '0', 'selectHelper' => true, 'select' => new JsExpression($JSCode), 'eventClick' => new JsExpression($JSEventClick)]]);
$vwSchedulePlan = Html::panel(['heading' => 'SCHEDULE PLAN ', 'body' => $calenderPlan], Html::TYPE_DANGER);
?>

<?php 
echo $vwSchedulePlan;
예제 #11
0
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Events');
$this->params['breadcrumbs'][] = $this->title;
if ($events) {
    foreach ($events as $e) {
        $evnt[] = ['id' => $e->id, 'title' => $e->title, 'start' => $e->date, 'color' => $e->user->profile->color, 'allDay' => true];
    }
} else {
    $evnt[] = ['title' => 'My default event', 'date' => date('Y-m-d'), 'color' => Yii::$app->user->identity->profile->color, 'allDay' => true];
}
?>

<div class="box box-success">
    <div class="box-body no-padding">

        <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>
        <div class="box-header">
            <h4 class="bordered-bottom-grey padset-bottom">Please Click on any day to create an event.</h4>
        </div>

        <?php 
Html::a(Yii::t('app', 'Create Event'), ['create'], ['id' => 'create', 'class' => 'btn btn-success']);
?>

        <?php 
echo yii2fullcalendar\yii2fullcalendar::widget(array('options' => ['lang' => 'en-gb'], 'events' => $evnt, 'clientOptions' => ['selectable' => true, 'editable' => false, 'forceEventDuration' => true], 'eventClick' => "\r\n                    function(calEvent, jsEvent, view) {\r\n                        console.log(calEvent);\r\n                        \$('#modal').modal('show').find('#modalContent').load(baseUrl+'/event/view/'+calEvent.id);\r\n                        \$('#modalHeader h4').html('' + calEvent.title + '');\r\n\r\n                        // change the border color just for fun\r\n                        \$(this).css('border-color', 'red');\r\n                    }", 'select' => "\r\n                        function(start, end, jsEvent) {\r\n\r\n                    }", 'dayClick' => Yii::$app->user->identity->level != 0 ? "\r\n                    function(date, jsEvent, view, resourceObj) {\r\n                        //alert('Date: ' + date.format());\r\n                        //alert('Resource ID: ' + resourceObj.id);\r\n                        //to ensure we get the right button and content. \r\n                    if (\$('#modal').data('bs.modal').isShown) {\r\n                        \$('#modal').find('#modalContent').load(\$(this).attr('value'));\r\n                        //dynamiclly set the header for the modal via title tag\r\n                        \$('#modalHeader h4').html( \$(this).attr('title') );\r\n                    } else {\r\n                        //if modal isn't open; open it and load content\r\n                        \$('#modal').modal('show').find('#modalContent').load(baseUrl+'/event/create?date='+date.format());\r\n                         //console.log(\$('#event-date'));\r\n                         //dynamiclly set the header for the modal via title tag\r\n                        \$('#modalHeader h4').html('Create an Event on ' + date.format('dddd, MMMM Do YYYY') + '');\r\n                    }\r\n                }" : ""));
?>
    </div>
</div>
예제 #12
0
파일: index.php 프로젝트: vrigzalejo/YiiHey
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\EventsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Events';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="events-index">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>
    <?php 
// echo $this->render('_search', ['model' => $searchModel]);
?>

    <?php 
Modal::begin(['header' => '<h4>Events</h4>', 'id' => 'modal', 'size' => 'modal-lg']);
echo "<div id='modalContent'></div>";
Modal::end();
?>

    <?php 
echo yii2fullcalendar\yii2fullcalendar::widget(['events' => $events]);
?>

</div>