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.
| 1. / 2. / ...
<?php
// ClanSphere 2006 - www.clansphere.net
// $Id: navnext.php 101 2006-07-12 09:36:29Z hajo $
$cs_lang = cs_translate('events','navnext');
$select = 'events_id, events_name, events_time';
$upcome = "events_time > '" . cs_time() . "'";
$cs_events = cs_sql_select(__FILE__,'events',$select,$upcome,'events_time',0,7);
if(empty($cs_events)) {
echo $cs_lang['no_events'];
}
else {
echo cs_html_div(1,'text-align:center;');
foreach ($cs_events AS $events) {
echo cs_html_img('/symbols/clansphere/down_arrow_active.png');
echo cs_html_br(1);
echo cs_date('unix',$events['events_time'],1);
echo cs_html_br(1);
$headline = strlen($events['events_name']) <= 15 ? $events['events_name'] :
substr($events['events_name'],0,15) . '...';
$secure_name = cs_secure($headline);
echo cs_link($secure_name,'events','view','id=' . $events['events_id']);
echo cs_html_br(2);
}
echo cs_html_div(0);
}
?> |