| 最新文章 |
|
EOT;
foreach($newArticles as $news){
$nfid=$news[fid];
$postdate=date("Y-m-d h:i:s",$news[postdate]);
print<<
EOT;
}
print<<
|
|
|
EOT;
if($pictitledb){
print<<
| 图片文章 |
|
EOT;
}
if($hottagsdb){
print<<
| 热门标签 |
|
EOT;
foreach($hottagsdb as $tag){
echo "{$tag[tagname]}({$tag[tagsnum]}) ";
}
print<< |
EOT;
}
print<<
| 热门阅读 |
|
EOT;
$repliesdb=get_topsubject(10,$db_homehotlen,0,'where replies>0','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;
}
print<<
|