Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
90 righe
3.6 KiB
90 righe
3.6 KiB
<? |
|
if (isset($root)) { |
|
?> |
|
<div id="commands" class="mb-5"> |
|
<div class="commands container-fluid"> |
|
<div class="row"> |
|
<div class="col-12 text-right"> |
|
<? |
|
$zoom = new zoomMtg(); |
|
$licenze = $zoom->getInfoLicenze(); |
|
$disponibili = 0; |
|
if (!$_SESSION["demoEnv"]) { |
|
if (!empty($licenze["plan_base"]["type"]) && $licenze["plan_base"]["type"] == "apimonthly_c50") { |
|
$disponibili = $licenze["plan_base"]["hosts"] - $licenze["plan_base"]["usage"]; |
|
if ($disponibili > 0) { |
|
?> |
|
<div class="float-right alert alert-primary p-2 mx-1"> |
|
<?= __("Licenze disponibili") ?>: <?= $disponibili ?> |
|
</div> |
|
<? |
|
} |
|
} else { |
|
?> |
|
<div class="float-right alert alert-danger p-2 mx-1"> |
|
<?= __("Errore verifca licenze") ?> |
|
</div> |
|
<? |
|
} |
|
} |
|
if ($disponibili > 0 || $_SESSION["demoEnv"]) { |
|
?> |
|
<button onClick="swal({title:'<?= __("Confermi la crezione di un nuovo host?") ?>',type:'question', showCancelButton: true,confirmButtonColor: '#3085d6',cancelButtonColor: '#d33',confirmButtonText: js_dict.conferma,cancelButtonText: js_dict.annulla,closeOnConfirm: true}).then((result) => { if (result.value) { $.ajax({url:'/backend/conference/providers/zoom/create.php',dataType: 'script', success: function(result) { result; }, error: function() { swal(js_dict['error-retry']);}}) }});" class="btn btn-success" title="<?= __('Aggiungi nuovo') ?>"><span class="fa fa-plus-circle"></span> <?= __('Aggiungi nuovo') ?></a> |
|
<? } else { |
|
?> |
|
<div class="float-right alert alert-danger p-2 mx-1"> |
|
<?= __("Nessuna licenza disponibile") ?> |
|
</div> |
|
<? |
|
} ?> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
$hosts = zoomMtg::getHosts(false); |
|
if (!empty($hosts)) { |
|
?> |
|
<div class="card mb-2"> |
|
<div class="card-body"> |
|
<div class="table-responsive"> |
|
<h2 id="table-title"></h2> |
|
<table class="table table-striped table-hover" id="tab-data" width="100%"> |
|
<thead> |
|
<tr> |
|
<th width="300"><?= __("ID") ?></th> |
|
<th width="300"><?= __("USERNAME") ?></th> |
|
<th><?= __("E-MAIL") ?></th> |
|
<th width="10"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
foreach($hosts AS $host) { |
|
$codice = $host["codice"]; |
|
$host = json_decode($host["other"],TRUE); |
|
?> |
|
<tr> |
|
<td><?= $host["id"] ?></td> |
|
<td><?= $host["first_name"] . " " . $host["last_name"] ?></td> |
|
<td><?= $host["email"] ?></td> |
|
<td> |
|
<button type="button" onClick="elimina('<?= $codice ?>','conference/providers/zoom'); return false" class="btn btn-sm btn-danger"> |
|
<span class="fa fa-times"></span> |
|
</button> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
} else { |
|
alertManager::printWarningBox(__("Nessun risultato")); |
|
} |
|
} |
|
?>
|
|
|