-
Notifications
You must be signed in to change notification settings - Fork 0
/
mycontabilita.php
146 lines (117 loc) · 4.31 KB
/
mycontabilita.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
134
135
136
137
138
139
140
141
142
143
144
145
146
<?php
// Main page della contabilità dell'oratorio
// Sviluppatore: Marco Fogliadini
// Agosto 2009
// Versione pagina: 1.0
require('accesso_db.inc');
//require("funzioni_generali.inc"); // da prendere sul server di produzione: non ce l'ho!
session_start();
$postback = $_POST['postback'];
$host = $_SERVER['HTTP_HOST'];
$_SESSION['authenticated_user']=true; // da togliere quando la pagina sarà sul server di produzione
// controllo l'autenticazione
if (!isset($_SESSION['authenticated_user'])) {
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
header("Location: http://$host$uri/logon.php");
exit();
}
$idoperatore = $_SESSION['authenticated_user_id'];
ConnettiDB();
// Crea l'array $giorni per il calcolo della data
$giorni=array(
0=>"domenica",
1=>"luned"."ì",
2=>"marted"."ì",
3=>"mercoled"."ì",
4=>"gioved"."ì",
5=>"venerd"."ì",
6=>"sabato");
// Crea l'array $mesi per il calcolo della data
$mesi=array(
1=>"gennaio",
2=>"febbraio",
3=>"marzo",
4=>"aprile",
5=>"maggio",
6=>"giugno",
7=>"luglio",
8=>"agosto",
9=>"settembre",
10=>"ottobre",
11=>"novembre",
12=>"dicembre");
// prende dal sistema (server) la data corrente
$myData=getdate(time());
// costruisce la stringa contenente la data formattata
$Data=$giorni[$myData["wday"]]." ".$myData["mday"]." ".$mesi[$myData["mon"]]." ".$myData["year"];
$data_server=date('d/m/Y');
?>
<html>
<head>
<title>Oratorio Saint-Martin / Contabilità</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="./css/style_contabilita_ff.css" rel="stylesheet" type="text/css" />
<?php
// da togliere i comandi di apertura e fine di php. Fatto soltanto per remmare lo script html
// <script type="text/javascript" src="./js/funzioni.js"></script>
?>
</head>
<body>
<!-- inizio sezione intestazione. Questa sezione contiene il logo dell'oratorio -->
<div id="barratop">
</div>
<div id="barrabottom">
</div>
<div id="intestazione">
<img src ="./Immagini/logoratorio.png" width="40" height="40" alt="Logo Oratorio Saint-Martin" />
</div>
<div id="scritta_barra">
ORATORIO SAINT MARTIN
</div>
<div id="scritta_contabilita">
contabilità > menù principale
</div>
<!-- fine sezione intestazione. -->
<!-- INIZIO SEZIONE MENU -->
<div id="mainmenu">
<div id="gestionecapitoli">
<img src ="./Immagini/capitoli.gif" alt="" />
</div>
<div id="scrittagestionecapitoli">
<a href="">Gestione Capitoli</a>
</div>
<div id="gestionevoci">
<img src ="./Immagini/contabilita.png" width="110" height="140" alt="" />
</div>
<div id="scrittagestionevoci">
<a href="">Gestione Voci</a>
</div>
<div id="stampamovimenti">
<img src ="./Immagini/stampante.gif" width="130" height="110" alt="" />
</div>
<div id="scrittastampamovimenti">
<a href="">Stampa Movimenti</a>
</div>
<div id="gestionebilancio">
<img src ="./Immagini/contabilita.gif" width="130" height="130" alt="" />
</div>
<div id="scrittagestionebilancio">
<a href="">Gestione Bilancio</a>
</div>
</div>
<div id="barrabottom">
</div>
<div id="homepage">
| <a href="homepage.php">home page</a> |
</div>
<div id="versione">
versione 1.0
</div>
<div id="mydata">
<?php echo ($Data);?>
</div>
</body>
</html>