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.
 
 
 
 
 

42 righe
1.9 KiB

<?
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
$error = true;
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->gerarchia === 1) {
$error = false;
$pending = getPendingTranslations();
if (!empty($pending)) {
?>
<a href="/backend/vocabolario/downloadPending.php" class="btn btn-lg btn-warning btn-block" target="_blank">
<span class="fa fa-download"></span> <?= __("Download traduzioni pendenti") ?>
</a>
<a href="/backend/vocabolario/downloadFull.php" class="btn btn-lg btn-success btn-block" target="_blank">
<span class="fa fa-download"></span> <?= __("Download vocabolario completo") ?>
</a>
<form id="edit-form" action="/backend/vocabolario/upload.php" rel="validate" method="post">
<input id="token" type="hidden" name="token" value="<?= tokenGen() ?>">
<input id="codice" type="hidden" name="codice" value="<?= $richiesta["codice"] ?>">
<input id="codice" type="hidden" name="codice_relazione" value="<?= $relazione["codice"] ?>">
<input type="hidden" rel="S;1;0;A" title="<?= __("file") ?>" name="filechunk" value="" id="file-filechunk">
<?
filesManager::insertUploadForm('$("#file-filechunk").val(file.name);$("#confirm-button").slideDown();',null,["allowedTypes"=>[".json"],"maxNumberOfFiles"=>1])
?>
<button class="btn btn-lg btn-primary btn-block" id="confirm-button" style="display:none">
<span class="fa fa-paper-plane"></span> <?= __("invia") ?>
</button>
</form>
<?
} else {
?>
<h1 class="alert alert-success text-center">
<span class="fa fa-check fa-3x"></span><br>
<?= __("Nessuna traduzione da verificare") ?>
</h1>
<?
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>