From b5a58ad2dc91a7f3912931114fc2563c137aa191 Mon Sep 17 00:00:00 2001 From: Piotr Szefler Date: Sat, 27 Mar 2021 17:15:28 +0100 Subject: [PATCH] =?UTF-8?q?Prze=C5=9Blij=20pliki=20do=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- join_page_style.php | 204 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 204 insertions(+) create mode 100644 join_page_style.php diff --git a/join_page_style.php b/join_page_style.php new file mode 100644 index 0000000..0004bb0 --- /dev/null +++ b/join_page_style.php @@ -0,0 +1,204 @@ + + + + + + + Event Manager + + + + + + + + + + + + + + +

$a1

+
$a2
+ + +
+
Data pocz.
+
$a3
+
+END; + + +if($_SESSION['e_dtstr'] != $_SESSION['e_dtstp']){ + +echo<< +
Data koń.
+
$a4
+ +END; + +} + + +echo<< +
Godzina
+
$a5 - $a6
+ +END; + +echo<< +
Lokalizacja
+
$a7
+ +
+
Ilość miejsc
+
$a8
+
+ +
+ +
+END; + + +if($_SESSION['controller'] =="false"&& $akt_date <= $a3 ) +{ +echo<<
+ ✚ Dołącz +
+END; +} +elseif($_SESSION['controller'] =="true" && $akt_date <= $a3 ) +{ +echo<<
+ ☓ Opuść +
+
+ ✉ Eksport +
+ +END; +} + + if(($_SESSION['perm']=='modder' || $_SESSION['perm']=='admin')&& $akt_date <= $a3 ){ +echo<<
+ ✎ Edytuj +
+END; + } +echo<<
+ ➥ Powrót +
+ +
+ +
+ + +END; + + + + ini_set("display_errors", 0); + require_once "dbconnect.php"; + $polaczenie2 = mysqli_connect($host, $db_user, $db_password); + mysqli_query($polaczenie2, "SET CHARSET utf8"); + mysqli_query($polaczenie2, "SET NAMES 'utf8' COLLATE 'utf8_polish_ci'"); + mysqli_select_db($polaczenie2, $db_name); + + $zapytanietxt2 = "SELECT manager.employeeID, events.id_events, users.name, users.surnname FROM manager, events, users WHERE events.id_events = manager.id_events AND manager.id_events = ".$numevent." AND users.employeeID = manager.employeeID"; + $rezultat2 = mysqli_query($polaczenie2, $zapytanietxt2); + $ile2 = mysqli_num_rows($rezultat2); + $_SESSION['quantity_controller'] = $ile2; +echo<<
Imie
Nazwisko
+END; +for ($i = 1; $i <= $ile2; $i++) + { + $row2 = mysqli_fetch_assoc($rezultat2); + $f1 = $row2['name']; + $f2 = $row2['surnname']; + #$f1 = $_SESSION['name']; + #$f2 = $_SESSION['surnname']; + +echo<<$f1
$f2
+END; + } + +echo '
'; +if(isset($_SESSION['id_log'])){ + echo "".$_SESSION['id_log'].""; + unset($_SESSION['id_log']); + } + +?> + + + + + + + + + + +