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.
72 righe
3.2 KiB
72 righe
3.2 KiB
<? |
|
if (isset($root)) { |
|
?> |
|
<div id="commands" class="mb-5"> |
|
<div class="commands container-fluid"> |
|
<div class="row"> |
|
<div class="col-12 text-right"> |
|
<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/gotomeeting/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> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
$hosts = goToMtg::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="10"></th> |
|
<th width="300">ID</th> |
|
<th>E-MAIL</th> |
|
<th width="200"></th> |
|
<th width="10"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
foreach($hosts AS $host) { |
|
$codice = $host["codice"]; |
|
$host = json_decode($host["other"],TRUE); |
|
$token = goToMtg::getLastToken($_SESSION["ente"]->codice,$codice); |
|
?> |
|
<tr> |
|
<td><span class='fa fa-<?= (empty($token)) ? "exclamation-triangle text-danger" : "check text-success" ?>'></span> |
|
<td><?= $host["key"] ?></td> |
|
<td><?= $host["email"] ?></td> |
|
<td> |
|
<? if (empty($token)) { ?> |
|
<button class="btn btn-block btn-sm btn-warning" onClick="showModalWithURL('providers/gotomeeting/token.php?codice=<?= $codice ?>')"> |
|
<?= __("Genera token"); ?> |
|
</button> |
|
<? } else { ?> |
|
<button class="btn btn-block btn-sm btn-info" onClick="showModalWithURL('providers/gotomeeting/meeting.php?codice=<?= $codice ?>')"> |
|
<?= __("Meeting programmati"); ?> |
|
</button> |
|
<? } ?> |
|
</td> |
|
<td> |
|
<button type="button" onClick="elimina('<?= $codice ?>','conference/providers/gotomeeting'); 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")); |
|
} |
|
} |
|
?>
|
|
|