Parašė samsung123· 2009 Bir. 23 17:06:20
#1
Va pasidirbau shoutbox per vidury dabar reikia zinutes suskirstyt i tbl1 ir tbl2 koda turiu, isidedu no error, bet jokio pakitimo. rodau ka turiu.
cia zinuciu atvaizdavimas
if (dbrows($result) != 0) {
$i = 0;
while ($data = dbarray($result)) {
echo "<span class='shoutboxname'><img src='".THEME."images/bullet.gif' alt=''> ";
if ($data['user_name']) {
echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']." </a>\n";
} else {
echo $data['shout_name']."\n";
}
echo "</span>\n<span class='shoutboxdate'>| ".showdate("shortdate", $data['shout_datestamp'])."</span>";
if (iADMIN && checkrights("S")) {
echo "\n[<a href='".ADMIN."shoutbox.php".$aidlink."&action=edit&shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a>]";
}
echo "<br>\n<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span>\n";
if ($i != $numrows) echo "<br>\n";
}
if ($numrows > $settings['numofshouts']) {
echo "<center>\n<img src='".THEME."images/bullet.gif' alt=''>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a>
<img src='".THEME."images/bulletb.gif' alt=''></center>\n";
}
} else {
ir yra toks kodas:
if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
kur ji normaliai patalpinti, buvau patalpines po
while ($data = dbarray($result)) {
aciu kas pades.
Redagavo samsung123· 2009 Bir. 23 17:06:10