-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexplore.php
59 lines (55 loc) · 2.49 KB
/
explore.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
$pageTitle = "Dashboard";
$stylesheet = "dashboard.css";
require 'templates/header.php';
if ($_SESSION["signed_in"] == false) {
header("Location: ./index.php");
}
$nameError = "";
$locationError = "";
$dateError = "";
$categoryError = "";
$descriptionError = "";
$imageError = "";
if (isset($_GET["error"])) {
if ($_GET["error"] == "emptyname") $nameError = "Name cannot be blank";
if ($_GET["error"] == "emptylocation") $locationError = "Location cannot be blank";
if ($_GET["error"] == "emptydate") $dateError = "Please select a date";
if ($_GET["error"] == "emptycategory") $categoryError = "Please select a category";
if ($_GET["error"] == "emptydescription") $descriptionError = "Description cannot be blank";
if ($_GET["error"] == "emptyimage") $imageError = "Please upload an image";
}
?>
<main class="overflow-hidden">
<div class="row">
<div class="col-12 col-md-10">
<div class="container mt-5 pb-5 pb-md-0">
<div class="" id="events-container">
<div class="d-flex justify-content-between align-items-center border-bottom border-4 border-color">
<h4 class="text-white fw-bold">Explore</h4>
<div class="input-group mb-3 search-responsiveness">
<div class="position-relative w-100 mb-3 d-flex">
<input type="text" class="form-control search-input smaller-text" placeholder="Search for anything" aria-label="Search for events" aria-describedby="button-addon2">
<p class="search-text text-white p-2 smaller-text"></p>
<div class="text-white text-end p-2">
<i class="fas fa-search"></i>
</div>
</div>
</div>
</div>
<div class="events row" id="explore-events">
</div>
</div>
<div class="d-none" id="event-details-container">
<h4 class="border-bottom border-4 text-white pb-3 mb-4 border-color"><span class="fw-bold">Explore</span> / <span class="text-muted event-title"></span></h4>
<?php require 'templates/event-details.php'; ?>
</div>
</div>
</div>
<?php require 'templates/nav.php' ?>
</div>
</main>
<?php
$scriptsheet = "dashboard.js";
require 'templates/footer.php';
?>