<th><label>Test string</label> <td>asldkf <tr> <th><label>Test string</label> <td>asldkf <tr> <th><label>Test string</label> <td>asldkf <tr> <th><label>Test string</label> <td>asldkf </table> <!-- @formatter:on --> <div class="cT"> <a href="<?php echo \phpOMS\Uri\UriFactory::build('/{/lang}/Backend/sales/analysis/clients/dashboard.php'); ?> " class="button"><?php echo $this->app->accountManager->get($request->getAccount())->getL11n()->lang[0]['More']; ?> </a> </div> </div> </div> <div class="b b-1 c24-1 c24" id="i24-1-1"> <h1><?php echo $this->app->accountManager->get($request->getAccount())->getL11n()->lang[24]['Shifts']; ?> </h1>
$settingsFormView->setElement(1, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'label' => $this->l11n->lang[1]['Name1'], 'name' => 'name1']); $settingsFormView->setElement(2, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'label' => $this->l11n->lang[1]['Name2'], 'name' => 'name2']); $settingsFormView->setElement(3, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'label' => $this->l11n->lang[1]['Name3'], 'name' => 'name3']); $settingsFormView->setElement(4, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'label' => $this->l11n->lang[1]['Email'], 'name' => 'email']); $settingsFormView->setElement(5, 0, ['type' => \phpOMS\Html\TagType::INPUT, 'subtype' => 'text', 'label' => $this->l11n->lang[1]['Password'], 'name' => 'Password']); $settingsFormView->setElement(5, 1, ['type' => \phpOMS\Html\TagType::BUTTON, 'label' => $this->l11n->lang[0]['Create']]); $this->getView('settings::name')->addView('form', $settingsFormView); /* * 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(1000104001); echo $nav->render(); ?> <form action="<?php echo \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/account.php'); ?> " method="POST"> <?php echo $this->getView('settings::core')->render(); ?> <?php echo $this->getView('settings::name')->render(); ?> </form>
*/ $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(1002701001); echo $nav->render(); ?> <div class="b-7" id="i3-2-1"> <div class="b b-5 c3-2 c3" id="i3-2-5"> <div class="bc-1"> <ul class="l-1"> <li> <a href="<?php echo \phpOMS\Uri\UriFactory::build('/{/lang}/Backend/reporter/edit.php?id=' . $this->getData('name')); ?> " class="button"><?php echo $this->l11n->lang[27]['Edit']; ?> </a> </ul> </div> </div> <div class="b b-5 c3-2 c3" id="i3-2-5"> <div class="bc-1"> <ul class="l-1"> <li><?php echo $this->l11n->lang[27]['Dataset'];
echo $request->getData('id'); ?> "}' data-uri="<?php echo \phpOMS\Uri\UriFactory::build('/{/lang}/api/admin/module.php'); ?> "> <?php echo $this->app->accountManager->get($request->getAccount())->getL11n()->lang[1]['Install']; ?> </button> <?php } else { ?> <li><a href="<?php echo \phpOMS\Uri\UriFactory::build('/{/lang}/Backend/module/single/settings.php'); ?> "><?php echo $this->app->accountManager->get($request->getAccount())->getL11n()->lang[1]['Settings']; ?> </a> <?php } ?> <li><a href=""></a> </ul> </div> </div> </div> <div class="b b-2 c1-7 c1" id="i1-7-2">
/* * 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); /* * Navigation */ $nav = new \Modules\Navigation\Views\NavigationView($this->l11n, $this->request, $this->response); $nav->setTemplate('/Modules/Navigation/Theme/Backend/mid');
/* * 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); /* * Navigation */ $nav = new \Modules\Navigation\Views\NavigationView($this->l11n, $this->request, $this->response); $nav->setTemplate('/Modules/Navigation/Theme/Backend/mid');
include __DIR__ . '/Worker.php'; ?> <!--suppress ALL --> <div class="areamanager-report"> <!-- Client rating --> <div id="areamanager-report-select"> <h1><?php echo $lang['AreaManager']; ?> </h1> <div> <form method="post" action="<?php echo \phpOMS\Uri\UriFactory::build('{/scheme}://{/host}/{/root}/{/lang}/api/reporter/single.php?id=' . $this->request->getData('id')); ?> "> <ul> <li class="rf"><?php echo $now->format('Y-m-d'); ?> <li><label for="i-areamanager"><?php echo $lang['AreaManager']; ?> </label>: <select name="i-areamanager" id="i-areamanager"> <option value="-1" selected disabled><?php echo $lang['Select']; ?> <?php
echo $head->renderScript(); ?> </script> </head> <body> <div class="vh" id="dim"></div> <div id="h"> <div id="bar-s"> <?php echo $top; ?> </div> <div id="bar-b"> <span class="vC" id="logo" itemscope itemtype="http://schema.org/Organization"><a href="<?php echo \phpOMS\Uri\UriFactory::build('/{/lang}/reporter.php'); ?> " itemprop="legalName"><?php echo $this->getData('Name'); ?> </a> </span> <span class="vC" id="s-bar" role="search"> <label> <input type="text" autofocus="autofocus"> </label> <input type="submit" value="<?php echo $this->l11n->lang[0]['Search']; ?> "> </span> <span class="vC" id="u-box">
<?php /** * @var \Modules\Navigation\Views\NavigationView $this */ /* Looping through all links */ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE])) { echo '<div class="b b-5 c3-2 c3" id="i3-2-5">' . '<h1>' . $this->l11n->lang[0]['Navigation'] . '<i class="fa fa-minus min"></i><i class="fa fa-plus max vh"></i>' . '</h1>' . '<div class="bc-1">' . '<ul id="ms-nav" role="navigation">'; foreach ($this->nav[\Modules\Navigation\Models\NavigationType::CONTENT_SIDE] as $key => $parent) { foreach ($parent as $link) { /** @var array $data */ if ($link['nav_parent'] == $data[1]) { echo '<li><a href="' . \phpOMS\Uri\UriFactory::build($link['nav_uri']) . '">' . $this->l11n->lang[5][$link['nav_name']] . '</a>'; } } } echo '</ul></div></div>'; }
<body> <div class="vh" id="dim"></div> <div id="h"> <div id="bar-s"> <?php echo $top; ?> </div> <div id="bar-b"> <span class="vC" id="nav-toggle"> <i class="fa fa-bars ani-click" data-aniref="#s-nav" data-aniin="slide-right" data-aniout="slide-left" data-anistate="1" data-anitime="300"></i> </span> <span class="vC" id="logo" itemscope itemtype="http://schema.org/Organization"><a href="<?php echo \phpOMS\Uri\UriFactory::build('/{/lang}/backend.php'); ?> " itemprop="legalName"><?php echo $this->getData('Name'); ?> </a> </span> <span class="vC" id="s-bar" role="search"> <label> <input type="text" autofocus="autofocus"> </label> <input type="submit" value="<?php echo $this->l11n->lang[0]['Search']; ?> "> </span> <span class="vC" id="u-box">
/** * Init request * * This is used in order to either initialize the current http request or a batch of GET requests * * @param string $uri URL * * @since 1.0.0 * @author Dennis Eichhorn <*****@*****.**> */ public function init($uri = null) { if ($uri === null) { $this->data = isset($_GET) ? $_GET : []; if (isset($_SERVER['CONTENT_TYPE'])) { if ($_SERVER['CONTENT_TYPE'] === 'application/json') { $this->data += json_decode(file_get_contents('php://input'), true); } elseif ($_SERVER['CONTENT_TYPE'] === 'application/x-www-form-urlencoded') { parse_str(file_get_contents('php://input'), $temp); $this->data += $temp; } } $this->uri->set(\phpOMS\Uri\Http::getCurrent()); } else { $this->setMethod($uri['type']); // TODO: is this correct? $this->uri->set($uri['uri']); } $this->path = explode('/', $this->uri->getPath()); $this->requestDestination = isset($this->path[1]) ? $this->path[1] : ''; $this->language = $this->path[0]; $this->hash = []; \phpOMS\Uri\UriFactory::setQuery('/scheme', $this->uri->getScheme()); \phpOMS\Uri\UriFactory::setQuery('/host', $this->uri->getHost()); \phpOMS\Uri\UriFactory::setQuery('/lang', $this->language); foreach ($this->path as $key => $path) { $paths = []; for ($i = 1; $i < $key + 1; $i++) { $paths[] = $this->path[$i]; } $this->hash[] = $this->hashRequest($paths); } }
<?php /** * @var \Modules\Navigation\Views\NavigationView $this */ if (isset($this->nav[\Modules\Navigation\Models\NavigationType::TOP])) { echo '<ul id="t-nav" role="navigation">'; foreach ($this->nav[\Modules\Navigation\Models\NavigationType::TOP] as $key => $parent) { foreach ($parent as $link) { echo '<li><a href="' . \phpOMS\Uri\UriFactory::build($link['nav_uri']) . '">'; if (isset($link['nav_icon'])) { echo '<i class="' . $link['nav_icon'] . '"></i>'; } echo $this->l11n->lang[5][$link['nav_name']] . '</a>'; } } echo '</ul>'; }