Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

style_3.htm 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. <?php
  2. $name = "detail-s-3";
  3. ?>
  4. <link rel="stylesheet" href="/template/pc/components/detail/style_3.css" media="all">
  5. <!--定义div盒子-->
  6. <div class="<?php echo $name; ?>-content">
  7. <div class="box">
  8. <!--定义内容布局--->
  9. <div class="row">
  10. <!--定义内部栅格 上下中左右 使用浮动-->
  11. <div class="top">
  12. <!--定义内容标签 p span a li img--->
  13. <!-- <span></span>-->
  14. <div class="one">
  15. <a href="">{$eyou.field.title}<?php echo $title; ?></a>
  16. </div>
  17. <div class="two">
  18. <!--<img src="https://oss.zc10000.com/static/images/033.svg"/> <font>{$eyou.field.add_time|MyDate='Y-m-d',###}</font>-->
  19. <!--<font>转发</font> <font>收藏</font><font>点赞 </font><font>下载</font>-->
  20. <font>浏览: {$eyou.field.click}</font>
  21. {eyou:if condition='($page == "down")'}
  22. <font>下载: {$eyou.field.downcount}</font>
  23. {/eyou:if}
  24. <font>点赞: <num id="likecount">{$eyou.field.likecount}</num></font>
  25. <font>收藏: <num id="collection">{$eyou.field.collection}</num></font>
  26. <!--<img src="https://oss.zc10000.com/static/images/034.svg"/> -->
  27. <font style="float:right;margin-top:10px;">更新时间: {$eyou.field.update_time|MyDate='Y-m-d',###}</font>
  28. </div>
  29. </div>
  30. <div class="center">
  31. <!--定义内容标签 p span a li img--->
  32. <p>
  33. {eyou:if condition='($page == "down")'}
  34. {eyou:include file='/template/pc/components/detail/content/down.htm' /}
  35. {eyou:include file='/template/pc/components/detail/page/a.htm' /}
  36. {eyou:else /}
  37. {$eyou.field.content_5}
  38. {/eyou:if}
  39. </p>
  40. </div>
  41. <div class="bottom">
  42. <?php if (isset($page) && $page == 'works' || isset($page) && $page == 'document.htm' || isset($page) && $page == 'down') { ?>
  43. <?php } else { ?>
  44. {eyou:tags getall='0' empty=''}
  45. <div class="one">
  46. <a href='{$field.link}'>{$field.tag}</a>
  47. </div>
  48. {/eyou:tags}
  49. <?php } ?>
  50. <div class="two">
  51. <div class="layui-row">
  52. <?php
  53. $tid = $eyou['field']['typeid'];
  54. ?>
  55. {eyou:if condition='($page == "lunwen-detail")'}
  56. <!--论文期刊-->
  57. <div class="layui-col-xs6 a">
  58. <?php
  59. //var_dump($number);
  60. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number<$number and tid=116 and is_del=0 and type=4 and area_id=0 ORDER BY number desc LIMIT 1)";
  61. ?>
  62. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  63. {eyou:arcview aid='$kp.aid'}
  64. {eyou:if condition='((int)$field.is_del === 0)'}
  65. <a href="/zclw/lunwen{$kp.number}">{$field.title|msubstr=###,0,10,true}</a>
  66. {eyou:else /}
  67. 文档已删除
  68. {/eyou:if}
  69. {/eyou:arcview}
  70. {/eyou:sql}
  71. <span>上一篇</span>
  72. </div>
  73. <div class="layui-col-xs6 b">
  74. <span>下一篇</span>
  75. <?php
  76. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number>$number and tid=116 and is_del=0 and type=4 and area_id=0 ORDER BY number asc LIMIT 1)";
  77. ?>
  78. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  79. {eyou:arcview aid='$kp.aid'}
  80. {eyou:if condition='((int)$field.is_del === 0)'}
  81. <a href="/zclw/lunwen{$kp.number}">{$field.title|msubstr=###,0,10,true}</a>
  82. {eyou:else /}
  83. 文档已删除
  84. {/eyou:if}
  85. {/eyou:arcview}
  86. {/eyou:sql}
  87. </div>
  88. {eyou:elseif condition='($page == "down")' /}
  89. <!--资料文档-->
  90. <div class="layui-col-xs6 a">
  91. <?php
  92. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number<$number and tid=$tid and is_del=0 and type=5 and area_id=$provid ORDER BY number desc LIMIT 1)";
  93. ?>
  94. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  95. {eyou:arcview aid='$kp.aid'}
  96. {eyou:if condition='((int)$field.is_del === 0)'}
  97. <a href="/zlwd/cms{$kp.number}">{$field.title|msubstr=###,0,10,true}</a>
  98. {eyou:else /}
  99. 文档已删除
  100. {/eyou:if}
  101. {/eyou:arcview}
  102. {/eyou:sql}
  103. <span>上一篇</span>
  104. </div>
  105. <div class="layui-col-xs6 b">
  106. <span>下一篇</span>
  107. <?php
  108. $tid = $eyou['field']['typeid'];
  109. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number>$number and tid=$tid and is_del=0 and type=5 and area_id=$provid ORDER BY number asc LIMIT 1)";
  110. ?>
  111. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  112. {eyou:arcview aid='$kp.aid'}
  113. {eyou:if condition='((int)$field.is_del === 0)'}
  114. <a href="/zlwd/cms{$kp.number}">{$field.title|msubstr=###,0,10,true}</a>
  115. {eyou:else /}
  116. 文档已删除
  117. {/eyou:if}
  118. {/eyou:arcview}
  119. {/eyou:sql}
  120. </div>
  121. {eyou:else /}
  122. {eyou:if condition='((int)$tid === 115 || (int)$tid === 117)'}
  123. <!---评审攻略和政策-->
  124. <?php
  125. $where_prov = '';
  126. if(!empty($provid)){
  127. $where_prov = ' and area_id='.$provid;
  128. }
  129. $where_city = '';
  130. if(!empty($cityid)){
  131. $where_city = ' and city_id='.$cityid;
  132. }
  133. ?>
  134. <div class="layui-col-xs6 a">
  135. <?php
  136. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number<$number and tid=$tid and is_del=0 and type=2 $where_city $where_city ORDER BY number desc LIMIT 1)";
  137. ?>
  138. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  139. {eyou:arcview aid='$kp.aid'}
  140. {eyou:if condition='((int)$field.is_del === 0)'}
  141. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id'])}">{$field.title|msubstr=###,0,10,true}</a>
  142. {eyou:else /}
  143. 文档已删除
  144. {/eyou:if}
  145. {/eyou:arcview}
  146. {/eyou:sql}
  147. <span>上一篇</span>
  148. </div>
  149. <div class="layui-col-xs6 b">
  150. <span>下一篇</span>
  151. <?php
  152. $tid = $eyou['field']['typeid'];
  153. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number>$number and tid=$tid and is_del=0 and type=2 $where_city $where_city ORDER BY number asc LIMIT 1)";
  154. ?>
  155. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  156. {eyou:arcview aid='$kp.aid'}
  157. {eyou:if condition='((int)$field.is_del === 0)'}
  158. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id'])}">{$field.title|msubstr=###,0,10,true}</a>
  159. {eyou:else /}
  160. 文档已删除
  161. {/eyou:if}
  162. {/eyou:arcview}
  163. {/eyou:sql}
  164. </div>
  165. {eyou:else /}
  166. <!--其他文章的上下篇-->
  167. <div class="layui-col-xs6 a">
  168. <?php
  169. //var_dump($number);
  170. $tid = $eyou['field']['typeid'];
  171. if($tid === 127){
  172. //论文参考
  173. $type = 4;
  174. }else{
  175. $type = 2;
  176. }
  177. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number<$number and tid=$tid and is_del=0 and type=$type and area_id=0 ORDER BY number desc LIMIT 1)";
  178. ?>
  179. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  180. {eyou:arcview aid='$kp.aid'}
  181. {eyou:if condition='((int)$field.is_del === 0)'}
  182. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id'])}">{$field.title|msubstr=###,0,10,true}</a>
  183. {eyou:else /}
  184. 文档已删除
  185. {/eyou:if}
  186. {/eyou:arcview}
  187. {/eyou:sql}
  188. <span>上一篇</span>
  189. </div>
  190. <div class="layui-col-xs6 b">
  191. <span>下一篇</span>
  192. <?php
  193. $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number>$number and tid=$tid and is_del=0 and type=$type and area_id=0 ORDER BY number asc LIMIT 1)";
  194. ?>
  195. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  196. {eyou:arcview aid='$kp.aid'}
  197. {eyou:if condition='((int)$field.is_del === 0)'}
  198. <a href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id'])}">{$field.title|msubstr=###,0,10,true}</a>
  199. {eyou:else /}
  200. 文档已删除
  201. {/eyou:if}
  202. {/eyou:arcview}
  203. {/eyou:sql}
  204. </div>
  205. {/eyou:if}
  206. {/eyou:if}
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. </div>