2024-10-30 14:54:09 +00:00
2024-10-31 09:59:17 +00:00
<!-- widget " platforms " -->
2024-10-30 14:54:09 +00:00
< div class = " card text-center w-75 mx-lef " >
< p class = " h4 card-header " > Jilo configuration :: Jitsi Meet platforms </ p >
< div class = " card-body " >
< p class = " card-text " > Jitsi platforms configuration & nbsp ; < a class = " btn btn-outline-secondary btn-sm " href = " <?= htmlspecialchars( $app_root ) ?>?page=config&item=platform&action=add " > add new </ a ></ p >
< ? php foreach ( $platformsAll as $platform_array ) {
2024-10-31 13:28:59 +00:00
$hosts = $hostObject -> getHostDetails ( $platform_array [ 'id' ]);
2024-10-30 14:54:09 +00:00
$agents = $agentObject -> getAgentDetails ( $platform_array [ 'id' ]);
?>
< a name = " platform<?= htmlspecialchars( $platform_array['id'] ) ?> " ></ a >
2024-10-31 13:28:59 +00:00
< div class = " row mb-1 border<?= isset( $_REQUEST['platform'] ) && (int) $platform_array['id'] === (int) $_REQUEST['platform'] ? ' bg-light' : '' ?> " style = " padding: 20px; padding-bottom: 0px; " >
2024-10-30 14:54:09 +00:00
< p >
platform id < ? = htmlspecialchars ( $platform_array [ 'id' ]) ?> - <strong><?= htmlspecialchars($platform_array['name']) ?></strong>
& nbsp ;
< a class = " btn btn-outline-secondary btn-sm " href = " <?= htmlspecialchars( $app_root ) ?>?page=config&item=platform&platform=<?= htmlspecialchars( $platform_array['id'] ) ?>&action=edit " > edit platform </ a >
< ? php if ( count ( $platformsAll ) <= 1 ) { ?>
< span class = " btn btn-outline-light btn-sm " href = " # " data - toggle = " tooltip " data - placement = " right " data - offset = " 30.0 " title = " can't delete the last platform " > delete platform </ span >
< ? php } else { ?>
< a class = " btn btn-outline-danger btn-sm " href = " <?= htmlspecialchars( $app_root ) ?>?page=config&item=platform&platform=<?= htmlspecialchars( $platform_array['id'] ) ?>&action=delete " > delete platform </ a >
< ? php } ?>
</ p >
< div style = " padding-left: 100px; padding-bottom: 20px; " >
< ? php foreach ( $platform_array as $key => $value ) {
if ( $key === 'id' ) continue ;
?>
< div class = " row mb-1 " style = " padding-left: 100px; " >
< div class = " col-md-4 text-end " >
< ? = htmlspecialchars ( $key ) ?> :
</ div >
< div class = " col-md-8 text-start " >
2024-10-31 13:44:10 +00:00
< ? php if ( $key === 'jitsi_url' ) { ?>
< a href = " <?= htmlspecialchars( $value ) ?> " target = " _blank " rel = " noopener noreferrer " data - toggle = " tooltip " data - placement = " right " data - offset = " 30.0 " title = " open the Jitsi Meet platform in a new window " >
< ? = htmlspecialchars ( $value ) ?>
< i class = " fas fa-external-link-alt " ></ i >
</ a >
< ? php } else { ?>
2024-10-30 14:54:09 +00:00
< ? = htmlspecialchars ( $value ) ?>
2024-10-31 13:44:10 +00:00
< ? php } ?>
2024-10-30 14:54:09 +00:00
</ div >
</ div >
< ? php } ?>
< div class = " row mb-1 " style = " padding-left: 100px; " >
< div class = " col-md-4 text-end " ></ div >
< div class = " col-md-8 text-start " >
2024-10-31 13:28:59 +00:00
< a href = " <?= htmlspecialchars( $app_root ) ?>?page=config&item=host&platform=<?= htmlspecialchars( $platform_array['id'] ) ?>#platform<?= htmlspecialchars( $platform_array['id'] ) ?> " >< ? = htmlspecialchars ( count ( $hosts )) ?> <?= htmlspecialchars(count($hosts)) === '1' ? 'host' : 'hosts' ?></a>
2024-10-30 14:54:09 +00:00
</ div >
</ div >
< div class = " row mb-1 " style = " padding-left: 100px; " >
< div class = " col-md-4 text-end " ></ div >
< div class = " col-md-8 text-start " >
2024-10-31 13:28:59 +00:00
< a href = " <?= htmlspecialchars( $app_root ) ?>?page=config&item=endpoint&platform=<?= htmlspecialchars( $platform_array['id'] ) ?>#platform<?= htmlspecialchars( $platform_array['id'] ) ?> " >< ? = htmlspecialchars ( count ( $agents )) ?> <?= htmlspecialchars(count($agents)) === '1' ? 'endpoint' : 'endpoints' ?></a>
2024-10-30 14:54:09 +00:00
</ div >
</ div >
</ div >
</ div >
< ? php } ?>
</ div >
</ div >
2024-10-31 09:59:17 +00:00
<!-- / widget " platforms " -->