<?php
# Copyright by: Manuel
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
$title = $allgAr['title'].' :: User :: '.$lang['listofmembers'];
$hmenu = $extented_forum_menu.'User <b> » </b> '.$lang['listofmembers'].$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
$limit = 20; // Limit
$page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1 );
$MPL = db_make_sites ($page , "" , $limit , '?user' , 'user' );
$anfang = ($page - 1) * $limit;
$tpl = new tpl ( 'user/memb_list.htm' );
$tpl->set_out ( 'SITELINK', $MPL, 0);
$class = '';
$erg = db_query("SELECT
posts,
icq,
staat,
email,
llogin,
geschlecht,
prefix_user.id,
prefix_grundrechte.name as recht_name,
regist,
prefix_user.name
FROM prefix_user
LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id
ORDER by recht,prefix_user.posts DESC LIMIT ".$anfang.",".$limit);
while ($row = db_fetch_object($erg)) {
if($row->icq == ""){
$icq = "";
} else {
$icq = "<a href=http://www.icq.com/whitepages/cmd.php?uin=".str_replace("-","",$row->icq)."&action=add target=_blank><img src=http://status.icq.com/online.gif?web=".str_replace("-","",$row->icq)."&img=5 border=0></a>";
}
if($row->geschlecht == 0)
$geschlecht = 'n/a';
elseif($row->geschlecht == 1)
$geschlecht = 'Männlich';
else
$geschlecht = 'Weiblich';
if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; }
$ar = array ( 'NAME' => $row->name,
'RANG' => userrang($row->posts,$row->id),
'CLASS' => $class,
'POSTS' => $row->posts,
'ICQ' => $icq,
'UID' => $row->id,
'DATE' => date('d.m.Y',$row->regist),
'GRUPE' => $row->recht_name,
'STAAT' => $row->staat,
'EMAIL' => $row->email,
'GENDER' => $geschlecht,
'LLOGIN' => date('d.m.Y <b\r> H:i',$row->llogin).' Uhr'
);
$tpl->set_ar_out($ar,1);
}
$tpl->out(2);
$design->footer();
?>
Und dann in der include/templates/user/memb_list.htm noch eine Spalte mit {GENDER} einfügen