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.
| 1. / 2. / ...
<?php
// ClanSphere 2007 - www.clansphere.net
// $Id: list.php 101 2006-07-29 20:30:00Z Drag0n $
$cs_lang = cs_translate('referenz');
empty($_REQUEST['start']) ? $start = 0 : $start = $_REQUEST['start'];
$cs_sort[1] = 'referenz_name DESC';
$cs_sort[2] = 'referenz_name ASC';
$cs_sort[3] = 'referenz_time DESC';
$cs_sort[4] = 'referenz_time ASC';
empty($_REQUEST['sort']) ? $sort = 2 : $sort = $_REQUEST['sort'];
$order = $cs_sort[$sort];
$referenz_count = cs_sql_count(__FILE__,'referenz');
$data['link']['new_site'] = cs_link($cs_lang['new_site'],'referenz','create');
$data['output']['all'] = $referenz_count;
$data['pages']['list'] = cs_pages('referenz','list',$referenz_count,$start,0,$sort);
$cs_referenz = cs_sql_select(__FILE__,'referenz','*','',$order,$start,$account['users_limit']);
$referenz_loop = count($cs_referenz);
if (empty($referenz_loop)) {
$data['referenz'] = '';
}
for($run=0; $run<$referenz_loop; $run++) {
if($run%2 == 0) {
$data['referenz'][$run]['break'] = '';}
else {
$data['referenz'][$run]['break'] = '<br>'; }
$pic = $cs_referenz[$run]['referenz_img_klein'];
$place = 'uploads/referenz/' . $pic;
if(!empty($pic)) {
$size = getimagesize($cs_main['def_path'] . '/' . $place);
$img = cs_html_img($place,$size[1],$size[0]);
$data['referenz'][$run]['picture'] = cs_link($img,'referenz','view','id=' . $cs_referenz[$run]['referenz_id']);
}
else {
$data['referenz'][$run]['picture'] = '';
}
$cs_users_id = $cs_referenz[$run]['users_id'];
$cs_user = cs_sql_select(__FILE__,'users','*',"users_id = '" . $cs_users_id . "'");
$url = 'symbols/countries/' . $cs_user['users_country'] . '.png';
$cs_users_nick = cs_secure($cs_user['users_nick']);
$data['referenz'][$run]['users_id'] = cs_html_img($url,11,16) . ' ';
$data['referenz'][$run]['users_id'] .= cs_link($cs_users_nick,'users','view','id=' . $cs_user['users_id']);
if(empty($cs_referenz[$run]['users_id'])) {
$data['referenz'][$run]['users_id'] = $cs_referenz[$run]['referenz_users_name'];
}
$data['referenz'][$run]['referenz_time'] = cs_date('unix',$cs_referenz[$run]['referenz_time'],0);
$data['referenz'][$run]['referenz_name'] = cs_link(cs_secure($cs_referenz[$run]['referenz_name']),'referenz','view','id=' . $cs_referenz[$run]['referenz_id']);
$data['referenz'][$run]['referenz_info'] = $cs_referenz[$run]['referenz_info'];
}
echo cs_subtemplate(__FILE__,$data,'referenz','list');
?> |