修改文件/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 ";
}

最新文章

  1. mongodb-基础-update-remove
  2. easyUI-增删改查
  3. zju(3)内核编译与运行
  4. CRM Xrm.Page 的对象层次结构
  5. 剑指Offer:面试题11——数值的整数次方(java实现)
  6. asp.net web.config 经典模式和集成模式相关配置
  7. 使用另一种方式实现js中Function的调用(call/apply/bind)
  8. awk与cut在以空格为分割域时的区别
  9. poco异步等待ActiveResult
  10. angularJS中XHR与promise
  11. Largest Rectangular Area in a Histogram
  12. 项目管理工具 Redmine 安装试用手记
  13. Effective C++ 读书笔记(13-32)
  14. mysl 常用函数 union all if ifnull exists case when
  15. WSGI协议以及对服务器的影响
  16. Nest.js 添加中间件
  17. css学习_css书写规范
  18. MVC 翻頁的那些坑
  19. 关于 luv_letters
  20. PAT-GPLT L1-039 - 古风排版 - [字符串输入输出]

热门文章

  1. 关于mysql的基础知识
  2. iOS开发之.pch文件初识
  3. oracle中修改表名
  4. oracle 生成随机数【待整理】
  5. HTML标签的默认样式
  6. 百度编辑器 无法获取post过去的值
  7. SAP MM模块之批次管理
  8. 关于eclipse中maven项目的问题
  9. 使用Beanstalkd_console
  10. angular--todomvc