|
@@ -18,7 +18,7 @@ function printTuile(data){
|
|
|
|
|
|
|
|
if(data["type_emargement"] == 1){
|
|
if(data["type_emargement"] == 1){
|
|
|
explication = '<p class="card-text"><div>[ QRCode à présenter à votre arrivée ]</div><br /><div><span data-feather="maximize"></span></div></p>';
|
|
explication = '<p class="card-text"><div>[ QRCode à présenter à votre arrivée ]</div><br /><div><span data-feather="maximize"></span></div></p>';
|
|
|
- meta = 'data-toggle="modal" data-target="#QRCodeModal" onclick="showQRCode(this)" data-qrr-qrcode-regexp="^https?:\/\/" data-sel="' + data["url_qrcode"] + '" data-titre="' + data["titre"] + '"';
|
|
|
|
|
|
|
+ meta = 'data-toggle="modal" data-target="#QRCodeModal" onclick="showQRCode(this)" data-qrr-qrcode-regexp="^https?:\/\/" data-code="' + data["code"] + '" data-sel="' + data["url_qrcode"] + '" data-titre="' + data["titre"] + '"';
|
|
|
classCard = "showQRCode";
|
|
classCard = "showQRCode";
|
|
|
txtFooter = "Cliquez ici pour afficher votre QRCode";
|
|
txtFooter = "Cliquez ici pour afficher votre QRCode";
|
|
|
} else {
|
|
} else {
|
|
@@ -70,7 +70,6 @@ function getEvements(){
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (checkconnection()) {
|
|
if (checkconnection()) {
|
|
|
-
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "GET",
|
|
type: "GET",
|
|
|
url: "json.php",
|
|
url: "json.php",
|
|
@@ -101,11 +100,15 @@ function getEvements(){
|
|
|
|
|
|
|
|
function showQRCode(element){
|
|
function showQRCode(element){
|
|
|
var sel = $(element).data("sel");
|
|
var sel = $(element).data("sel");
|
|
|
|
|
+ var code = $(element).data("code");
|
|
|
var titre = $(element).data("titre");
|
|
var titre = $(element).data("titre");
|
|
|
|
|
|
|
|
$("#showQRCode").empty();
|
|
$("#showQRCode").empty();
|
|
|
$("#showQRCode").replaceWith('<div class="modal-body" id="showQRCode"><img src="qrcode.php?q=' + sel + '" width="100%" ></div>');
|
|
$("#showQRCode").replaceWith('<div class="modal-body" id="showQRCode"><img src="qrcode.php?q=' + sel + '" width="100%" ></div>');
|
|
|
|
|
|
|
|
|
|
+ $("#showCode").empty();
|
|
|
|
|
+ $("#showCode").replaceWith('<div id="showCode">' + code + '</div>');
|
|
|
|
|
+
|
|
|
$("#showTitreEvent").empty();
|
|
$("#showTitreEvent").empty();
|
|
|
$("#showTitreEvent").replaceWith('<div class="card-header" id="showTitreEvent">' + titre + '</div>');
|
|
$("#showTitreEvent").replaceWith('<div class="card-header" id="showTitreEvent">' + titre + '</div>');
|
|
|
}
|
|
}
|
|
@@ -129,7 +132,6 @@ function checkEmagementControl(){
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
if (checkconnection()) {
|
|
if (checkconnection()) {
|
|
|
-
|
|
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
url: "json.php?jsonData=check-control-emargement",
|
|
url: "json.php?jsonData=check-control-emargement",
|