$_SESSION['project'] = $cl_project;
$cl_task = $request->getParameter('task', ($request->getMethod()=='POST'? null : @$_SESSION['task']));
$_SESSION['task'] = $cl_task;
$_SESSION['project'] = $cl_project;
$cl_task = $request->getParameter('task', ($request->getMethod()=='POST'? null : @$_SESSION['task']));
$_SESSION['task'] = $cl_task;
// Get the data we need to display week view.
// Get column headers, which are day numbers in month.
// Get the data we need to display week view.
// Get column headers, which are day numbers in month.
$this->setOptions(array('style'=>'text-align: center; font-weight: bold;'));
}
// Special handling for not billable entries.
$this->setOptions(array('style'=>'text-align: center; font-weight: bold;'));
}
// Special handling for not billable entries.
$this->setValue(htmlspecialchars($value)); // This escapes HTML for output.
return $this->toString();
}
$this->setValue(htmlspecialchars($value)); // This escapes HTML for output.
return $this->toString();
}
if ($lockedDays[$column-1])
$field->setEnabled(false);
$field->setFormName($table->getFormName());
if ($lockedDays[$column-1])
$field->setEnabled(false);
$field->setFormName($table->getFormName());
$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.
$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.
'datakeys'=>array('id','name'),
'empty'=>array(''=>$i18n->getKey('dropdown.select'))));
}
'datakeys'=>array('id','name'),
'empty'=>array(''=>$i18n->getKey('dropdown.select'))));
}
$record['task_id'] = $cl_task;
$record['cf_1_value'] = $cl_cf_1;
$fields['row_id'] = ttTimeHelper::makeRecordIdentifier($record).'_0';
$record['task_id'] = $cl_task;
$record['cf_1_value'] = $cl_cf_1;
$fields['row_id'] = ttTimeHelper::makeRecordIdentifier($record).'_0';
}
$fields['day_header'] = $dayHeader;
$fields['start_date'] = $startDate->toString(DB_DATEFORMAT); // To be able to determine date for the entry using $dayHeader.
}
$fields['day_header'] = $dayHeader;
$fields['start_date'] = $startDate->toString(DB_DATEFORMAT); // To be able to determine date for the entry using $dayHeader.