$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(false); $bind = array(":codice_ente"=>(!empty($_SESSION["utente"]->codice_ente)) ? $_SESSION["utente"]->codice_ente : $_SESSION["ente"]->codice); $sql = "SELECT b_concorsi.codice FROM b_concorsi JOIN (SELECT MAX(codice) AS last_round, codice_concorso, scadenza FROM b_concorsi_round GROUP BY codice_concorso) AS last_concorso_round ON b_concorsi.codice = last_concorso_round.codice_concorso JOIN b_concorsi_round ON last_concorso_round.last_round = b_concorsi_round.codice WHERE b_concorsi_round.scadenza < NOW() AND b_concorsi_round.scadenza > 0 AND b_concorsi.stato = 20"; $scadute = $pdo->go($sql); if ($scadute->rowCount() > 0) { while ($scaduta = $scadute->fetch(PDO::FETCH_ASSOC)) { $pdo->go("UPDATE b_concorsi SET stato = 21 WHERE stato = 20 AND codice = :codice",[":codice"=>$scaduta["codice"]]); } } ?>
| = __("ID") ?> | = __("CIG") ?> | = __("Oggetto") ?> | = __("Valore") ?> | if (!empty($enti)) { ?>= __("Beneficiario") ?> | } ?>
|---|