<?php

use yii\helpers\Html;
use yii\helpers\Url;
use wap\assets\BlogAsset;

/* @var $this \yii\web\View */

$this->title = '日志列表';

$asset = BlogAsset::register($this);
$this->registerJsFile($asset->baseUrl . '/js/scroll.load.js', ['depends' => [BlogAsset::className()]]);
$this->registerJsFile($asset->baseUrl . '/js/blog.index.js', ['depends' => [BlogAsset::className()]]);
?>

<script>
var pageUrl = "<?= Url::to(['index']) ?>";
</script>

<?= $this->render('_calendar') ?>

<div class="mainbody">

    <div class="common-list task-list">
        <div class="common-list log-list">
            <ul id="scroll-ul" data-scroll-pagination="enabled" data-page-url="<?= Url::to(['index', 'startTime' => $firstDayOfWeek, 'endTime' => $lastDayOfWeek]) ?>" >

            </ul>
            <div id="loading" class="load">
                <p><img src="<?= Yii::getAlias('@web') ?>/static/images/scroll-loading.gif" alt="加载中"></p>
            </div>
            <div id="load-end">
                <p><a href="javascript:;">点击显示更多</a></p>
            </div>
            <div id="load-top"></div>

        </div>
    </div>
</div>

<!--底部固定导航-->
<div class="bottomarea"></div>
<div class="bottomnav ">
    <select style="width:100%;heigth:40px;" id="choose-user" >
<?php foreach ($users as $user) : ?>
    <option <?= $user['user_id'] == $userId ? 'selected="selected"' : '' ?> value="<?= $user['user_id'] ?>"><?= $user['realname'] ?></option>
<?php endforeach; ?>
</select>
</div>
<!--底部固定导航-->
