$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice)) { include_once ($beRoot."/layout/top.php"); $enti = $_SESSION["utente"]->getEntiBeneficiari(); $bind = array(":codice_ente"=>(!empty($_SESSION["utente"]->codice_ente)) ? $_SESSION["utente"]->codice_ente : $_SESSION["ente"]->codice); $sql = "SELECT b_gare.codice FROM b_gare JOIN (SELECT MAX(codice) AS last_round, codice_gara, scadenza FROM b_gare_round GROUP BY codice_gara) AS last_gara_round ON b_gare.codice = last_gara_round.codice_gara JOIN b_gare_round ON last_gara_round.last_round = b_gare_round.codice WHERE b_gare_round.scadenza < NOW() AND b_gare_round.scadenza > 0 AND b_gare.stato = 20"; $scadute = $pdo->go($sql); if ($scadute->rowCount() > 0) { while ($scaduta = $scadute->fetch(PDO::FETCH_ASSOC)) { $pdo->go("UPDATE b_gare SET stato = 21 WHERE stato = 20 AND codice = :codice",[":codice"=>$scaduta["codice"]]); } } ?>
| = __("ID") ?> | = __("CIG") ?> | = __("Tipologia") ?> | = __("Procedura") ?> | = __("Oggetto") ?> | = __("Valore totale") ?> | if (!empty($enti)) { ?>= __("Beneficiario") ?> | } ?>= __("Utente creatore") ?> |
|---|