Parašė Jointass· 2010 Vas. 11 17:02:19
#1
sveiki, iškilo bėda su panele naujienos 9niais kvadratais:
openside("news");
echo "
<table border='0' cellpadding='5' cellspacing='5' >
<tr>
<td >
<table border='1' cellpadding='5' cellspacing='5' style='border:1px solid #D7DBDE; border-collapse: collapse; padding:5; padding-right:4; padding-top:1; padding-bottom:1' bordercolor='#D7DBDE' width='100%' id='AutoNumber1' height='100' bordercolorlight='#D7DBDE' bordercolordark='#D7DBDE'>
<tr>";
$result2 = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 0,3");
while ($data2 = dbarray($result2)) {
$result = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data2['news_cat']."' ");
$data = dbarray($result);
$naujiena = trimlink($data2['news_news'], 60);
echo "<td width='33%' height='200' valign='top'><center><b><font color='#FF3399'> ".$data2['news_subject']."</font></b></center><br><font color='#3F8F90'><img src='http://www.part.lt/img/c9e44f6503c980bbc444821932e117af807.png' width='40' height='50' valign='top' align='left' > <b> ".$naujiena."</b></font><br><br>
<center><a href='".FUSION_SELF."?readmore=".$data2['news_id']."'><img src='http://www.part.lt/img/0757eee509b5a39ad4db5e5eb2f8cfca544.png' valign='bottom'></a><br></center>";
}
echo "</tr><tr>";
$result3 = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 3,3");
while ($data4 = dbarray($result3)) {
$result = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data4['news_cat']."' ");
$data = dbarray($result);
$naujiena = trimlink($data4['news_news'], 60);
echo "<td width='33%' height='200' valign='top'><center><b><font color='#FF3399'> ".$data4['news_subject']."</font></b></center><br><font color='#3F8F90'><img src='http://www.part.lt/img/c9e44f6503c980bbc444821932e117af807.png' width='40' height='50' valign='top' align='left'> <b> ".$naujiena."</b></font><br><br>
<center><a href='".FUSION_SELF."?readmore=".$data4['news_id']."'><img src='http://www.part.lt/img/0757eee509b5a39ad4db5e5eb2f8cfca544.png' valign='bottom'></a><br></center>";
}
echo "</tr><tr>";
$result7 = dbquery("SELECT * FROM ".$db_prefix."news ORDER BY news_datestamp DESC LIMIT 6,3");
while ($data7 = dbarray($result7)) {
$result = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data4['news_cat']."' ");
$data = dbarray($result);
$naujiena = trimlink($data7['news_news'], 60);
echo "<td width='33%' height='100' valign='top'><center><b><font color='#FF3399'> ".$data7['news_subject']."</font></b></center><br><font color='#3F8F90'><img src='http://www.part.lt/img/c9e44f6503c980bbc444821932e117af807.png' width='40' height='50' valign='top' align='left' > <b>".$naujiena."</b></font><br><br>
<center><a href='".FUSION_SELF."?readmore=".$data4['news_id']."'><img src='http://www.part.lt/img/0757eee509b5a39ad4db5e5eb2f8cfca544.png' valign='bottom'></a><br></center>";
}
echo "</tr></table></td></tr></table></center>";
closeside();
Kaip parašau naujiena neskaito
HTML kodo. Kas galit padėkit ;).