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

lists_zczygz_psgl.htm 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. {eyou:assign name='page' value='zccat-detail-list' /}
  2. {eyou:php}
  3. /**处理参数*/
  4. $route_param = request()->route();
  5. //$route_param['tid'] =
  6. //var_dump($route_param);die;
  7. $route_domain = request()->domain();
  8. $route_domain2 = explode('//',$route_domain);
  9. $domain = explode('.',$route_domain2[1]);
  10. $site = $domain[0];
  11. //var_dump($site);
  12. $route_url = request()->url();
  13. //var_dump($route_domain);
  14. //var_dump($route_url);
  15. //技术员、助理、中级、高级、正高级
  16. if(!empty($route_param['pa'])){
  17. /*if((int)$route_param['pa'] === 1){
  18. $level = '助理';
  19. }elseif((int)$route_param['pa'] === 2){
  20. $level = '中级';
  21. }elseif((int)$route_param['pa'] === 3){
  22. $level = '高级';
  23. }elseif((int)$route_param['pa'] === 4){
  24. $level = '正高级';
  25. }else{
  26. $level = '技术员';
  27. }*/
  28. $level = (int)$route_param['pa']; //级别对应排序即可
  29. }else{
  30. /*$level = '技术员';*/
  31. $level = 0;
  32. }
  33. //查找文档id
  34. {/eyou:php}
  35. {eyou:php}
  36. if($site == 'www'){
  37. $areaid = 10000;
  38. }else{
  39. $sql = "SELECT id FROM ey_citysite WHERE domain = '$site'";
  40. //echo $sql;
  41. }
  42. {/eyou:php}
  43. {eyou:if condition='($site != "www")'}
  44. {eyou:sql sql='$sql' cachetime='3600' id='city'}
  45. {eyou:php}
  46. $areaid = $city['id'];
  47. {/eyou:php}
  48. {/eyou:sql}
  49. {/eyou:if}
  50. {eyou:php}
  51. $num = (int)$route_param['catids'];
  52. $cid = $route_param['cid']?(int)$route_param['cid']:0;
  53. //var_dump($cid);
  54. if($cid > 0){
  55. $sql = "SELECT aid FROM ey_seo_number WHERE number=$cid and type=1 and tid=38 and topid=38 and parentid=38 and area_id=$areaid";
  56. }else{
  57. $sql = "SELECT aid FROM ey_seo_number WHERE number=$num and type=1 and tid=38 and topid=38 and parentid=38 and area_id=$areaid";
  58. }
  59. //echo $sql;
  60. {/eyou:php}
  61. {eyou:sql sql='$sql' cachetime='3600' id='seo'}
  62. {eyou:php}
  63. if($cid > 0){
  64. //再查询一次
  65. $so_parent_id = $seo['aid'];
  66. $sql2 = "SELECT aid FROM ey_seo_number WHERE number=$num and type=1 and tid=$so_parent_id and topid=38 and parentid=$so_parent_id and area_id=0";
  67. }else{
  68. $route_param['catids'] = $seo['aid'];
  69. //var_dump($route_param);
  70. }
  71. {/eyou:php}
  72. {/eyou:sql}
  73. {eyou:if condition='($cid > 0)'}
  74. <?php
  75. //var_dump($sql2);
  76. ?>
  77. {eyou:sql sql='$sql2' cachetime='3600' id='seo2'}
  78. {eyou:php}
  79. $route_param['catids'] = $seo2['aid'];
  80. //var_dump($route_param);
  81. {/eyou:php}
  82. {/eyou:sql}
  83. {/eyou:if}
  84. <?php
  85. //栏目信息 获取二级或者三级
  86. //var_dump($route_param);
  87. ?>
  88. {eyou:assign name='catid' value="$route_param.catids"}
  89. {eyou:type typeid='$route_param.catids' empty='' id="catinfo"}
  90. {eyou:assign name='parentid' value="$catinfo.parent_id"}
  91. {eyou:assign name='catname' value="$catinfo.typename"}
  92. {/eyou:type}
  93. <?php
  94. //var_dump($catid);
  95. ?>
  96. {eyou:empty name='$parentid' /}
  97. <?php
  98. //查找小类 获取到parentid
  99. ?>
  100. {eyou:sql sql="SELECT id,parent_id,typename FROM ey_arctype_cat WHERE id = $catid" cachetime='3600' id='field2'}
  101. {eyou:assign name='parentid' value="$field2.parent_id"}
  102. {eyou:assign name='catname' value="$field2.typename"}
  103. {/eyou:sql}
  104. {/eyou:empty}
  105. <?php
  106. $level_pa = (int)$level+1; //对应后台 要加 1
  107. if((int)$parentid === 38){
  108. //大类 二级
  109. $sql = "select aid from ey_archives where typeid=".$catid." and product_id=0 and level=".$level_pa." and is_del=0";
  110. //echo $sql;
  111. ?>
  112. {eyou:sql sql="$sql" cachetime='3600' empty='' id='detail'}
  113. {eyou:assign name='aid' value="$detail.aid"}
  114. {eyou:arcview aid="$detail.aid" id="field"}
  115. {eyou:php}
  116. //获取到文档详情
  117. $eyou['field'] = $field;
  118. {/eyou:php}
  119. {/eyou:arcview}
  120. {/eyou:sql}
  121. <?php
  122. }else{
  123. //小类 三级
  124. $sql = "select id,parent_id from ey_arctype_cat where id=".$catid." and is_del=0";
  125. ?>
  126. {eyou:sql sql="$sql" cachetime='3600' empty='' id='detail2'}
  127. <?php
  128. $sql2 = "select aid from ey_archives where typeid=".$detail2['parent_id']." and product_id=".$catid." and level=".$level_pa." and is_del=0";
  129. //echo $sql2;die;
  130. ?>
  131. {eyou:sql sql="$sql2" cachetime='3600' empty='' id='detail'}
  132. {eyou:assign name='aid' value="$detail.aid"}
  133. {eyou:arcview aid="$detail.aid" id="field"}
  134. {eyou:php}
  135. //获取到文档详情
  136. $eyou['field'] = $field;
  137. {/eyou:php}
  138. {/eyou:arcview}
  139. {/eyou:sql}
  140. {/eyou:sql}
  141. <?php } ?>
  142. <?php
  143. //获取seo
  144. //seo_title
  145. //seo_description
  146. /*var_dump($eyou['field']['seo_title']);
  147. var_dump($eyou['field']['seo_keywords']);
  148. var_dump($eyou['field']['seo_description']);*/
  149. //var_dump($catname);
  150. if(empty($eyou['field']['seo_title'])){
  151. //按照规则
  152. $catname = str_replace("职称","",$catname);
  153. $eyou['field']['seo_title'] = $catname.'职称评审【2024最新政策】';
  154. $eyou['field']['seo_keywords'] = $catname.'职称';
  155. $eyou['field']['seo_description'] = $catname.'职称评审请上【职称网】最受欢迎的工程师职称评审网站,专注工程师职称评审,专注工程师职称评审,提供职称材料撰写、职称申报、职称论文专利等一站式服务,职称评审绿色便捷通道。';
  156. }
  157. ?>
  158. {eyou:php}
  159. /*打印信息*/
  160. //var_dump($detail);
  161. //var_dump($eyou['field']['area_id']);
  162. //var_dump($parentid);die;
  163. {/eyou:php}
  164. <!DOCTYPE html>
  165. <html>
  166. <head>
  167. <meta charset="utf-8">
  168. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  169. <title>{$eyou.field.seo_title}</title>
  170. <meta name="keywords" content="{$eyou.field.seo_keywords}">
  171. <meta name="description" content="{$eyou.field.seo_description}">
  172. <link rel="stylesheet" href="https://oss.zc10000.com/static/plug/layui/css/layui.css?v=<?php echo rand(1,100000); ?>" media="all">
  173. <link rel="stylesheet" href="/template/mobile/css/common.css?v=<?php echo rand(1,100000); ?>" media="all">
  174. <!--后续修改样式 在extend.css?v=<?php echo rand(1,100000); ?> 补充叠加 不修改原来的样式文件-->
  175. <link rel="stylesheet" href="/template/mobile/css/extend.css?v=<?php echo rand(1,100000); ?>" media="all">
  176. <script src="https://oss.zc10000.com/static/plug/layui/layui.js"></script>
  177. <script>
  178. layui.config({
  179. version: '1632428048355' //为了更新 js 缓存,可忽略
  180. });
  181. </script>
  182. </head>
  183. <body>
  184. <div id="bg_1"></div>
  185. <div id="bg_2"></div>
  186. <div id="bg_3"></div>
  187. {eyou:if condition='($page == "index")'}
  188. <div id="bg_4"></div>
  189. <div id="bg_5"></div>
  190. {/eyou:if}
  191. {eyou:if condition='($page == "lunwen-list")'}
  192. <div id="bg_4" style="top: 2660.87px;"></div>
  193. <div id="bg_5" style="top: 2673px;"></div>
  194. {/eyou:if}
  195. <div id="header">
  196. {eyou:include file='/template/mobile/common/header.htm' /}
  197. </div>
  198. <!--复制 copy/product.htm 页面名称: 职称产品页-->
  199. <!--复制 copy/city_product.htm 页面名称: 职称产品页-->
  200. <!--区别: 区域字段-->
  201. <div id="cat-index">
  202. <link rel="stylesheet" href="/template/mobile/css/product.css?v=<?php echo rand(1,100000); ?>" media="all">
  203. {eyou:include file='/template/mobile/components/banner/style_1.htm' /}
  204. {eyou:include file='/template/mobile/components/nav/style_1.htm' /}
  205. {eyou:notempty name='$detail' /}
  206. {eyou:include file='/template/mobile/components/detail/style_1.htm' /}
  207. <div class="content">
  208. <div class="box">
  209. <div class="box-left">
  210. <!--二级大类 必须是主页才显示-->
  211. {eyou:if condition='((int)$parentid === 38 && (int)$level === 0)'}
  212. <?php
  213. $title="职称小类";
  214. $con = '8';
  215. $catidw = $route_param['catids'];
  216. $sql = "select count(*) as total from ey_arctype_cat where parent_id=$catidw and is_del=0";
  217. ?>
  218. {eyou:sql sql='$sql' cachetime='3600' empty='没有数据'}
  219. {eyou:if condition='((int)$field.total > 0)'}
  220. {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
  221. {/eyou:if}
  222. {/eyou:sql}
  223. {/eyou:if}
  224. {eyou:if condition='((int)$level === 0)'}
  225. {eyou:empty name='$eyou.field.content_4' /}
  226. {eyou:else /}
  227. <?php
  228. $title= $product_name."评审概述";
  229. $con = '7';
  230. ?>
  231. {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
  232. {/eyou:empty}
  233. {/eyou:if}
  234. {eyou:empty name='$eyou.field.content_5' /}
  235. {eyou:else /}
  236. <?php
  237. $title= $product_name."评审适用范围";
  238. $con = '0';
  239. ?>
  240. {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
  241. {/eyou:empty}
  242. {eyou:empty name='$eyou.field.content_1' /}
  243. {eyou:else /}
  244. <?php
  245. $title= $product_name."评审工作要求";
  246. $con = '1';
  247. $id_name_div = "divcon1";
  248. ?>
  249. {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
  250. {/eyou:empty}
  251. {eyou:empty name='$eyou.field.content_6' /}
  252. {eyou:else /}
  253. <?php
  254. $title= $product_name."评审学历要求";
  255. $con = '4';
  256. $id_name_div = "divcon2";
  257. ?>
  258. {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
  259. {/eyou:empty}
  260. {eyou:empty name='$eyou.field.content_2' /}
  261. {eyou:else /}
  262. <?php
  263. $title= $product_name."评审业绩要求";
  264. $con = '2';
  265. $id_name_div = "divcon3";
  266. ?>
  267. {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
  268. {/eyou:empty}
  269. {eyou:empty name='$eyou.field.content_3' /}
  270. {eyou:else /}
  271. <?php
  272. $title= $product_name."评审学术要求";
  273. $con = '3';
  274. $id_name_div = "divcon4";
  275. ?>
  276. {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
  277. {/eyou:empty}
  278. <?php
  279. $title= $product_name."评审专利著作";
  280. $con = '5';
  281. $id_name_div = "divcon6";
  282. ?>
  283. {eyou:empty name='$eyou.field.content_7' /}
  284. {eyou:else /}
  285. <?php
  286. $title= $product_name."评审破格条件";
  287. $con = '6';
  288. $id_name_div = "divcon5";
  289. ?>
  290. {eyou:include file='/template/mobile/components/detail/style_2.htm' /}
  291. {/eyou:empty}
  292. <!--上下篇-->
  293. {eyou:include file='/template/mobile/components/text/style_5.htm' /}
  294. </div>
  295. <div class="box-right">
  296. <!--相关问题-->
  297. <?php
  298. $title = '常见问题'; //原先的职称相关问题 改为 常见问题
  299. $cat_id = '111';
  300. $son_id = '111';
  301. ?>
  302. {eyou:include file='/template/mobile/components/list/style_4.htm' /}
  303. <?php
  304. $title = '职称论文发表热门期刊';
  305. ?>
  306. {eyou:include file='/template/mobile/components/list/style_5.htm' /}
  307. {eyou:include file='/template/mobile/components/banner/style_2.htm' /}
  308. </div>
  309. </div>
  310. </div>
  311. {/eyou:notempty}
  312. </div>
  313. <div id="footer">
  314. {eyou:include file='/template/mobile/common/footer.htm' /}
  315. </div>
  316. {eyou:include file='/template/mobile/common/common_bot.htm' /}
  317. {eyou:include file='/template/mobile/common/button_2.htm' /}