diff --git a/src/Database/SiteInfo.php b/src/Database/SiteInfo.php index 157ee9e..80cf255 100644 --- a/src/Database/SiteInfo.php +++ b/src/Database/SiteInfo.php @@ -148,6 +148,16 @@ class SiteInfo { return $rows; } + public function countSiteUsers ($siteid) { + $query = " + SELECT * + FROM " . Registry::DB_PRFX . "users_sites WHERE " . Registry::DB_PRFX . "users_sites.sites_id LIKE \"$siteid\" + "; + $database = new \App\LobbySIO\Database\Connect(); + $rows = count($database->getQuery($query)); + return $rows; + } + public function addSite ($sitename, $timezone, $region) { $query = " INSERT INTO " . Registry::DB_PRFX . "sites (" . Registry::DB_PRFX . "sites.name, " . Registry::DB_PRFX . "sites.timezone, " . Registry::DB_PRFX . "sites.region) diff --git a/src/Language/de.lang.ini.example b/src/Language/de.lang.ini.example index a94f82d..36c1528 100644 --- a/src/Language/de.lang.ini.example +++ b/src/Language/de.lang.ini.example @@ -122,6 +122,8 @@ STR_COMMON_TIMEZONE = 'Zeitzone' STR_COMMON_TOUR = 'Tour' STR_COMMON_VSIGNATURE = 'Unterschrift des Besuchers' STR_COMMON_YES = 'Ja' +STR_COMMON_USERCOUNT = 'Benutzeranzahl' +STR_COMMON_NEVERLOGGEDIN = 'Nie eingeloggt' STR_COVID_ACKNOWLEDGEMENT = 'Das neuartige Coronavirus COVID-19 wurde von der Weltgesundheitsorganisation zur weltweiten Pandemie erklärt. Mit der Anmeldung bestätige ich, dass soziale Distanzierung praktiziert und Gesichtsbedeckungen zu jeder Zeit getragen werden müssen. Dieses Unternehmen kann nicht garantieren, dass seine Mitarbeiter, Lieferanten, Kunden oder andere teilnehmende Personen nicht mit COVID-19 infiziert werden.' STR_COVID_Q1-DESC = 'Fieber, Schüttelfrost, Husten, Kurzatmigkeit, Müdigkeit, Muskel- oder Gliederschmerzen, Kopfschmerzen, neuer Geschmacks- oder Geruchsverlust, Halsschmerzen, Verstopfung oder laufende Nase, Übelkeit oder Erbrechen, Durchfall.' STR_COVID_Q1-TITLE = 'Ich hatte in den letzten 48 Stunden keines der folgenden Symptome.' diff --git a/src/Language/en.lang.ini.example b/src/Language/en.lang.ini.example index adc8975..4520779 100644 --- a/src/Language/en.lang.ini.example +++ b/src/Language/en.lang.ini.example @@ -122,6 +122,8 @@ STR_COMMON_TIMEZONE = 'Timezone' STR_COMMON_TOUR = 'Tour' STR_COMMON_VSIGNATURE = 'Visitor Signature' STR_COMMON_YES = 'Yes' +STR_COMMON_USERCOUNT = 'User Count' +STR_COMMON_NEVERLOGGEDIN = 'Never Logged In' STR_COVID_ACKNOWLEDGEMENT = 'The novel coronavirus, COVID-19, has been declared a worldwide pandemic by the World Health Organization. By signing in, I acknowledge social distancing must be practiced and face coverings worn at all times. This company cannot guarantee that its employees, vendors, customers, or others entering will not become infected with COVID-19.' STR_COVID_Q1-DESC = 'Fever, chills, cough, shortness of breath, fatigue, muscle or body aches, headache, new loss of taste or smell, sore throat, congestion or runny nose, nausea or vomiting, diarrhea.' STR_COVID_Q1-TITLE = 'I have NOT experienced any of the following symptoms in the past 48 hours.' diff --git a/src/Language/es.lang.ini.example b/src/Language/es.lang.ini.example index 23332b3..3208398 100644 --- a/src/Language/es.lang.ini.example +++ b/src/Language/es.lang.ini.example @@ -122,6 +122,8 @@ STR_COMMON_TIMEZONE = 'Zona horaria' STR_COMMON_TOUR = 'Visitar' STR_COMMON_VSIGNATURE = 'Firma del Visitante' STR_COMMON_YES = 'Sí' +STR_COMMON_USERCOUNT = 'Recuento de usuarios' +STR_COMMON_NEVERLOGGEDIN = 'Nunca iniciaste sesión' STR_COVID_ACKNOWLEDGEMENT = 'El nuevo coronavirus, COVID-19, ha sido declarado pandemia mundial por la Organización Mundial de la Salud. Al registrarme, reconozco que se debe practicar el distanciamiento social y que se debe usar protección para la cara en todo momento. Esta empresa no puede garantizar que sus empleados, proveedores, clientes u otras personas que ingresen no se infecten con COVID-19.' STR_COVID_Q1-DESC = 'Fiebre, escalofríos, tos, dificultad para respirar, fatiga, dolores musculares o corporales, dolor de cabeza, nueva pérdida del gusto u olfato, dolor de garganta, congestión o secreción nasal, náuseas o vómitos, diarrea.' STR_COVID_Q1-TITLE = 'NO he experimentado ninguno de los siguientes síntomas en las últimas 48 horas.' diff --git a/src/Language/fr.lang.ini.example b/src/Language/fr.lang.ini.example index cea2943..a0fe881 100644 --- a/src/Language/fr.lang.ini.example +++ b/src/Language/fr.lang.ini.example @@ -122,6 +122,8 @@ STR_COMMON_TIMEZONE = 'Fuseau horaire' STR_COMMON_TOUR = 'Visiter' STR_COMMON_VSIGNATURE = 'Visiteur Signature' STR_COMMON_YES = 'Oui' +STR_COMMON_USERCOUNT = 'Nombre d'utilisateurs' +STR_COMMON_NEVERLOGGEDIN = 'Jamais connecté' STR_COVID_ACKNOWLEDGEMENT = 'Le nouveau coronavirus, COVID-19, a été déclaré pandémie mondiale par l'Organisation mondiale de la santé. En m'inscrivant, je reconnais que la distance sociale doit être pratiquée et que les masques doivent être portés en tout temps. Cette société ne peut garantir que ses employés, fournisseurs, clients ou autres personnes entrant ne seront pas infectés par le COVID-19.' STR_COVID_Q1-DESC = 'Fièvre, frissons, toux, essoufflement, fatigue, douleurs musculaires ou corporelles, maux de tête, nouvelle perte du goût ou de l'odorat, mal de gorge, congestion ou écoulement nasal, nausées ou vomissements, diarrhée.' STR_COVID_Q1-TITLE = 'I have NOT experienced any of the following symptoms in the past 48 hours.' diff --git a/users.php b/users.php index 0b0d731..95760ff 100644 --- a/users.php +++ b/users.php @@ -87,6 +87,8 @@ (string)FILTER_SANITIZE_STRING, + 'fd_pgNumUsers' => (int)FILTER_VALIDATE_INT, + 'fd_pgNumSites' => (int)FILTER_VALIDATE_INT, 'edituser' => (string)FILTER_SANITIZE_STRING, 'fd_editUserId' => (string)FILTER_SANITIZE_STRING, 'fd_initialPassword' => (string)FILTER_SANITIZE_STRING, @@ -98,6 +100,9 @@ $form_data = filter_input_array(INPUT_POST, [ 'fd_newSiteTimezone' => (string)FILTER_SANITIZE_STRING, 'fd_newSiteRegion' => (string)FILTER_SANITIZE_STRING ]); +if(empty($form_data['fd_formAction'])){ // SET INITIAL STAGE + $form_data['fd_formAction'] = 'actionInitial'; +} ?> getPageRows(); -$row_count = count($Users->getUserInfo("%", "%", "%")); -$page_count = 0; -if (0 === $row_count): else: $page_count = (int)ceil($row_count / $StaticFunctions->getPageRows()); if($page_num > $page_count): $page_num = 1; endif; endif; ?> - - +getPageRows(); + $pgRowCountUsers=(int)count($Users->getUserInfo("%", "%", "%")); + $pgCountUsers=(int)0; + if(0===$pgRowCountUsers){}else{$pgCountUsers=(int)ceil($pgRowCountUsers/$StaticFunctions->getPageRows());if($pgNumUsers>$pgCountUsers){$pgNumUsers=(int)1;}} ?> +
- | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | - | - | - | - |
- getSite("0", $row['users_id'], "0", "0") as $sidrow) { ?>
+
|
+
+
+
+
+
+ |
+