直接上代码:
<script src=[!--news.url--]e/public/ViewClick/?classid=[!--classid--]&id=[!--id--]&addclick=1></script>/<?=$navinfor['onclick']+$navinfor['xuni']?></span>
修改/e/public/ViewClick/inde.php文件:
}//浏览数if($down==0){ $r=$empire->fetch1("select onclick,xuni from {$dbtbpre}ecms_".$cr['tbname']." where id='$id' limit 1"); $shownum=$r['onclick']+$r['xuni']; if($_GET['addclick']==1) { $usql=$empire->query("update {$dbtbpre}ecms_".$cr['tbname']." set onclick=onclick+1 where id='$id' limit 1"); }}
注意:别忘记添加SQL查询字段