<?php

/**
 * @var \phpOMS\Views\View $this
 */
/*
 * UI Logic
 */
$supportList = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$footerView = new \Web\Views\Lists\PaginationView($this->l11n, $this->request, $this->response);
$supportList->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[29]['Support']);
$headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[29]['Status'], 'sortable' => true], ['title' => $this->l11n->lang[29]['Priority'], 'sortable' => true], ['title' => $this->l11n->lang[29]['Title'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[29]['Account'], 'sortable' => true], ['title' => $this->l11n->lang[29]['Creator'], 'sortable' => true], ['title' => $this->l11n->lang[29]['Created'], 'sortable' => true], ['title' => $this->l11n->lang[29]['Receiver'], 'sortable' => true]]);
/*
 * Footer
 */
$footerView->setPages(20);
$footerView->setPage(1);
$supportList->addView('header', $headerView);
$supportList->addView('footer', $footerView);
/*
 * Settings
 */
/**
 * @var \phpOMS\Views\View $this
<?php

/**
 * @var \phpOMS\Views\View $this
 */
/*
 * UI Logic
 */
$mediaListView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$footerView = new \Web\Views\Lists\PaginationView($this->l11n, $this->request, $this->response);
$mediaListView->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[4]['Media']);
$headerView->setHeader([['title' => $this->l11n->lang[4]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[4]['Type'], 'sortable' => true], ['title' => $this->l11n->lang[4]['Size'], 'sortable' => true], ['title' => $this->l11n->lang[4]['Creator'], 'sortable' => true], ['title' => $this->l11n->lang[4]['Created'], 'sortable' => true]]);
/*
 * Footer
 */
$footerView->setPages(20);
$footerView->setPage(1);
$mediaListView->addView('header', $headerView);
$mediaListView->addView('footer', $footerView);
/*
 * Navigation
 */
$nav = new \Modules\Navigation\Views\NavigationView($this->l11n, $this->request, $this->response);
$nav->setTemplate('/Modules/Navigation/Theme/Backend/mid');
<?php

/**
 * @var \phpOMS\Views\View $this
 */
/*
 * UI Logic
 */
