-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
151 lines (147 loc) · 6.37 KB
/
index.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
147
148
149
150
151
<?php
session_start();
include_once('connessioneDB.php');
global $_GLOBAL;
?>
<!DOCTYPE html>
<html>
<head>
<title>Faraza - Benvenuto</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="panel panel-success">
<div class="panel-heading">
<h1 class="panel-title" align="center">BENVENUTO IN FARAZA</h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="panel panel-success">
<div class="panel-heading">
<h1 class="panel-title" align="center">LOGIN</h1>
</div>
<div class="panel-body">
<form role="form" action="verificaLogin.php" method="POST">
<?php
if (!isset($_COOKIE["email"])) {
echo "<div class='form-group'>
<input class='form-control' type='email' name='email_l' placeholder='Email' required>
</div>";
} else {
echo "<div class='form-group'>
<input class='form-control' type='email' name='email_l' value=".$_COOKIE['email']." placeholder='Email' required>
</div>";
}
if (!isset($_COOKIE["passw"])) {
echo "<div class='form-group'>
<input class='form-control' type='password' name='passw_l' placeholder='Password' required>
</div>";
} else {
echo "<div class='form-group'>
<input class='form-control' type='password' name='passw_l' value=".$_COOKIE['passw']." placeholder='Password' required>
</div>";
}
?>
<button class="btn btn-success btn-lg btn-block" type='submit'>Entra</button>
</form>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel-group" id="regCentro" role="tablist" aria-multiselectable="true">
<div class="panel panel-success">
<div class="panel-heading collapsed" role="tab" id="headingDue" data-toggle="collapse" href="#collapseCentro" data-parent="#regUtente" aria-expanded="false" aria-controls="collapseCentro">
<h1 align="center" class="panel-title">REGISTRAZIONE CENTRO SPORTIVO</h1>
</div>
<div id="collapseCentro" class="panel-collapse collapse panel-body" role="tabpanel" aria-labelledby="headingDue">
<form action="./impianto/registrazionecentro.php" method="POST"> <!-- inclusa lo script registrazione centro di antonio -->
<div class="form-group">
<input class="form-control" type='email' name='email_c' placeholder="Email" required>
</div>
<div class="form-group">
<input class="form-control" type='password' name='passw1_c' placeholder="Password" required>
</div>
<div class="form-group">
<input class="form-control" type='password' name='c_password2' placeholder="Ripeti password" required>
</div>
<div class="form-group">
<input class="form-control" type='text' name='nome_c' placeholder="Nome centro" required>
</div>
<div class="form-group">
<input class="form-control" type='text' name='citta' placeholder="Città" required>
</div>
<div class="form-group">
<input class="form-control" type='text' name='via' placeholder="Via" required>
</div>
<div class="form-group">
<input class="form-control" type='text' name='civico' placeholder="Civico" required>
</div>
<div class="form-group">
<input class="form-control" type='text' name='cap' placeholder="CAP" required>
</div>
<div class="form-group">
<input class="form-control" type='text' name='cellulare_c' placeholder="Telefono" required>
</div>
<div class="form-group">
<div class="input-group">
<input type="num" class="form-control" name='costo' placeholder="Costo" required>
<div class="input-group-addon">€</div>
</div>
<p class="help-block">Costo della prenotazione di un campo per un'ora.</p>
</div>
<div class="form-group">
<input class="form-control" type='number' name='SceltaNumeroCampi' placeholder="Numero campi" min="1" required>
</div>
<button class="btn btn-success btn-lg btn-block" type='submit'>Iscriviti</button>
</form>
</div>
</div>
</div>
<div class="panel-group" id="regUtente" role="tablist" aria-multiselectable="true">
<div class="panel panel-success">
<div class="panel-heading collapsed" role="tab" id="headingUno" data-toggle="collapse" href="#collapseUtente" data-parent="#regCentro" aria-expanded="true" aria-controls="collapseUtente">
<h1 class="panel-title" align="center">REGISTRAZIONE UTENTE</h1>
</div>
<div id="collapseUtente" class="panel-collapse collapse panel-body" role="tabpanel" aria-labelledby="headingUno">
<form action='./utente/registration.php' method='POST'>
<div class="form-group">
<input class="form-control" type='email' name='email_u' placeholder="Email" required>
</div>
<div class="form-group">
<input class="form-control" type='password' name='passw1_u' placeholder="Password" required>
</div>
<div class="form-group">
<input class="form-control" type='password' name='passw2_u' placeholder="Ripeti password" required>
</div>
<div class="form-group">
<input class="form-control" type='text' name='nome_u' placeholder="Nome" required>
</div>
<div class="form-group">
<input class="form-control" type='text' name='cognome_u' placeholder="Cognome" required>
</div>
<div class="form-group">
<input class="form-control" type='tel' name='cellulare_u' placeholder="Telefono" required>
</div>
<button type='submit' class="btn btn-success btn-lg btn-block">Iscriviti</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>