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($sotids){
$sotids=substr($sotids,0,-1);
$sqlwhere='where tid not in('.$sotids.')';
}else{
$sqlwhere='';
}
$newArticles=get_topsubject(10,46,0,$sqlwhere,'order by tid desc');
if($newArticles){
print<<
| 最新文章 |
EOT;
foreach($newArticles as $news){
echo "- {$news[subject]}
\r\n";
}
print<< |
|