$timeMgmtView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$timeMgmtView->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[35]['TimeManagement']);
$headerView->setHeader([['title' => '', 'sortable' => false], ['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[35]['Type'], 'sortable' => true], ['title' => $this->l11n->lang[35]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[35]['Working'], 'sortable' => true], ['title' => $this->l11n->lang[35]['Vacation'], 'sortable' => true], ['title' => $this->l11n->lang[35]['Sick'], 'sortable' => true], ['title' => $this->l11n->lang[35]['Other'], 'sortable' => true]]);
$timeMgmtView->addView('header', $headerView);
/*
 * Settings
 */
/**
 * @var \phpOMS\Views\View $this
 */
$panelSettingsView = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response);
$panelSettingsView->setTemplate('/Web/Templates/Panel/BoxFull');
$panelSettingsView->setTitle($this->l11n->lang[35]['Settings']);
$this->addView('settings', $panelSettingsView);
$settingsFormView = new \Web\Views\Form\FormView($this->l11n, $this->request, $this->response);
$settingsFormView->setTemplate('/Web/Templates/Forms/FormFull');
$settingsFormView->setHasSubmit(false);
Exemplo n.º 4
0
$sum1 = $accountData[$year][4574] + $accountData[$year][4340] + $accountData[$year][4573] + $accountData[$year][4575] + $accountData[$year][4572] + $accountData[$year][4580];
$sum2 = $accountData[$year - 1][4574] + $accountData[$year - 1][4340] + $accountData[$year - 1][4573] + $accountData[$year - 1][4575] + $accountData[$year - 1][4572] + $accountData[$year - 1][4580];
$sum3 = $accountData[$year - 2][4574] + $accountData[$year - 2][4340] + $accountData[$year - 2][4573] + $accountData[$year - 2][4575] + $accountData[$year - 2][4572] + $accountData[$year - 2][4580];
$diff1 = $sum2 != 0 ? ($sum1 - $sum2) / $sum2 : 'NA';
$diff2 = $sum3 != 0 ? ($sum2 - $sum3) / $sum3 : 'NA';
$historyList->addElements(['SUM', number_format($accountData[$year][4574], 2), number_format($accountData[$year][4340], 2), number_format($accountData[$year][4573], 2), number_format($accountData[$year][4575], 2), number_format($accountData[$year][4572], 2), number_format($accountData[$year][4580], 2), number_format($sum1, 2), number_format(number_format($diff1 * 100, 2), 2) . '%', number_format($accountData[$year - 1][4574], 2), number_format($accountData[$year - 1][4340], 2), number_format($accountData[$year - 1][4573], 2), number_format($accountData[$year - 1][4575], 2), number_format($accountData[$year - 1][4572], 2), number_format($accountData[$year - 1][4580], 2), number_format($sum2, 2), number_format(number_format($diff2 * 100, 2), 2) . '%', number_format($accountData[$year - 2][4574], 2), number_format($accountData[$year - 2][4340], 2), number_format($accountData[$year - 2][4573], 2), number_format($accountData[$year - 2][4575], 2), number_format($accountData[$year - 2][4572], 2), number_format($accountData[$year - 2][4580], 2), number_format($sum3, 2)]);
foreach ($cars as $key => $car) {
    $sum1 = $carData[$key][$year][4574] + $carData[$key][$year][4340] + $carData[$key][$year][4573] + $carData[$key][$year][4575] + $carData[$key][$year][4572] + $carData[$key][$year][4580];
    $sum2 = $carData[$key][$year - 1][4574] + $carData[$key][$year - 1][4340] + $carData[$key][$year - 1][4573] + $carData[$key][$year - 1][4575] + $carData[$key][$year - 1][4572] + $carData[$key][$year - 1][4580];
    $sum3 = $carData[$key][$year - 2][4574] + $carData[$key][$year - 2][4340] + $carData[$key][$year - 2][4573] + $carData[$key][$year - 2][4575] + $carData[$key][$year - 2][4572] + $carData[$key][$year - 2][4580];
    $diff1 = $sum2 != 0 ? ($sum1 - $sum2) / $sum2 : 'NA';
    $diff2 = $sum3 != 0 ? ($sum2 - $sum3) / $sum3 : 'NA';
    $historyList->addElements([$key, number_format($carData[$key][$year][4574], 2), number_format($carData[$key][$year][4340], 2), number_format($carData[$key][$year][4573], 2), number_format($carData[$key][$year][4575], 2), number_format($carData[$key][$year][4572], 2), number_format($carData[$key][$year][4580], 2), number_format($sum1, 2), number_format($diff1 * 100, 2) . '%', number_format($carData[$key][$year - 1][4574], 2), number_format($carData[$key][$year - 1][4340], 2), number_format($carData[$key][$year - 1][4573], 2), number_format($carData[$key][$year - 1][4575], 2), number_format($carData[$key][$year - 1][4572], 2), number_format($carData[$key][$year - 1][4580], 2), number_format($sum2, 2), number_format($diff2 * 100, 2) . '%', number_format($carData[$key][$year - 2][4574], 2), number_format($carData[$key][$year - 2][4340], 2), number_format($carData[$key][$year - 2][4573], 2), number_format($carData[$key][$year - 2][4575], 2), number_format($carData[$key][$year - 2][4572], 2), number_format($carData[$key][$year - 2][4580], 2), number_format($sum3, 2)]);
}
$tabView->addTab($lang['History'], $historyList->getOutput(), 'history');
/*
 * UI Logic
 */
$planningList = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$planningListHeaderView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$planningList->setTemplate('/Web/Templates/Lists/ListFull');
$planningListHeaderView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
/*
 * Header
 */
$planningListHeaderView->setTitle($lang['Plan']);
$planningListHeaderView->setHeader([['title' => $lang['ID'], 'sortable' => true], ['title' => $lang['Owner'], 'sortable' => true, 'full' => true], ['title' => $lang['Leasing'], 'sortable' => true], ['title' => $lang['Tax'], 'sortable' => true], ['title' => $lang['Rep./Insp.'], 'sortable' => true], ['title' => $lang['Wheels'], 'sortable' => true], ['title' => $lang['Gas'], 'sortable' => true], ['title' => $lang['Misc'], 'sortable' => true], ['title' => $lang['Sum'], 'sortable' => true], ['title' => $lang['Diff'], 'sortable' => true], ['title' => $lang['Leasing'], 'sortable' => true], ['title' => $lang['Tax'], 'sortable' => true], ['title' => $lang['Rep./Insp.'], 'sortable' => true], ['title' => $lang['Wheels'], 'sortable' => true], ['title' => $lang['Gas'], 'sortable' => true], ['title' => $lang['Misc'], 'sortable' => true], ['title' => $lang['Sum'], 'sortable' => true], ['title' => $lang['Diff'], 'sortable' => true], ['title' => $lang['Leasing'], 'sortable' => true], ['title' => $lang['Tax'], 'sortable' => true], ['title' => $lang['Rep./Insp.'], 'sortable' => true], ['title' => $lang['Wheels'], 'sortable' => true], ['title' => $lang['Gas'], 'sortable' => true], ['title' => $lang['Misc'], 'sortable' => true], ['title' => $lang['Sum'], 'sortable' => true]]);
$planningList->setFreeze(3, 2);
$planningList->addView('header', $planningListHeaderView);
$tabView->addTab($lang['Planning'], $planningList->getOutput(), 'planning');
echo $tabView->render();
<?php

/**
 * @var \phpOMS\Views\View $this
 */
/*
 * UI Logic
 */
$groupListView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$footerView = new \Web\Views\Lists\PaginationView($this->l11n, $this->request, $this->response);
$groupListView->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[1]['Groups']);
$headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[1]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[1]['Parents'], 'sortable' => true], ['title' => $this->l11n->lang[1]['Children'], 'sortable' => true], ['title' => $this->l11n->lang[1]['Members'], 'sortable' => true]]);
foreach ($this->getData('list:elements') as $key => $value) {
    $url = \phpOMS\Uri\UriFactory::build('/{/lang}/Backend/admin/group/single/front.php?id=' . $value['group_id']);
    $groupListView->addElements(['<a href="' . $url . '">' . $value['group_id'] . '</a>', '<a href="' . $url . '">' . $value['group_name'] . '</a>', null, null, null]);
}
/*
 * Footer
 */
