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.
84 righe
3.5 KiB
84 righe
3.5 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "rendicontazione"; |
|
$cmd_info = gara::getInfoModulo($id_modulo); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice"],$id_modulo) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"])) { |
|
$codice_round = $_GET["codice_round"] ?? NULL; |
|
$gara = gara::init($_GET["codice"],$codice_round); |
|
if (!empty($gara)) { |
|
$titolo_modulo = __($cmd_info["titolo"]); |
|
|
|
$record = $gara->info; |
|
$round = $gara->round; |
|
$breadcrumb = array(); |
|
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb["/".$radice."/panel.php?codice=".$record["codice"]."&codice_round=".$round["codice"]] = __("Pannello"); |
|
$breadcrumb[""] = $titolo_modulo; |
|
|
|
include_once ($beRoot."/layout/top.php"); |
|
|
|
$versamenti = $gara->getExtraInfo()["gara"]["versamenti"] ?? []; |
|
|
|
?><h1><?= $titolo_modulo ?></h1> |
|
<form rel="validate" method="post" action="save.php" id="edit-form"> |
|
<input id="token" type="hidden" name="token" value="<?= tokenGen() ?>"> |
|
<input id="codice" type="hidden" name="codice" value="<?= $record["codice"] ?>"> |
|
<div class="card"> |
|
<div class="card-header"> |
|
<div class="form-inline float-right"> |
|
<label for="contributoSUA"><?= __("Contributo dovuto") ?></label> |
|
<input name="contributoSUA" id="contributoSUA" title="<?= __("Contributo dovuto") ?>" rel="S;0;0;2D" class="ml-3 form-control text-right" value="<?= number_format($record["contributoSUA"],2,".","") ?>"> |
|
</div> |
|
</div> |
|
<div class="card-body m-0 p-0"> |
|
<table class="table table-hover table-striped"> |
|
<thead> |
|
<tr> |
|
<th width="150"><?= __("Data") ?></th> |
|
<th width="150"><?= __("Versato") ?></th> |
|
<th><?= __("Note") ?></th> |
|
<th width="10"></th> |
|
</tr> |
|
</thead> |
|
<tbody id="versamenti"> |
|
<? |
|
if (!empty($versamenti)) { |
|
$versamenti = json_decode($versamenti,true); |
|
$id = 0; |
|
foreach($versamenti AS $versamento) { |
|
$id++; |
|
include(__DIR__."/edit.php"); |
|
} |
|
} |
|
?> |
|
</tbody> |
|
<tfoot> |
|
<tr> |
|
<td><?= __("Totale") ?></td> |
|
<td class="text-right"><strong><?= "€ " . number_format($record["contributoSUAVersato"],2,",",".") ?></strong></td> |
|
<td colspan="2"></td> |
|
</tr> |
|
</tfoot> |
|
</table> |
|
</div> |
|
<div class="card-footer"> |
|
<button type="button" class="btn btn-info btn-block" onClick="aggiungi('edit.php?codice_gara=<?= $record["codice"] ?>','#versamenti');"> |
|
<span class="fa fa-plus"></span> <?= __("Aggiungi incasso") ?> |
|
</button> |
|
</div> |
|
</div> |
|
<button class="btn btn-block btn-lg btn-warning"><span class="fa fa-save"></span> <?= __("Salva") ?></button> |
|
|
|
</form> |
|
<? |
|
include_once ($beRoot."/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(); |
|
} |
|
?>
|
|
|