$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"); $stati = stipula::getStati(); $badge = stipula::getCountBadge(); $bind = [":codice_gestore"=>$_SESSION["ente"]->codice]; $sql = "SELECT codice FROM b_contratti WHERE codice_gestore = :codice_gestore "; if ($_SESSION["utente"]->gerarchia > 10) { $ids = Utente::getPermissionsInModulo($_SESSION["ente"]->codice,$_SESSION["utente"]->codice,"contratti"); $ids = implode(",",$ids); $sql .= " AND codice IN ({$ids}) "; } if (!$_SESSION["utente"]->fromHere()) { $sql .= " AND codice_ente = :codice_ente"; $bind[":codice_ente"] = $_SESSION["utente"]->codice_ente; } $risultato = $pdo->go($sql,$bind); ?>
| = __("ID") ?> | = __("Oggetto") ?> | = __("Valore totale") ?> | = __("Data Stipula") ?> | = __("Data inizio") ?> | = __("Data Fine") ?> | if($_SESSION['ente']->hasModulo('contratti.documentale')){ ?>= __('Stato Risposte') ?> | }else{ ?>} ?> |
|---|