gestione gare pubbliche
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.
 
 
 
 
 

43 righe
1.6 KiB

<?
$error = true;
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->gerarchia < 10) {
if (isset($_GET["codice_ente"]) && (isset($_GET["codice_pec"]))) {
$sql = "SELECT codice, indirizzo, oggetto, timestamp_creazione FROM b_coda WHERE codice_pec = :codice_pec AND codice_ente = :codice_ente";
$ris_coda = $pdo->go($sql,[":codice_ente"=>$_GET["codice_ente"],":codice_pec"=>$_GET["codice_pec"]]);
if ($ris_coda->rowCount()>0) {
$error = false;
?>
<table class="table table-striped table-condensed">
<thead>
<tr>
<th><?= __("destinatario") ?></th>
<th><?= __("oggetto") ?></th>
<th><?= __("Data e ora") ?></th>
<th></th>
</tr>
</thead>
<tbody>
<?
while($messaggio = $ris_coda->fetch(PDO::FETCH_ASSOC)) {
?>
<tr>
<td><?= $messaggio["indirizzo"] ?></td>
<td><?= $messaggio["oggetto"] ?></td>
<td><?= $messaggio["timestamp_creazione"] ?></td>
<td><button class="btn btn-sm btn-danger" onclick="elimina('<?= $messaggio["codice"] ?>','gestione-coda'); return false;" title="<?= __('Attiva/Disattiva') ?>"><span class="fa fa-times"></span></button></td>
<?
}
?>
</tbody>
</table>
<?
}
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>