<?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
 */
$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);