memcache; $profile_name = Profile::findOne($id)->name; $this->title = 'Мониторинг сна: '.$profile_name.""; $this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']]; $mduser = $id; $uactive = $cache->get($obj::keylist); if( $uactive ){ $uactive = unserialize($uactive); } $ukey ='userlog_'.$id; $ulog = $cache->get( $ukey ); if( $ulog ){ $ulog = unserialize($ulog); }else{ $ulog = []; } $tstats = ['start' => 'Начало работы', 'good' => 'Работа
...', 'sleep' => 'Лёгий сон', 'dead' => 'Глубокий сон', 'norm' => 'Работа
...']; $mstats = ['start' => 'bg-soft-primary text-primary', 'good' => 'bg-soft-success text-success', 'sleep' => 'bg-soft-warning text-warning', 'dead' => 'bg-soft-danger text-danger', 'norm' => 'bg-soft-success text-success']; ?>
    $data ){ if( $time < $dt ) continue; ?>