-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontatti.php
More file actions
312 lines (254 loc) · 10.3 KB
/
contatti.php
File metadata and controls
312 lines (254 loc) · 10.3 KB
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
<?php
include 'includes/funzioni.php';
session_start();
$bottone_login = '<a class="loginn" href="login.php">Login</a>';
$bottone_utente = '<a class="" href="registrazione.php">Registrati</a>';
$utenti = '';
//controllo se l'utente e amministratore
if (isset($_SESSION["amministratore"]) && $_SESSION["amministratore"] == 1) {
$bottone_login = '<form action="login.php" method="post"><input type="submit" id="loginn" name="logout" value="Logout"></form>';
$utenti = '<li class=""><a href="areaadmin.php">Area Admin</a></li>';
$bottone_utente = '';
//se è un utente loggato sostituisco il bottone di login con quello di logout e inserisco il bottone per la gestione area personale
} elseif (isset($_SESSION["login"])) {
$username = $_SESSION['login'];
$tipo = tipoUtente($username); //richiamo la funzione tipo utente e inserisco il valore in una variabile
$bottone_login = '<form action="login.php" method="post"><input type="submit" id="logout" name="logout" value="Logout"> </form>';
if ($tipo == 'reg') { //se il valore che la funzione mi ha restituito e di utente standard genera il bottone area privata
$utenti = '<li class=""><a href="utenti.php">Area Privata</a></li>';
$bottone_utente = ''; //tolgo bottone registrati
} else {
$utenti = '<li class=""><a href="areaadmin.php">Area Admin</a></li>';
$bottone_utente = '';
}
//nel caso venga cliccato logout distruggo la sessione e genero nuovamente il tasto login invece che log out
if (isset($_POST['logout']) == true) {
$bottone_login = '<a id="loginn" href="login.php">Login</a>';
$utenti = '';
session_destroy();
}
}
?>
<!DOCTYPE html>
<html lang=it dir="ltr">
<head>
<meta charset="utf-8">
<meta name="keywords" content= "Web design, grafica, html, css" />
<meta name="description" content="sito web di Francesco Lazzarotto" />
<meta name=“author" content=“Francesco Lazzarotto" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="shortcut icon" href="immagini/logo.jpg" type="image/jpg">
<title> Esame Lazzarotto Francesco (Sito Palestra) </title>
<link rel="stylesheet" href="../assets/style.css" type="text/css">
<style>
.social-section {
align-items: center;
display: flex;
align-items: center;
margin: 20px;
position: relative;
z-index: 1;
}
.photo {
flex: 1;
padding: 20px;
padding-left: 300px;
}
.image-overlay {
position: relative;
}
.overlay-text {
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 20px;
width: 100%;
text-align: left;
.ft {
width: 100%;
margin-top: 100px;
max-width: 400px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
border-radius: 8px;
transition: transform 0.2s ease;
}
.ft:hover {
transform: scale(1.05);
}
.social-logos {
flex: 1;
display: flex;
flex-direction: column;
}
.social-logo {
margin: 10px 0;
display: flex;
align-items: center;
}
.social-logo img {
width: 40px;
height: 40px;
margin-right: 10px;
}
.social-description {
font-size: 16px;
text-transform: uppercase;
font-family: Arial black;
padding-left: 30px;
}
.fa {
padding: 20px;
font-size: 30px;
width: 50px;
text-align: center;
text-decoration: none;
margin: 5px 2px;
}
.fa:hover {
opacity: 0.7;
}
.fa-linkedin {
background: #007bb5;
color: white;
}
.fa-instagram {
background: #125688;
color: white
;
}
.fa-facebook {
background: #3B5998;
color: white;
}
.fa-twitter {
background: #55ACEE;
color: white;
}
</style>
</head>
<body>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$(document).ready(function() {
var menu = $(".menu");
var lastScrollTop = 0;
var scrollPoint = 875;
$(window).scroll(function() {
var st = $(this).scrollTop();
if (st > lastScrollTop) {
if (st >= scrollPoint) {
menu.css('background', '#222');
}
} else {
if (st < scrollPoint) {
menu.css('background', 'transparent');
}
}
lastScrollTop = st;
});
});
</script>
<a name="inizio"></a>
<nav id="navigation" class="menu">
<table>
<br>
<td>
<ul>
<li><a href="../../index.php">Home </a></li>
<li><a href="corsi.php"> Corsi</a></li>
<li> <a href="benefici.php"> Benefici </a> </li>
<li><a href="contatti.php">Contatti </a></li>
<?php echo $utenti ?>
<li id="logoutpos">
<?php echo $bottone_login ?>
</li>
<li>
<?php echo $bottone_utente ?>
</li>
</ul>
</td>
</tr>
</table>
</nav>
<div class="parallax-container">
<div id="sfondohome2"> <div class="testo11"> Come trovarci? </div>
<div class="testopiccolo1"> <br> Tel : 339 241 75 25 <br> Via Silvio Pellico 10/a - Torino <br> <br> </div>
<div class="testo1">
Se non trovi informazioni o hai bisogno di aiuto <br>
contatta l'assistenza! <br>
<a href="assistenza.php" class="bottone1">Contatta l'assistenza</a>
</div>
</div>
</div>
<section style="margin-top: 10%; display: flex; justify-content: center; align-items: center; gap: 30px; padding: 20px; margin-bottom: 8%; ">
<!-- Facebook Icon -->
<a href="https://www.facebook.com" target="_blank" style="text-decoration: none;">
<div style="width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; background-color: #4267B2; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: transform 0.3s, box-shadow 0.3s;">
<img src="https://img.icons8.com/ios-glyphs/60/ffffff/facebook-new.png" alt="Facebook" style="width: 50px; height: 50px;">
</div>
</a>
<!-- Twitter Icon -->
<a href="https://www.twitter.com" target="_blank" style="text-decoration: none;">
<div style="width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; background-color: #1DA1F2; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: transform 0.3s, box-shadow 0.3s;">
<img src="https://img.icons8.com/ios-glyphs/60/ffffff/twitter.png" alt="Twitter" style="width: 50px; height: 50px;">
</div>
</a>
<!-- Instagram Icon -->
<a href="https://www.instagram.com" target="_blank" style="text-decoration: none;">
<div style="width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; background: radial-gradient(circle at 30% 30%, #F58529, #DD2A7B, #8134AF); border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: transform 0.3s, box-shadow 0.3s;">
<img src="https://img.icons8.com/ios-glyphs/60/ffffff/instagram-new.png" alt="Instagram" style="width: 50px; height: 50px;">
</div>
</a>
<!-- LinkedIn Icon -->
<a href="https://www.linkedin.com" target="_blank" style="text-decoration: none;">
<div style="width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; background-color: #0A66C2; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: transform 0.3s, box-shadow 0.3s;">
<img src="https://img.icons8.com/ios-glyphs/60/ffffff/linkedin.png" alt="LinkedIn" style="width: 50px; height: 50px;">
</div>
</a>
</section>
<script>
document.querySelectorAll("a > div").forEach((icon) => {
icon.addEventListener("mouseenter", () => {
icon.style.transform = "scale(1.2)";
icon.style.boxShadow = "0 6px 12px rgba(0, 0, 0, 0.3)";
});
icon.addEventListener("mouseleave", () => {
icon.style.transform = "scale(1)";
icon.style.boxShadow = "0 4px 8px rgba(0, 0, 0, 0.2)";
});
});
</script>
<footer>
<a href="#inizio">
<div id="tornasu">
<img src= "assets/immagini/su.png" class="tornasu" alt="freccia per tornare all'inizio della pagina" title="freccia">
</div>
</a>
<div id="social">
<table> <tr> <td>
<a href="https://www.facebook.com" target="_blank"> <img src="assets/immagini/fb1.png" id="socialimg1" alt="logo facebook" title="contatti"> </a> </td> <td>
<a href="https://www.instagram.com" target="_blank"> <img src="assets/immagini/ig1.png" id="socialimg2" alt="logo instagram" title="contatti"> </a> </td> <td>
<a href="https://www.linkedin.com/in/francesco-lazzarotto-a09aa51ba/" target="_blank"> <img src="assets/immagini/ln1.png" id="socialimg3" alt="logo linkedin" title="contatti">
</a>
</td>
</tr>
</table>
</div>
© <em> 2020 Lazzarotto Gym - Fitness <br>
Design and Graphics by </em> <a href="linkedin.com/in/francesco-lazzarotto-a09aa51ba/"target="_blank" class="cop">Francesco Lazzarotto </a> <br>
<a href="https://mail.google.com/mail/u/0/#inbox" target="_blank" class="cop1" > [email protected] <br>
</footer>
<script>
window.addEventListener ("scroll",function(){
if (window.pageYOffset>300) {
document.getElementById ("tornasu").style.display= "block";
}
else if (window.pageYOffset<300) {
document.getElementById ("tornasu").style.display= "none";
}});
</script>
</body>
</html>