public function getNotated_date() { if ($this->makeup > 0) { return '<strong>' . CHtml::encode(ZHtml::shortDate($this->meeting_date)) . '</strong>' . CHtml::encode('+'); } else { if ($this->note == '') { return CHtml::encode(ZHtml::shortDate($this->meeting_date)); } else { return '<strong>' . CHtml::encode(ZHtml::shortDate($this->meeting_date)) . '</strong>' . CHtml::encode('*'); } } }
if (count($daysoff) > 0) { echo CHtml::encode('--'); echo 'No classes on ' . implode(', ', array_map(function ($i) { return ZHtml::shortDate($i->school_day); }, $daysoff)); } ?> </span> <br /> <span class="span-12"> </span> <span class="span-6 last"> <?php // the notes $notes = $model->noted_meetings; if (count($notes) > 0) { echo CHtml::encode('--'); foreach ($notes as $m) { echo CHtml::encode('*' . $m->note) . " on " . CHtml::encode(ZHtml::shortDate($m->meeting_date)) . '<br />'; } } if ($model->makeup_day_count > 0) { echo CHtml::encode('--'); foreach ($model->makeup_days as $m) { echo CHtml::encode('+Make-up day ') . CHtml::encode(ZHtml::shortDate($m->meeting_date)) . '<br />'; } } ?> </span>