4 class Renderer_HtmlTable extends Renderer
6 protected $httpContentType = 'text/html; charset=utf-8';
8 public function render($arEvents)
14 <th colspan="2">Days</th>
25 foreach ($arEvents as $event) {
26 $class = 'd' . $event->days;
27 if ($event->days < 0) {
29 } else if ($event->days == 0) {
35 '<tr class="' . trim($class) . '">'
36 . '<td class="icon"></td>'
37 . '<td class="r">%d</td>'
38 . '<td class="r">%s</td>'
41 . '<td class="r">%s</td>'
46 htmlspecialchars($event->title),
47 htmlspecialchars($event->type),
49 strftime('%a', strtotime($event->localDate))