40 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			PHP
		
	
			
		
		
	
	
			40 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			PHP
		
	
| 
 | |
|                 <!-- widget "hosts" -->
 | |
|                 <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>
 | |
|                             <ul class="text-start" style="padding-left: 50px;">
 | |
| <?php foreach ($hosts as $host_array) { ?>
 | |
|                                 <li style="padding-bottom: 10px;">
 | |
|                                     <a name="platform<?= htmlspecialchars($platform_array['id']) ?>host<?= htmlspecialchars($host_array['id']) ?>"></a>
 | |
|                                     <span>
 | |
|                                         <?= htmlspecialchars($host_array['address']) ?>:<?= htmlspecialchars($host_array['port']) ?>
 | |
|                                          
 | |
|                                         <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>
 | |
| <?php } ?>
 | |
|                             </ul>
 | |
|                             <p class="text-start" style="padding-left: 50px;">
 | |
|                                 total <?= htmlspecialchars(count($hosts)) ?> jilo <?= htmlspecialchars(count($hosts)) === '1' ? 'host' : 'hosts' ?> 
 | |
|                                  
 | |
|                                 <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>
 | |
|                 <!-- /widget "hosts" -->
 |