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

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

{$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; } $repliesdb=get_topsubject(8,$db_homehotlen,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; } $hottagsdb=get_toptags(15); if($hottagsdb){ print<< 热门标签 EOT; foreach($hottagsdb as $tag){ echo "{$tag[tagname]}({$tag[tagsnum]}) "; } 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; ?>