|
22.09.2008, 15:26
Вот измененная часть кода, как вам нужно:
PHP код:
if (isset($rss_channel["IMAGE"])) { print ("<a href=\"" . $rss_channel["LINK"] . "\" target=\"_blank\"><img border=\"0\" src=\"" . $rss_channel["IMAGE"]["URL"] . "\" align=\"middle\" alt=\"" . iconv ('UTF-8','WINDOWS-1251',$rss_channel["IMAGE"]["TITLE"]) . "\"></a> <font size=\"5\">" . iconv ('UTF-8','WINDOWS-1251',$rss_channel["TITLE"]) . "</font><br><br>"); } print ("<i>" . iconv ('UTF-8','WINDOWS-1251',$rss_channel["DESCRIPTION"]) . "</i><br><br>"); if (isset($rss_channel["ITEMS"])) { if (count($rss_channel["ITEMS"]) > 0) { for($i = 0;$i < count($rss_channel["ITEMS"]);$i++) { print ("\n<table width=\"100%\" border=\"0\"><tr><td width=\"100%\"><a href=\"" . $rss_channel["ITEMS"][$i]["LINK"] . "\" target=\"_blank\">" . iconv ('UTF-8','WINDOWS-1251',$rss_channel["ITEMS"][$i]["TITLE"]) . "</a></b><br>"); print ("<i>" . html_entity_decode(iconv ('UTF-8','WINDOWS-1251',$rss_channel["ITEMS"][$i]["DESCRIPTION"])) . "</i>"); print ("</td></tr></table><hr>"); } } else { print ("<b>Нет новостей.</b>"); } }
|
|