<?php } else { ?> <div id="form-msg" class="form-registro"> <h3 id="msg"><?php echo $msg; ?> </h3> </div> <?php } $this->registerJsFile('/js/moment.min.js', ['depends' => [yii\web\JqueryAsset::className()]]); $this->registerJsFile('/js/moment-whth-locales.min.js', ['depends' => [yii\web\JqueryAsset::className()]]); $this->registerJsFile('/js/bootstrap-datetimepicker.js', ['depends' => [yii\bootstrap\BootstrapAsset::className()]]); $this->registerJsFile('/js/calendario.js', ['depends' => [yii\bootstrap\BootstrapAsset::className()]]); ?> <link rel="stylesheet" href="/css/bootstrap-datetimepicker.css" /> <!-- <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/client:plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); function signinCallback(authResult) { if (authResult['access_token']) { getEmail();
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\models\Ocorrencias */ $this->registerJsFile('@web/js/view/eventos.js', ['depends' => [yii\web\JqueryAsset::className()]]); $this->registerCssFile('@web/css/bootstrap-calendar/calendar.css', ['depends' => [yii\bootstrap\BootstrapAsset::className()]]); $this->registerCssFile('@web/css/view/eventos.css', ['depends' => [yii\bootstrap\BootstrapAsset::className()]]); $this->title = $model->atividade->atividade; ?> <div class="eventos-view"> <div class="eventos-cabecalho"> <div class="eventos-cabecalho-conteudo"> <div class="row"> <div class="col-md-8"> <h4>Evento: <?php echo $model->atividade->atividade; ?> </h4> </div> <div class="col-md-2"> <strong>Início</strong><br /> <?php echo date("d/m/Y H:i:s", strtotime($model->d_ini)); ?> </div> <div class="col-md-2"> <strong>Término</strong><br /> <?php echo date("d/m/Y H:i:s", strtotime($model->d_ter));
// Html::tag('p', Html::encode($data->text)); } /*echo '<pre>'.print_r($data->link, true).'</pre>'; die('-en-'); return Html::a(Html::encode($data->text),'site/index');*/ }], 'user_created' => ['label' => 'Автор питання', 'attribute' => 'user_created', 'options' => ['style' => 'min-width: 150px'], 'format' => 'raw', 'value' => function ($data) { $user = $data->users; $res = '<span class="itUser"><a href="http://vk.com/id' . $user->vk_id . '" target="_blank"><img class="userAva thumbnail" src="' . Need::getAva($user) . '" /></a> <span class="userName">' . $user->username . '</span></span>'; if (Yii::$app->user->id == $data->user_created) { $res = '<strong>' . $res . '</strong>'; } return $res; }], ['class' => 'yii\\grid\\ActionColumn', 'template' => Yii::$app->user->can('edit-7progress') ? '{update}' : ':)', 'controller' => 'question']]]); ?> <?php Pjax::end(); ?> </div> </div> <? Need::per(['name'=>'slaawwa'], 'title'); ?> </div> <?php $this->registerJsFile('/web/js/newQ.js', ['depends' => [yii\web\JqueryAsset::className()]]); $this->registerCssFile('/web/css/newQ.css', ['depends' => [yii\bootstrap\BootstrapAsset::className()]]); ?>