|
@@ -22,7 +22,7 @@ class event
|
|
|
db::query("SELECT md5 FROM " . DB_T_EVENTS . " WHERE id = :id");
|
|
db::query("SELECT md5 FROM " . DB_T_EVENTS . " WHERE id = :id");
|
|
|
db::bind(':id', $_id);
|
|
db::bind(':id', $_id);
|
|
|
$md5 = db::single()["md5"];
|
|
$md5 = db::single()["md5"];
|
|
|
- $link = base64_encode("https://" . DOMAIN_EVENTS . "/?e=" . $md5);
|
|
|
|
|
|
|
+ $link = core::base64_url_encode("https://" . DOMAIN_EVENTS . "/?e=" . $md5);
|
|
|
|
|
|
|
|
if ($_link == NULL) {
|
|
if ($_link == NULL) {
|
|
|
echo '<img src="/qrcode.php?q= ' . $link . '" width="' . $_width . '" >';
|
|
echo '<img src="/qrcode.php?q= ' . $link . '" width="' . $_width . '" >';
|
|
@@ -192,6 +192,26 @@ class event
|
|
|
return $inscription;
|
|
return $inscription;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public static function getInscription(int $_id_event){
|
|
|
|
|
+ db::query("SELECT "
|
|
|
|
|
+ . "" . DB_T_SALARIES . ".id, "
|
|
|
|
|
+ . "" . DB_T_SALARIES . ".loginId, "
|
|
|
|
|
+ . "" . DB_T_SALARIES . ".nom, "
|
|
|
|
|
+ . "" . DB_T_SALARIES . ".prenom, "
|
|
|
|
|
+ . "" . DB_T_SALARIES . ".sexe, "
|
|
|
|
|
+ . "" . DB_T_SALARIES . ".contrat, "
|
|
|
|
|
+ . "" . DB_T_SALARIES . ".lieu, "
|
|
|
|
|
+ . "" . DB_T_SALARIES . ".actif, "
|
|
|
|
|
+ . "" . DB_T_EVENTS_INSCRITS . ".id_evenement, "
|
|
|
|
|
+ . "" . DB_T_EVENTS_INSCRITS . ".present "
|
|
|
|
|
+ . "FROM " . DB_T_SALARIES . " "
|
|
|
|
|
+ . "INNER JOIN " . DB_T_EVENTS_INSCRITS . " ON " . DB_T_EVENTS_INSCRITS . ".id_salarie = " . DB_T_SALARIES . ".id "
|
|
|
|
|
+ . "WHERE " . DB_T_EVENTS_INSCRITS . ".id_evenement = " . $_id_event);
|
|
|
|
|
+ return db::resultset();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
public static function checkEvenementBySalarie(string $_md5)
|
|
public static function checkEvenementBySalarie(string $_md5)
|
|
|
{
|
|
{
|
|
|
|
|
|