EOT;
if($pictitledb){
print<<
EOT;
}
print<<
| 最新发布 |
EOT;
$topArticles=get_topsubject(8,52,0,$notin_sql,'order by tid desc');
foreach($topArticles as $news){
echo "- {$news[subject]}
\r\n";
}
print<< |
|
|
EOT;
foreach($newArticles as $news){
$postdate=date("Y-m-d h:i:s",$news[postdate]);
print<<
|
作者:{$news[author]} 日期:{$postdate}
{$news[descrip]}... |
EOT;
}
print<<
|
EOT;
$repliesdb=get_topsubject(8,$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;
}
if($hottagsdb){
print<<
| 热门标签 |
|
EOT;
foreach($hottagsdb as $tag){
echo "{$tag[tagname]}({$tag[tagsnum]}) ";
}
print<< |
EOT;
}
print<<
| 文章搜索 |
EOT;
if(class_exists('Calendar')){
print<<
| 日历 |
|
EOT;
$cal=new Calendar();
echo $cal->getCurrentMonthView();
print<<
|
EOT;
}
print<<
|
|