{$up_read[subject]}"; }else{ $up_read=''; } if($dw_read){ $dw_read="{$dw_read[subject]}"; }else{ $dw_read=''; } print<< function chagefs(size){ document.getElementById('Message').style.fontSize=size+'px'; } function check_img(){ var o_img = document.getElementById('y_img'); o_img.src="ck.php?&t="+ Math.random(); } function post_pinglun(){ var obj=document.pl_form; obj.username.value=obj.username.value.replace(/^\s+|\s+$/g,''); if(obj.username.value==''){ alert('请填写昵称'); obj.submit2.disabled=false; return; } obj.content.value=obj.content.value.replace(/^\s+|\s+$/g,''); if(obj.content.value==''){ alert('请填写内容'); obj.submit2.disabled=false; return; } obj.yanzhengma.value=obj.yanzhengma.value.replace(/\s/g,''); if(obj.yanzhengma.value==''){ alert('请填写验证码'); obj.submit2.disabled=false; return; } obj.submit(); } var displayyzm=false; function display_yanzhengma(){ if(displayyzm==false){ document.pl_form.username.value=''; document.getElementById('yzm_box').innerHTML=' 看不清'; displayyzm=true; } } {$subject} 作者:{$read[author]} 日期:{$postdate} 阅读:{$read[hits]} 【字号 大 中 小】 【评 论】 【打 印】 {$read[content]} EOT; if($xgreadsearch){ echo '相关搜索:'; foreach($xgreadsearch as $kwd){ echo ''.$kwd.' '; } echo ''; } print<< 上一篇:{$up_read}下一篇:{$dw_read} EOT; $postsdb=get_posts($tid); if($postsdb){ print<< 网友评论 EOT; foreach($postsdb as $key=>$post){ $key++; $postdate=date("Y-m-d H:i:s",$post[postdate]); echo " {$post[author]}:{$post[userip]} 发表于:{$postdate}{$key}楼 {$post[content]}"; } print<< EOT; } print<< 发表评论 昵 称: EOT; @include_once(D_P."data/cache/smilies.php"); if($post_smilies){ print<< 可用表情 EOT; $i=0; foreach($post_smilies as $key=>$smilies){ echo "\r\n"; if(++$i%6==0) echo ""; } print<< EOT; } print<< 验证码: EOT; if($pictitledb){ print<< 图片文章 EOT; foreach($pictitledb as $k=>$pic){ if(++$k%5==0) echo ""; echo " {$pic[subject]}"; } print<< EOT; } print<< EOT; $repliesdb=get_topsubject(8,44,0,'where replies>0 and tid<>'.$tid,'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; } $hottagsdb=get_toptags(15); 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; foreach($xgArticles as $news){ echo "{$news[subject]}\r\n"; } print<< EOT; ?>
上一篇:{$up_read}下一篇:{$dw_read}