$footerView->setPages($this->getData('list:count') / 25);
$footerView->setPage(1);
$footerView->setResults($this->getData('list:count'));
$groupListView->addView('header', $headerView);
$groupListView->addView('footer', $footerView);
/*
 * Permission Add
 */
$formPermissionAdd = new \Web\Views\Form\FormView($this->l11n, $this->request, $this->response);
$formPermissionAdd->setTemplate('/Web/Templates/Forms/FormFull');
$formPermissionAdd->setSubmit('submit1', $this->l11n->lang[0]['Add']);
$formPermissionAdd->setAction($this->request->getUri()->getScheme() . '://' . $this->request->getUri()->getHost());
$formPermissionAdd->setMethod(\phpOMS\Message\RequestMethod::POST);
$formPermissionAdd->setElement(0, 0, ['type' => \phpOMS\Html\TagType::SELECT, 'options' => [['value' => 0, 'content' => 'Group'], ['value' => 1, 'content' => 'Account']], 'selected' => '', 'label' => $this->l11n->lang[27]['Type'], 'name' => 'type']);
$formPermissionAdd->setElement(1, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'name' => 'id', 'label' => $this->l11n->lang[0]['ID']]);
$formPermissionAdd->setElement(2, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'name' => 'perm', 'label' => $this->l11n->lang[27]['Permission']]);
$this->getView('permissionFormPanel')->addView('form', $formPermissionAdd);
/*
 * Permission List
 */
$permissionListView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$permissionListView->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[27]['Permission']);
$headerView->setHeader([['title' => $this->l11n->lang[27]['Type'], 'sortable' => true], ['title' => $this->l11n->lang[27]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[27]['Permission'], 'sortable' => true]]);
$permissionListView->addView('header', $headerView);
$this->addView('permissionList', $permissionListView);
/*
 * Navigation
 */
