暫無描述
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.

content.htm 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <div class="part">
  2. <div class="bar clearfix">
  3. <h1 class="tt"> <a href="{$web_domain}{$web_url}">{$eyou.field.title}</a> </h1>
  4. <div class="r-intro fr"> <span class="data fr">
  5. <small class="info">
  6. <i class="fa fa-clock-o"></i>{$eyou.field.update_time|MyDate="Y-m-d",###}
  7. </small>
  8. <small class="info">
  9. <i class="fa fa-eye"></i>
  10. {$eyou.field.click}
  11. </small>
  12. <script src="https://www.zc10000.com/index.php?m=api&amp;c=Ajax&amp;a=arcclick&amp;type=view&amp;aids={$doc_aid}" type="text/javascript" language="javascript"></script>
  13. <?php
  14. /*
  15. * <!--
  16. <small class="info btn-c" id="share_btn" title="{$eyou.field.title}" aid="{$eyou.field.aid}" style="margin-left: 15px;cursor: pointer;">
  17. 点击分享
  18. </small>
  19. <div style="display: none;" id="share-box">
  20. <div class="social-share"></div>
  21. </div>
  22. -->
  23. */
  24. ?>
  25. </span>
  26. </div>
  27. </div>
  28. <div class="items">
  29. <div class="row post-single">
  30. <div class="col-xs-12 col-sm-12 col-md-8">
  31. <div class="pic fl">
  32. <div class="blur blur-layer" style="background: transparent url({$eyou.field.litpic}) no-repeat center center;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;animation: rotate 20s linear infinite;"> </div>
  33. <img class="img-cover" src="https://www.zc10000.com/public/static/common/images/ico/{$eyou.field.ext}.png" alt="{$eyou.field.title}" title="{$eyou.field.title}"> </div>
  34. <div class="list list-detail">
  35. <?php
  36. //获取标签
  37. //product_tag_id
  38. $product_tag_id = $eyou['field']['product_tag_id'];
  39. function convertBytesToMB($bytes) {
  40. return $bytes / 1024 / 1024;
  41. }
  42. if(empty($eyou['field']['size'])){
  43. if(empty($eyou['field']['down'])){
  44. $fileSize = 0;
  45. }else{
  46. $remoteFile = $eyou['field']['down'];
  47. $headers = get_headers($remoteFile, true);
  48. $fileSize = $headers['Content-Length'];
  49. }
  50. }else{
  51. $fileSize = $eyou['field']['size'];
  52. }
  53. $fileSize = convertBytesToMB($fileSize);
  54. $fileSize = number_format($fileSize, 2).'M';
  55. //var_dump($fileSize);
  56. ?>
  57. {eyou:if condition='((int)$product_tag_id > 0)'}
  58. {eyou:sql sql="select aid,title from ey_archives where aid=$product_tag_id" cachetime='3600' empty=''}
  59. <?php
  60. $tag_name = $field['title'];
  61. ?>
  62. {/eyou:sql}
  63. {/eyou:if}
  64. <p><font>文档名称:</font><a href="{$web_domain}{$web_url}">{$eyou.field.title}</a></p>
  65. <p class="cate"><font>所属标签:</font> <a href="https://www.zc10000.com/tag{$tag_number}" target="_blank" >{$tag_name}</a></p>
  66. <p class="site">
  67. {eyou:if condition='($is_mobile === false)'}
  68. <font>文件大小:</font> {$fileSize} &nbsp;&nbsp;&nbsp;&nbsp;
  69. <font>上传时间:</font> {$eyou.field.update_time|MyDate="Y-m-d",###}&nbsp;&nbsp;&nbsp;&nbsp;
  70. <font>下载次数:</font> {$eyou.field.downcount}
  71. {eyou:else /}
  72. <font>上传时间:</font> {$eyou.field.update_time|MyDate="Y-m-d",###}&nbsp;&nbsp;&nbsp;&nbsp;<br/>
  73. <font>文件大小:</font> {$fileSize} &nbsp;&nbsp;&nbsp;&nbsp;
  74. <font>下载次数:</font> {$eyou.field.downcount}
  75. {/eyou:if}
  76. </p>
  77. <p class="seo">
  78. <?php
  79. /*
  80. * <!--SEO查询: <a class="" href="javascript:;" target="_self"><i class="fa fa-bar-chart"></i></a>
  81. <a class="pczz" href="javascript:;" target="_self"><i class="fa fa-bar-chart"></i></a> <a class="mzz" href="javascript:;" target="_self"><i class="fa fa-bar-chart"></i></a> -->
  82. */
  83. ?>
  84. {eyou:empty name='$eyou.field.zylm' /}
  85. <font>文档简介:</font> {$eyou.field.seo_description|msubstr=###,0,100,true}
  86. {eyou:else /}
  87. <font>文档简介:</font> {$eyou.field.zylm|msubstr=###,0,100,true}
  88. {/eyou:empty}
  89. </p>
  90. <?php
  91. if(!empty($eyou['field']['down'])){
  92. ?>
  93. <a class="btn transition" target="_self" href="javascript:;" id="down_btn" title="{$eyou.field.title}" aid="{$eyou.field.aid}">
  94. 下载文档
  95. <i class="fa fa-chevron-circle-right"></i>
  96. </a>
  97. <?php
  98. }else{
  99. ?>
  100. <a class="btn transition" target="_self" href="javascript:;" >
  101. 暂无文档
  102. <i class="fa fa-chevron-circle-right"></i>
  103. </a>
  104. <?php
  105. }
  106. ?>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="part">
  113. <p class="tt"><span>文档介绍</span></p>
  114. <div class="items">
  115. <div class="art-main">
  116. {eyou:if condition='($is_mobile === false)'}
  117. {$eyou.field.content_5}
  118. {eyou:else /}
  119. {eyou:empty name='$eyou.field.content_4' /}
  120. {$eyou.field.content_5}
  121. {eyou:else /}
  122. {$eyou.field.content_4}
  123. {/eyou:empty}
  124. {/eyou:if}
  125. </div>
  126. </div>
  127. </div>
  128. <div class="part related" style="padding: 10px 15px;">
  129. <div class="col-xs-12 col-sm-6 col-md-6 b">
  130. <span class="b1">上一篇:</span>
  131. <?php
  132. //var_dump($number);
  133. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number<$number and tid=1232 and is_del=0 and type=2 and area_id=$area_id ORDER BY number desc LIMIT 1)";
  134. ?>
  135. <span class="bb3">
  136. {eyou:sql sql="$sql" cachetime='3600' empty='无' id='kp'}
  137. {eyou:arcview aid='$kp.aid'}
  138. {eyou:if condition='((int)$field.is_del === 0)'}
  139. <a href="https://www.zc10000.com/zc/{$area_domain}/{$kp.number}" class="b2">{$field.title}</a>
  140. {eyou:else /}
  141. 文档已删除
  142. {/eyou:if}
  143. {/eyou:arcview}
  144. {/eyou:sql}
  145. </span>
  146. </div>
  147. <div class="col-xs-12 col-sm-6 col-md-6 b bb" style="">
  148. <span style="" class="b1">下一篇:</span>
  149. <?php
  150. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number>$number and tid=1232 and is_del=0 and type=2 and area_id=$area_id ORDER BY number asc LIMIT 1)";
  151. //echo $sql;
  152. ?>
  153. <span class="bb3">
  154. {eyou:sql sql="$sql" cachetime='3600' empty='无' id='kp'}
  155. {eyou:arcview aid='$kp.aid'}
  156. {eyou:if condition='((int)$field.is_del === 0)'}
  157. <a href="https://www.zc10000.com/zc/{$area_domain}/{$kp.number}" style="" class="b2">{$field.title}</a>
  158. {eyou:else /}
  159. 文档已删除 {$field.title|msubstr=###,0,10,true}
  160. {/eyou:if}
  161. {/eyou:arcview}
  162. {/eyou:sql}
  163. </span>
  164. </div>
  165. <div class="clear"></div>
  166. </div>
  167. <div class="part related">
  168. <p class="tt"><span>相关政策文件</span></p>
  169. <div class="items">
  170. <div class="row">
  171. <?php
  172. if($areaname === 0){
  173. $where = " and area_tag_id=".$area_id." and aid!=".$doc_aid;
  174. }else{
  175. //没有区域 要排除其他区域
  176. $where = " and area_tag_id=0 and aid!=".$doc_aid;
  177. }
  178. //product_tag_id
  179. //$tid
  180. if((int)$product_tag_id === 0){
  181. $where = " typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id=0 ".$where." OR typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id>0".$where; //and is_recom=1
  182. }else{
  183. $where = " typeid=".$tid." and is_del=0 and status=1 and province_id=0 ".$where." OR typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id=".$product_tag_id.$where; //and is_recom=1 //and product_tag_id=0
  184. }
  185. $sql = "select aid from ey_archives where $where order by product_tag_id desc,update_time desc limit 0,6";
  186. //echo $sql;
  187. ?>
  188. <?php
  189. $num = 0;
  190. ?>
  191. {eyou:sql sql='$sql' cachetime='3600' id="listSql"}
  192. {eyou:arcview aid='$listSql.aid'}
  193. <?php
  194. $a_url = get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['area_tag_id'],$field['city_id']);
  195. $num++;
  196. ?>
  197. {eyou:include file='/template/pc/components/goods/zc.htm' /}
  198. {/eyou:arcview}
  199. {/eyou:sql}
  200. <?php
  201. $num = 6-$num;
  202. //var_dump($num);
  203. //再补充的数量
  204. if($areaname === 0){
  205. $where = " and area_tag_id!=".$area_id." and aid!=".$doc_aid;
  206. }else{
  207. //补充场景 前面区域为0 这里要大于0
  208. $where = " and area_tag_id>0 and aid!=".$doc_aid; //and area_tag_id=0
  209. }
  210. if((int)$product_tag_id === 0){
  211. $where = " typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id=0 ".$where." OR typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id>0".$where; //and is_recom=1
  212. }else{
  213. $where = " typeid=".$tid." and is_del=0 and status=1 and province_id=0 ".$where." OR typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id=".$product_tag_id.$where; //and is_recom=1 //and product_tag_id=0
  214. }
  215. //优先标签前置
  216. $sql = "select aid from ey_archives where $where order by product_tag_id desc,click desc,update_time desc limit 0,".$num;
  217. //var_dump($sql);
  218. ?>
  219. {eyou:sql sql='$sql' cachetime='3600' id="listSql"}
  220. {eyou:arcview aid='$listSql.aid'}
  221. <?php
  222. $a_url = get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['area_tag_id'],$field['city_id']);
  223. ?>
  224. {eyou:include file='/template/pc/components/goods/zc.htm' /}
  225. {/eyou:arcview}
  226. {/eyou:sql}
  227. </div>
  228. </div>
  229. </div>
  230. <div class="part related">
  231. <p class="tt"><span>相关申报材料</span></p>
  232. <div class="items">
  233. <div class="row">
  234. <?php
  235. //product_tag_id
  236. //$tid
  237. if((int)$product_tag_id === 0){
  238. $where = " typeid=1233 and is_del=0 and status=1 and province_id=0 and product_tag_id=0 OR typeid=1233 and is_del=0 and status=1 and province_id=0 and product_tag_id>0"; //and is_recom=1
  239. }else{
  240. $where = " typeid=1233 and is_del=0 and status=1 and province_id=0 OR typeid=1233 and is_del=0 and status=1 and province_id=0 and product_tag_id=$product_tag_id"; //and is_recom=1 //and product_tag_id=0
  241. }
  242. $sql = "select aid from ey_archives where $where order by product_tag_id desc,click desc,update_time desc limit 0,6";
  243. //echo $sql;
  244. ?>
  245. {eyou:sql sql='$sql' cachetime='3600' id="listSql"}
  246. {eyou:arcview aid='$listSql.aid'}
  247. <?php
  248. $ar_url = get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id']);
  249. ?>
  250. <div class="col-xs-6 col-sm-4 col-md-2 font-563-active-{$i}">
  251. <div class="item art-item transition cl-img-box">
  252. <a class="art-a" href="{$ar_url}" title="" >
  253. <img class="img-cover cl-img" src="{$field.litpic}" alt="" title="">
  254. </a>
  255. <h3 class="art-title cl-art-title" style="">
  256. {eyou:if condition='((int)$field.is_recom === 1)'}
  257. <i class="more2_info_self">推荐</i>
  258. {/eyou:if}
  259. <a class="" href="{$ar_url}" title="{$field.title}" >
  260. {$field.title|msubstr=###,0,30,true}
  261. </a>
  262. </h3>
  263. <div class="mod_price">
  264. <i>¥</i>
  265. <span class="more2_info_price_txt">{$field.users_price}.<span class="more2_info_price_txt-decimal">00</span>
  266. </span>
  267. </div>
  268. </div>
  269. </div>
  270. {/eyou:arcview}
  271. {/eyou:sql}
  272. </div>
  273. </div>
  274. </div>