ich hab ne frage und zwar bei den teams steht ja
[username][rank][icq][staat]wird angezeigt
so jetzt meine frage iis ich möchte den wohnort da noch einbinden und online/offline anzeige rein machen
z.b Ort: Deutschland Niedernwöhren
Position: Admin
Aktivität: Offline aktiv
Kontakt: E-Mail: nero@bayrische-kampfplantage.de
Administratorkommentar:
Serveradmin externer Link
hoffe ihr könnt mir da helfen ?
derzeit teams.php
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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | <?php # Copyright by: Manuel Staechele # 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 = 5; $i = 0; $z = 2; $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 ; #optional code von Nero $row [ 'footer1' ] = '' ; $row [ 'footer2' ] = '' ; if ( $i % $z == 0) { $row [ 'footer1' ] = '<tr class="' . $class . '">' ; } if ( $i % $z == $z -1) { $row [ 'footer2' ] = '</tr>' ; } $i ++; #optional code ende if ( $row [ 'staat' ] != '' ) { $row [ 'staat' ] = '<img src="include/images/flags/' . $row [ 'staat' ]. '" alt="" border="0">' ; } 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' ] = '' ; } 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="0" width="90" height="120" >' ; } $tpl ->set_ar_out( $row ,3); } else { $tpl ->set_ar_out( $row ,5); } } if ( $i % $z == $z -1){ $tpl ->out(4); } $tpl ->out(6); } 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 = '<a class="smalfont" href="index.php?teams">Teams</a> » ' . $name ; $design = new design ( $title , $hmenu ); $design ->header(); $tpl = new tpl ( 'teams' ); $tpl ->out(0); if (! empty ( $bild ) ) { $show = '<img src="' . $bild . '" title="' . $name . '" alt="' . $name . '" border="0"></a>' ; } else { $show = '<b>' . $name . '</b>' ; } $tpl ->set( 'name1' , $name ); $tpl ->set( 'show' , $show ); $tpl ->out(1); $row1 [ 'name1' ] = $name ; $tpl ->set_ar_out( $row1 ,2); show_members ( $gid , $tpl ); } else { $title = $allgAr [ 'title' ]. ' :: Teams' ; $hmenu = 'Teams' ; $design = new design ( $title , $hmenu ); $design ->header(); $tpl = new tpl ( 'teams' ); $tpl ->out(0); $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>' ; } $row [ 'name1' ] = $row [ 'name' ]; $tpl ->set_ar_out( $row ,1); $row1 [ 'name1' ] = $row [ 'name' ]; $tpl ->set_ar_out( $row1 ,2); if ( $allgAr [ 'teams_show_cat' ] == 0) { show_members ( $row [ 'gid' ], $tpl ); } } } $design ->footer(0); ?> |
Teams.htm
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 | <script type="text/javascript"> <!-- // toggle visibility function toggle( targetId ){ if (document.getElementById){ target = document.getElementById( targetId ); if (target.style.display == "none"){ target.style.display = ""; } else { target.style.display = "none"; } } } --> </script> {EXPLODE} <table width="100%" cellpadding="3" border="0" cellspacing="1" class="border"> <tr class="Cdark"> <td colspan="6" onClick="toggle('{name1}');return false;" style="cursor:pointer" valign="bottom" align="center">{show}</td> </tr> </table> {EXPLODE} <table width="100%" id="{name1}" style="display: none" cellpadding="3" border="0" cellspacing="1" class="border"> {EXPLODE} {footer1} <td width="49%" align="center"> <table width="100%" cellpadding="3" border="0" cellspacing="1"> <tr> <td width="49%" rowspan="6" height="152" valign="middle"><a href="index.php?user-details-{uid}">{avatar}</a></td> <td width="49%"><a href="index.php?user-details-{uid}">{name}</a></td> </tr><tr> <td width="49%" align="center">ICQ:{icq}</td> </tr><tr> <td width="49%">{posi}</td> </tr><tr> <td width="49%" align="center">{staat}</td> </tr><tr> <td width="49%">{status}</td> </tr><tr> <td width="49%"> </td> </tr> </table> </td> {footer2} {EXPLODE} <td width="49%" align="center"> </td> </tr> {EXPLODE} <tr class="{class}"> <td width="25%">{name}</td> <td width="10%" align="center">{icq}</td> <td width="25%">{posi}</td> <td width="5%" align="center">{staat}</td> <td width="20%">{status}</td> <td width="10%" align="center"><a href="index.php?user-details-{uid}">{_lang_more}</a></a></td> </tr> {EXPLODE} </table> <br /> |
Zuletzt modifiziert von revo2005 am 10.01.2010 - 18:15:54