-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconference_list.php
105 lines (66 loc) · 2.05 KB
/
conference_list.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
<?php //include('sys/connect.php');
//$conf_code = $_GET['conf'];
include('sys/functions.php');
require_once('include/front_header.php'); ?>
</div>
</div>
<div id="contents">
<div class="clearfix">
<div class="sidebar">
<div>
<h2>Quick Links</h2>
<ul>
<?php
$sql = mysqli_query($connection, "
SELECT *
FROM event
WHERE event_type = 'conference'
ORDER BY date_created DESC
");
if ($sql)
if (mysqli_num_rows($sql) > 0) {
while($row = mysqli_fetch_assoc($sql)) {
/*$event_id = $row['event_id'];
$event_code = $row['event_code'];
$row['title'];*/
echo" <a href='conference.php?conf=". $row['event_code'] ."'><li>
". $row['event_name'] ."
</p>
</li>
</a>
";
}
} ?>
</ul>
</div>
<div>
</div>
</div>
<div class="main">
<h1>Confrences</h1>
<ul class="news">
<?php
$sql = mysqli_query($connection, "
SELECT *
FROM event
WHERE event_type = 'conference'
ORDER BY date_created DESC
");
if ($sql)
if (mysqli_num_rows($sql) > 0) {
while($row = mysqli_fetch_assoc($sql)) {
/*$event_id = $row['event_id'];
$event_code = $row['event_code'];
$row['title'];*/
echo" <li><p><a href='conference.php?conf=". $row['event_code'] ."'><strong>". $row['event_name'] ."[". $row['event_code'] ."]</strong></a></p>
<p><strong>Date: </strong> From ".$row['event_start']." To ".$row['event_end']."</P>
<p><strong>Discription: </strong>".$row['event_description']."</p>
</li>
";
}
} ?>
</ul>
</div>
</div>
</div>
<?php require_once('include/front_footer.php'); ?>