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.
52 righe
1.9 KiB
52 righe
1.9 KiB
<? |
|
if (!isset($root)) { |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->permission("gare")) { |
|
$oe = (int) $_GET["codice_operatore"]; |
|
} |
|
} |
|
if (isset($oe)) { |
|
$premialita = (settingsManager::getValue("premialitaOEVR-positivo") == "S"); |
|
$soglia = settingsManager::getValue("premialitaOEVR-soglia"); |
|
$operatore = oeManager::getOE($oe); |
|
?> |
|
<tr id="tr-invitato-<?= $operatore["codice"] ?>"> |
|
<td><?= $operatore["codice_fiscale_impresa"] ?></td> |
|
<td><?= $operatore["ragione_sociale"] ?></td> |
|
<td><?= $operatore["pec"] ?></td> |
|
<td width="100"> |
|
<? |
|
if ($premialita) { |
|
$score = vendorRating::getCurrentScore($operatore["codice"]); |
|
if ($score >= $soglia) { |
|
$premialitaAssegnata = vendorRating::getPremialita($operatore["codice"]); |
|
if (!empty($premialitaAssegnata)) { |
|
?> |
|
<span class="d-block badge badge-info"> |
|
<?= __("Premialità assegnata") ?> |
|
</span> |
|
<? |
|
} else { |
|
?> |
|
<div class="btn-group-toggle" data-toggle="buttons"> |
|
<label class="btn btn-block btn-sm btn-secondary"> |
|
<input type="checkbox" name="premialita[]" value="<?= $operatore["codice"] ?>"> <?= __("Premialità") ?> |
|
</label> |
|
</div> |
|
<? |
|
} |
|
} |
|
} |
|
?> |
|
<? if (empty($lock)) { ?> |
|
<button type="button" onClick="invitaOperatore('<?= $operatore["codice"] ?>')" class="btn btn-block btn-danger btn-sm"> |
|
<span class="fa fa-times"></span> |
|
<?= __("Elimina") ?> |
|
</button> |
|
<? } ?> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
?>
|