DaiCuoBBs

 找回密码
 免费注册

QQ登录

只需一步,快速开始

feifeicms评论模块调用记录

[复制链接]
admin 发表于 2020-2-16 16:16:06 | 显示全部楼层 |阅读模式
  1. $params = array();
  2. $params['cid'] = '0';
  3. $params['pid'] = '0';
  4. $params['sid'] = '5';
  5. $params['status'] = '1';
  6. $params['limit'] = '10';
  7. $params['order'] = 'forum_istop desc,forum_id';
  8. $params['sort'] = 'desc';
  9. $params['page_p'] = $list_page;
  10. $params['page_is'] = 'true';
  11. $params['page_id'] = 'forum';
  12. //$params['cache_name'] = 'default';
  13. //$params['cache_time'] = 'default';
  14. $item_forum = ff_mysql_forum($params);
  15. $page_info = ff_url_page('list/read',array('id'=>$list_id,'p'=>'FFLINK'), true, 'forum', 4);
  16. $page_total = ff_page_count($params['page_id'], 'totalpages');
  17. //
  18. $forum_pid = array();
  19. foreach($item_list as $value){
  20.   array_push($forum_pid, $value['forum_id']);
  21. }
  22. //$item = M('Forum')->query('select * from __TABLE__ where status>1');
  23. $item_forum_son = ff_mysql_forum(array(
  24.   'cid'=>'0',
  25.   'pid'=>implode(',',$forum_pid),
  26.   'sid'=>'5',
  27.   'status'=>'1',
  28.   'limit'=>'2',
  29.   'order'=>'forum_up desc,forum_id',
  30.   'sort'=>'desc',
  31. ));
  32. //dump($forum_pid);
  33. //dump($item_forum_son);
复制代码


您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|Archiver|手机版|小黑屋|大错站长论坛

GMT+8, 2020-7-8 02:19 , Processed in 0.056365 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表