public function getCheck() { if (!isset($this->stat)) { $stat = $this->stat = stathelper::trackstat($this->Tasks); } else { $stat = $this->stat; } if ($stat['count'] == 0) { $progress = 0; } else { $progress = round($stat['check'] / $stat['count'] * 100); } return $progress; }
/edit" style="position: relative; z-index: 10;" class="btn btn-info pull-right">Редактировать</a> <?php } ?> <p>Курсы</p> <h1><?php echo $course->title; ?> </h1> <h4>Набрано <?php echo stathelper::earnedforcourse($student, $course->id); ?> из <?php echo stathelper::pointsforcourse($course->id); ?> поинтов</h4> <hr> <p><?php echo $course->description; ?> </p> <p> <br> <!-- <a class="btn btn-primary btn-lg" href="#markup" role="button">See the Markup</a> --> </p> </div>
<section class="profile-info-tabs"> <div class="row"> <div class="col-md-3"> <figure class="student-avatar"> <img src="<?php echo $student->avatar; ?> " class="img-circle" width="150" height="150" alt=""> <div class="points"><strong><?php echo stathelper::pointstotal($student->id); ?> </strong> поинт</div> </figure> </div> <div class="col-md-9"> <h2><?php echo $student->fullname; if ($student->id == Yii::app()->my->id) { ?> (это вас так зовут)<?php
<tr> <td> <?php echo $index + 1; ?> . <a href="/student<?php echo $student->id; ?> "><?php echo $student->fullname; ?> </a></td> <td> <span class="label label-default pull-right">поинтов <?php echo stathelper::earnedforcourse($student->id, $group->Course->id); ?> </span> </td> </tr> <?php } ?> </table>
} ?> <?php if (Yii::app()->my->access("check")) { ?> <li> <a href="/check" target="blank"> <i class="entypo-window"></i> <span>Проверка</span> <span class="badge badge-info badge-roundless"><?php echo stathelper::checkTotal(); ?> задания</span> </a> </li> <?php } ?> <li> <a href="https://docs.google.com/forms/d/1FpumR36tdhhLDzbG2pyH_oX8lPQfI1BO_0uQKsHA4FM/viewform" target="blank"> <i class="entypo-alert"></i> <span>Я нашел ошибку!</span> </a>