} ?> <h1 class="title"> 渠道宣传竞赛评选 </h1> </header> <?php $scores = \app\models\MOfficeCampaignScore::getScoreByPicCategory($office->office_id, $model_ocpc->id); $is_scorer = false; if ($staff->isOfficeCampaignScorer()) { $is_scorer = true; $scorer_score = \app\models\MOfficeCampaignScore::getScoreByScorerAndPicCategory($office->office_id, $staff->staff_id, $model_ocpc->id); $scorer = $staff->officeCampaignScorer; $scorer_comment = \app\models\MOfficeCampaignScore::getCommentByScorerAndPicCategory($office->office_id, $staff->staff_id, $model_ocpc->id); if ($scorer_score === false) { $can_score = true; } else { $can_score = false; } } else { $can_score = false; } ?> <!-- Wrap all non-bar HTML in the .content div (this is actually what scrolls) --> <div class="content"> <?php if ($can_score) { ?>