maccms分类筛选代码(类型,剧情,地区,年份,语言,字母)

maccms苹果x10 分类筛选代码

如图所示:

maccms分类筛选代码(类型,剧情,地区,年份,语言,字母)

附上代码:
<!– 筛选 –>

  1. <div class=“stui-pannel stui-pannel-bg clearfix top_cl”>
  2. <div class=“stui-pannel-box>
  3. <div class=“stui-pannel_hd show_cl”>
  4. {if condition=$obj.childids neq ” “}
  5. <ul class=“stui-screen__list type-slide bottom-line-dot clearfix”>
  6. <li>
  7. <span class=“text-muted”>按类型</span>
  8. </li>
  9. {if condition=$obj.type_pid eq 0}
  10. <li{if condition=$obj.type_pid eq ””} class=“active” {/if}><a href=“{:mac_url_type($obj.type_id,[‘id’=>$obj[‘type_id’]],’show’)}”>全部</a></li>
  11. {maccms:type parent=“‘.$obj[‘type_id’].‘” order=“asc” by=“sort” id=“vo2” key=“key2”}
  12. <li{if condition=$obj[‘type_id’] eq $vo2.type_id”} class=“active” {/if}><a href=“{:mac_url_type($vo2,[],’show’)}” class=“text-muted”>{$vo2.type_name}</a></li>
  13. {/maccms:type}
  14. {else /}
  15. <li{if condition=$obj.type_pid eq ””} class=“active” {/if}><a href=“{:mac_url_type($obj.type_pid,[‘id’=>$obj[‘type_pid’]],’show’)}”>全部</a></li>
  16. {maccms:type parent=“‘.$obj[‘type_pid’].‘” order=“asc” by=“sort” id=“vo2” key=“key2”}
  17. <li{if condition=$obj[‘type_id’] eq $vo2.type_id”} class=“active” {/if}><a href=“{:mac_url_type($vo2,[],’show’)}” class=“text-muted”>{$vo2.type_name}</a></li>
  18. {/maccms:type}
  19. {/if}
  20. </ul>
  21. {/if}
  22. <ul class=“stui-screen__list type-slide bottom-line-dot clearfix”>
  23. <li>
  24. <span class=“text-muted”>按剧情</span>
  25. </li>
  26. <li {if condition=$param[‘class’] eq ””} class=“active”{/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>”,’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>全部</a></li>
  27. {empty name=$obj.type_extend.area”}
  28. {maccms:foreach name=“:explode(‘,’,$obj.parent.type_extend.class)” id=“vo2” key=“key2”}
  29. <li {if condition=$param[‘class’] eq $vo2} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$vo2,’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a></li>
  30. {/maccms:foreach}
  31. {else /}
  32. {maccms:foreach name=“:explode(‘,’,$obj.type_extend.class)” id=“vo2” key=“key2”}
  33. <li {if condition=$param[‘class’] eq $vo2} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$vo2,’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a></li>
  34. {/maccms:foreach}
  35. {/empty}
  36. </ul>
  37. <ul class=“stui-screen__list type-slide bottom-line-dot clearfix”>
  38. <li>
  39. <span class=“text-muted”>按地区</span>
  40. </li>
  41. <li {if condition=$param[‘area’] eq ””} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>”,’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>全部</a></li>
  42. {empty name=$obj.type_extend.area”}
  43. {maccms:foreach name=“:explode(‘,’,$obj.parent.type_extend.area)” id=“vo2” key=“key2”}
  44. <li {if condition=$param[‘area’] eq $vo2} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$vo2,’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a></li>
  45. {/maccms:foreach}
  46. {else /}
  47. {maccms:foreach name=“:explode(‘,’,$obj.type_extend.area)” id=“vo2” key=“key2”}
  48. <li {if condition=$param[‘area’] eq $vo2} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$vo2,’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a></li>
  49. {/maccms:foreach}
  50. {/empty}
  51. </ul>
  52. <ul class=“stui-screen__list type-slide bottom-line-dot clearfix”>
  53. <li>
  54. <span class=“text-muted”>按年份</span>
  55. </li>
  56. <li {if condition=$param[‘year’] eq ””} class=“active”{/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>”,’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>全部</a></li>
  57. {empty name=$obj.type_extend.year”}
  58. {maccms:foreach name=“:explode(‘,’,$obj.parent.type_extend.year)” id=“vo2” key=“key2”}
  59. <li {if condition=$param[‘year’] eq $vo2} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>$vo2,’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a></li>
  60. {/maccms:foreach}
  61. {else /}
  62. {maccms:foreach name=“:explode(‘,’,$obj.type_extend.year)” id=“vo2” key=“key2”}
  63. <li {if condition=$param[‘year’] eq $vo2} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>$vo2,’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a></li>
  64. {/maccms:foreach}
  65. {/empty}
  66. </ul>
  67. <ul class=“stui-screen__list type-slide bottom-line-dot clearfix”>
  68. <li>
  69. <span class=“text-muted”>按语言</span>
  70. </li>
  71. <li {if condition=$param[‘lang’] eq ””} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>”,’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>全部</a></li>
  72. {empty name=$obj.type_extend.lang”}
  73. {maccms:foreach name=“:explode(‘,’,$obj.parent.type_extend.lang)” id=“vo2” key=“key2”}
  74. <li {if condition=$param[‘lang’] eq $vo2} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$vo2,’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a></li>
  75. {/maccms:foreach}
  76. {else /}
  77. {maccms:foreach name=“:explode(‘,’,$obj.type_extend.lang)” id=“vo2” key=“key2”}
  78. <li {if condition=$param[‘lang’] eq $vo2} class=“active” {/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$vo2,’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$param[‘letter’],’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a></li>
  79. {/maccms:foreach}
  80. {/empty}
  81. </ul>
  82. <ul class=“stui-screen__list letter-list type-slide clearfix”>
  83. <li>
  84. <span class=“text-muted”>按字母</span>
  85. </li>
  86. <li {if condition=$param[‘letter’] eq ””} class=“active”{/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>”,’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>全部</a></li>
  87. {maccms:foreach name=“:explode(‘,’,’A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,09‘)” id=“vo2” key=“key2”}
  88. <li {if condition=$param[‘letter’] eq $vo2} class=“active”{/if}><a href=“{:mac_url_type($obj,[‘area’=>$param[‘area’],’lang’=>$param[‘lang’],’year’=>$param[‘year’],’level’=>$param[‘level’],’letter’=>$vo2,’state’=>$param[‘state’],’tag’=>$param[‘tag’],’class’=>$param[‘class’],’order=>$param[‘order‘],’by’=>$param[‘by’] ],’show’)}”>{$vo2}</a><li>
  89. {/maccms:foreach}
  90. </ul>
  91. </div>
  92. </div>
  93. </div>
  94. <!— end 筛选 –>
本站出售的源码只允许用于合法用途,以及学习交流技术层面,凡是用于非法用途的与本站无关,本人不承担任何责任!未经本站允许不得转载、倒卖克胡网络 » maccms分类筛选代码(类型,剧情,地区,年份,语言,字母)
分享到:
赞(0)

评论抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
Hello,欢迎来咨询~