Parašė edis2· 2009 Bal. 17 19:04:15
#39
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
echo "<span class='shoutboxname'><img src='".THEME."images/bullet.gif' alt=''> ";
$datestamp=1231350064;
$laikas=date('H:i', $datestamp);
echo "[$laikas]";
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']."</a>\n";
echo "</span>\n";
if (iADMIN && checkrights("S")) {
echo "\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>Edit</a>]";
}
echo "\n<span class='shoutbox''>–– ".parsesmileys($data['shout_message'])."</span>\n";
if ($i != $numrows) echo "<br><br>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}