账号通
    

账号  

密码  

5522

查看

13

回复
主题:[分享]KesionCMS v8.0X 普通管理员登录后台首页时,只显示自己有权限审核的待签文档数 [收藏主题] 转到:  
科汛官方 当前离线

47268

主题

145

广播

405

粉丝
添加关注
级别:管理员

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2012/2/2 9:53:00   | 显示全部帖子 查看该作者主题 楼主 
科汛在线考试系统(NET)

默认系统是不区别管理员身份的,直接列出所有未审核的文章数据,进一步改进后普通管理员登录后只显示自己未审核的文章数,修改方法如下:

用dw等编辑工具打开admin/index.asp



找到

  1. Num=Conn.Execute("Select count(id) from " & Node.SelectSingleNode("@ks2").text & " where deltf=0 and verific=0")(0)



改成

  1. If KS.C("SuperTF")<>"1" and Instr(KS.C("ModelPower"),KS.C_S(Node.SelectSingleNode("@ks0").text,10)&"1")=0 Then
  2.                                  If DataBaseType=1 Then
  3.                                          Num=Conn.Execute("Select count(id) from " & Node.SelectSingleNode("@ks2").text & " where deltf=0 and verific=0 and tid in(select id from ks_class where ','+cast(AdminPurview as nvarchar(4000))+',' like '%," & KS.C("GroupID") & "%')")(0)
  4.                                  Else
  5.                                          Num=Conn.Execute("Select count(id) from " & Node.SelectSingleNode("@ks2").text & " where deltf=0 and verific=0 and  tid in(select id from ks_class where ','+AdminPurview+',' like '%," & KS.C("GroupID") & "%')")(0)
  6.                                  End If
  7.                          Else
  8.                            Num=Conn.Execute("Select count(id) from " & Node.SelectSingleNode("@ks2").text & " where deltf=0 and verific=0")(0)            
  9.                          End If

 
KesionCMS,,
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.07031秒 powered by KesionCMS 9.0