◆网站公告: EOT; foreach($noticedb as $notice){ $postdate=date("y-m-d",$notice[startdate]); if($notice[url]) echo "{$notice[subject]} {$postdate} "; else echo "{$notice[subject]} {$postdate} "; } print<<

EOT; } print<<
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[subject]}

作者:{$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(!empty($db_hotkeywords)){ echo "

    热门搜索:"; $db_hotkeywords=explode(" ", $db_hotkeywords); foreach($db_hotkeywords as $hkwd){ $hkwd=trim($hkwd); if(!empty($hkwd)) echo "".$hkwd." "; } } print<< EOT; if(class_exists('Calendar')){ print<<
    日历
    EOT; $cal=new Calendar(); echo $cal->getCurrentMonthView(); print<<
    EOT; } print<<
    热门导读


    友情连接:  EOT; foreach($sharelinks as $link){ echo "{$link[name]} "; } print<<
    EOT; ?>