Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

style_3.htm 9.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?php
  2. $name = "list-s-3";
  3. ?>
  4. <link rel="stylesheet" href="/template/mobile/components/list/style_3.css?v=<?php echo rand(1,100000); ?>" media="all">
  5. <!--定义div盒子-->
  6. <div class="<?php echo $name; ?>-content">
  7. <div class="box">
  8. <!--定义内容布局--->
  9. <div class="row row{$con}">
  10. <!--定义内部栅格 上下中左右 使用浮动-->
  11. <div class="top">
  12. <!--定义内容标签 p span a li img--->
  13. <span></span>
  14. {eyou:if condition='($page == "zccat")'}
  15. {eyou:type typeid='111' empty='暂时没有数据'}
  16. <a href="{:get_tid_url_2($field['typeurl'])}" >
  17. {/eyou:type}
  18. {eyou:if condition='($route_param.tid != 38)'}
  19. {eyou:type typeid='$route_param.tid' empty='暂时没有数据' id='field2'}
  20. {$field2.typename}
  21. {/eyou:type}
  22. 常见问题解答{$param.tid}
  23. {eyou:else /}
  24. 常见问题解答
  25. {/eyou:if}
  26. </a>
  27. {eyou:elseif condition='($page == "down")'}
  28. {eyou:empty name='$eyou.field.stypeid' /}
  29. <?php echo $title; ?>
  30. {eyou:else /}
  31. {eyou:type typeid='$eyou.field.stypeid' empty='无'}
  32. <a href="{:get_tid_url_2($field['typeurl'])}" class="" >{$field['typename']}<?php echo $title; ?></a>
  33. {/eyou:type}
  34. {/eyou:empty}
  35. {eyou:elseif condition='($page == "city")'}
  36. {eyou:type typeid='111' empty=''}
  37. <a href="{:get_tid_url_2($field['typeurl'])}" class="" ><?php echo $title; ?></a>
  38. {/eyou:type}
  39. {eyou:elseif condition='($page == "lunwen-detail")'}
  40. {eyou:type typeid='127' empty=''}
  41. <a href="{:get_tid_url_2($field['typeurl'])}" class="" ><?php echo $title; ?></a>
  42. {/eyou:type}
  43. {eyou:else /}
  44. <a href=""><?php echo $title?$title:'工程师职称常见问题解答'; ?></a>
  45. {/eyou:if}
  46. </div>
  47. <div class="center">
  48. <!--定义内容标签 p span a li img--->
  49. {eyou:if condition='($route_param.tid != 38)'}
  50. {eyou:if condition='($page == "lunwen-detail")'}
  51. <!--往期模板参考-->
  52. <?php
  53. $sql = "SELECT GROUP_CONCAT(aid SEPARATOR ',') as ids FROM `ey_archives` WHERE typeid=127 and lunwen_id=".$route_param['aid'];
  54. //echo $sql;
  55. //$res.ids
  56. ?>
  57. {eyou:sql sql='$sql' cachetime='3600' id="res"}
  58. {eyou:notempty name='$res.ids' /}
  59. {eyou:artlist idlist='$res.ids'}
  60. <li>
  61. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
  62. </li>
  63. {/eyou:artlist}
  64. {/eyou:notempty}
  65. {/eyou:sql}
  66. {eyou:elseif condition='($page == "down")'}
  67. {eyou:if condition='($con === 1)'}
  68. <!--调用参考文件即可 typeid=826-->
  69. {eyou:assign name='catid' value='$eyou.field.stypeid' /}
  70. <?php
  71. $where = "typeid='826' and stypeid='$catid' and is_del=0";
  72. ?>
  73. {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"}
  74. {eyou:artlist idlist="$res4.ids" titlelen='30' infolen='160' orderby='update_time desc' addfields='handle_time,province_id'}
  75. <li>
  76. <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>
  77. </li>
  78. {/eyou:artlist}
  79. {/eyou:sql}
  80. {eyou:else /}
  81. <!--常见问题-->
  82. {eyou:assign name='catid' value='$eyou.field.stypeid' /}
  83. <?php
  84. //and stypeid='$catid'
  85. $where = " typeid=111 and is_del=0 ";
  86. //var_dump($where);
  87. //@ROUP_CONCAT(aid SEPARATOR ',') AS ids
  88. $ids = '0';
  89. ?>
  90. {eyou:sql sql="select aid from ey_archives where $where order by update_time desc LIMIT 0,14" cachetime='3600' empty='没有数据' id="res5"}
  91. <?php
  92. //var_dump($res5);
  93. $ids .= ','.$res5['aid'];
  94. ?>
  95. {/eyou:sql}
  96. {eyou:notempty name='$ids' /}
  97. {eyou:artlist idlist="$ids" titlelen='30' limit="0,14" infolen='160' orderby='update_time desc' addfields='handle_time' id="list"}
  98. <li>
  99. <a href="{:get_tid_url_2($list['arcurl'],$list['typeid'],$list['stypeid'])}" class="active-{$i}">{$list.title|msubstr=###,0,18,true}</a>
  100. </li>
  101. {/eyou:artlist}
  102. {/eyou:notempty}
  103. {/eyou:if}
  104. {eyou:elseif condition='($page == "city")'}
  105. {eyou:artlist stypeid='0' typeid="111" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'}
  106. <li>
  107. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}" style="margin-left:0px;">{$field.title|msubstr=###,0,18,true}</a>
  108. </li>
  109. {/eyou:artlist}
  110. {eyou:else /}
  111. <!--加入筛选条件 职称分类-->
  112. {eyou:artlist catid="$route_param.tid" stypeid='0' typeid="111" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'}
  113. <li>
  114. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
  115. </li>
  116. {/eyou:artlist}
  117. {/eyou:if}
  118. {eyou:else /}
  119. {eyou:artlist catid='0' stypeid='0' typeid="111" limit='0,15' titlelen='30' infolen='160' orderby='update_time desc'}
  120. <li>
  121. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="active-{$i}">{$field.title|msubstr=###,0,18,true}</a>
  122. </li>
  123. {/eyou:artlist}
  124. {/eyou:if}
  125. </div>
  126. <div class="bottom">
  127. <div class="bottom-row">
  128. {eyou:if condition='($page == "down")'}
  129. {eyou:if condition='($con === 1)'}
  130. <span>{eyou:type typeid='125' empty='暂时没有数据'}
  131. <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a>
  132. {/eyou:type}&nbsp;&nbsp;<img src="https://oss.zc10000.com/static/images/013.svg" /></span>
  133. {eyou:else /}
  134. <span>{eyou:type typeid='122' empty='暂时没有数据'}
  135. <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a>
  136. {/eyou:type}&nbsp;&nbsp;<img src="https://oss.zc10000.com/static/images/013.svg" /></span>
  137. {/eyou:if}
  138. {eyou:elseif condition='($page == "city")'}
  139. <span>{eyou:type typeid='111' empty='暂时没有数据'}
  140. <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a>
  141. {/eyou:type}&nbsp;&nbsp;<img src="https://oss.zc10000.com/static/images/013.svg" /></span>
  142. {eyou:elseif condition='($page == "lunwen-detail")'}
  143. <span>{eyou:type typeid='127' empty='暂时没有数据'}
  144. <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a>
  145. {/eyou:type}&nbsp;&nbsp;<img src="https://oss.zc10000.com/static/images/013.svg" /></span>
  146. {eyou:else /}
  147. <span>{eyou:type typeid='111' empty='暂时没有数据'}
  148. <a href="{:get_tid_url_2($field['typeurl'])}" >查看更多</a>
  149. {/eyou:type}&nbsp;&nbsp;<img src="https://oss.zc10000.com/static/images/013.svg" /></span>
  150. {/eyou:if}
  151. </div>
  152. </div>
  153. </div>
  154. <div class="clear"></div>
  155. </div>
  156. </div>