checkStaffPerm($thisstaff)) $warn.= sprintf(__('You do not have access to %s'), __('this task')); elseif ($task->isOverdue()) $warn.=' '.__('Marked overdue!').''; echo sprintf( '

'.__('Task #%s').': %s

', $task->getNumber(), $task->getNumber(), Format::htmlchars($task->getTitle())); if($error) echo sprintf('
%s
',$error); elseif($msg) echo sprintf('
%s
',$msg); elseif($warn) echo sprintf('
%s
',$warn); echo ''; echo '
'; echo '
'; echo ''; $status=sprintf('%s',ucfirst($task->getStatus())); echo sprintf(' ',$status, Format::datetime($task->getCreateDate())); if ($task->isClosed()) { echo sprintf(' ', Format::datetime($task->getCloseDate())); } elseif ($task->isOpen() && $task->duedate) { echo sprintf(' ', Format::datetime($task->duedate)); } echo '
'.__('Status').': %s
'.__('Created').': %s
'.__('Completed').': %s
'.__('Due Date').': %s
'; echo '
'; if ($task->isOpen()) { echo sprintf(' ', $task->getAssigned() ?: ' — '.__('Unassigned').' —'); } echo sprintf( ' ', Format::htmlchars($task->dept->getName()) ); echo '
'.__('Assigned To').': %s
'.__('Department').': %s
'; echo '
'; ?>