No Description
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.

list2.htm 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <div class="box_1" style="display: block;">
  2. <!--定义内容标签 p span a li img--->
  3. <?php
  4. //var_dump($eyou['site']);
  5. //var_dump($site);
  6. //只调用省级 城市为空
  7. if((int)$eyou['site']['id'] === 0){
  8. //所有省份的数据
  9. $where = "typeid='126' and province_id > 0 and city_id='0' and is_del=0";
  10. }else{
  11. //$site_id = $eyou['site']['id'];
  12. $where = "typeid='126' and province_id='$site_pro_id' and city_id='0' and is_del=0";
  13. }
  14. if($site == "shandong" && $domain[0] == "www" || $site == "www"){
  15. $where = "typeid='126' and area_tag_id=10000 and is_del=0";
  16. }
  17. $ids = '';
  18. ?>
  19. {eyou:sql sql="select aid from ey_archives where $where order by update_time desc limit 0,8" cachetime='3600' empty='没有数据' id="res"}
  20. <?php
  21. //var_dump($provid);
  22. //var_dump($res);
  23. $ids .= ','.$res['aid'];
  24. ?>
  25. {/eyou:sql}
  26. {eyou:empty name='$ids' /}
  27. ----------------------(暂无相关文档)-----------------------
  28. {eyou:else /}
  29. <?php
  30. $ids = '0'.$ids;
  31. //var_dump($ids);
  32. $ids = explode(',',$ids);
  33. ?>
  34. {eyou:foreach name='$ids' item='field'}
  35. {eyou:arcview aid='$field' addfields='down'}
  36. <li>
  37. <?php
  38. $extension = substr($field['down'], strrpos($field['down'], '.') + 1);
  39. ?>
  40. <div style=""></div>
  41. <span>.{$extension}</span>
  42. <img src="https://oss.zc10000.com/static/img/{$extension}.svg" />
  43. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'])}" class="k">
  44. {$field.title}</a>
  45. <p>
  46. <!-- <img src="https://oss.zc10000.com/static/images/031.SVG">-->
  47. <font class="sp-1">阅读量: {$field.click}</font>
  48. <font class="sp-1">收藏量: {$field.collection}</font>
  49. <font class="sp-1">点赞量: {$field.likecount}</font>
  50. <font class="sp-1">下载量: {$field.downcount}</font>
  51. <!--<font class="sp-2">{$field.handle_time?$field.handle_time:'01月'}</font>-->
  52. </p>
  53. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'])}">
  54. <button>
  55. 前往下载
  56. </button></a>
  57. </li>
  58. {/eyou:arcview}
  59. {/eyou:foreach}
  60. {/eyou:empty}
  61. </div>
  62. <div class="box_1">
  63. <?php
  64. //var_dump($eyou['site']);
  65. //只调用省级 城市为空
  66. if((int)$eyou['site']['id'] === 0){
  67. //所有省份的数据
  68. $where = "typeid='825' and province_id > 0 and city_id='0' and is_del=0";
  69. }else{
  70. //$site_id = $eyou['site']['id'];
  71. $where = "typeid='825' and province_id='$site_pro_id' and city_id='0' and is_del=0";
  72. }
  73. //重写
  74. if($site == "shandong" && $domain[0] == "www" || $site == "www"){
  75. $where = "typeid='825' and area_tag_id=10000 and is_del=0";
  76. }
  77. $ids = '';
  78. ?>
  79. {eyou:sql sql="select aid from ey_archives where $where order by update_time desc limit 0,8" cachetime='3600' empty='没有数据' id="res"}
  80. <?php
  81. //var_dump($provid);
  82. //var_dump($res);
  83. $ids .= ','.$res['aid'];
  84. ?>
  85. {/eyou:sql}
  86. {eyou:empty name='$ids' /}
  87. ----------------------(暂无相关文档)-----------------------
  88. {eyou:else /}
  89. <?php
  90. $ids = '0'.$ids;
  91. //var_dump($ids);
  92. $ids = explode(',',$ids);
  93. ?>
  94. {eyou:foreach name='$ids' item='field'}
  95. {eyou:arcview aid='$field' addfields='down'}
  96. <li>
  97. <?php
  98. $extension = substr($field['down'], strrpos($field['down'], '.') + 1);
  99. ?>
  100. <div style=""></div>
  101. <span>.{$extension}</span>
  102. <img src="https://oss.zc10000.com/static/img/{$extension}.svg" />
  103. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'])}" class="k">
  104. {$field.title}</a>
  105. <p>
  106. <!--<img src="https://oss.zc10000.com/static/images/031.SVG">-->
  107. <font class="sp-1">阅读量: {$field.click}</font>
  108. <font class="sp-1">收藏量: {$field.collection}</font>
  109. <font class="sp-1">点赞量: {$field.likecount}</font>
  110. <font class="sp-1">下载量: {$field.downcount}</font>
  111. <!--<font class="sp-2">{$field.handle_time?$field.handle_time:'01月'}</font>-->
  112. </p>
  113. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'])}">
  114. <button>
  115. 前往下载
  116. </button></a>
  117. </li>
  118. {/eyou:arcview}
  119. {/eyou:foreach}
  120. {/eyou:empty}
  121. </div>
  122. <div class="box_1 zczx">
  123. <?php
  124. //var_dump($eyou['site']);
  125. //var_dump($cityid);
  126. //只调用省级 城市为空
  127. if((int)$eyou['site']['id'] === 0){
  128. //所有省份的数据
  129. $where = "typeid='115' and province_id > 0 and city_id='0' and is_del=0";
  130. }else{
  131. //$site_id = $eyou['site']['id'];
  132. if((int)$cityid > 0){
  133. $where = "typeid='115' and province_id='$site_pro_id' and city_id='$cityid' and is_del=0"; // and city_id='0'
  134. }else{
  135. $where = "typeid='115' and province_id='$site_pro_id' and is_del=0"; // and city_id='0'
  136. }
  137. }
  138. //and city_id='0'
  139. if($site == "shandong" && $domain[0] == "www" || $site == "www"){
  140. $where = "typeid='115' and is_del=0";
  141. }
  142. $ids = '';
  143. ?>
  144. {eyou:sql sql="select aid from ey_archives where $where order by update_time desc limit 0,10" cachetime='3600' empty='没有数据' id="res"}
  145. <?php
  146. //var_dump($provid);
  147. //var_dump($res);
  148. $ids .= ','.$res['aid'];
  149. ?>
  150. {/eyou:sql}
  151. {eyou:empty name='$ids' /}
  152. ----------------------(暂无相关文档)-----------------------
  153. {eyou:else /}
  154. <?php
  155. $ids = '0'.$ids;
  156. ?>
  157. {eyou:artlist idlist="$ids" limit="0,10" titlelen='30' infolen='160' orderby='update_time desc' addfields='handle_time,province_id'}
  158. <li>
  159. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],0,'',0,$field['province_id'],$field['city_id'])}" class="k">
  160. {$field.title}</a>
  161. </li>
  162. {/eyou:artlist}
  163. {/eyou:empty}
  164. </div>