Line 10... |
Line 10... |
10 |
* elle envoi les infos à traiter à la page de traitement *
|
10 |
* elle envoi les infos à traiter à la page de traitement *
|
11 |
* via AJAX (email_registration_back) *
|
11 |
* via AJAX (email_registration_back) *
|
12 |
* *
|
12 |
* *
|
13 |
/********************************************************************/
|
13 |
/********************************************************************/
|
14 |
|
14 |
|
- |
|
15 |
$page = "email_registration";
|
15 |
$Language = 'en';
|
16 |
$Language = 'en';
|
16 |
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
17 |
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
17 |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
18 |
$Langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
18 |
$Language = strtolower(substr(chop($Langue[0]), 0, 2));
|
19 |
$Language = strtolower(substr(chop($Langue[0]), 0, 2));
|
19 |
}
|
20 |
}
|
Line 29... |
Line 30... |
29 |
$l_login = "Login";
|
30 |
$l_login = "Login";
|
30 |
$l_Email = "Email address: *";
|
31 |
$l_Email = "Email address: *";
|
31 |
$l_mandatory = "* Fill in all mandatory fields";
|
32 |
$l_mandatory = "* Fill in all mandatory fields";
|
32 |
}
|
33 |
}
|
33 |
?>
|
34 |
?>
|
- |
|
35 |
|
34 |
<!DOCTYPE html>
|
36 |
<!DOCTYPE html>
|
35 |
<html>
|
37 |
<html>
|
36 |
<head>
|
38 |
<head>
|
37 |
<meta charset="UTF-8">
|
39 |
<meta charset="UTF-8">
|
38 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
40 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
Line 42... |
Line 44... |
42 |
<link rel="icon" href="images/favicon-48.ico" type="image/ico">
|
44 |
<link rel="icon" href="images/favicon-48.ico" type="image/ico">
|
43 |
<script type="text/javascript" src="js/jquery.min.js"></script>
|
45 |
<script type="text/javascript" src="js/jquery.min.js"></script>
|
44 |
<script type="text/javascript" src="js/bootstrap.min.js"></script>
|
46 |
<script type="text/javascript" src="js/bootstrap.min.js"></script>
|
45 |
</head>
|
47 |
</head>
|
46 |
<body>
|
48 |
<body>
|
47 |
<nav class="navbar navbar navbar-inverse" style="margin-bottom:0px;">
|
49 |
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
48 |
<div class="container-fluid">
|
- |
|
49 |
<div class="navbar-header">
|
- |
|
50 |
<a href="index.php"><img src="images/logo-alcasar_70.png" width="50" ><font color=red><b><?=$l_home ?></b></font></a>
|
50 |
<a class="navbar-brand" href="index.php"><img src="images/logo-alcasar_70.png" width="50" ><font color=red><b><?=$l_home ?></b></font></a>
|
51 |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
|
51 |
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarC" aria-controls="navbarC" aria-expanded="false" aria-label="Toggle navigation">
|
52 |
<span class="sr-only">Toggle navigation</span>
|
52 |
<span class="navbar-toggler-icon"></span>
|
53 |
<span class="icon-bar"></span>
|
- |
|
54 |
<span class="icon-bar"></span>
|
- |
|
55 |
<span class="icon-bar"></span>
|
- |
|
56 |
</button>
|
53 |
</button>
|
57 |
</div>
|
- |
|
58 |
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
54 |
<div class="collapse navbar-collapse" id="navbarC">
|
59 |
<ul class="nav navbar-nav">
|
55 |
<ul class="navbar-nav mr-auto">
|
60 |
<li>
|
56 |
<li class="nav-item">
|
61 |
<a href="index.php?url=www.euronews.com"><?=$l_login ?></a>
|
57 |
<a class="nav-link" href="index.php?url=www.euronews.com"><?=$l_login ?></a>
|
62 |
</li>
|
58 |
</li>
|
63 |
<li>
|
59 |
<li class="nav-item">
|
64 |
<a href="email_registration_front.php"><?=$l_title ?></a>
|
60 |
<a class="nav-link" href="email_registration_front.php"><?=$l_title ?></a>
|
65 |
</li>
|
61 |
</li>
|
66 |
</ul>
|
62 |
</ul>
|
67 |
<ul class="nav navbar-nav navbar-right">
|
63 |
<span class="navbar-text">
|
68 |
<a href="contact.php" class="navbar-brand">Contact</a>
|
64 |
<a href="contact.php" class="navbar-brand">Contact</a>
|
69 |
<a href="contact.php"><img src="images/organisme.png" width="40"></a>
|
65 |
<a href="contact.php"><img src="images/organisme.png" width="40"></a>
|
70 |
</ul>
|
66 |
</span>
|
71 |
</div>
|
67 |
</div>
|
72 |
</div>
|
- |
|
73 |
</nav>
|
68 |
</nav>
|
74 |
<div class="col-xs-12 col-md-10 col-md-offset-1">
|
69 |
<div class="col-12 col-lg-10 offset-lg-1">
|
75 |
<!-- HeaderBox -->
|
- |
|
76 |
<div class="row banner">
|
- |
|
77 |
<!-- Logo box -->
|
- |
|
78 |
<div class="hidden-xs col-sm-3 col-md-2 col-lg-2">
|
- |
|
79 |
<img class="img-responsive img-A" src="images/organisme.png">
|
- |
|
80 |
</div>
|
70 |
|
81 |
<!-- Title -->
|
- |
|
82 |
<div id="cadre_titre" class="titre_banner col-xs-12 col-sm-8">
|
- |
|
83 |
<div class="row">
|
- |
|
84 |
<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
|
- |
|
85 |
</div>
|
- |
|
86 |
<!-- <div class="row">
|
- |
|
87 |
<?php if (isset($changePasswordMessage)): ?>
|
71 |
<?php require_once(__DIR__.'/header.php'); ?>
|
88 |
<?= $changePasswordMessage ?>
|
- |
|
89 |
<?php endif; ?>
|
- |
|
90 |
</div>-->
|
- |
|
91 |
</div>
|
- |
|
92 |
<!-- Logo box -->
|
- |
|
93 |
<div class="img_banner hidden-xs col-sm-3 col-md-2 col-lg-2">
|
- |
|
94 |
<img class="img-responsive img-organisme" src="images/logo-alcasar_70.png">
|
- |
|
95 |
</div>
|
- |
|
96 |
</div>
|
- |
|
97 |
|
72 |
|
98 |
<section id="inscription" class="row">
|
73 |
<section id="inscription" class="row">
|
99 |
<form name="master" id="contenu_acces" onsubmit="return false;" class="col-xs-12 col-sm-12 col-md-offset-1 col-md-10">
|
74 |
<form name="master" id="contenu_acces" onsubmit="return false;" class="col-12 offset-lg-1 col-lg-10">
|
100 |
<div class="row input_row">
|
75 |
<div class="row input_row">
|
101 |
<div class="label_name col-xs-3 col-sm-3 col-md-4"><?=$l_Email?></div>
|
76 |
<div class="label_name col-3 col-lg-4"><?=$l_Email?></div>
|
102 |
<div class="col-xs-6 col-sm-6 col-md-4">
|
77 |
<div class="col-6 col-lg-4">
|
103 |
<input type="email" placeholder="User@exemple.com" id="email" name="email" required class="form-control"/>
|
78 |
<input type="email" placeholder="User@exemple.com" id="email" name="email" required class="form-control"/>
|
104 |
</div>
|
79 |
</div>
|
105 |
<small id="output_email" class="row"></small>
|
80 |
<small id="output_email" class="row"></small>
|
106 |
</div>
|
81 |
</div>
|
107 |
<div id="status">
|
82 |
<div id="status">
|
108 |
<?=$l_mandatory?>
|
83 |
<?=$l_mandatory?>
|
109 |
</div>
|
84 |
</div>
|
110 |
<div class="row input_row">
|
85 |
<div class="row input_row">
|
111 |
<div class="col-xs-5 col-xs-offset-1 col-sm-4 col-sm-offset-2">
|
86 |
<div class="col-5 offset-xs-1 col-md-4 offset-md-2">
|
112 |
<input id="buttons" class="btn btn-default" value="Annuler" onclick="window.location.href = 'index.php';">
|
87 |
<input id="buttons" class="btn btn-default" value="Annuler" onclick="window.location.href = 'index.php';">
|
113 |
</div>
|
88 |
</div>
|
114 |
<div class="col-xs-5 col-sm-4">
|
89 |
<div class="col-5 col-md-4">
|
115 |
<button type="submit" class="btn btn-primary btn-lg" id="buttons" >Inscription</button>
|
90 |
<button type="submit" class="btn btn-primary btn-lg" id="buttons" >Inscription</button>
|
116 |
</div>
|
91 |
</div>
|
117 |
</div>
|
92 |
</div>
|
118 |
</form>
|
93 |
</form>
|
119 |
</section>
|
94 |
</section>
|
120 |
|
95 |
|
121 |
<script type="text/javascript" src="js/jquery.min.js"></script>
|
- |
|
122 |
<script>
|
96 |
<script>
|
123 |
$(document).ready(function(){
|
97 |
$(document).ready(function(){
|
124 |
$("#contenu_acces input").focus(function(){
|
98 |
$("#contenu_acces input").focus(function(){
|
125 |
$("#status").fadeOut(800);
|
99 |
$("#status").fadeOut(800);
|
126 |
});
|
100 |
});
|
Line 144... |
Line 118... |
144 |
status.html(data).fadeIn(400);
|
118 |
status.html(data).fadeIn(400);
|
145 |
alert("Encore une dernière étape!\n\nUn mot de passe temporaire vient de vous être envoyé à votre adresse électronique.\n Veuillez changer votre mot de passe.\n\n(Pensez à vérifier vos spams ou courriers indésirables, si vous ne voyez pas ce mail dans votre boîte de réception).\n\nSi vous ne recevez pas le mail dans les 24 heures contactez votre administrateur.")
|
119 |
alert("Encore une dernière étape!\n\nUn mot de passe temporaire vient de vous être envoyé à votre adresse électronique.\n Veuillez changer votre mot de passe.\n\n(Pensez à vérifier vos spams ou courriers indésirables, si vous ne voyez pas ce mail dans votre boîte de réception).\n\nSi vous ne recevez pas le mail dans les 24 heures contactez votre administrateur.")
|
146 |
document.location.href="index.php";
|
120 |
document.location.href="index.php";
|
147 |
} else {
|
121 |
} else {
|
148 |
console.log(data);
|
122 |
console.log(data);
|
149 |
alert("Une erreur s'est produite.\n\nVeuillez renouveler votre inscription ou contactez votre administrateur.");
|
123 |
alert("Une erreur s'est produite.\n\nVeuillez renouveler votre inscription ou contacter votre administrateur.");
|
150 |
status.css("color", "red").html(data).fadeIn(400);
|
124 |
status.css("color", "red").html(data).fadeIn(400);
|
151 |
}
|
125 |
}
|
152 |
}
|
126 |
}
|
153 |
});
|
127 |
});
|
154 |
});
|
128 |
});
|