File: /home/panama/public_html_old/events.php
<?
include("include/config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?=META_DESCRIPTION?>" />
<meta name="keywords" content="<?=META_KEYWORD?>"/>
<title><?=SITE_TITLE."- Events"?></title>
<!-- Stylesheets -->
<link rel="stylesheet" type="text/css" href="styles.css"/>
<!-- Javascript -->
<!--[if IE 6]><script src="js/ie6.js"></script><![endif]-->
<link rel="stylesheet" href="css/dropdownmenu.css" type="text/css" />
<script type="text/javascript" src="js/dropdownmenu.js"></script>
<? include('includescript.php')?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-5977815-6']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<? include('header.php')?>
<div id="contentwrapper">
<div class="contentcontainer">
<div class="maincontainer">
<div class="servicesbannerwrapper"><img src="images/banner_services.jpg" width="958" height="178" alt=""/></div>
</div>
<div class="maincontainer">
<div class="maincontainer">
<div class="servicetextwrapper">
<div class="title"><span class="titleicons"><img src="images/icon_events.png" width="36" height="42" alt="CMS"/></span>
<span class="titletxt">Events</span>
</div>
<div class="servicescontainer">
<?
$event_list = new database();
$event_list->where("1 order by eventdate desc");
$event_list->selectstmt("events");
if($event_list->row_count > 0)
{
for($i=0;$i < $event_list->row_count;$i++)
{
$event_list->moveto($i);
$title= $event_list->f_title;
$simg = $event_list->f_simg;
$dt="";
if($event_list->f_datetime<>"0000-00-00") {
$tmp=split(" ",$event_list->f_datetime);
list($m,$d,$y) = split("-",$tmp[0]);
$dt = date("M jS, Y",mktime(0,0,0,$m,$d,$y))." ".$tmp[1];
}
$description = $event_list->f_shortdesc;
$db_photo = new database();
$db_photo->where("event_id=".$event_list->f_eid." order by rand() limit 0,1" );
$db_photo->selectstmt("event_photos");
if($db_photo->row_count > 0)
{
?>
<div style="width:20%;float:left;border:1px solid #CCCCCC;padding:5px" align="center">
<img src="display_image.php?path=uploaded_images/<?php echo $db_photo->f_path;?>&width=100&height=75&watermark=-1" border="0">
</div>
<? } // of photo found ?>
<div style="width:76%;float:right;vertical-align:top;">
<span class="newstitle" align="left"><?=$title?></span>
<p align="left">
<?=$dt?><br />
<?=$event_list->f_venue?>
</p>
</div>
<div style="clear:both"></div>
<div align="left">
<?=$description?>
<span class="readmore"> <a href="event_detail.php?event_id=<?=base64_encode($event_list->f_eid)?>" title="read more" class="readmore">{read more}</a></span>
</div>
<div style="clear:both"></div>
<div style="height:15px"><div class="btmborderdot"></div></div>
<? }
}
?>
</div>
</div>
<div class="servicesphotowrapper">
<div class="servicesphotocontainer">
<? include("right.php");?>
</div>
</div>
</div>
</div>
</div>
<? include('footer.php')?>
</div>
</body>
</html>