-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.php
139 lines (139 loc) · 7.63 KB
/
events.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
// include("loadDump.php");
include("db.php");
//include("dbremote.php");
?>
<?php
include 'header.php';
?>
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<!-- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/people.css">
<div class="bg-secondary rounded-0 text-white">
<div class="container p-3">
<div class="row justify-content-center">
<div class="col-sm-12">
<h3 class="fw-bold faculty-heading">Events</h3>
</div>
</div>
</div>
</div>
<section class="bg-grey p-3">
<div class="event-schedule-area-two bg-color pad100">
<div class="container">
<!-- row end-->
<div class="row">
<div class="col-lg-12">
<ul class="nav custom-tab" id="myTab" role="tablist">
<li class="nav-item pull-left">
<a class="nav-link active show" id="ep-tab" data-toggle="tab" href="#ep" role="tab"
aria-controls="ep" aria-selected="true">Upcoming events</a>
</li>
<li class="nav-item">
<a class="nav-link" id="msc-tab" data-toggle="tab" href="#msc" role="tab"
aria-controls="msc" aria-selected="false">Past events</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade active show" id="ep" role="tabpanel">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Title</th>
<th scope="col">Speaker</th>
<th scope="col">Venue</th>
<th scope="col">Date And Time</th>
</tr>
</thead>
<tbody>
<?php
$sqlFetchStudents = "SELECT * FROM events where eventType = 'upcoming'";
$result = $conn->query($sqlFetchStudents);
while ($row = $result->fetch_assoc()) {
echo "<tr class='inner-box'>
<td>
<div class='event-wrap'>
<span><a href='event.php?id=" . $row['eventId'] . "'>" . $row['eventTitle'] . "</a></span>
</div>
</td>
<td>
<div class='r-no'>
<span>" . $row['eventSpeaker'] . "</span>
</div>
</td>
<td>
<div class='event-wrap'>
<span>" . $row['eventVenue'] . "</span>
</div>
</td>
<td>
<div class='r-no'>
<span>" . $row['eventDateTime'] . "</span>
</div>
</td>
</tr>";
}
?>
</tbody>
</table>
</div>
</div>
<div class="tab-pane fade" id="msc" role="tabpanel">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Title</th>
<th scope="col">Speaker</th>
<th scope="col">Venue</th>
<th scope="col">Date And Time</th>
</tr>
</thead>
<tbody>
<?php
// $currDateTime = date("yyyy-mm-dd ")
$sqlFetchStudents = "SELECT * FROM events where eventType = 'past'";
$result = $conn->query($sqlFetchStudents);
while ($row = $result->fetch_assoc()) {
echo "<tr class='inner-box'>
<td>
<div class='event-wrap'>
<span><a href='event.php?id=" . $row['eventId'] . "'>" . $row['eventTitle'] . "</a></span>
</div>
</td>
<td>
<div class='r-no'>
<span>" . $row['eventSpeaker'] . "</span>
</div>
</td>
<td>
<div class='event-wrap'>
<span>" . $row['eventVenue'] . "</span>
</div>
</td>
<td>
<div class='r-no'>
<span>" . $row['eventDateTime'] . "</span>
</div>
</td>
</tr>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /col end-->
</div>
<!-- /row end-->
</div>
</div>
</section>
<?php
include 'footer.php';
?>