forked from yongri/heliosinformatika
-
Notifications
You must be signed in to change notification settings - Fork 0
/
event_eu.php
134 lines (129 loc) · 5.68 KB
/
event_eu.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
<?php
session_start();
include "connection.php";
include "cons.php";
include"header.php";
?>
<div class="container overviewevent">
<div class="container overviewmidle">
<div class="col-lg-12">
<div class="col-lg-8 pull-left">
<ol class="breadcrumb">
<li><a href="#" class="jejak">Home</a></li>
<li class="active">Events</li>
</ol>
</div>
<div class="col-lg-4">
<!-- Title Product --> <h3 class="event">Events</h3>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="col-lg-4">
<div class="box leftmenu">
<div id='cssmenu'>
<ul>
<?php $sql1=("SELECT * FROM event WHERE Category_id='2' ORDER BY Event_id DESC LIMIT 5") or die (mysql_error());
$query1=mysql_query($sql1);
while($data1=mysql_fetch_array($query1))
{
$event_id =$data1['Event_id'];
if($event_id > 0){
?>
<li class='active'><a href='http://<?php echo BASE_URL; ?>/event_detail.php?id=<?php echo $data1['Event_id']; ?>'><span><?php echo $data1['Event_name']; ?></span><br/><br/><span><em><?php echo $data1['Start']; ?></em></span></a></li>
<?php }
else{
echo "<span>>No Event</span>";
}
} ?>
<li class='active'><a href='http://<?php echo BASE_URL; ?>/event_archieve.php'><span><em>See More Events</em></span></a></li>
</ul>
</div>
</div>
<div class="row kosong"></div>
<div class="col-lg-12 leftbanner">
<div class="col-lg-4">
<div class="box">
<?php $sql2="SELECT * FROM banner ORDER BY Banner_id DESC";
$query2=mysql_query($sql2);
while($data2=mysql_fetch_array($query2))
{
?>
<div class="box-gray banner">
<img src="http://<?php echo BASE_URL; ?>/img/banner/<?php echo $data2['Image']; ?>">
</div>
<div class="row kosong"></div>
<?php } ?>
</div>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="box">
<div class="box-gray eventcontent">
<div class="alert alert-info alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
Next event to be announced.
</div>
<h4 class="directorside">Previous Event </h4><hr><br/>
<section id="projects">
<?php
$sql3="SELECT * FROM event WHERE Category_id='2' ORDER BY Event_id DESC LIMIT 1";
$query3=mysql_query($sql3);
while($data3=mysql_fetch_array($query3)) {
$event_id =$data3['Event_id'];
if($event_id > 0){
/*$img =$data3['Event_image'];
$event =$data3['Event_name'];
$location =$data3['Location'];
$start =$data3['Start'];
$end =$data3['End']; */
?>
<div class="media">
<a class="pull-left" href="#">
<!-- <img class="media-object" src="http://<?php echo BASE_URL; ?>/img/event/<?php echo $data3['Event_image']; ?>" width="300px" height="425px" alt="">-->
<ul id="thumbs" class="portfolio">
<!-- Item Project and Filter Name -->
<li class="col-lg-6 design" data-id="id-0" data-type="web">
<div class="item-thumbs">
<!-- Fancybox - Gallery Enabled - Title - Full Image -->
<a class="hover-wrap fancybox" data-fancybox-group="gallery" title="<?php echo $data['Event_name']; ?>" href="http://<?php echo BASE_URL; ?>/img/event/<?php echo $data3['Event_image']; ?>">
<span class="overlay-img"></span>
<span class="overlay-img-thumb font-icon-plus"></span>
</a>
<!-- Thumb Image and Description -->
<img src="http://<?php echo BASE_URL; ?>/img/event/<?php echo $data3['Event_image']; ?>" alt="">
</div>
</li>
</ul>
</a>
<div class="media-body">
<p class="paragraph"><?php echo '<h3 class="title_event">'.$data3['Event_name'].'</h3>'; ?></p>
<p class="paragraph"><?php echo '<strong>Place : </strong><br>'.$data3['Location']; ?></p>
<p class="paragraph"><?php echo "<strong>Date : </strong><br>" .$data3['Start']." - "; ?>
<?php echo " ".$data3['End']. " "; ?></p>
<p class="paragraph"><?php echo "<strong>Time : </strong><br>" .$data3['Time']." - "; ?>
<?php echo " ".$data3['Finish']. " "; ?></p>
<?php if($data3['End'] > date('Y-m-d')) {
echo "
<p class='paragraph'><a class='btn btn-primary btn-sm active' href='mailto:perli.yanti@computradetech.com?subject=Registration ".$data3['Event_name']."&body=%0A-----------------------------------------------------------------------------------------------------------------------------%0A%20Please%20complete%20information%20below%20for%20registration%0A%20Company%20:%0A%20%20Name%20:%0A%20%20Job%20Title%20:%0A%20%20Email%20:%0A%20%20Phone%20:%0A%20%20Mobile%20:%0A%20%20Note%20:%20you%20can%20register%20other%20person%20from%20your%20company.%0A%20-----------------------------------------------------------------------------------------------------------------------------' role='button'>REGISTER</a></p>";
} else if($data3['End'] < date('Y-m-d')){
echo "<p class='paragraph'><font color='red'>Event has Passed</font></p>";
}
?>
<?php }
else{
echo "<p class='paragraph'>No Event</p>";
}
?>
</div>
</div>
<?php } ?>
</section>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include "footer.php"; ?>