EOT; foreach($pictitledb as $k=>$pic){ if(++$k%5==0) echo ""; echo ""; } print<<
图片文章  
EOT; if($pictitledb){ print<<

EOT; } print<<

EOT; foreach($listArticles as $news){ $postdate=date("Y-m-d h:i:s",$news[postdate]); print<<

u {$news[subject]}

作者:{$news[author]} 日期:{$postdate}

{$news[descrip]}...

EOT; } print<<$fenye
EOT; if($childclass){ print<< 相关栏目 EOT; foreach($childclass as $child){ if($child[fid]!=$fid) echo "{$child[name]}\r\n"; else echo "{$child[name]}\r\n"; } print<<
EOT; } print<< 文章搜索
EOT; if(!empty($db_hotkeywords)){ echo "

热门搜索:"; $db_hotkeywords=explode(" ", $db_hotkeywords); foreach($db_hotkeywords as $hkwd){ $hkwd=trim($hkwd); if(!empty($hkwd)) echo "".$hkwd." "; } } print<<

EOT; $hottagsdb=get_toptags(15); if($hottagsdb){ print<<
热门标签
EOT; foreach($hottagsdb as $tag){ echo "{$tag[tagname]}({$tag[tagsnum]}) "; } print<<
EOT; } $repliesdb=get_topsubject(8,42,0,'where replies>0 and fid='.$fid,'order by lastpost desc'); if($repliesdb){ print<<
最新评论
    EOT; foreach($repliesdb as $news){ $lastpost=date("Y-m-d H:i",$news[lastpost]); echo "
  • {$news[subject]}
  • \r\n"; } print<<
EOT; } if($xgArticles){ print<<
相关文章
EOT; } if(class_exists('Calendar')){ print<<
日历
EOT; $cal=new Calendar(); echo $cal->getCurrentMonthView(); print<<
EOT; } print<<
非本类相关文章
EOT; ?>