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.
 
 
 
 
 

43 righe
1.3 KiB

<?php
$error = true;
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
include_once("{$beRoot}/guue/class/FormGenerator.class.php");
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice)) {
$schede = NuovaPiattaformaAppalti::getInitialCards();
array_walk($schede, function(&$value, $key) {
if(empty($value["titolo"])) { $value["titolo"] = __("Titolo non definito"); }
$value = str_replace("_", ".", $key) . ") {$value["titolo"]}";
});
$select = [
'name' => 'scheda',
'title' => "Tipologia scheda",
'attrs' => [
'rel' => 'S;1;0;A'
],
'options' => $schede
];
$form = new FormGenerator;
$error = false;
?>
<div class="row">
<div class="col-12">
<h3><?= __("Inserimento nuova pubblicazione scheda NPA") ?></h3>
</div>
</div>
<form action="edit.php" method="GET" rel="validate" target="_self">
<div class="row my-4">
<?= $form->select($select) ?>
<div class="col-12">
<button type="submit" class="btn btn-primary btn-block"><?= __("Crea un nuovo form") ?></button>
</div>
</div>
</form>
<?
}
if($error) header('HTTP/1.0 403 Forbidden');