Parašė GooUn· 2009 Vas. 15 22:02:19
#1
Stai duodu koda
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,03");
openside("Vartotoju istorija");
echo "<table cellpadding='0' cellspacing='0' width='100%'>";
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' alt=''></font>";
} else { $lastseen = "<font color='red'><b>Atsijunges</b></font>";}
echo "<tr><td width='100%' valign='top' align='center'>".$data['user_name']." <a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img src='".IMAGES."email.png' alt=''></a><br>".$lastseen."<br><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."'><img border='0' src='".IMAGES."avatars/"; if($data['user_avatar']) {echo $data['user_avatar'];} else { echo "noavatar.gif";}
echo "'></a></br></td></tr>";
}} else { echo "<td align='center'>Nebuvo prisijungusiu nariu</td>";}
echo "</table><center>";
closeside();
Man reikia ji padaryti kad jis butu isilgai o ne stovedamas kad galeciau as ji ideti i vidurines paneles?
Redagavo GooUn· 2009 Vas. 15 22:02:51