zoukankan      html  css  js  c++  java
  • 织梦dedecms分类信息模型上一页下一页失效办法

    修改文件/include/arc.archives.class

    将一下代码

           $next = (is_array($nextR) ? " where arc.id={$nextR['id']} " : ' where 1>2 ');
           $pre = (is_array($preR) ? " where arc.id={$preR['id']} " : ' where 1>2 ');
           $query = "Select arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic,        t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
                            from `#@__archives` arc left join #@__arctype t on arc.typeid=t.id  ";

    修改为

                if($this->ChannelUnit->ChannelInfos['issystem']!=-1){
                    $next = (is_array($nextR) ? " where arc.id={$nextR['id']} " : ' where 1>2 ');
                    $pre = (is_array($preR) ? " where arc.id={$preR['id']} " : ' where 1>2 ');
                    $query = "Select arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic,
                            t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
                            from `#@__archives` arc left join #@__arctype t on arc.typeid=t.id  ";
                }else{
                    $next = (is_array($nextR) ? " where arc.aid={$nextR['id']} " : ' where 1>2 ');
                    $pre = (is_array($preR) ? " where arc.aid={$preR['id']} " : ' where 1>2 ');
                    $query = "Select arc.aid,arc.title,arc.typeid,arc.senddate,arc.arcrank,arc.litpic, t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
                            from `".$this->ChannelUnit->ChannelInfos['addtable']."` arc left join #@__arctype t on arc.typeid=t.id  ";
                }
  • 相关阅读:
    递归
    linq语法
    客户端(winform)更新
    c# 实时监控数据库 SqlDependency
    C# MVC NPOI导出
    mui手机图片压缩上传+C#
    vs连接Oracle 客户端库时引发 BadImageFormatException
    一对多的子表数据利用游标循环更新主表的数据
    数据库的恢复数据语句
    mysql三-2:数据类型
  • 原文地址:https://www.cnblogs.com/whlives/p/4118519.html
Copyright © 2011-2022 走看看