mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-11 13:38:39 +00:00
97 lines
4.2 KiB
PHP
Executable File
97 lines
4.2 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Jingga
|
|
*
|
|
* PHP Version 8.2
|
|
*
|
|
* @package Modules\Admin\Template\Backend
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 2.2
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* @var \phpOMS\Views\View $this
|
|
*/
|
|
$hooks = $this->data['hooks'] ?? [];
|
|
$module = $this->data['module'] ?? '';
|
|
|
|
echo $this->data['nav']->render();
|
|
?>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<section class="portlet">
|
|
<div class="portlet-head"><?= $this->getHtml('Hooks'); ?><i class="g-icon download btn end-xs">download</i></div>
|
|
<div class="slider">
|
|
<table id="navElements" class="default sticky">
|
|
<thead>
|
|
<tr>
|
|
<td><?= $this->getHtml('Active'); ?>
|
|
<td><?= $this->getHtml('App'); ?>
|
|
<label for="navElements-sort-1">
|
|
<input type="radio" name="navElements-sort" id="navElements-sort-1">
|
|
<i class="sort-asc g-icon">expand_less</i>
|
|
</label>
|
|
<label for="navElements-sort-2">
|
|
<input type="radio" name="navElements-sort" id="navElements-sort-2">
|
|
<i class="sort-desc g-icon">expand_more</i>
|
|
</label>
|
|
<label>
|
|
<i class="filter g-icon">filter_alt</i>
|
|
</label>
|
|
<td><?= $this->getHtml('Trigger'); ?>
|
|
<label for="navElements-sort-5">
|
|
<input type="radio" name="navElements-sort" id="navElements-sort-5">
|
|
<i class="sort-asc g-icon">expand_less</i>
|
|
</label>
|
|
<label for="navElements-sort-6">
|
|
<input type="radio" name="navElements-sort" id="navElements-sort-6">
|
|
<i class="sort-desc g-icon">expand_more</i>
|
|
</label>
|
|
<label>
|
|
<i class="filter g-icon">filter_alt</i>
|
|
</label>
|
|
<td><?= $this->getHtml('Destination'); ?>
|
|
<label for="navElements-sort-7">
|
|
<input type="radio" name="navElements-sort" id="navElements-sort-7">
|
|
<i class="sort-asc g-icon">expand_less</i>
|
|
</label>
|
|
<label for="navElements-sort-8">
|
|
<input type="radio" name="navElements-sort" id="navElements-sort-8">
|
|
<i class="sort-desc g-icon">expand_more</i>
|
|
</label>
|
|
<label>
|
|
<i class="filter g-icon">filter_alt</i>
|
|
</label>
|
|
</thead>
|
|
<tbody>
|
|
<?php $c = 0;
|
|
foreach ($hooks as $app => $appHooks) :
|
|
foreach ($appHooks as $uri => $destinations) :
|
|
foreach ($destinations as $callbacks) :
|
|
foreach ($callbacks as $callback) :
|
|
if (\stripos($callback, '\Modules\\' . $module . '\Controller') === false) {
|
|
continue;
|
|
}
|
|
|
|
++$c;
|
|
?>
|
|
<tr>
|
|
<td><label class="checkbox" for="iActive-<?= $c; ?>">
|
|
<input id="iActive-<?= $c; ?>" type="checkbox" name="active_route" value="<?= $this->printHtml($uri); ?>"<?= true ? ' checked' : ''; ?>>
|
|
<span class="checkmark"></span>
|
|
</label>
|
|
<td><?= $app; ?>
|
|
<td><?= $uri; ?>
|
|
<td><?= $callback; ?>
|
|
<?php endforeach; endforeach; endforeach; endforeach; ?>
|
|
<?php if ($c === 0) : ?>
|
|
<tr><td colspan="4" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</section>
|
|
</div>
|
|
</div>
|