jilo-web/app/templates/config-host.php

40 lines
2.9 KiB
PHP
Raw Normal View History

2024-10-30 17:11:23 +00:00
2024-10-31 09:59:17 +00:00
<!-- widget "hosts" -->
2024-10-30 17:11:23 +00:00
<div class="card text-center w-75 mx-lef">
<p class="h4 card-header">Jilo configuration :: Jitsi Meet hosts</p>
<div class="card-body">
<p class="card-text">Jitsi hosts configuration
</p>
<?php foreach ($platformsAll as $platform_array) {
$hosts = $hostObject->getHostDetails($platform_array['id']);
?>
<a name="platform<?= htmlspecialchars($platform_array['id']) ?>"></a>
<div class="row mb-1 border" style="padding: 20px; padding-bottom: 0px;">
<p class="text-start">
platform <strong><?= htmlspecialchars($platform_array['name']) ?></strong>
</p>
2024-10-31 09:08:53 +00:00
<ul class="text-start" style="padding-left: 50px;">
2024-10-30 17:11:23 +00:00
<?php foreach ($hosts as $host_array) { ?>
2024-10-31 09:08:53 +00:00
<li style="padding-bottom: 10px;">
<a name="platform<?= htmlspecialchars($platform_array['id']) ?>host<?= htmlspecialchars($host_array['id']) ?>"></a>
2024-11-02 16:03:37 +00:00
<span class="<?= isset($_REQUEST['platform']) && (int)$platform_array['id'] === (int)$_REQUEST['platform'] && isset($_REQUEST['host']) && (int)$host_array['id'] === (int)$_REQUEST['host'] ? 'border rounded bg-light' : '' ?>" style="padding: 12px;">
2024-10-31 09:08:53 +00:00
<?= htmlspecialchars($host_array['address']) ?>:<?= htmlspecialchars($host_array['port']) ?>
&nbsp;
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($host_array['platform_id']) ?>&host=<?= htmlspecialchars($host_array['id']) ?>&action=edit">edit host</a>
<a class="btn btn-outline-danger btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($host_array['platform_id']) ?>&host=<?= htmlspecialchars($host_array['id']) ?>&action=delete">delete host</a>
</span>
</li>
2024-10-30 17:11:23 +00:00
<?php } ?>
2024-10-31 09:08:53 +00:00
</ul>
2024-10-30 17:11:23 +00:00
<p class="text-start" style="padding-left: 50px;">
2024-10-31 09:08:53 +00:00
total <?= htmlspecialchars(count($hosts)) ?> jilo <?= htmlspecialchars(count($hosts)) === '1' ? 'host' : 'hosts' ?>&nbsp;
2024-10-30 17:11:23 +00:00
&nbsp;
<a class="btn btn-outline-secondary btn-sm" href="<?= htmlspecialchars($app_root) ?>?page=config&item=host&platform=<?= htmlspecialchars($platform_array['id']) ?>&action=add">add new</a>
</p>
</div>
<?php } ?>
</div>
</div>
2024-10-31 09:59:17 +00:00
<!-- /widget "hosts" -->