Exemplo n.º 1
0
<?php

$this->title = "ปฏิทินการเดินทางไปราชการ";
use yii2fullcalendar\yii2fullcalendar;
use yii\helpers\Url;
?>
<div class="box box-info box-solid">
    <div class="box-header with-border">
        <center><h3><?php 
echo yii\helpers\Html::encode($this->title);
?>
</h3></center>
    </div>
    <div class="box-body">
        <?php 
echo yii2fullcalendar::widget(['options' => ['lang' => 'th'], 'header' => ['left' => 'prev,next today', 'center' => 'title', 'right' => 'month,agendaWeek,agendaDay'], 'clientOptions' => ['timeFormat' => 'H:mm'], 'ajaxEvents' => Url::to(['/mission/default/jsoncalendar'])]);
?>
    </div>
</div>

Exemplo n.º 2
0
<?php

use app\modules\search\SearchAssets;
$query = yii\helpers\Html::encode($query);
$this->params['breadcrumbs'][] = ['label' => 'Блог', 'url' => ['/blog']];
$this->title = "Результаты поиска по запросу \"{$query}\"";
$this->params['breadcrumbs'][] = $this->title;
SearchAssets::register($this);
$this->registerJs("jQuery('.search').highlight('{$query}');");
?>

<div class="row">
    <?php 
if (!empty($hits)) {
    foreach ($hits as $hit) {
        ?>
            <h3><a href="<?php 
        echo yii\helpers\Url::to($hit->url, true);
        ?>
"><?php 
        echo $hit->title;
        ?>
</a></h3>
            <p class="search"><?php 
        echo $hit->body;
        ?>
</p>
            <hr/>
            <?php 
    }
} else {
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">
            <strong>Your email is not recognised as being from one of our site partners</strong> 
        </div>
        <div class="panel-body">
            
            <strong><?php 
echo yii\helpers\Html::encode($message);
?>
</strong>
            
            <br />
            Have you tried joining TeachConnect using your institutional email address? This will typically be your email address that ends with ".edu.au". For example, if you're a pre-service teacher then this will be your university account.
            <br />
            <br />
            If you still can't log in and want to take part in TeachConnect then please do get in touch with us. Write to <a href="mailto:info@teachconnect.edu.au">info@teachconnect.edu.au</a> and let us know a bit about yourself - we'll get in touch with you soon.
            <br />
            <br />
            Thanks for your interest in TeachConnect!<br />
            
            <hr>
            <a href="javascript:history.back();" class="btn btn-primary  pull-right"><?php 
echo Yii::t('base', 'Back');
?>
</a>
        </div>
    </div>
</div>
Exemplo n.º 4
0
<?php

/**
 * @var yii\web\View $this
 */
$this->title = $title;
$this->params['breadcrumbs'][] = ['label' => 'Docs', 'url' => ['site/docs']];
$this->params['breadcrumbs'][] = yii\helpers\Html::encode($this->title);
?>

<?php 
echo $markdown;
Exemplo n.º 5
0
    if ($logo->hasImage()) {
        ?>
        <a href="<?php 
        echo yii\helpers\Url::to('/');
        ?>
">
            <img class="img-rounded" src="<?php 
        echo $logo->getUrl();
        ?>
"
                 id="img-logo"/>
        </a>
        <br>
    <?php 
    } else {
        ?>
        <h1 id="app-title" class="animated fadeIn"><?php 
        echo yii\helpers\Html::encode(Yii::$app->name);
        ?>
</h1>
    <?php 
    }
}
?>






Exemplo n.º 6
0
                </span>
                <span>
                    <a href="<?php 
echo $model->url;
?>
"><?php 
echo $model->created_at;
?>
</a>
                </span>
            </div>
            <div class="mb10">
                <div class="mb10">
                    <div class="mb10">
                        <?php 
echo yii\helpers\Html::encode($model->content);
?>
                        <?php 
if (isset($model->args->link)) {
    ?>
                            <a href="<?php 
    echo $model->args->link;
    ?>
" target="_blank">链接</a>
                        <?php 
}
?>
                    </div>
                    <?php 
if (isset($model->args->imgs)) {
    ?>