Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

center4.htm 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. //var_dump($son_id);
  3. //catid="0"
  4. ?>
  5. {eyou:if condition='($page == "article_list" || $page=="article-detail")'}
  6. <?php
  7. /*
  8. * 基本上是评审攻略 具体排查 引用style4 然后看看son_id 是多少
  9. */
  10. //and is_recom=0
  11. if((int)$site_pro_id === 10000 || empty($site_pro_id)){
  12. $site_pro_id = 0;
  13. }
  14. if(!empty($provid)){
  15. $site_pro_id = $provid;
  16. }
  17. $where = " typeid=".$son_id." and is_del=0 and status=1 and province_id=".$site_pro_id." ";
  18. $sql = "select aid from ey_archives where $where order by update_time desc limit 0,15";
  19. //echo $sql;
  20. ?>
  21. {eyou:sql sql='$sql' cachetime='3600' id="listSql"}
  22. {eyou:arcview aid='$listSql.aid'}
  23. <li>
  24. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id'])}" class="active-{$i}">
  25. {eyou:if condition='($ty == "left")'}
  26. {$field.title|msubstr=###,0,36,true}
  27. {eyou:else /}
  28. {$field.title|msubstr=###,0,18,true}
  29. {/eyou:if}
  30. </a>
  31. {eyou:if condition='($ty == "left")'}
  32. <span>{$field.add_time|MyDate='Y-m-d',###}</span>
  33. {eyou:else /}
  34. {/eyou:if}
  35. </li>
  36. {/eyou:arcview}
  37. {/eyou:sql}
  38. <!--不存在分站数据-->
  39. {eyou:empty name='$listSql' /}
  40. <?php
  41. $where = " typeid=".$son_id." and is_del=0 and status=1 and province_id=0 ";
  42. $sql = "select aid from ey_archives where $where order by update_time desc limit 0,15";
  43. ?>
  44. {eyou:sql sql='$sql' cachetime='3600' id="listSql2"}
  45. {eyou:arcview aid='$listSql2.aid'}
  46. <li>
  47. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id'])}" class="active-{$i}">
  48. {eyou:if condition='($ty == "left")'}
  49. {$field.title|msubstr=###,0,36,true}
  50. {eyou:else /}
  51. {$field.title|msubstr=###,0,18,true}
  52. {/eyou:if}
  53. </a>
  54. {eyou:if condition='($ty == "left")'}
  55. <span>{$field.add_time|MyDate='Y-m-d',###}</span>
  56. {eyou:else /}
  57. {/eyou:if}
  58. </li>
  59. {/eyou:arcview}
  60. {/eyou:sql}
  61. {/eyou:empty}
  62. {eyou:elseif condition='($page == "provincial")'}
  63. {eyou:include file='/template/pc/components/list/sub/data/tid_111.htm' /}
  64. {eyou:elseif condition='($page == "zccat-detail-list")'}
  65. <?php
  66. $limit = "0,9";
  67. /*
  68. * 常见问题
  69. */
  70. ?>
  71. {eyou:include file='/template/pc/components/list/sub/data/tid_111.htm' /}
  72. {eyou:else /}
  73. <!--职称相关问题 现在不需要了-->
  74. {eyou:artlist catid="$eyou.field.typeid" stypeid='0' typeid="122" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'}
  75. <li>
  76. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
  77. </li>
  78. {/eyou:artlist}
  79. {/eyou:if}