◆网站公告: 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; foreach($newArticles as $news){ $nfid=$news[fid]; $postdate=date("Y-m-d h:i:s",$news[postdate]); print<<
{$news[hits]}
{$news[subject]} [{$classdb[$nfid][name]}]
作者:{$news[author]} 日期:{$postdate}
{$news[descrip]}...
EOT; } print<<
EOT; if($pictitledb){ print<< 图片文章 EOT; } if($hottagsdb){ print<< 热门标签 EOT; foreach($hottagsdb as $tag){ echo "{$tag[tagname]}({$tag[tagsnum]}) "; } print<< EOT; } print<< 热门阅读
    EOT; foreach($hotArticles as $news){ echo "
  • {$news[subject]}
  • \r\n"; } 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<<
      友情连接: EOT; foreach($sharelinks as $link){ echo "{$link[name]} "; } ?>