Parašė TBagT· 2011 Spa. 25 17:10:25
#1
Sveiki kame problema ? Pasidariau, kad double news panel rodytu naujienų pic, bet dabar per tą panel lagina news.php ? Kai width ir height ištrinu veikia ir kai suku ratuką nelagina.
<?php
require_once BASEDIR."maincore.php";
if (file_exists(INFUSIONS."double_news_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."double_news_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."double_news_panel/locale/English.php";
}
opentable($locale['lap000'], "on");
$qresult=dbquery("SELECT * FROM ".DB_NEWS." ORDER BY RAND() LIMIT 0,5");
if(dbrows($qresult)!=0){
while($data=dbarray($qresult)){
echo "<a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."'><img src='".IMAGES_N.$data['news_image']."' width='120' height='150' class='borderis' style='margin:8px' /></a>";
}
}
closetable();
?>