X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=week.php;h=4de08c992e112e91cb4a9186aa299d713b08663b;hb=54c38578b32dad370d707ef0530dd0a9bea2273c;hp=3cb4ea73ea452185d6f1d623d51ec61bcaa82ba7;hpb=038ab62759618b89578ba78d127337319ae37695;p=timetracker.git diff --git a/week.php b/week.php index 3cb4ea73..4de08c99 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(); } @@ -149,7 +148,7 @@ class TimeCellRenderer extends DefaultCellRenderer { if ($lockedDays[$column-1]) $field->setEnabled(false); $field->setFormName($table->getFormName()); - $field->setSize(2); + $field->setStyle('width: 60px;'); // TODO: need to style everything properly, eventually. $field->setValue($table->getValueAt($row,$column)['duration']); // Disable control when time entry mode is TYPE_START_FINISH and there is no value in control // because we can't supply start and finish times in week view - there are no fields for them.