-
Notifications
You must be signed in to change notification settings - Fork 1
/
studente.php
180 lines (174 loc) · 8.29 KB
/
studente.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
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
<?php
######################################################################
# Wi-Fi-voucher-o-matic - Wi-Fi voucher manager
# Copyright (C) 2017, 2018 Valerio Bozzolan, Ivan Bertotto, IIS Avogadro
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
######################################################################
require 'load.php';
Header::spawn('studente');
?>
<section class="mbr-section article mbr-parallax-background mbr-after-navbar" id="msg-box8-s" style="background-image: url(<?php echo STATIC_ROOT ?>/images/william-iven-2000x1328.jpg); padding-top: 120px; padding-bottom: 120px;">
<div class="mbr-overlay" style="opacity: 0.5; background-color: rgb(34, 34, 34);">
</div>
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2 text-xs-center">
<h3 class="mbr-section-title display-2"><?php _e( "Richiesta account Studente" ) ?></h3>
<div class="lead"><p><?php _e( "Per un anno di accesso ad Internet dai tuoi dispositivi." ) ?></p></div>
</div>
</div>
</div>
</section>
<section class="mbr-section article mbr-section__container" id="content1-u" style="background-color: rgb(255, 255, 255); padding-top: 20px; padding-bottom: 20px;">
<div class="container">
<div class="row">
<div class="col-xs-12 lead">
<p><?php printf(
__( "Puoi richieder subito un voucher da utilizzare per navigare un anno dal tuo dispositivo all'interno della scuola alla velocità di %d megabit." ),
8
) ?></p>
<p><?php printf(
__(
"Se hai una casella di posta %s, oppure hai già avuto in passato voucher associati alla tua mail, ".
"basta compilare il form per avere un nuovo accesso.<br /> ".
"Se sei nuovo al servizio, il tuo voucher verrà inviato a %s (%s). " .
"Rivolgiti a lui per averlo."
),
'@' . COMPANY_DOMAINS[ 0 ],
RAUSA_NAME,
RAUSA_EMAIL
) ?></p>
</div>
</div>
</div>
</section>
<section class="mbr-section" id="form1-t" style="background-color: rgb(255, 255, 255); padding-top: 40px; padding-bottom: 120px;">
<div class="mbr-section mbr-section__container mbr-section__container--middle">
<div class="container">
<div class="row">
<div class="col-xs-12 text-xs-center">
<h3 class="mbr-section-title display-2"><?php _e( "Richiesta account Studente" ) ?></h3>
<small class="mbr-section-subtitle"></small>
</div>
</div>
</div>
</div>
<div class="mbr-section mbr-section-nopadding">
<div class="container">
<form action="<?php echo get_menu_entry('form_post')->url ?>" method="post" data-form-title="Richiesta account Studente">
<input type="hidden" name="<?php echo User::TYPE ?>" value="<?php echo User::TYPE_STUDENT ?>" />
<div class="row row-sm-offset">
<div class="col-xs-12 col-md-4">
<div class="form-group">
<label class="form-control-label" for="form1-t-name"><?php _e("Nome") ?><span class="form-asterisk">*</span></label>
<input type="text" class="form-control" name="<?php echo User::NAME ?>" required="required" data-form-field="Name" id="form1-t-name">
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="form-group">
<label class="form-control-label" for="form1-t-surname"><?php _e("Cognome") ?><span class="form-asterisk">*</span></label>
<input type="text" class="form-control" name="<?php echo User::SURNAME ?>" required="required" data-form-field="Surname" id="form1-t-surname">
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="form-group">
<label class="form-control-label" for="form1-t-email"><?php _e("Email") ?><span class="form-asterisk">*</span></label>
<input type="email" class="form-control" name="<?php echo User::UID ?>" required="required" data-form-field="Email" id="form1-t-email">
</div>
</div>
</div>
<div class="row row-sm-offset">
<div class="col-xs-12 col-md-2">
<div class="form-group">
<label class="form-control-label" for="form1-t-classe"><?php _e("Classe") ?><span class="form-asterisk">*</span></label>
<select class="form-control" name="<?php echo User::CLASS_NUMBER ?>" id="form1-t-classe">
<option disabled="disabled" selected="selected"><?php _e("...") ?></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
</div>
<div class="col-xs-12 col-md-2">
<div class="form-group">
<label class="form-control-label" for="form1-t-sezione"><?php _e("Sezione") ?><span class="form-asterisk">*</span></label>
<select class="form-control" name="<?php echo User::CLASS_SECTION ?>" id="form1-t-sezione">
<option disabled="disabled" selected="selected"><?php _e("...") ?></option>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
<option value="E">E</option>
<option value="F">F</option>
<option value="G">G</option>
<option value="H">H</option>
<option value="I">I</option>
<option value="L">L</option>
<option value="M">M</option>
<option value="N">N</option>
<option value="O">O</option>
<option value="P">P</option>
</select>
</div>
</div>
<div class="col-xs-12 col-md-2">
<div class="form-group">
<label class="form-control-label" for="form1-t-specializzazione"><?php _e("Specializzazione") ?><span class="form-asterisk">*</span></label>
<select class="form-control" name="<?php echo User::SPECIALIZATION ?>" id="form1-t-specializzazione">
<option disabled="disabled" selected="selected"><?php _e("...") ?></option>
<?php foreach( User::$SPECIALIZATIONS as $specialization ): ?>
<option value="<?php _esc_attr( $specialization ) ?>"><?php _esc_html( $specialization ) ?></option>
<?php endforeach ?>
</select>
</div>
</div>
<div class="col-xs-12 col-md-2">
<div class="form-group">
<label class="form-control-label" for="form1-t-corso"><?php _e("Corso") ?><span class="form-asterisk">*</span></label>
<select class="form-control" name="<?php echo User::DAYTYPE ?>" id="form1-t-corso">
<option disabled="disabled" selected="selected"><?php _e("...") ?></option>
<?php foreach( User::$DAYTYPES as $daytype ): ?>
<option value="<?php _esc_attr( $daytype ) ?>"><?php _esc_html( $daytype ) ?></option>
<?php endforeach ?>
</select>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="form-group">
<label class="form-control-label" for="form1-t-dispositivo"><?php _e("Dispositivo") ?><span class="form-asterisk">*</span></label>
<select class="form-control" name="<?php echo RelUserVoucher::DEVICE_NAME ?>" id="form1-t-dispositivo">
<option disabled="disabled" selected="selected"><?php _e("...") ?></option>
<option value="Microsoft Windows"><?php _e("Microsoft Windows") ?></option>
<option value="GNU/Linux"><?php _e( "GNU/Linux") ?></option>
<option value="smartphone Android"><?php _e("smartphone Android") ?></option>
<option value="tablet Android"><?php _e("tablet Android") ?></option>
<option value="iPhone"><?php _e("iPhone") ?></option>
<option value="mac"><?php _e("Mac") ?></option>
<option value="iPad"><?php _e("iPad") ?></option>
<option value="unknown"><?php _e("altro") ?></option>
</select>
</div>
</div>
</div>
<div><button type="submit" class="btn btn-primary"><?php _e( "Richiedi" ) ?></button></div>
</form>
</div>
<!-- /.container -->
</div>
<!-- /.mbr-section -->
</section>
<?php
Footer::spawn();