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.
68 righe
2.2 KiB
68 righe
2.2 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
|
|
$error = true; |
|
if ($_SESSION['ente']->hasModulo('contratti.documentale') && !empty($_SESSION["utente"]->oe) && $_GET['codice_contratto'] && $_GET['codice_richiesta'] && $_GET['codice_classe_documentale']) { |
|
|
|
$codice_contratto = $_GET['codice_contratto']; |
|
$codice_richiesta = $_GET['codice_richiesta']; |
|
$codice_classe_docuentale = $_GET['codice_classe_documentale']; |
|
|
|
if (!empty($_GET['codice_soggetto_oe'])) { |
|
$codice_soggetto_oe = $_GET['codice_soggetto_oe']; |
|
} |
|
|
|
$managerContratto = publicStipula::init($codice_contratto); |
|
if(!empty($managerContratto)){ |
|
$error = false; |
|
|
|
$classe_documentale = ContrattoDocumentale::getInfo($codice_classe_docuentale)->info ?? null; |
|
|
|
if (!empty($classe_documentale['codice'])) { |
|
?> |
|
<div class="card"> |
|
<div class="card-header"> |
|
<h3 class="card-title m-0" data-target="#send-risposta"><span class="fa fa-paper-plane"></span><?= __('Invia') ?> </h3> |
|
</div> |
|
<div class="card-body"> |
|
<? |
|
$path = __DIR__."/partials/formInvioRisposta.php"; |
|
if(file_exists($path)){ |
|
include($path); |
|
} |
|
?> |
|
</div> |
|
</div> |
|
<? |
|
}else{ |
|
?> |
|
<div class="card"> |
|
<div class="card-body"> |
|
<div class="row"> |
|
<div class="col-12"> |
|
<? alertManager::printAlertBox(__("Errore nella visualizzazione")); ?> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
} |
|
|
|
?> |
|
<script> |
|
modalURL = []; |
|
backModalHelper = function() { |
|
showModalWithURL('/contratti/documentale/gestioneRisposte/managerRisposte.php?codice_contratto=<?=$codice_contratto?>&codice_richiesta=<?=$codice_richiesta?>'); |
|
} |
|
</script> |
|
<? |
|
} |
|
} |
|
|
|
if($error){ |
|
header('HTTP/1.0 403 Forbidden'); |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
?>
|