ich habe die Datei "meber_list.php" um die Zeilen mit "Vorstand" erweitert und die Datenbank in der Tabelle "ic1_user" um die Spalte "vorstand" erweitert.
member_list.php
<?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 $tpl = new tpl ( 'user/vorstand_list.htm' ); if($menu->exists('filtername')){ $page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 ); $filtername = escape($menu->get(2), 'string'); }else{ $page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1 ); } $anfang = ($page - 1) * $limit; $tpl = new tpl ( 'user/vorstand_list.htm' ); if(isset($_GET['filtername']) AND !empty($_GET['filtername'])){ $filtername = escape($_GET['filtername'], 'string'); } if(!empty($filtername)){ $sql_search=" WHERE prefix_user.name LIKE '%".$filtername."%'"; $MPL = db_make_sites ($page , $sql_search , $limit , '?user-filtername-'.$filtername , 'user' ); }else{ $sql_search=""; $MPL = db_make_sites ($page , "" , $limit , '?user' , 'user' ); } $tpl->set_out ( 'SITELINK', $MPL, 0); $class = ''; $erg = db_query("SELECT posts, prefix_user.id, prefix_user.vorstand, /* Hier eingefuegt Vorstand */ prefix_grundrechte.name as recht_name, regist, prefix_user.name FROM prefix_user LEFT JOIN prefix_grundrechte ON prefix_user.recht = prefix_grundrechte.id $sql_search ORDER by recht,prefix_user.posts DESC LIMIT ".$anfang.",".$limit); while ($row = db_fetch_object($erg)) { 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, 'VORST' => $row->vorstand ); $tpl->set_ar_out($ar,1); } $tpl->set_out('filtername',$filtername ? $filtername : '',2); $design->footer(); ?>
Als Ausgabe habe ich die Datei "vorstand_list.htm"
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="border"> <tr class="Chead" > <th height="30" width="20%">{_lang_name}</th> <th width="10%" align="center">{_lang_vorstand}</th> <th align="center" width="20%">{_lang_rank}</th> <th align="center" width="20%">{_lang_group}</th> <th width="15%">{_lang_regtime}</th> <th width="15%" align="center">{_lang_posts}</th> </tr>{EXPLODE}<tr class="{CLASS}"> <td><a href="index.php?user-details-{UID}">{NAME}</a></td> <td align="center">{VORST}</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> </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>
Meine Frage: Was muss ich ändern damit nur User angezeigt werden die in der Spalte "vorstand" auch einen Eintrag haben.
Vielen Dank im Vorraus
MfG heinz2
verwendete ilch Version: 1.1 P
betroffene Homepage: fischerfreunde-haimhausen.de