-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase.php
325 lines (306 loc) · 16.2 KB
/
base.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
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
313
314
315
316
317
318
319
320
321
322
323
324
325
<?php
header('content-type: text/html; charset=utf-8');
$type = $_GET['type'];
$locale = "fr_FR.UTF-8";
if (isSet($_GET["locale"])) {
$locale = $_GET["locale"];
}
putenv("LC_MESSAGES=$locale");
setlocale(LC_MESSAGES, $locale);
bindtextdomain("base", "./locale");
textdomain("base");
?>
<!DOCTYPE html>
<html>
<head>
<title>Jeedom - <?=_("Guide de Démarrage");?></title>
<meta charset="utf-8">
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<script src="3rdparty/jquery/jquery.min.js"></script>
<script src="3rdparty/bootstrap/bootstrap.min.js"></script>
<script src="3rdparty/jquery.steps/jquery.steps.min.js"></script>
<script src="3rdparty/ekko-lightbox/ekko-lightbox.min.js"></script>
<link href="3rdparty/ekko-lightbox/ekko-lightbox.min.css" rel="stylesheet">
<link href="css/flag-icon.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="3rdparty/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="3rdparty/jquery.steps/jquery.steps.css" rel="stylesheet">
<link href="3rdparty/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<script>
$(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
event.preventDefault();
$(this).ekkoLightbox();
});
</script>
</head>
<body>
<div style="display:flex;width:100%;">
<div class="col-md-1"></div>
<div class="col-md-3"><h2><a href="index.php?locale=fr_FR.UTF-8" class="btn btn-sm btn-info"><span class="fa fa-th-large"></span> Retour au menu</a></div>
<div class="col-md-1"><img alt="Jeedom" src="img/logo.png" style="width: 70px;"></div>
<div class="col-md-4"><h2><?=_("Guide de Démarrage");?></h2></div>
<div class="col-md-3"><h2>
<!--
<a href="base.php?locale=fr_FR.UTF-8&type=<?=$type;?>" class="btn btn-sm btn-info"><span class="flag-icon flag-icon-fr"></span> Français</a> <a href="base.php?locale=en_US.UTF-8&type=<?=$type;?>" class="btn btn-sm btn-info"><span class="flag-icon flag-icon-gb"></span> English</a>
-->
</h2></div>
</div>
<div style="display:flex;flex-direction:column;justify-content:center;align-content:center;margin-top:1%;">
<div class="col-xs-2"></div>
<div class="col-md-12" align="center">
<div id="wizard">
<h1><?=_("Déballage");?></h1>
<div style="display:flex;flex-direction:column;width:100%;">
<h2><?=_("Contenu de la boite :");?></h2>
<div style="display:flex;justify-content:space-evenly;">
<div class="divThumb">
<div class="thumbnail flexThumb">
<img alt="mini+" src="img/smart.jpg" style="width: 100px;">
<div class="caption"><center>Jeedom Smart</center></div>
</div>
</div>
<div class="divThumb">
<div class="thumbnail flexThumb">
<img alt="sd-card" src="img/antenne.jpg" style="width: 100px;">
<div class="caption"><center><?=_("Antenne à visser");?></center></div>
</div>
</div>
<div class="divThumb">
<div class="thumbnail flexThumb">
<img alt="power-supply" src="img/power-supply.jpg" style="width: 100px;">
<div class="caption"><center><?=_("Alimentation");?></center></div>
</div>
</div>
<div class="divThumb">
<div class="thumbnail flexThumb">
<img alt="power-supply" src="img/rfxcom.jpg" style="width: 100px;">
<div class="caption"><center><?=_("Module Rfxcom (en option)");?></center></div>
</div>
</div>
</div>
<h2><?=_("Ce dont vous avez besoin :");?></h2>
<div style="display:flex;justify-content:space-evenly;">
<div style="width: 33%;">
<div class="thumbnail flexThumb">
<img alt="ethernet-cable" src="img/ethernet-cable.jpg" style="width: 100px;">
<div class="caption"><center><?=_("Cable Ethernet");?></center></div>
</div>
</div>
<div style="width: 33%;">
<div class="thumbnail flexThumb">
<img alt="router" src="img/router.jpg" style="width: 100px;">
<div class="caption"><center><?=_("Routeur / box internet");?></center></div>
</div>
</div>
<div style="width: 33%;">
<div class="thumbnail flexThumb">
<img alt="internet" src="img/internet.jpg" style="width: 100px;">
<div class="caption"><center><?=_("Connexion Internet");?></center></div>
</div>
</div>
</div>
</div>
<h1><?=_("Branchements");?></h1>
<div style="display:flex;justify-content:space-evenly;align-items:center;width:100%;height:100%;">
<div style="display:flex;flex-direction:column;justify-content:center;align-items:center;width: 50%;height:100%;">
<h2><?=_("Etape 1 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/connect-router.jpg"><img alt="router" src="img/connect-router.jpg" style="height:181px; width: 250px;"></a>
<div class="caption"><center><?=_("Connectez le cable Ethernet à votre routeur");?></center></div>
</div>
</div>
<div style="display:flex;flex-direction:column;justify-content:center;align-items:center;width: 50%;height:100%;">
<h2><?=_("Etape 2 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/connect-antenne.jpg"><img alt="antenne" src="img/connect-antenne.jpg" style="width: 250px;"></a>
<div class="caption"><center><?=_("Vissez l'antenne à votre box Jeedom");?></center></div>
</div>
</div>
<div style="display:flex;flex-direction:column;justify-content:center;align-items:center;width: 50%;height:100%;">
<h2><?=_("Etape 3 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/connect-power-ethernet.jpg"><img alt="power" src="img/connect-power-ethernet.jpg" style="width: 250px;"></a>
<div class="caption"><center><?=_("Connectez le câble réseau puis l'alimentation à votre box Jeedom");?></center></div>
</div>
</div>
</div>
<h1><?=_("Inscription au Market");?></h1>
<div style="display:flex;justify-content:space-evenly;width:100%;height:100%;">
<div style="width: 33%;height:80%;">
<h2><?=_("Etape 1 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a href="https://market.jeedom.com" target="_blank"><img alt="market-logo" src="img/logo-MARKET.svg" style="width: 250px;"></a>
<div class="caption"><center><?=_("Rendez-vous sur le Market Jeedom afin d'enregistrer votre Service Pack.");?><br><?=_("Vous avez du recevoir votre code Service Pack par email.");?> <br><a class="btn btn-primary btn-xs" href="https://market.jeedom.com" target="_blank"><i class="fa fa-share-square-o"></i> <?=_("Aller sur le Market");?></a></center></div>
</div>
</div>
<div style="width: 33%;height:80%;">
<h2><?=_("Etape 2 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/connect-market.jpg"><img alt="connect" src="img/connect-market.jpg" style="width: 250px;height: 117px;"></a>
<div class="caption"><center><?=_("Si vous disposez déjà d'un compte sur le Market, cliquez sur <span class='label label-info'>Se Connecter</span>. Sinon cliquez sur <span class='label label-info'>S'enregistrer</span>.");?><br><br> </center></div>
</div>
</div>
<div style="width: 33%;height:80%;">
<h2><?=_("Etape 3 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/service-pack.jpg"><img alt="service_pack" src="img/service-pack.jpg" style="width: 250px;"></a>
<div class="caption"><center><?=_("Après votre connexion, cliquez sur votre <span class='label label-info'>pseudo</span> puis sur <span class='label label-info'>Profil</span>.");?><br> <?=_("Cliquez ensuite sur l'onglet <span class='label label-info'>Mes Services</span> et inscrire ici le code Service Pack reçu par Email dans la partie <span class='label label-info'>J'ai un Code</span>.");?><br> </center></div>
</div>
</div>
</div>
<h1><?=_("Recherche de la box sur le réseau");?></h1>
<div style="display:flex;flex-direction:column; align-items:center;height:100%;width:100%;">
<div style="display:flex;justify-content:space-evenly;width:100%;height:100%;">
<div style="width: 33%;height:80%;">
<h2><?=_("Etape 1 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a href="https://market.jeedom.com" target="_blank"><img alt="market-logo" src="img/logo-MARKET.svg" style="width: 250px;"></a>
<div class="caption"><center><?=_("Connectez-vous sur le Market Jeedom.");?><br> <br><a class="btn btn-primary btn-xs" href="https://market.jeedom.com" target="_blank"><i class="fa fa-share-square-o"></i> <?=_("Aller sur le Market");?></a></center></div>
</div>
</div>
<div style="width: 33%;height:80%;">
<h2><?=_("Etape 2 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/search-market.jpg"><img alt="search-market" src="img/search-market.jpg" style="width: 250px;"></a>
<div class="caption"><center><?=_("Cliquez sur <span class='label label-info'>Jeedom sur mon réseau</span>.");?><br> </center></div>
</div>
</div>
<div style="width: 33%;height:80%;">
<h2><?=_("Etape 3 :");?></h2>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/find-market.jpg"><img alt="result-finder" src="img/find-market.jpg" style="width: 250px;"></a>
<div class="caption"><center><?=_("La liste des Jeedoms apparait, cliquez sur l'URL afin d'ouvrir l'interface.");?><br> </center></div>
</div>
</div>
</div>
</div>
<h1><?=_("Connexion à la box Jeedom");?></h1>
<div style="display:flex;height:100%;width:100%;justify-content:space-evenly;">
<div style="width: 25%;height:80%;">
<h4><?=_("Connexion :");?></h4>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/connect-jeedom.jpg"><img alt="connect-jeedom" src="img/connect-jeedom.jpg" style="width: 250px;height: 170px;"></a>
<div class="caption"><center><?=_("Lors de la 1ère connexion les codes d'accès par défaut sont :");?><br> Login: <b>admin</b> <br> <?=_("Mot de passe :");?> <b>admin</b><br><br> </center></div>
</div>
</div>
<div style="width: 25%;height:80%;">
<h4><?=_("Changement mot de passe :");?></h4>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/changePwd.png"><img alt="market-logo" src="img/changePwd.png" style="width: 250px;"></a>
<div class="caption"><center><?=_("Vous etes invité a change le mot de passe par défaut");?></div>
</div>
</div>
<div style="width: 25%;height:80%;">
<h4><?=_("Connecter votre compte Market :");?></h4>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/connectMarket.png"><img alt="market-logo" src="img/connectMarket.png" style="width: 250px;"></a>
<div class="caption"><center><?=_("Vous pouvez rentrer votre compte Market");?></div>
</div>
</div>
<div style="width: 25%;height:80%;">
<h4><?=_("Initialisation de votre box :");?></h4>
<div class="thumbnail flexThumbColumn">
<a data-toggle="lightbox" href="img/initBox.png"><img alt="market-logo" src="img/initBox.png" style="width: 250px;"></a>
<div class="caption"><center><?=_("La box se met à jour.");?></div>
<div class="caption"><center><?=_("Laisser faire le processus");?></div>
</div>
</div>
</div>
<?php
if ($_GET['type'] == 'base') {
?>
<h1><?=_("Premiers pas avec la box Jeedom");?></h1>
<div>
<center><h2><?=_("Félicitations !");?></h2></center>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="thumbnail flexThumbColumn">
<img alt="done" src="img/check.jpg" style="width: 300px;">
<div class="caption"><center><?=_("Votre Box Jeedom est désormais totalement opérationnelle.");?><br><br><?=_("Afin de profiter des dernières nouveautés, nous vous conseillons de mettre à jour votre Jeedom.");?><br><?=_("Nous vous invitons à consulter<br> ");?> <a href="https://www.jeedom.com/doc/" target="_blank" class="btn btn-primary" role="button"><i class="fa fa-book"></i> <?=_("la documentation complète");?> </a> <br><?=_("notamment la catégorie Premiers pas, afin d'optimiser l'utilisation de votre box Jeedom.");?></center></div>
</div>
</div>
</div>
</div>
<?php } else if ($_GET['type'] == 'rfxcom') {
?>
<h1><?=_("Configuration du RfxCom");?></h1>
<div>
<center><h2>Félicitations !</h2></center>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="thumbnail">
<img alt="router" src="img/check.jpg" style="width: 300px;">
<div class="caption"><center><?=_("La configuration de base de votre Box Jeedom est désormais effectuée.");?><br><br><?=_("Nous vous invitons à consulter ");?> <a href="rfxcom.php?locale=<?=$locale;?>&type=<?=$type;?>" class="btn btn-primary" role="button"><i class="fa fa-book"></i> <?=_("Le guide de configuration RfxCom");?></a></center></div>
</div>
</div>
</div>
</div>
<?php } else if ($_GET['type'] == 'enocean' || $_GET['type'] == 'enocean_rfxcom') {
?>
<h1><?=_("Configuration Enocean");?></h1>
<div>
<center><h2>Félicitations !</h2></center>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div class="thumbnail">
<img alt="router" src="img/check.jpg" style="width: 300px;">
<div class="caption"><center><?=_("La configuration de base de votre Box Jeedom est désormais effectuée.");?><br><br><?=_("Nous vous invitons à consulter ");?> <a href="enocean.php?locale=<?=$locale;?>&type=<?=$type;?>" class="btn btn-primary" role="button"><i class="fa fa-book"></i> <?=_("Le guide de configuration Enocean");?></a></center></div>
</div>
</div>
</div>
</div>
<?php }
?>
</div>
</div>
</div>
<style>
@media only screen and (max-width : 600px) {
.testMedia{
display:flex;
flex-direction:column;
}
}
.divThumb{
width: 20%;
min-height:20%;
}
.divThumb4{
width: 20%;
min-height:20%;
}
.flexThumb{
width: 100%;
height:100%;
border-radius:20px;
}
.flexThumbColumn{
display:flex;
flex-direction:column;
justify-content:center;
width:80%;
height:100%;
border-radius:20px;
}
</style>
<script>
$("#wizard").steps({
headerTag: "h1",
bodyTag: "div",
transitionEffect: "slideLeft",
labels: {
cancel: '<?=_("Annuler");?>',
current: '<?=_("Etape en cours");?>',
pagination: '<?=_("Pagination");?>',
finish: '<?=_("Fin");?>',
next: '<?=_("Suivant");?>',
previous: '<?=_("Précédent");?>',
loading: '<?=_("Chargement");?>'
}
});
</script>
</body>
</html>