-
Notifications
You must be signed in to change notification settings - Fork 0
/
oneri.tariffe.php
133 lines (116 loc) · 3.34 KB
/
oneri.tariffe.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?
include_once("login.php");
include_once "./lib/tabella_v.class.php";
include_once "./lib/tabella_h.class.php";
$titolo=$_SESSION["TITOLO_$idpratica"];
$modo=(isset($_REQUEST["mode"]))?($_REQUEST["mode"]):('view');
$tabpath="oneri";
if (in_array($_POST["azione"],Array("Salva","Annulla","Elimina"))) {
error_reporting(E_ALL);
include("./db/db.oneri.tariffe.php");
}
$id=($_REQUEST["id"])?(($_REQUEST["id"])):($_SESSION["ADD_NEW"]);
?>
<html>
<head>
<title>Parametri Oneri</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<SCRIPT language="javascript" src="js/LoadLibs.js" type="text/javascript"></SCRIPT>
<script LANGUAGE="JavaScript">
function confirmSubmit()
{
var msg='Sicuro di voler eliminare definitivamente la rata corrente?';
var agree=confirm(msg);
if (agree)
return true ;
else
return false ;
}
</script>
</head>
<body background="">
<?
include "./inc/inc.page_header.php";
if (in_array($modo,Array("edit","new"))){
$tabella=new tabella_v("$tabpath/tariffe",$modo);?>
<!-- <<<<<<<<<<<<<<<<<<<<< MODALITA' FORM IN EDITING >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
<FORM id="tariffe_alghero" name="tariffe_alghero" method="post" action="oneri.tariffe.php">
<TABLE cellPadding=0 cellspacing=0 border=0 class="stiletabella" width="99%" align="center">
<tr>
<td>
<!-- intestazione-->
<H2 class="blueBanner">Tariffe Oneri</H2>
<!-- fine intestazione-->
</td>
</tr>
<tr>
<td>
<!-- contenuto-->
<?if($Errors){
$tabella->set_errors($Errors);
$tabella->set_dati($_POST);
}
elseif ($modo=="edit"){
$tabella->set_dati("id=$id");
}
$tabella->edita();?>
<!-- fine contenuto-->
</td>
</tr>
</TABLE>
<table>
<input name="mode" type="hidden" value="<?=$modo?>">
<input name="active_form" type="hidden" value="oneri.tariffe.php">
</FORM>
<?}
elseif($modo=="view"){?>
<TABLE cellPadding=0 cellspacing=0 border=0 class="stiletabella" width="99%" align="center">
<TR>
<TD>
<?
unset($_SESSION["ADD_NEW"]);
$tabella=new tabella_v("$tabpath/tariffe",$modo);
$tabella->set_titolo("Tariffe Oneri",'modifica',Array("mode"=>"edit"));
$tabella->set_dati("id=$id");
$tabella->elenco();?>
</TD>
</TR>
</TABLE>
<?php
}
else{
//-- <<<<<<<<<<<<<<<<<<<<< MODALITA' FORM IN VISTA DATI >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--->
?>
<H2 class="blueBanner">Elenco Tariffe Oneri</H2>
<TABLE cellPadding=0 cellspacing=0 border=0 class="stiletabella" width="100%">
<TR>
<TD>
<!-- contenuto-->
<?php
unset($_SESSION["ADD_NEW"]);
$tabella=new tabella_h("$tabpath/tariffe","list");
$nrec=$tabella->set_dati("true");
$tabella->set_titolo("Tariffe Oneri","nuovo",array("id"=>""));
$tabella->get_titolo();
$tabella->elenco();
?>
<!-- fine contenuto-->
</TD>
</TR>
</TABLE>
<button id="btn_close" />
<script>
$('#btn_close').button({
icons:{
primary:'ui-icon-circle-close '
},
label:'Chiudi'
}).click(function(){
window.opener.focus();
window.close();
});
</script>
<?}?>
</body>
</html>