暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

center3.htm 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {eyou:if condition='($page == "lunwen-detail")'}
  2. <!--往期模板参考-->
  3. <?php
  4. $sql = "SELECT GROUP_CONCAT(aid SEPARATOR ',') as ids FROM `ey_archives` WHERE typeid=127 and lunwen_id=".$route_param['aid'];
  5. //echo $sql;
  6. //$res.ids
  7. ?>
  8. {eyou:sql sql='$sql' cachetime='3600' id="res"}
  9. {eyou:notempty name='$res.ids' /}
  10. {eyou:artlist idlist='$res.ids'}
  11. <li>
  12. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
  13. </li>
  14. {/eyou:artlist}
  15. {/eyou:notempty}
  16. {/eyou:sql}
  17. {eyou:elseif condition='($page == "down")'}
  18. {eyou:if condition='($con === 1)'}
  19. <!--调用参考文件即可 typeid=826-->
  20. {eyou:assign name='catid' value='$eyou.field.stypeid' /}
  21. <?php
  22. $where = "typeid='826' and stypeid='$catid' and is_del=0";
  23. ?>
  24. {eyou:sql sql="select GROUP_CONCAT(aid SEPARATOR ',') AS ids from ey_archives where $where order by update_time desc LIMIT 0,10" cachetime='3600' empty='没有数据' id="res4"}
  25. {eyou:artlist idlist="$res4.ids" titlelen='30' infolen='160' orderby='update_time desc' addfields='handle_time,province_id'}
  26. <li>
  27. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
  28. </li>
  29. {/eyou:artlist}
  30. {/eyou:sql}
  31. {eyou:else /}
  32. <!--常见问题-->
  33. {eyou:include file='/template/pc/components/list/sub/data/tid_111.htm' /}
  34. {/eyou:if}
  35. {eyou:elseif condition='($page == "city")'}
  36. {eyou:include file='/template/pc/components/list/sub/data/tid_111.htm' /}
  37. {eyou:else /}
  38. <!--加入筛选条件 职称分类-->
  39. {eyou:artlist catid="$route_param.tid" stypeid='0' typeid="111" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'}
  40. <li>
  41. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
  42. </li>
  43. {/eyou:artlist}
  44. {/eyou:if}