diff --git a/Theme/Backend/dashboard-task.tpl.php b/Theme/Backend/dashboard-task.tpl.php index 70699a3..9d39779 100644 --- a/Theme/Backend/dashboard-task.tpl.php +++ b/Theme/Backend/dashboard-task.tpl.php @@ -21,11 +21,11 @@ $tasks = $this->getData('tasks');
| = $this->getText('Status'); ?> - | = $this->getText('Due'); ?> - | = $this->getText('Title'); ?> + | = $this->getHtml('Status') ?> + | = $this->getHtml('Due') ?> + | = $this->getHtml('Title') ?> | $task) : $c++; @@ -37,11 +37,11 @@ $tasks = $this->getData('tasks'); elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::CANCELED) { $color = 'red'; } elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::SUSPENDED) { $color = 'yellow'; } ;?>
| = $this->getText('S' . $task->getStatus()); ?> - | = $task->getDue()->format('Y-m-d H:i'); ?> - | = $task->getTitle(); ?> + | = $this->getHtml('S' . $task->getStatus()) ?> + | = htmlspecialchars($task->getDue()->format('Y-m-d H:i'), ENT_COMPAT, 'utf-8'); ?> + | = htmlspecialchars($task->getTitle(), ENT_COMPAT, 'utf-8'); ?> - |
| = $this->getText('Empty', 0, 0); ?> + | |||||
| = $this->getHtml('Empty', 0, 0); ?> | |||||
| = $this->getText('Received'); ?> | 0 - |
| = $this->getText('Created'); ?> | 0 - |
| = $this->getText('Forwarded'); ?> | 0 - |
| = $this->getText('AverageAmount'); ?> | 0 - |
| = $this->getText('AverageProcessTime'); ?> | 0 - |
| = $this->getText('InTime'); ?> | 0 + |
| = $this->getHtml('Received') ?> | 0 + |
| = $this->getHtml('Created') ?> | 0 + |
| = $this->getHtml('Forwarded') ?> | 0 + |
| = $this->getHtml('AverageAmount') ?> | 0 + |
| = $this->getHtml('AverageProcessTime') ?> | 0 + |
| = $this->getHtml('InTime') ?> | 0 |
| = $this->getText('Status'); ?> - | = $this->getText('Due'); ?> - | = $this->getText('Title'); ?> - | = $this->getText('Creator'); ?> - | = $this->getText('Created'); ?> + | = $this->getHtml('Status') ?> + | = $this->getHtml('Due') ?> + | = $this->getHtml('Title') ?> + | = $this->getHtml('Creator') ?> + | = $this->getHtml('Created') ?> | $task) : $c++; @@ -41,13 +41,13 @@ echo $this->getData('nav')->render(); ?> elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::CANCELED) { $color = 'red'; } elseif($task->getStatus() === \Modules\Tasks\Models\TaskStatus::SUSPENDED) { $color = 'yellow'; } ;?>
| = $this->getText('S' . $task->getStatus()); ?> - | = $task->getDue()->format('Y-m-d H:i'); ?> - | = $task->getTitle(); ?> - | = $task->getCreatedBy()->getName1(); ?> - | = $task->getCreatedAt()->format('Y-m-d H:i'); ?> + | = $this->getHtml('S' . $task->getStatus()) ?> + | = htmlspecialchars($task->getDue()->format('Y-m-d H:i'), ENT_COMPAT, 'utf-8'); ?> + | = htmlspecialchars($task->getTitle(), ENT_COMPAT, 'utf-8'); ?> + | = htmlspecialchars($task->getCreatedBy()->getName1(), ENT_COMPAT, 'utf-8'); ?> + | = htmlspecialchars($task->getCreatedAt()->format('Y-m-d H:i'), ENT_COMPAT, 'utf-8'); ?> - |
| = $this->getText('Empty', 0, 0); ?> + | |||||||||
| = $this->getHtml('Empty', 0, 0); ?> | |||||||||
| = $this->getText('Received'); ?> | 0 - |
|---|---|
| = $this->getText('Created'); ?> | 0 - |
| = $this->getText('Forwarded'); ?> | 0 - |
| = $this->getText('AverageAmount'); ?> | 0 - |
| = $this->getText('AverageProcessTime'); ?> | 0 - |
| = $this->getText('InTime'); ?> | 0 + |
| = $this->getHtml('Received') ?> | 0 + |
| = $this->getHtml('Created') ?> | 0 + |
| = $this->getHtml('Forwarded') ?> | 0 + |
| = $this->getHtml('AverageAmount') ?> | 0 + |
| = $this->getHtml('AverageProcessTime') ?> | 0 + |
| = $this->getHtml('InTime') ?> | 0 |
- = $task->getDescription(); ?> + = htmlspecialchars($task->getDescription(), ENT_COMPAT, 'utf-8'); ?>
- = $element->getDescription(); ?> + = htmlspecialchars($element->getDescription(), ENT_COMPAT, 'utf-8'); ?>