* 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'); $nav->setNav($this->getData('nav'));
<?php /** * @var \phpOMS\Views\View $this */ /* * UI Logic */ $reporterListView = 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); $reporterListView->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[27]['Reporter']); $headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[27]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[27]['Creator'], 'sortable' => true], ['title' => $this->l11n->lang[27]['Created'], 'sortable' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $reporterListView->addView('header', $headerView); $reporterListView->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 */ $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);
<?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);
<?php /** * @var \phpOMS\Views\View $this */ /* * UI Logic */ $mainTableView = 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); $mainTableView->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[30]['Processes']); $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]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $mainTableView->addView('header', $headerView); $mainTableView->addView('footer', $footerView); /* * Statistics */ $panelStatView = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response); $panelStatView->setTemplate('/Web/Templates/Panel/BoxFull');
<?php /** * @var \phpOMS\Views\View $this */ /* * UI Logic */ $profileList = 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); $profileList->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[24]['Employees']); $headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[24]['Status'], 'sortable' => true], ['title' => $this->l11n->lang[24]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[24]['Department'], 'sortable' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $profileList->addView('header', $headerView); $profileList->addView('footer', $footerView); /* * Navigation */ $nav = new \Modules\Navigation\Views\NavigationView($this->l11n, $this->request, $this->response); $nav->setTemplate('/Modules/Navigation/Theme/Backend/mid');
$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); $mediaPanel = clone $createPanel;
$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 */ $mainTableView = 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); $mainTableView->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[30]['Solutions']); $headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Status'], '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]['Risk'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Protection'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Probability'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Cost'], 'sortable' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $mainTableView->addView('header', $headerView); $mainTableView->addView('footer', $footerView); /* * Statistics */ $panelStatView = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response); $panelStatView->setTemplate('/Web/Templates/Panel/BoxFull');
/* * UI Logic */ $historyList = new \Web\Views\Lists\ListView($this->l11n, $this->request, $this->response); $historyListHeaderView = new \Web\Views\Lists\HeaderView($this->l11n, $this->request, $this->response); $historyList->setTemplate('/Web/Templates/Lists/ListFull'); $historyListHeaderView->setTemplate('/Web/Templates/Lists/Header/HeaderTable'); /* * Header */ $historyListHeaderView->setTitle($lang['History']); $historyListHeaderView->setHeader([['title' => $lang['ID'], 'sortable' => true, 'full' => true]]); $historyList->setFreeze(1, 1); $historyList->addView('header', $historyListHeaderView); $tabView->addTab($lang['CostCenter'], $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]]); $planningList->setFreeze(3, 2); $planningList->addView('header', $planningListHeaderView); $tabView->addTab($lang['Account'], $planningList->getOutput(), 'planning'); echo $tabView->render();
<?php /** * @var \phpOMS\Views\View $this */ /* * UI Logic */ $tasksList = 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); $tasksList->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[11]['Tasks']); $headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[11]['Status'], 'sortable' => true], ['title' => $this->l11n->lang[11]['Priority'], 'sortable' => true], ['title' => $this->l11n->lang[11]['Title'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[11]['Creator'], 'sortable' => true], ['title' => $this->l11n->lang[11]['Created'], 'sortable' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $tasksList->addView('header', $headerView); $tasksList->addView('footer', $footerView); /* * Settings */ /** * @var \phpOMS\Views\View $this
<?php /** * @var \phpOMS\Views\View $this */ /* * UI Logic */ $profileList = 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); $profileList->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[3]['Profiles']); $headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[3]['Activity'], 'sortable' => true], ['title' => $this->l11n->lang[3]['Name'], 'sortable' => true, 'full' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $profileList->addView('header', $headerView); $profileList->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 */ $logListView = 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); $logListView->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]['Logs']); $headerView->setHeader([['title' => $this->l11n->lang[1]['Type'], '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]['Time'], 'sortable' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $logListView->addView('header', $headerView); $logListView->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[35]['Date'], 'sortable' => true], ['title' => $this->l11n->lang[35]['Status'], 'sortable' => true], ['title' => $this->l11n->lang[35]['Type'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[35]['Start'], 'sortable' => true], ['title' => $this->l11n->lang[35]['End'], 'sortable' => true], ['title' => $this->l11n->lang[35]['Duration'], '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);
<?php /** * @var \phpOMS\Views\View $this */ /* * UI Logic */ $newsListview = 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); $newsListview->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[7]['Archive']); $headerView->setHeader([['title' => $this->l11n->lang[7]['Type'], 'sortable' => true], ['title' => $this->l11n->lang[7]['Title'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[7]['Author'], 'sortable' => true], ['title' => $this->l11n->lang[7]['Date'], 'sortable' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $newsListview->addView('header', $headerView); $newsListview->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);
<?php /** * @var \phpOMS\Views\View $this */ /* * UI Logic */ $moduleListView = 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); $moduleListView->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]['Modules']); $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]['Theme'], 'sortable' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $moduleListView->addView('header', $headerView); $moduleListView->addView('footer', $footerView); /* * Template */ echo $moduleListView->render();
<?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 */ $mainTableView = 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); $mainTableView->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[30]['Risks']); $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]['Project'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Process'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Manager'], 'sortable' => true], ['title' => $this->l11n->lang[30]['Due'], 'sortable' => true]]); /* * Footer */ $footerView->setPages(20); $footerView->setPage(1); $mainTableView->addView('header', $headerView); $mainTableView->addView('footer', $footerView); /* * Statistics */ $panelStatView = new \Web\Views\Panel\PanelView($this->l11n, $this->request, $this->response); $panelStatView->setTemplate('/Web/Templates/Panel/BoxFull');
<?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 */ $departmentListView = 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); $departmentListView->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[47]['Departments']); $headerView->setHeader([['title' => $this->l11n->lang[0]['ID'], 'sortable' => true], ['title' => $this->l11n->lang[47]['Name'], 'sortable' => true, 'full' => true], ['title' => $this->l11n->lang[47]['Parent'], 'sortable' => true]]); /* * Footer */ $footerView->setPages($this->getData('list:count') / 25); $footerView->setPage(1); $footerView->setResults($this->getData('list:count')); $departmentListView->addView('header', $headerView); $departmentListView->addView('footer', $footerView); /* * Navigation */ $nav = new \Modules\Navigation\Views\NavigationView($this->l11n, $this->request, $this->response);