Parašė vuiter· 2009 Sau. 29 18:01:56
#1
ka reikia prirasyt sioj panelej,kad pvz rodytu taip narius:
dabar rodo horizontaliai visus vienoj eilej... :/ dekoju is anksto...
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,15");
openside("Vartotojų istorija");
echo "<table cellpadding='0' cellspacing='0' width='400' align='center' >";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$lastseen = time() - $data['user_lastvisit'];
if ($lastseen < 60){
$lastseen = "<font color='green'><img src='".IMAGES."online.gif' border='0' alt=''></font>";
} else { $lastseen = "<font color='red'><b>Atsijungęs</b></font>";}
echo "<td width='400' class='tbl2' align='center' >".$data['user_name']."
<a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img src='".IMAGES."email.png' border='0' alt=''></a><br>
<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'
title='".$data['user_name']."'><img height='90' width='90' border='0' src='".IMAGES."avatars/"; if($data['user_avatar']) {echo $data['user_avatar'];} else { echo "noavatar.gif" ;}
echo "'><br>".$lastseen."<br></a></br></td>";
}} else { echo "<td align='center'>Nebuvo prisijungusių narių</td>";}
echo "</table>";
closeside();