include "./config/admin_config.cgi"; include "./counter/db_count.cgi"; include "./include/main_func.php3"; include "./config/design_config.cgi"; include "./config/config.cgi"; include "./include/top_header.php3"; if (is_file("./html/".$SEARCH_HEADER."_header.cgi")) { include "./html/".$SEARCH_HEADER."_header.cgi"; } else { include "./html/default_header.cgi"; } $swhere="display='Y' and newstime <= $time"; $num_per_page = 15; $page_per_block = 20; if($page < 1) $page = 1; if(!$total_record) { $query = "select count(*) from article where $swhere"; $result = mysql_query($query); $total_record = mysql_result($result,0,0); } $first = $num_per_page*($page-1); $total_page = ceil($total_record/$num_per_page); $query="select no,title1,newstime,gisaimg,section,gisaimg,content from article where $swhere order by newstime desc limit $first,$num_per_page"; $res=mysql_query($query); if($res) { echo ("
$img[$section] $title1 |$newstime |