<meta http-equiv="content-type" content="text/html; charset=windows-1256"> </head> <body dir=rtl text="#000000" bgcolor="#e3e1e1"> <? $news_titles_num=10; //?II C??IEC? C??????E ?? C?O??? C??E??? $target="_blank"; // ????E ?E? ?C??E C?IE?. $news_loc="./"; // ???? E??C?? C??IEC? ??EE ??? ???? ??C C?????EE $data_loc=$news_loc."data/main"; $cats=file($data_loc."/cat.txt"); $news_array=array(); foreach ($cats as $cat){ list($id)=explode("|", $cat); $news_rows=file($data_loc."/$id.txt"); foreach ($news_rows as $news_row){ list($nid,,$title)=explode("|",$news_row); $news_array[$nid]=$title; } } krsort($news_array) ; if ($news_titles_num>count($news_array)) $news_titles_num=count($news_array); $scroller='<marquee direction="up" scrollamount="3">'; $count=1; while($count<=$news_titles_num){ list($k,$v) = each($news_array); $scroller.="<br><br><a href='$news_loc"."data/news/$k.htm' target=$target><b>$v</b></a> "; $count++; } // while $scroller.='</marquee>'; echo $scroller; ?>
$scroller.="<br><br><a href='$ news_loc"."data/news/$k.htm' target=$target& gt;<b>$v</b></a> ";
$scroller.="<br><br><a href='</font>$news_loc"."data/news/$k.htm' target=$target&gt;<b>$v</b></a> "; $url = $news_loc."data/news/$k.htm"; $scroller .= "<script>window.open($url,\"$v\",\"status=no,toolbar=no,location=no,menu=no,resizable=yes,width=450,height=100%\");</script>";
$url = $news_loc."data/news/$k.htm"; $scroller .= "<script>window.open($url,\"$v\",\"status=no,toolbar=no,location=no,menu=no,resizable=yes,width=450,height=100%\");</script>";