Location: PHPKode > scripts > WH Social > wh_social/events.php
<?php require('framework/session.php'); ?>
<?php require('framework/ready.php'); ?>
<?php require('style/layout/header.php'); ?>

<div id="content_wrapper">
    <div class="content">

    <?php

        echo '<div class="content_left">
        <div id="breadcrumb">
            <ul class="crumbs">
                <li class="first"><a href="index.php" style="z-index:9;"><span></span>' . $lang['index'] . '</a></li>
                <li><a href="events.php" style="z-index:8;">' . $lang['events'] . '</a></li>
            </ul>
        </div>
        </div>

        <div class="content_right">';

            include('modules/search.inc.php');
        echo '</div>

        <div class="clear_long"></div>';

        $ret = 1;

        echo '<div class="main_menu">';

            $ret = include 'framework/templates/'.$main_content['menu'];
        echo '<div id="line"></div>';

            $ret = include 'framework/templates/'.$main_content['infos'];
        echo '</div>';

        echo '<div class="main_content">';

        echo '<div id="timelineLimiter">
        <div id="timelineScroll">';

        $dates = array();
        $result = mysql_query("SELECT * FROM events ORDER BY date DESC");

        while($row = mysql_fetch_assoc($result)) {

            include_once('framework/functions/date.php');

            $dates[date('n',strtotime($row['date']))][] = $row;
            }

        $colors = array('green','blue','chreme');
        $scrollPoints = '';
        $i=0;

        foreach($dates as $month=>$array) {

            echo '<table width="100%" cellpadding="0" cellspacing="0">
            <tr><td>';

            echo '<div class="event">
            <div class="eventHeading ' . $colors[$i++%3] . '">' . $set_months[$month] . '</div>';

        foreach($array as $event) {

            echo '<p><p class="p_events">' . htmlentities($event['title'], ENT_QUOTES) . '</p>
            <small>' . date('d.m.Y - H:i', strtotime($event['date'])) . '</small></p>
            <br>
            ' . nl2br(stripslashes($event['content'])) . '';

            echo '<div class="clear"></div>';
            }

        echo '</div>';

        echo '</td></tr>
        </table>';
        }

        echo '</div>';

	?>

<?php require('style/layout/footer.php'); ?>
Return current item: WH Social