diff --git a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php index 7a0d2ac..f607d36 100644 --- a/Theme/Backend/Components/AccountGroupSelector/base.tpl.php +++ b/Theme/Backend/Components/AccountGroupSelector/base.tpl.php @@ -10,26 +10,26 @@ ] } ]' formaction=""> --datalist" id="= htmlspecialchars($this->getId(), ENT_COMPAT, 'utf-8'); ?>" name="receiver" placeholder=" Guest" data-action='[ { "key": 1, "listener": "keyup", "action": [ {"key": 1, "type": "validate.keypress", "pressed": "!enter"}, - {"key": 2, "type": "utils.timer", "id": "= $this->getId(); ?>", "delay": 500, "resets": true}, - {"key": 3, "type": "dom.datalist.clear", "id": "= $this->getId(); ?>-datalist"}, - {"key": 4, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/account?search={#= $this->getId(); ?>}", "method": "GET", "request_type": "json"}, - {"key": 5, "type": "dom.datalist.append", "id": "= $this->getId(); ?>-datalist", "value": "id", "text": "name"} + {"key": 2, "type": "utils.timer", "id": "= htmlspecialchars($this->getId(), ENT_COMPAT, 'utf-8'); ?>", "delay": 500, "resets": true}, + {"key": 3, "type": "dom.datalist.clear", "id": "= htmlspecialchars($this->getId(), ENT_COMPAT, 'utf-8'); ?>-datalist"}, + {"key": 4, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/account?search={#= htmlspecialchars($this->getId(), ENT_COMPAT, 'utf-8'); ?>}", "method": "GET", "request_type": "json"}, + {"key": 5, "type": "dom.datalist.append", "id": "= htmlspecialchars($this->getId(), ENT_COMPAT, 'utf-8'); ?>-datalist", "value": "id", "text": "name"} ] }, { "key": 2, "listener": "keyup", "action" : [ {"key": 1, "type": "validate.keypress", "pressed": "enter"}, - {"key": 2, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/account?search={#= $this->getId(); ?>}", "method": "GET", "request_type": "json"}, - {"key": 3, "type": "dom.set", "id": "= $this->getId(); ?>-idlist" "data": ""} + {"key": 2, "type": "message.request", "uri": "{/base}/{/lang}/api/admin/find/account?search={#= htmlspecialchars($this->getId(), ENT_COMPAT, 'utf-8'); ?>}", "method": "GET", "request_type": "json"}, + {"key": 3, "type": "dom.set", "id": "= htmlspecialchars($this->getId(), ENT_COMPAT, 'utf-8'); ?>-idlist" "data": ""} ] } ]' required> - - + +
| = $this->getText('Name'); ?> - | = $account->getName3(); ?>, = $account->getName1(); ?> + | = $this->getHtml('Name') ?> + | = htmlspecialchars($account->getName3(), ENT_COMPAT, 'utf-8'); ?>, = htmlspecialchars($account->getName1(), ENT_COMPAT, 'utf-8'); ?> |
|---|---|---|---|
| = $this->getText('Occupation'); ?> + | = $this->getHtml('Occupation') ?> | Sailor | |
| = $this->getText('Birthday'); ?> + | = $this->getHtml('Birthday') ?> | 06.09.1934 | |
| = $this->getText('Ranks'); ?> + | = $this->getHtml('Ranks') ?> | Gosling | |
| = $this->getText('Email'); ?> - | = $account->getEmail(); ?> + | = $this->getHtml('Email') ?> + | = htmlspecialchars($account->getEmail(), ENT_COMPAT, 'utf-8'); ?> |
| Address | @@ -59,7 +59,7 @@ echo $this->getData('nav')->render(); | Work | SMALLSYS INC 795 E DRAGRAM TUCSON AZ 85705 USA |
| = $this->getText('Phone'); ?> + | = $this->getHtml('Phone') ?> | ||
| Private @@ -71,14 +71,14 @@ echo $this->getData('nav')->render(); | Work | +01 12345-4567 | |
| = $this->getText('Registered'); ?> - | = $account->getCreatedAt()->format('Y-m-d'); ?> + | = $this->getHtml('Registered') ?> + | = htmlspecialchars($account->getCreatedAt()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?> |
| = $this->getText('LastLogin'); ?> - | = $account->getLastActive()->format('Y-m-d'); ?> + | = $this->getHtml('LastLogin') ?> + | = htmlspecialchars($account->getLastActive()->format('Y-m-d'), ENT_COMPAT, 'utf-8'); ?> |
| = $this->getText('Status'); ?> - | = $account->getStatus(); ?> + | = $this->getHtml('Status') ?> + | = htmlspecialchars($account->getStatus(), ENT_COMPAT, 'utf-8'); ?> |
| = $this->getText('ID', 0, 0); ?> - | = $this->getText('Name', 'Media'); ?> - | = $this->getText('Type', 'Media'); ?> - | = $this->getText('Created', 'Media'); ?> + | = $this->getHtml('ID', 0, 0); ?> + | = $this->getHtml('Name', 'Media') ?> + | = $this->getHtml('Type', 'Media') ?> + | = $this->getHtml('Created', 'Media') ?> |
| = $footerView->render(); ?> + | |||||||
| = htmlspecialchars($footerView->render(), ENT_COMPAT, 'utf-8'); ?> | |||||||
| = $value->getId(); ?> - | = $value->getNewestHistory()->getPosition(); ?> - | = $value->getNewestHistory()->getPosition(); ?> - | = $value->getNewestStatus()->getStatus(); ?> + | = htmlspecialchars($value->getId(), ENT_COMPAT, 'utf-8'); ?> + | = htmlspecialchars($value->getNewestHistory()->getPosition(), ENT_COMPAT, 'utf-8'); ?> + | = htmlspecialchars($value->getNewestHistory()->getPosition(), ENT_COMPAT, 'utf-8'); ?> + | = htmlspecialchars($value->getNewestStatus()->getStatus(), ENT_COMPAT, 'utf-8'); ?> - |
| = $this->getText('Empty', 0, 0); ?> + | |||||||
| = $this->getHtml('Empty', 0, 0); ?> | |||||||