jilo-web/app/templates/page-sidebar.php

101 lines
7.8 KiB
PHP
Raw Normal View History

2024-08-02 13:07:50 +00:00
<div class="row">
<!-- Sidebar -->
2024-08-04 13:33:41 +00:00
<div class="col-md-3 sidebar-wrapper bg-light" id="sidebar">
<div class="text-center" style="border: 1px solid #0dcaf0; height: 22px;" id="time_now">
<?php
2024-09-13 10:04:15 +00:00
$timeNow = new DateTime('now', new DateTimeZone($userTimezone));
?>
2024-10-04 11:18:28 +00:00
<!--span style="vertical-align: top; font-size: 12px;"><?= htmlspecialchars($timeNow->format('d M Y H:i')) ?> <?= htmlspecialchars($userTimezone) ?></span-->
<span style="vertical-align: top; font-size: 12px;"><?= htmlspecialchars($timeNow->format('H:i')) ?>&nbsp;&nbsp;<?= htmlspecialchars($userTimezone) ?></span>
</div>
2024-08-07 08:13:55 +00:00
<div class="col-4"><button class="btn btn-sm btn-info toggle-sidebar-button" type="button" id="toggleSidebarButton" value=">>"></button></div>
2024-08-05 19:24:35 +00:00
<div class="sidebar-content card ml-3 mt-3">
2024-08-07 08:13:55 +00:00
<ul class="list-group">
2024-08-28 09:59:13 +00:00
2024-10-04 11:18:28 +00:00
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=dashboard">
2024-09-13 11:02:59 +00:00
<li class="list-group-item<?php if ($page === 'dashboard') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
2024-08-07 09:03:54 +00:00
<i class="fas fa-chart-line" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="general jitsi stats"></i>general stats
</li>
2024-08-07 08:13:55 +00:00
</a>
2024-10-05 15:12:15 +00:00
<li class="list-group-item bg-light" style="border: none;"><p class="text-end mb-0"><small>logs statistics</small></p></li>
2024-10-04 11:18:28 +00:00
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=conferences">
2024-08-07 09:03:54 +00:00
<li class="list-group-item<?php if ($page === 'conferences') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-video" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="conferences"></i>conferences
</li>
2024-08-07 08:13:55 +00:00
</a>
2024-10-04 11:18:28 +00:00
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=participants">
2024-08-07 09:03:54 +00:00
<li class="list-group-item<?php if ($page === 'participants') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-users" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="participants"></i>participants
</li>
2024-08-07 08:13:55 +00:00
</a>
2024-10-04 11:18:28 +00:00
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=components">
2024-08-07 09:03:54 +00:00
<li class="list-group-item<?php if ($page === 'components') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-puzzle-piece" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="components"></i>components
</li>
2024-08-07 08:13:55 +00:00
</a>
2024-08-28 09:59:13 +00:00
2024-10-08 10:23:38 +00:00
<li class="list-group-item bg-light" style="border: none;"><p class="text-end mb-0"><small>graphs</small></p></li>
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=graphs">
<li class="list-group-item<?php if ($page === 'graphs') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-chart-bar" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="combined graphs"></i>combined graphs
2024-10-08 10:23:38 +00:00
</li>
</a>
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=latest">
<li class="list-group-item<?php if ($page === 'latest') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-list" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="latest data"></i>latest data
</li>
</a>
2024-10-05 15:12:15 +00:00
<li class="list-group-item bg-light" style="border: none;"><p class="text-end mb-0"><small>live data</small></p></li>
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config&item=configjs">
<li class="list-group-item<?php if ($page === 'config' && $item === 'configjs') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-tv" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="config.js"></i>config.js
</li>
</a>
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=config&item=interfaceconfigjs">
<li class="list-group-item<?php if ($page === 'config' && $item === 'interfaceconfigjs') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-th" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="interface_config.js"></i>interface_config.js
</li>
</a>
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>&page=agents">
<li class="list-group-item<?php if ($page === 'agents') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-mask" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="jilo agents"></i>jilo agents
</li>
</a>
<li class="list-group-item bg-light" style="border: none;"><p class="text-end mb-0"><small>system</small></p></li>
2024-08-28 09:59:13 +00:00
<?php if ($userObject->hasRight($user_id, 'view config file')) {?>
2024-10-04 11:18:28 +00:00
<a href="<?= htmlspecialchars($app_root) ?>?page=config">
2024-08-28 09:59:13 +00:00
<li class="list-group-item<?php if ($page === 'config' && $item === '') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
2024-08-07 09:03:54 +00:00
<i class="fas fa-wrench" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="configuration"></i>config
</li>
2024-08-07 08:13:55 +00:00
</a>
<?php } ?>
<?php if ($userObject->hasRight($user_id, 'view app logs')) {?>
2024-10-04 11:18:28 +00:00
<a href="<?= htmlspecialchars($app_root) ?>?page=logs">
2024-08-07 09:03:54 +00:00
<li class="list-group-item<?php if ($page === 'logs') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
2024-10-08 10:23:38 +00:00
<i class="fas fa-shoe-prints" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="logs"></i>logs
2024-08-07 09:03:54 +00:00
</li>
2024-08-07 08:13:55 +00:00
</a>
<?php } ?>
2024-10-05 15:12:15 +00:00
<a href="<?= htmlspecialchars($app_root) ?>?page=help">
<li class="list-group-item<?php if ($page === 'help') echo ' list-group-item-secondary'; else echo ' list-group-item-action'; ?>">
<i class="fas fa-question-circle" data-toggle="tooltip" data-placement="right" data-offset="30.0" title="help"></i>help
2024-08-28 09:59:13 +00:00
</li>
</a>
2024-10-05 15:12:15 +00:00
2024-08-03 13:25:42 +00:00
</ul>
2024-08-02 13:07:50 +00:00
</div>
</div>
<!-- /Sidebar -->
<!-- Main content -->
2024-08-07 08:13:55 +00:00
<div class="col-md-9 main-content" id="mainContent">