Beispiel #1
0
<?php

use app\models\HealthState;
use app\models\Activity;
use app\models\User;
$this->registerCssFile('@web/css/account/mypage.css');
$this->registerCssFile('@web/css/activity/activity.css');
$session = yii::$app->session;
$thisuser = $session['user'];
//用户
$nowHealth = HealthState::getUserLatestHealth($thisuser['id']);
//当前健康状态
$attendActivities = Activity::getUserActivities($thisuser['id']);
$releaseActivities = Activity::getUserReleaseActivity($thisuser['id']);
?>
<div class="container">
	<div class="row">
		<div class="col-sm-3">
			<div class="my_info">
					<div class="portrait">
						<img alt="头像" src="image/mypage/portrait.png">
					</div>
					<h3 id="username"><?php 
echo $thisuser['username'];
?>
</h3>
			</div>
			<div class="sidenav list-group">
				<button type="button" id="health_manage_bar" class="list-group-item active" onclick="clickBar(this)">
					健康管理
				</button>