索引下一链接

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了索引下一链接相关的知识,希望对你有一定的参考价值。

Save this as plugin.nextlink.php to your ndxz-studio/site/plugin folder. Call the Plugin where you need it: <plug:nextlink />

Original by "gd" http://www.indexhibit.org/forum/thread/7879/
  1. if (!defined('SITE')) exit('No direct script access allowed');
  2.  
  3. function nextlink(){
  4. $OBJ = get_instance();
  5. global $rs;
  6.  
  7. $pages = $OBJ->db->fetchArray("SELECT id, url
  8. FROM ".PX."objects, ".PX."sections
  9. WHERE status = '1'
  10. AND hidden != '1'
  11. AND section_id = secid
  12. ORDER BY sec_ord ASC, ord ASC");
  13.  
  14. if (!$pages) return 'Error with pages query';
  15. foreach ($pages as $reord){
  16. $order[$reord['sec_desc']][] = array(
  17. 'id' => $reord['id'],
  18. 'url' => $reord['url']);
  19. }
  20. $active = false;
  21. foreach($order as $key => $out)
  22. {
  23. foreach($out as $page){
  24. if ($active==true){
  25. $nextlink=$page['url'];
  26. $active = false;}
  27. $active = ($rs['id'] == $page['id']) ? true : false;
  28. }
  29. $next .= "<a href='".BASEURL.ndxz_rewriter($nextlink)."'>NEXT</a>";
  30. }
  31. return $next;
  32. }

以上是关于索引下一链接的主要内容,如果未能解决你的问题,请参考以下文章

solr分布式索引实战分片配置读取:工具类configUtil.java,读取配置代码片段,配置实例

java.lang.IllegalStateException:键 f0 的片段不再存在:索引 1

javascript UV Index Monitor App订阅PubNub并显示UV索引值。博文的代码片段。在这里查看项目:https:// githu

c_cpp UV Index Indicator订阅PubNub并使用颜色显示UV索引值。博文的代码片段。在这里查看项目:https:/

如何从片段内的列表视图打开链接网址?

在 JSP 中的 <% %> 代码片段中添加链接