织梦列表页,支持顶(赞)和踩的功能,顶过后标红高亮显示

2021-07-05 作者:未知   |   浏览(

css

然后在,plus中新打造一个digg_ajax_list.PHP文件,内容为

模板

?phprequire_once./../include/common.inc.php); $action = isset ? trim : ; $id = empty? 0 : intval); if { exit; } $maintable = archives; if { $dsql-ExecuteNoneQuery. where id=$id); } else if { $dsql-ExecuteNoneQuery. where id=$id); } $digg = ; $row = $dsql-GetOne; if) { exit; } if { $row[goodper] = $row[badper] = 0; } else{ $row[goodper] = number_format,3)*100; $row[badper] = 100-$row[goodper]; } if) $formurl = ; if {if $digg = $row[goodpost]; if $digg= $row[badpost]; } else{ $row[goodper] = trim); $row[badper] = trim); $digg = aclass= text-bbb text-16href=javascript: onclick=javascript:postDiggspan=id=digg.$id.class=icon-heart-onnbsp;nbsp;nbsp;nbsp;nbsp;/spannbsp;/a.$row[goodpost]; //点击后,假如从没被赞过,则自动把新的点击次数重写入目的地方.} AjaxHead; echo $digg; exit; ?