$error = true;
if (!isset($root)) {
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php";
include_once($configPath);
}
if (isset($_SESSION["utente"])) {
if (empty($servizio)) {
$servizio = get_campi("b_oe_servizi_tecnici");
$servizio["servizi"] = [get_campi("r_oe_servizi_tecnici")];
$id = $_POST["id"];
}
if (!empty($servizio)) {
$error = false;
?>
= __("Categoria") ?>
= __("Importo del servizio/lavoro") ?>
= __("Percentuale di partecipazione") ?>
$first = true;
foreach($servizio["servizi"] AS $categoriaServizio) {
$idServizio = (!empty($categoriaServizio["codice"])) ? $categoriaServizio["codice"] : "new";
include(__DIR__."/tr-servizio.php");
$first = false;
}
?>
}
}
if ($error) {
header('HTTP/1.0 403 Forbidden');
die();
}
?>