Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
} $row['status'] = ($row['status']? 'aktiv' : 'inaktiv' ); $row['STATUS']; if(!empty($row['icq'])){
} $row['status'] = ($row['status']? 'aktiv' : 'inaktiv' ); $row['STATUS'] = '<font color="'.$tc.'">||||||||</font>',);} if($row['status'] == '0'){$ustatus = 'INAKTIV ';} elseif($row['status'] == '2'){$ustatus = 'GESPERRT ';} else{$ustatus = '';} $na = (time()-$row['llogin'])/(24*60*60); if ($na < 9) { $tc = 'lime'; }elseif ($na < 20) { $tc = 'yellow'; }else{ $tc = 'red'; }
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); function show_members ($gid,$tpl) { global $allgAr; # icq team bild, hier die zahl aendern. $teams_show_icq_pic = 7; $tpl->out(1); $class = 'Cnorm'; $q = "SELECT b.uid, a.icq, a.avatar, a.status, a.name, c.name as posi, staat FROM prefix_groupusers b LEFT JOIN prefix_user a ON a.id = b.uid LEFT JOIN prefix_groupfuncs c ON b.fid = c.id WHERE b.gid = ".$gid." ORDER BY c.pos ASC, a.name ASC"; $erg = db_query($q); while($row = db_fetch_assoc($erg) ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $row['class'] = $class; if ( $row['staat'] != '' ) { $row['staat'] = '<img src="include/images/flags/'.$row['staat'].'" alt="" border="1">'; } else { $row['staat'] = 'n/a'; } $row['status'] = ($row['status']? 'aktiv' : 'inaktiv' ); if(!empty($row['icq'])){ $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$row['icq'].'&action=add"><img src="http://wwp.icq.com/scripts/online.dll?icq='.$row['icq'].'&img='.$teams_show_icq_pic.'" valign="bottom" border="0"></a>'; } else { $row['icq'] = 'n/a'; } if($allgAr['teams_show_list']==1){ if(empty($row['avatar'])){ $row['avatar'] = 'n/a'; } else { $row['avatar'] = '<img src="'.$row['avatar'].'" alt="Avatar von '.$row['name'].'" border="1" >'; } $tpl->set_ar_out($row,2); } else { $tpl->set_ar_out($row,3); } } $tpl->out(4); } if ($menu->get(1) == 'show') { $gid = escape($menu->get(2), 'integer'); $name = @db_result (db_query("SELECT name FROM prefix_groups WHERE zeigen = 1 AND id =".$gid)); $bild = @db_result (db_query("SELECT img FROM prefix_groups WHERE zeigen = 1 AND id =".$gid)); $title = $allgAr['title'].' :: Teams :: '.$name; $hmenu = 'Teams'; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('teams'); if (!empty($bild) ) { $show = '<img src="'.$bild.'" title="'.$name.'" alt="'.$name.'" border="0"></a>'; } else { $show = '<b>'.$name.'</b>'; } $tpl->set_out('show', $show,0); show_members ($gid,$tpl); } else { $title = $allgAr['title'].' :: Teams'; $hmenu = '<center>Next Generation Terrorists Mitglieder</center>'; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('teams'); $erg1 = db_query("SELECT name,img,id as gid FROM prefix_groups WHERE zeigen = 1 ORDER BY pos"); while ($row = db_fetch_assoc($erg1) ) { if (!empty($row['img']) ) { $row['show'] = '<a href="index.php?teams-show-'.$row['gid'].'"><img src="'.$row['img'].'" title="'.$row['name'].'" alt="'.$row['name'].'" border="0"></a>'; } else { $row['show'] = '<a href="index.php?teams-show-'.$row['gid'].'"><b>'.$row['name'].'</b></a>'; } $tpl->set_ar_out($row,0); if ($allgAr['teams_show_cat'] == 0) { show_members ($row['gid'],$tpl); } } } $design->footer(0); ?>
$row['STATUS'] = '<font color="'.$tc.'">||||||||</font>';
} $row['status'] = ($row['status']? 'aktiv' : 'inaktiv' ); $row['STATUS'] = '<font color="'.$tc.'">||||||||</font>',);} if($row['status'] == '0'){$ustatus = 'INAKTIV ';} elseif($row['status'] == '2'){$ustatus = 'GESPERRT ';} else{$ustatus = '';} $na = (time()-$row['llogin'])/(24*60*60); if ($na < 9) { $tc = 'lime'; }elseif ($na < 20) { $tc = 'yellow'; }else{ $tc = 'red'; } if(!empty($row['icq'])){
$na = (time()-$row['llogin'])/(24*60*60); if ($na < 9) { $tc = 'lime'; }elseif ($na < 20) { $tc = 'yellow'; }else{ $tc = 'red'; }muss über da es belegt sein soll natürlich vor dem $row['STATUS'] kommen, und es muss llogin in der Datenbankabfrage hinzugefügt werden.
$q = "SELECT b.uid, a.icq, a.avatar, a.status, a.name, c.name as posi, a.staat, a.llogin FROM prefix_groupusers b LEFT JOIN prefix_user a ON a.id = b.uid LEFT JOIN prefix_groupfuncs c ON b.fid = c.id WHERE b.gid = ".$gid." ORDER BY c.pos ASC, a.name ASC";
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); function show_members ($gid,$tpl) { global $allgAr; # icq team bild, hier die zahl aendern. $teams_show_icq_pic = 7; $tpl->out(1); $class = 'Cnorm'; $q = "SELECT b.uid, a.icq, a.avatar, a.status, a.name, c.name as posi, a.staat, a.llogin FROM prefix_groupusers b LEFT JOIN prefix_user a ON a.id = b.uid LEFT JOIN prefix_groupfuncs c ON b.fid = c.id WHERE b.gid = ".$gid." ORDER BY c.pos ASC, a.name ASC"; $erg = db_query($q); while($row = db_fetch_assoc($erg) ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $row['class'] = $class; if ( $row['staat'] != '' ) { $row['staat'] = '<img src="include/images/flags/'.$row['staat'].'" alt="" border="1">'; } else { $row['staat'] = 'n/a'; } $row['status'] = ($row['status']? 'aktiv' : 'inaktiv' ); $na = (time()-$row['llogin'])/(24*60*60); if ($na < 9) { $tc = 'lime'; }elseif ($na < 20) { $tc = 'yellow'; }else{ $tc = 'red'; } $row['STATUS'] = '<font color="'.$tc.'">||||||||</font>'; if(!empty($row['icq'])){ $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$row['icq'].'&action=add"><img src="http://wwp.icq.com/scripts/online.dll?icq='.$row['icq'].'&img='.$teams_show_icq_pic.'" valign="bottom" border="0"></a>'; } else { $row['icq'] = 'n/a'; } if($allgAr['teams_show_list']==1){ if(empty($row['avatar'])){ $row['avatar'] = 'n/a'; } else { $row['avatar'] = '<img src="'.$row['avatar'].'" alt="Avatar von '.$row['name'].'" border="1" >'; } $tpl->set_ar_out($row,2); } else { $tpl->set_ar_out($row,3); } } $tpl->out(4); } if ($menu->get(1) == 'show') { $gid = escape($menu->get(2), 'integer'); $name = @db_result (db_query("SELECT name FROM prefix_groups WHERE zeigen = 1 AND id =".$gid)); $bild = @db_result (db_query("SELECT img FROM prefix_groups WHERE zeigen = 1 AND id =".$gid)); $title = $allgAr['title'].' :: Teams :: '.$name; $hmenu = 'Teams'; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('teams'); if (!empty($bild) ) { $show = '<img src="'.$bild.'" title="'.$name.'" alt="'.$name.'" border="0"></a>'; } else { $show = '<b>'.$name.'</b>'; } $tpl->set_out('show', $show,0); show_members ($gid,$tpl); } else { $title = $allgAr['title'].' :: Teams'; $hmenu = '<center>Next Generation Terrorists Mitglieder</center>'; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('teams'); $erg1 = db_query("SELECT name,img,id as gid FROM prefix_groups WHERE zeigen = 1 ORDER BY pos"); while ($row = db_fetch_assoc($erg1) ) { if (!empty($row['img']) ) { $row['show'] = '<a href="index.php?teams-show-'.$row['gid'].'"><img src="'.$row['img'].'" title="'.$row['name'].'" alt="'.$row['name'].'" border="0"></a>'; } else { $row['show'] = '<a href="index.php?teams-show-'.$row['gid'].'"><b>'.$row['name'].'</b></a>'; } $tpl->set_ar_out($row,0); if ($allgAr['teams_show_cat'] == 0) { show_members ($row['gid'],$tpl); } } } $design->footer(0); ?>
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Member :: '.$lang['listofmembers']; $hmenu = $extented_forum_menu.'Member <b> » </b> '.$lang['listofmembers'].$extented_forum_menu_sufix; $design = new design ( $title , $hmenu); $design->header(); $limit = 50; // Limit $page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1 ); $MPL = db_make_sites ($page , "where recht <=-3" , $limit , '?aktiv' , 'user' ); $anfang = ($page - 1) * $limit; $tpl = new tpl ( 'aktiv/memb_list.htm' ); $tpl->set_out ( 'SITELINK', $MPL, 0); $class = ''; $erg = db_query("SELECT llogin, posts, prefix_user.id, prefix_user.recht, prefix_grundrechte.name as recht_name, regist, prefix_user.icq, prefix_user.name FROM prefix_user LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id WHERE prefix_user.recht <=-3 ORDER by recht,prefix_user.posts DESC LIMIT ".$anfang.",".$limit); while ($row = db_fetch_object($erg)) { if (is_numeric($row->icq)){ $icq = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$row->icq.'&action=add"><img src="http://web.icq.com/whitepages/online?icq='.$row->icq.'&img=5" border="0"></a>'; }else{ $icq = ""; } $na = (time()-$row['llogin'])/(24*60*60); if ($na < 9) { $tc = 'lime'; } elseif ($na < 20) { $tc = 'yellow'; } else { $tc = 'red'; } if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $ar = array ( 'NAME' => $row->name, 'RANG' => userrang($row->posts,$row->id), 'ICQ' => $icq, 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name, 'STATUS' => '<font color="'.$tc.'">||||||||</font>' ); $tpl->set_ar_out($ar,1); } $tpl->out(2); $design->footer(); ?>
Fatal error: Cannot use object of type stdClass as array in /include/contents/aktiv/user_list.php on line 48
<?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 id, staat, name, gebdatum, status, recht, posts, regist, geschlecht, cpoints, fwarn FROM prefix_user ORDER by recht,posts DESC LIMIT ".$anfang.",".$limit); while ($row = db_fetch_object($erg)) { if($row->gebdatum=='0000-00-00'){$age='n/a'; } else {$age=getage($row->gebdatum); } if(!empty($row->staat)){ $flag='<img src="include/images/flags/'.$row->staat.'" border="0">'; } else { $flag=''; } $state['0']='inaktiv'; $state['1']='aktiv'; $state['2']='gesperrt'; $class='Cmite'; if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $rangcount=rangcount($row->id,$row->posts,$row->cpoints,$row->fwarn); $rang=userrang($rangcount,$row->id); $spezrank=spezrang($row->id); if(!empty($spezrank)){$rang=$rang.'<br/>und '.$spezrank;} $ar = array ( 'NAME' => getgender($row->name,$row->geschlecht).' ('.$age.')', 'RANG' => $rang, 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'RECHT' => getlistrecht($row->recht), 'STATE' => $state[$row->status], 'FLAG' => $flag ); $tpl->set_ar_out($ar,1); } $tpl->out(2); $design->footer(); ?>
<?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 id, staat, name, gebdatum, status, recht, posts, regist, geschlecht, cpoints, fwarn FROM prefix_user ORDER by recht,posts DESC LIMIT ".$anfang.",".$limit); while ($row = db_fetch_object($erg)) { if($row->gebdatum=='0000-00-00'){$age='n/a'; } else {$age=getage($row->gebdatum); } if(!empty($row->staat)){ $flag='<img src="include/images/flags/'.$row->staat.'" border="0">'; } else { $flag=''; } $state['0']='inaktiv'; $state['1']='aktiv'; $state['2']='gesperrt'; $class='Cmite'; if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $rangcount=rangcount($row->id,$row->posts,$row->cpoints,$row->fwarn); $rang=userrang($rangcount,$row->id); $spezrank=spezrang($row->id); if(!empty($spezrank)){$rang=$rang.'<br/>und '.$spezrank;} $ar = array ( 'NAME' => getgender($row->name,$row->geschlecht).' ('.$age.')', 'RANG' => $rang, 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'RECHT' => getlistrecht($row->recht), 'STATE' => $state[$row->status], 'FLAG' => $flag ); $tpl->set_ar_out($ar,1); } $erg = db_query("SELECT llogin, posts, 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)) { $na = (time()-$row['llogin'])/(24*60*60); if ($na < 9) { $tc = 'lime'; elseif ($na < 20) { $tc = 'yellow'; } else { $tc = 'red'; } if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $ar = array ( 'NAME' => $row->name, 'RANG' => userrang($row->posts,$row->id), 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name, 'STATUS' => '<font color="'.$tc.'">||||||||</font>' ); $tpl->out(2); $design->footer(); ?>
<?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 id, staat, name, gebdatum, status, recht, posts, regist, geschlecht, cpoints, fwarn, llogin FROM prefix_user ORDER by recht,posts DESC LIMIT ".$anfang.",".$limit); while ($row = db_fetch_object($erg)) { if($row->gebdatum=='0000-00-00'){$age='n/a'; } else {$age=getage($row->gebdatum); } if(!empty($row->staat)){ $flag='<img src="include/images/flags/'.$row->staat.'" border="0">'; } else { $flag=''; } $state['0']='inaktiv'; $state['1']='aktiv'; $state['2']='gesperrt'; $class='Cmite'; if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $rangcount=rangcount($row->id,$row->posts,$row->cpoints,$row->fwarn); $rang=userrang($rangcount,$row->id); $spezrank=spezrang($row->id); if(!empty($spezrank)){$rang=$rang.'<br/>und '.$spezrank;} $na = (time()-$row->llogin)/(24*60*60); if ($na < 9) { $tc = 'lime'; } elseif ($na < 20) { $tc = 'yellow'; } else { $tc = 'red'; } $ar = array ( 'NAME' => getgender($row->name,$row->geschlecht).' ('.$age.')', 'RANG' => $rang, 'CLASS' => $class, 'POSTS' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'RECHT' => getlistrecht($row->recht), 'STATE' => $state[$row->status], 'FLAG' => $flag, 'STATUS' => '<font color="'.$tc.'">||||||||</font>' ); $tpl->set_ar_out($ar,1); } $tpl->out(2); $design->footer(); ?>
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="border"> <tr class="Chead" > <th height="30" width="30%">{_lang_name}</th> <th align="center" width="20%">{_lang_rank}</th> <th align="center" width="20%">{_lang_group}</th> <th width="10%">{_lang_regtime}</th> <th width="10%" align="center">{_lang_posts}</th> <th align="center">Aktivität</th> </tr>{EXPLODE}<tr class="{CLASS}"> <td><a href="index.php?user-details-{UID}">{NAME}</a></td> <td align="center"><font style="font-size: 10px">{RANG}</font></td> <td align="center">{GRUPE}</td> <td>{DATE}</td> <td align="center">{POSTS}</td> <td align="center">{STATUS}</td> </tr>{EXPLODE} </table> <br /> <div align="center">{SITELINK} <form method="get" action="index.php"><input type="hidden" name="user" value="" /><input type="text" name="filtername" size="15" value="{filtername}" /> <input type="submit" value="{_lang_filter}" /></form> </div>
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="border"> <tr class="Chead" > <th height="30" width="30%">{_lang_name}</th> <th align="center" width="20%">{_lang_rank}</th> <th width="10%">{_lang_regtime}</th> <th width="10%" align="center">{_lang_posts}</th> <th align="center">Aktivität</th> </tr>{EXPLODE}<tr class="{CLASS}"> <td><a href="index.php?user-details-{UID}">{NAME}</a></td> <td align="center"><font style="font-size: 10px">{RANG}</font></td> <td>{DATE}</td> <td align="center">{POSTS}</td> <td align="center">{STATUS}</td> </tr>{EXPLODE} </table> <br /> <div align="center">{SITELINK} <form method="get" action="index.php"><input type="hidden" name="user" value="" /><input type="text" name="filtername" size="15" value="{filtername}" /> <input type="submit" value="{_lang_filter}" /></form> </div>
Geschlossen | ||
Zurück zu HTML, PHP, SQL,... |