-
Notifications
You must be signed in to change notification settings - Fork 1
/
handle_personal_doc_models.php
31 lines (31 loc) · 1.13 KB
/
handle_personal_doc_models.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
require_once "inc/head.php";
require_once "crux/printFunctions.php";
extract($_GET);
if(!isset($id_model)) {
if ($gest->checkSuperUser()) {
$gest->getDoc_model();
} else {
$gest->getUserData($_SESSION['user_id']);
extract($gest->results[0]);
if ($operativo == 1) $access_level = 1;
else $access_level = 2;
$gest->reset();
$gest->getDoc_model(null, $access_level);
} ?>
</br>
<div id="maincontent">
<h1>Consulta le tue Dichiarazioni</h1><br>
<div class="container">
<?php
$addFields = ['<a href=handle_personal_doc_models.php?id_model=%id%>%print%</a>'];
printTable("print_doc_models_choose_model", ['Titolo', 'Stampa il documento'], $gest->results, "file", ['titolo'], null, $addFields);
}else{
$gest->reset();
$gest->getDoc_model($id_model);
extract($gest->results[0]);
printDoc_model(0, $titolo, $fixed_date, $giorno, $t1, $t2, $t3, $particella, $auto_user_data, $data_field, null, $_SESSION['user_id'], $pres_sign, $header_doc_model);
$gest->addLog("visualizzato il modello dal titolo ".$titolo." [personale]", true);
}?>
</div>
</div>