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[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,44,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;
?>