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.8 KiB
52 righe
1.8 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "rating"; |
|
$cmd_info = stipula::getInfoModulo($id_modulo); |
|
$error = true; |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission("vendor-rating-request") && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"],$_GET["codice_contratto"],$id_modulo)) { |
|
$contratto = stipula::init($_GET["codice_contratto"]); |
|
$record = $contratto->info; |
|
$tmp = $contratto->getContraenti("oe"); |
|
$contraenti = []; |
|
foreach($tmp AS $oe) { |
|
if (!empty($oe["codice_operatore"])) { |
|
$contraenti[] = $oe; |
|
} |
|
} |
|
if (!empty($contraenti)) { |
|
$oggetto = $record["cig"] . " - " . $record["oggetto"]; |
|
$error = false; |
|
?> |
|
<table class="table table-hover table-striped"> |
|
<thead> |
|
<tr> |
|
<th><?= __("Aggiudicatario") ?></th> |
|
<th width="200"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
foreach($contraenti AS $oe) { |
|
?> |
|
<tr> |
|
<td><?= oeManager::getOE($oe["codice_operatore"])["ragione_sociale"] ?></td> |
|
<td> |
|
<button class="btn btn-block btn-warning" type="button" onClick="showModalWithURL('/backend/vendor-rating/request/form.php?riferimento=contratti&elemento=<?= $record["codice"] ?>&oggetto=<?= base64_encode($oggetto) ?>&codice_operatore=<?= $oe["codice_operatore"] ?>')"> |
|
<span class="far fa-star"></span> <?= __("Richiedi valutazione") ?> |
|
</button> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
<? |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|