38 lines
1.5 KiB
PHP
38 lines
1.5 KiB
PHP
<?php
|
|
/*
|
|
Name: content/profile.php
|
|
Beschreibung: Popup innerhalb von Kalendertag bzw. Besuchsstellen: Profilanzeige
|
|
Zur Verwendung ist die nachfolgende Unterscheidung zu treffen/erweitern
|
|
*/
|
|
|
|
// Unterscheidung zwischen den aufrufenden Seitenbereichen
|
|
// --> Name ist außerdem beim Aufruf der JS-Funktion openCloseProfile(id, name, overlay) zu bilden!
|
|
// --> Bei einem neuen Seitenbereich ist zusätzlich der Listener (Escape-Taste) zu erweitern!
|
|
// --> In overlay_profile.php wird bei Escape-Taste bzw. Klick auf Exit mit id=0 sowie den entsprechenden name und overlay weggeblendet!
|
|
if (($isPageVisit ?? false) === true) {
|
|
$profile_container_name = "profile_visit";
|
|
$profile_overlay_id = "profile_visit_overlay";
|
|
$isPageVisit = false;
|
|
} elseif (($isPageCalendar ?? false) === true) {
|
|
$profile_container_name = "profile_calendar";
|
|
$profile_overlay_id = "profile_calendar_overlay";
|
|
$isPageCalendar = false;
|
|
}
|
|
|
|
|
|
// Statement für alle Profile vorbereiten
|
|
$stmt_all_profiles = $pdo->prepare("SELECT * FROM user_general_information");
|
|
$stmt_all_profiles->execute();
|
|
?>
|
|
<div class="standard_overlay" id="<?= $profile_overlay_id ?>"> <!-- Overlay: Profile -->
|
|
<div class="bg_blur"></div>
|
|
|
|
<?php
|
|
while ($profile_all = $stmt_all_profiles->fetch()) {
|
|
?>
|
|
<div class="profile_container" name="<?= $profile_container_name ?>" id="<?= $profile_all['user_id'] ?>">
|
|
<?php $_SESSION["profile_id"] = $profile_all['user_id'];
|
|
include $g_phpSnippetsPath. "overlay_profile.php"; ?>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|