PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

网站统计文章数,和后台信息总数不一样 [复制链接]

1#


分享 转发
TOP
2#

版主判断准确,只是删了两个投稿,前台、后台显示数就不一样了,请教版主怎么修改或更新?
TOP
3#

“网站统计”设置代码

<iframe height="140" marginheight="0" src="/e/zdymodel/article/custom/134.aspx" frameborder="0" width="180" allowtransparency="true" marginwidth="0" scrolling="no">
</iframe>

已经勾选“启用”,提交,重新复制代码,还是不能更改,麻烦版主看看134.aspx文件。我用的是school11模板,V3.0  20150414,没更新,已官方去版权。
TOP
4#

134.aspx文件内容

<% @ Page language="c#" Inherits="PageAdmin.custom_zdymodel"%>
<% @ Import NameSpace="System.Data"%>
<% @ Import NameSpace="System.Data.OleDb"%>
<%conn.Open();Read_Data(134);%><html>
<head>
<style type="text/css">
div{font:12px/1.7em Verdana,Tahoma,Helvetica,Arial,sans-serif;}
div .hs{colorff0000}
</style>
</head>
<body bgColor="transparent">
<div>
○- 文章总数:<span class="hs"><%=Get_Data("co","select count(id) as co from article")%></span><br>
○- 今日文章:<span class="hs"><%=Get_Data("co","select count(id) as co from article where datediff('d',thedate,Now())=0")%></span><br>
○- 会员总数:<span class="hs"><%=Get_Data("co","select count(id) as co from pa_member")%></span><br>
○- 最新会员:<span class="hs"><%=Get_Data("username","select top 1 username from pa_member order by id desc")%></span><br>
○- 访问总数:<span class="hs"><%=Get_Data("co","select count(id) as co  from pa_count")%></span><br>
○- 本月访问:<span class="hs"><%=Get_Data("co","select count(id) as co  from pa_count where datediff('m',thedate,Now())=0")%></span><br>
○- 今日访问:<span class="hs"><%=Get_Data("co","select count(id) as co  from pa_count where datediff('d',thedate,Now())=0")%></span><br>
</div>
</body>
</html><%conn.Close();
TOP
5#

现在又出现了“网站统计文章数,和后台信息总数不一样”的问题,因为换了sql数据库,不能操作还原,问题越来越严重了。
TOP
6#

呵呵,说的也是。网站统计代码应该不会有问题。免费模板5、8、10都是一样的内容。是不是pa系统的问题?期待版主解决。
TOP
7#

学生投稿被删除后,后台信息总数减少,而前台网站统计文章总数不减少。没有分站,只有电脑版和手机版,手机版调用电脑版的程序。学生投稿都用的电脑版。应该不影响网站统计功能。总觉得是pa统计标准的事,比如按投稿数量统计,而不是按审核通过的文章数量。
TOP
发新话题 回复该主题