X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/31f452155587fed077f8233b00882b865e08fecb..88a1f19a4593e960d7f15225d446f6dcada26dbc:/week.php diff --git a/week.php b/week.php index 3cb4ea73..bc1e4717 100644 --- a/week.php +++ b/week.php @@ -126,14 +126,13 @@ class LabelCellRenderer extends DefaultCellRenderer { $this->setOptions(array('style'=>'text-align: center; font-weight: bold;')); } // Special handling for not billable entries. - /* // TODO: this does not work and should be coded properly. if ($row > 0) { - $row_id = $table->getValueAt($row,1+$column)['row_id']; + $row_id = $table->getValueAtName($row,'row_id'); $billable = ttTimeHelper::parseFromWeekViewRow($row_id, 'bl'); if (!$billable) { - $this->setOptions(array('class'=>'not_billable')); // TODO: Should not we add options instead? How does it work exactly? + $this->setOptions(array('style'=>'color: red;')); // TODO: style it properly in CSS. } - }*/ + } $this->setValue(htmlspecialchars($value)); // This escapes HTML for output. return $this->toString(); }