$nav = new \Modules\Navigation\Views\NavigationView($this->l11n, $this->request, $this->response);
$nav->setTemplate('/Modules/Navigation/Theme/Backend/mid');
$this->getView('createFormPanel')->addView('form', $formCreateForm);
/*
 * Media
 */
$mediaForm = new \Web\Views\Form\FormView($this->l11n, $this->request, $this->response);
$mediaForm->setTemplate('/Web/Templates/Forms/FormFull');
$mediaForm->setSubmit('submit1', $this->l11n->lang[0]['Add']);
$mediaForm->setAction($this->request->getUri()->getScheme() . '://' . $this->request->getUri()->getHost());
$mediaForm->setMethod(\phpOMS\Message\RequestMethod::POST);
$mediaForm->setElement(0, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'name' => 'media', 'label' => $this->l11n->lang[11]['Media']]);
$mediaForm->setElement(0, 1, ['type' => \phpOMS\Html\TagType::BUTTON, 'content' => $this->l11n->lang[11]['Select']]);
$this->getView('mediaPanel')->addView('form', $mediaForm);
/*
 * Permission List
 */
$mediaListView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$mediaListView->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[11]['Media']);
$headerView->setHeader([['title' => $this->l11n->lang[11]['Type'], 'sortable' => true], ['title' => $this->l11n->lang[11]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[11]['Size'], 'sortable' => true]]);
$mediaListView->addView('header', $headerView);
$this->addView('mediaList', $mediaListView);
/*
* Navigation
*/
$nav = new \Modules\Navigation\Views\NavigationView($this->l11n, $this->request, $this->response);
$nav->setTemplate('/Modules/Navigation/Theme/Backend/mid');
<?php

/**
 * @var \phpOMS\Views\View $this
 */
/*
 * UI Logic
 */
$accountListView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$footerView = new \Web\Views\Lists\PaginationView($this->l11n, $this->request, $this->response);
$accountListView->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[1]['Accounts']);
$headerView->setHeader([['title' => $this->l11n->lang[1]['Status'], 'sortable' => true], ['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[1]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[1]['Activity'], 'sortable' => true], ['title' => $this->l11n->lang[1]['Created'], 'sortable' => true]]);
foreach ($this->getData('list:elements') as $key => $value) {
    $url = \phpOMS\Uri\UriFactory::build('/{/lang}/Backend/admin/account/single/front.php?id=' . (int) $value['account_id']);
    $accountListView->addElements(['<a href="' . $url . '">' . $value['account_status'] . '</a>', '<a href="' . $url . '">' . $value['account_id'] . '</a>', '<a href="' . $url . '">' . $value['account_data_name1'] . '</a>', '<a href="' . $url . '">' . $value['account_lactive'] . '</a>', '<a href="' . $url . '">' . $value['account_created'] . '</a>']);
}
/*
 * Footer
 */
$footerView->setPages($this->getData('list:count') / 25);
$footerView->setPage(1);
$footerView->setResults($this->getData('list:count'));
$accountListView->addView('header', $headerView);
$accountListView->addView('footer', $footerView);
$permissionListView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$permissionListView->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[27]['Permission']);
$headerView->setHeader([['title' => $this->l11n->lang[27]['Type'], 'sortable' => true], ['title' => $this->l11n->lang[27]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[27]['Permission'], 'sortable' => true]]);
$permissionListView->addView('header', $headerView);
$this->addView('permissionList', $permissionListView);
$tabView->addTab($this->l11n->lang[27]['Overview'], $overviwPanel->getOutput() . $permissionPanel->getOutput() . $permissionListView->render(), 'overview');
/*
 * UI Logic
 */
$sourceList = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$sourceListHeaderView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$sourceList->setTemplate('/Web/Templates/Lists/ListFull');
$sourceListHeaderView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
/*
 * Header
 */
$sourceListHeaderView->setTitle($this->l11n->lang[27]['Sources']);
$sourceListHeaderView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[27]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[27]['Created'], 'sortable' => true], ['title' => $this->l11n->lang[27]['CreatedBy'], 'sortable' => true]]);
$sourceList->setFreeze(3, 2);
$sourceList->addView('header', $sourceListHeaderView);
$tabView->addTab($this->l11n->lang[27]['Sources'], $sourceList->getOutput(), 'sources');
/*
 * Create
 */
