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.
 
 
 
 
 

67 righe
2.5 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
if (!function_exists("fatal_handler")) {
function fatal_handler() {
$error = error_get_last();
if( $error !== NULL && ($error['type'] === E_ERROR || $error['type'] === E_USER_ERROR))
{
global $record;
?>
<h3 class="alert alert-danger"><?= __("errore") . " " . __("upload") ?></h3>
<? if (!empty($record["codice"])) { ?>
<a class="btn btn-block btn-danger" href="partecipa.php?codice=<?= $record["codice"] ?>"><?= __('Indietro') ?></a>
<? }
}
}
}
register_shutdown_function('fatal_handler');
if (!empty($_SESSION["utente"]) && !empty($_POST["codice_lotto"])) {
$gara = publicGara::init($_POST["codice_gara"]);
if (!empty($gara)) {
if ($gara->setLotto($_POST["codice_lotto"])) {
$record = $gara->info;
$round = $gara->round;
$lotto = $gara->lotto;
$breadcrumb = array();
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"];
$breadcrumb["/".$radice."/dettaglio.php?codice={$record["codice"]}&codice_lotto={$lotto["codice"]}"] = __("Dettaglio");
$breadcrumb["partecipa.php?codice={$record["codice"]}&codice_lotto={$lotto["codice"]}"] = __("Pannello");
$breadcrumb[] = __("Carica documento");
include_once ($root."/layout/top.php");
?>
<div class="container">
<?
?>
<h3><?= $record["oggetto"] ?></h3>
<?
$esito = $gara->getManagerPartecipazione()->saveBusta($_POST);
if ($esito["esito"] === true) {
alertManager::printSuccessBox(__("Operazione effettuata con successo"),"Hash SHA 256:" . $esito["feedback"]);
} else {
alertManager::printAlertBox(__($esito["feedback"]));
}
?>
<a class="btn btn-block btn-lg btn-primary" href="partecipa.php?codice=<?= $record["codice"] ?>&codice_lotto=<?= $lotto["codice"] ?>">
<?= __("Torna al pannello per continuare le operazioni") ?>
</a>
</div>
<?
include_once ($root."/layout/bottom.php");
} else {
echo '<meta http-equiv="refresh" content="0;URL=/index.php">';
die();
}
} else {
echo '<meta http-equiv="refresh" content="0;URL=/index.php">';
die();
}
} else {
echo '<meta http-equiv="refresh" content="0;URL=/index.php">';
die();
}
?>