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 | <table cellpadding= "0" cellspacing= "0" width= "600" ><tr> <?php defined ( 'main' ) or die ( 'no direct access' ); $erg = db_query( "select id,name,avatar from prefix_user ORDER by rand() DESC LIMIT 0,6" ); while ( $row = db_fetch_object( $erg )) { $id = $row ->id; $avatar = $row ->avatar; $name = $row ->name; if ( strlen ( $name ) >= 15) { $name =wordwrap( $name ,15); $name = substr ( $name ,0, strpos ( $name , "\n" )). '...' ; } echo ' <td> <table cellpadding= "0" cellspacing= "1" width= "60" height= "60" style= "cursor:pointer; border:1px #000000 solid;" bgcolor= "#FFFFFF" ><tr> <td align= "center" height= "40" ><img src= "'.$avatar.'" height= "40" ></td></tr> <tr><td bgcolor= "#6c0000" align= "center" ><font color= "#FFFFFF" ><span style= "font-size:9px;" > '.$name.' </span></font></td></tr> </table> </td> '; } ?> </tr></table> |
verwendete ilchClan Version: 1.1