$createPanel = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response);
Exemplo n.º 10
0
<?php

/**
 * @var \phpOMS\Views\View $this
 */
/*
* UI Logic
*/
$watchList = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$headerView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response);
$watchList->setTemplate('/Web/Templates/Lists/ListFull');
$headerView->setTemplate('/Web/Templates/Lists/Header/HeaderTable');
/*
 * Header
 */
$headerView->setTitle($this->l11n->lang[30]['Watchlist']);
$headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[30]['Parent'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Severity'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Probability'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Department'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Category'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Due'], 'sortable' => true]]);
$watchList->addView('header', $headerView);
/*
 * Statistics
 */
$panelStatView = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response);
$panelStatView->setTemplate('/Web/Templates/Panel/BoxFull');
$panelStatView->setTitle($this->l11n->lang[30]['Statistics']);
$this->addView('stats', $panelStatView);
$statTableView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$statTableView->setTemplate('/Web/Templates/Lists/AssocList');
$statTableView->setElements([[$this->l11n->lang[30]['RiskIndex'], 0], [$this->l11n->lang[30]['OverallRisk'], 0], [$this->l11n->lang[30]['RiskProtection'], 0], [$this->l11n->lang[30]['RemainingRisk'], 0], [$this->l11n->lang[30]['RiskAcceptance'], 0], [$this->l11n->lang[30]['Risks'], 0], [$this->l11n->lang[30]['Causes'], 0], [$this->l11n->lang[30]['Solutions'], 0], [$this->l11n->lang[30]['Processes'], 0], [$this->l11n->lang[30]['Projects'], 0], [$this->l11n->lang[30]['Outdated'], 0], [$this->l11n->lang[30]['Critical'], 0], [$this->l11n->lang[30]['MainDepartment'], 0], [$this->l11n->lang[30]['MainCategory'], 0], [$this->l11n->lang[30]['MainCause'], 0]]);
$this->getView('stats')->addView('stat::table', $statTableView);
$panelExportView = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response);
$panelExportView->setTemplate('/Web/Templates/Panel/BoxFull');
$settingsFormView->setTemplate('/Web/Templates/Forms/FormFull');
$settingsFormView->setSubmit('submit1', $this->l11n->lang[0]['Submit']);
$settingsFormView->setAction($this->request->getUri()->getScheme() . '://' . $this->request->getUri()->getHost());
$settingsFormView->setMethod(\phpOMS\Message\RequestMethod::POST);
$settingsFormView->setElement(0, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'label' => $this->l11n->lang[11]['Person'], 'name' => 'person']);
$settingsFormView->setElement(1, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'date', 'label' => $this->l11n->lang[11]['From'], 'name' => 'date-from']);
$settingsFormView->setElement(1, 1, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'date', 'label' => $this->l11n->lang[11]['To'], 'name' => 'date-to']);
$this->getView('select::person')->addView('form', $settingsFormView);
/*
 * Statistics
 */
$panelStatView = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response);
$panelStatView->setTemplate('/Web/Templates/Panel/BoxHalf');
$panelStatView->setTitle($this->l11n->lang[11]['Statistics']);
$this->addView('stats', $panelStatView);
$statTableView = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response);
$statTableView->setTemplate('/Web/Templates/Lists/AssocList');
$statTableView->setElements([[$this->l11n->lang[11]['Received'], 0], [$this->l11n->lang[11]['Created'], 0], [$this->l11n->lang[11]['Forwarded'], 0], [$this->l11n->lang[11]['AverageAmount'], 0], [$this->l11n->lang[11]['AverageProcessTime'], 0], [$this->l11n->lang[11]['InTime'], 0]]);
$this->getView('stats')->addView('stat::table', $statTableView);
/*
* Navigation
*/
$nav = new \Modules\Navigation\Views\NavigationView($this->l11n, $this->request, $this->response);
$nav->setTemplate('/Modules/Navigation/Theme/Backend/mid');
$nav->setNav($this->getData('nav'));
$nav->setLanguage($this->l11n->language);
$nav->setParent(1001101001);
echo $nav->render();
?>

<?php