weiss aber nicht ob das das richtige Froum ist:
Also und zwar brauche ich folgendes eine Telefonliste habe mich schon mla geholfen weiss aber nicht wie ich es einrichten kann:
was sind das fuer bereiche wo makiert sind?
und was muesste ich zu was andern:
Template damit ihr sseht was ich benoetige:
<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="15%">Steam ID </th> <th width="10%">Telefon</th> <th width="15%" align="center">Handy</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>{steam}</td> <td align="center">{telefon}</td> <td align="center">{handy}</td> </tr>{EXPLODE} </table> <br /> <div align="center">{SITELINK}</div>
Und jetzt die 2 PhP dateien:
content/member.php
<?php # Copyright by: Manuel # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); # menu require_once('include/contents/forum/menu.php'); switch($menu->get(1)) { default : $userDatei = 'user_list'; break; case 'regist' : case 1 : $userDatei = 'regist'; break; case 'confirm' : $userDatei = 'confirm'; break; case 'login' : case 2 : $userDatei = 'login'; break; case 'logout' : case 3 : $userDatei = 'logout'; break; case 'mail' : case 4 : $userDatei = 'mail'; break; case 'usergallery' : $userDatei = 'usergallery'; break; case 'details' : case 6 : $userDatei = 'user_details'; break; case 'profil' : case 8 : $userDatei = 'profil_edit'; break; case 'remind' : case 13 : $userDatei = 'password_reminder'; break; } require_once('include/contents/member/'.$userDatei.'.php'); ?>
contentsmemberuser_list.php
<?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, 1, 'forum/index.htm' ); $design->header(); $limit = 20; // Limit $page = ($menu->getA(1) == 'p' ? $menu->getE(1) : 1 ); $MPL = db_make_sites ($page , "where recht <=-3" , $limit , '?member' , 'user' ); $anfang = ($page - 1) * $limit; $tpl = new tpl ( 'member/memb_list.htm' ); $tpl->set_out ( 'SITELINK', $MPL, 0); $class = ''; $erg = db_query("SELECT posts, prefix_user.id, prefix_user.recht, prefix_grundrechte.name as recht_name, regist, prefix_user.Telefon, 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 = ""; } if ($class == 'Cmite') { $class = 'Cnorm'; } else { $class = 'Cmite'; } $ar = array ( 'NAME' => $row->name, 'RANG' => userrang($row->posts,$row->id), 'ICQ' => $Telefon, 'CLASS' => $class, 'STEAMID' => $row->posts, 'UID' => $row->id, 'DATE' => date('d.m.Y',$row->regist), 'GRUPE' => $row->recht_name ); $tpl->set_ar_out($ar,1); } $tpl->out(2); $design->footer(); ?>
betroffene Homepage: externer Link
Zuletzt modifiziert von Excalibu am 26.03.2007 - 07:02:37