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.
| 1. / 2. / ...
<?php
// ClanSphere 2008 - www.clansphere.net
// $Id: list.php 101 2006-07-12 09:36:29Z hajo $
$cs_lang = cs_translate('events');
$categories_id = empty($_REQUEST['where']) ? 0 : $_REQUEST['where'];
settype($categories_id,'integer');
$where = empty($categories_id) ? 0 : "categories_id = '" . $categories_id . "'";
$start = empty($_REQUEST['start']) ? 0 : $_REQUEST['start'];
$cs_sort[1] = 'events_time DESC';
$cs_sort[2] = 'events_time ASC';
$cs_sort[3] = 'events_name DESC';
$cs_sort[4] = 'events_name ASC';
$sort = empty($_REQUEST['sort']) ? 1 : $_REQUEST['sort'];
$order = $cs_sort[$sort];
$events_count = cs_sql_count(__FILE__,'events',$where);
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'headb',0,2);
echo $cs_lang['mod'] . ' - ' . $cs_lang['head_list'];
echo cs_html_roco(0);
echo cs_html_roco(1,'leftb');
echo cs_icon('contents') . $cs_lang['all'] . $events_count;
echo cs_html_roco(2,'rightb');
echo cs_pages('events','list',$events_count,$start,$categories_id,$sort);
echo cs_html_roco(0);
echo cs_html_roco(1,'leftb');
echo $cs_lang['category'];
echo cs_html_form(1,'events_list','events','list');
$eventsmod = "categories_mod = 'events'";
$categories_data = cs_sql_select(__FILE__,'categories','*',$eventsmod,'categories_name',0,0);
echo cs_dropdown('where','categories_name',$categories_data,$categories_id,'categories_id');
echo cs_html_vote('submit',$cs_lang['show'],'submit');
echo cs_html_form(0);
echo cs_html_roco(2,'rightb');
echo cs_link($cs_lang['calendar'],'events','calendar');
echo cs_html_roco(0);
echo cs_html_table(0);
echo cs_html_br(1);
$select = 'events_name, events_time, events_id';
$cs_events = cs_sql_select(__FILE__,'events',$select,$where,$order,$start,$account['users_limit']);
$events_loop = count($cs_events);
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'headb');
echo cs_sort('events','list',$start,$categories_id,1,$sort);
echo $cs_lang['date'];
echo cs_html_roco(2,'headb');
echo cs_sort('events','list',$start,$categories_id,3,$sort);
echo $cs_lang['name'];
echo cs_html_roco(0);
for($run=0; $run<$events_loop; $run++) {
echo cs_html_roco(1,'leftc');
echo cs_date('unix',$cs_events[$run]['events_time'],1);
echo cs_html_roco(2,'leftc');
$sec_head = cs_secure($cs_events[$run]['events_name']);
echo cs_link($sec_head,'events','view','id=' . $cs_events[$run]['events_id']);
echo cs_html_roco(0);
}
echo cs_html_table(0);
?>
|