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.
| 1. / 2. / ...
<?php
// ClanSphere 2007 - www.clansphere.net
// $Id: list.php 101 2006-07-12 09:36:29Z hajo $
$cs_lang = cs_translate('files');
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'headb');
echo $cs_lang['mod'];
echo cs_html_roco(0);
echo cs_html_table(0);
echo cs_html_br(1);
$where = "categories_mod = 'files' AND categories_access <= '" . $account['access_files'] . "'";
$categories_data = cs_sql_select(__FILE__,'categories','*',$where,'categories_name',0,0);
$categories_loop = count($categories_data);
for($run=0; $run<$categories_loop; $run++) {
echo cs_html_table(1,'forum',1);
echo cs_html_roco(1,'headb');
echo cs_link(cs_secure($categories_data[$run]['categories_name']),'files','listcat','where=' . $categories_data[$run]['categories_id']);
$content = cs_sql_count(__FILE__,'files',"categories_id = '" . $categories_data[$run]['categories_id'] . "'");
echo ' ('. $content .')';
echo cs_html_roco(0);
if(!empty($categories_data[$run]['categories_text']))
{
echo cs_html_roco(1,'leftb');
echo cs_link(cs_html_img($categories_data[$run]['categories_text']),'files','listcat','where=' . $categories_data[$run]['categories_id']);
echo cs_html_roco(0);
}
echo cs_html_table(0);
echo cs_html_br(1);
}
?> |