Açıklama Yok
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.

index_2.htm 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. {eyou:php}
  2. $route_param = request()->route();
  3. //处理域名获取当前域名名称
  4. $route_domain = request()->domain();
  5. $domain = explode('//',$route_domain);
  6. $domain = explode('.',$domain[1]);
  7. $site = $domain[0];
  8. //var_dump($site);
  9. if(!empty($site) || $site != 'zc' || $site != 'www'){
  10. //判定为二级域名
  11. }else{
  12. $site = 'www';
  13. }
  14. //处理城市参数
  15. if(!empty($route_param['site'])){
  16. $city_domain = $route_param['site'];
  17. }else{
  18. $city_domain = 'none';
  19. }
  20. {/eyou:php}
  21. <?php
  22. //查询城市是否 自定义
  23. $sql = "select id,seo_title,seo_keywords,seo_description from ey_citysite where domain='".$city_domain."' ";
  24. ?>
  25. {eyou:sql sql='$sql' cachetime='3600' id='seo_cat'}
  26. {eyou:notempty name='$seo_cat' /}
  27. {eyou:assign name='cityid' value="$seo_cat.id" /}
  28. {eyou:php}
  29. $seo_title = $seo_cat['seo_title'];
  30. $seo_keywords = $seo_cat['seo_keywords'];
  31. $seo_description = $seo_cat['seo_description'];
  32. {/eyou:php}
  33. {/eyou:notempty}
  34. {/eyou:sql}
  35. {eyou:if condition='(empty($seo_title) && isset($seo_title))'}
  36. <?php
  37. //一定存在省 二级域名
  38. $area_name = '';
  39. $sql2 = "SELECT id,name FROM ey_citysite WHERE domain = '".$site."'";
  40. ?>
  41. {eyou:sql sql='$sql2' cachetime='3600' id='area'}
  42. {eyou:php}
  43. $area_name = ''.$area['name'].'';
  44. $area_id = ''.$area['id'].'';
  45. {/eyou:php}
  46. {/eyou:sql}
  47. <?php
  48. if($site == "www"){
  49. $sql1 = "SELECT aid,seo_title,seo_keywords,seo_description FROM ey_archives WHERE typeid=139 and province_id=5290 and is_del=0 and status=1 and arcrank=0";
  50. }else{
  51. //查询默认设置 市级入口 栏目id139 的内容管理
  52. $sql1 = "SELECT aid,seo_title,seo_keywords,seo_description FROM ey_archives WHERE typeid=139 and province_id=$area_id and is_del=0 and status=1 and arcrank=0";
  53. }
  54. ?>
  55. {eyou:sql sql='$sql1' cachetime='3600' id='seo_cat2'}
  56. {eyou:notempty name='$seo_cat2' /}
  57. {eyou:php}
  58. $seo_title = $seo_cat2['seo_title'];
  59. $seo_keywords = $seo_cat2['seo_keywords'];
  60. $seo_description = $seo_cat2['seo_description'];
  61. {/eyou:php}
  62. {/eyou:notempty}
  63. {/eyou:sql}
  64. {eyou:else /}
  65. {/eyou:if}
  66. <!DOCTYPE html>
  67. <html>
  68. <head>
  69. <meta charset="utf-8">
  70. <meta name="viewport"
  71. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  72. <?php
  73. if(isset($seo_title) && !empty($seo_title)){ ?>
  74. <title>{$seo_title}</title>
  75. <meta name="keywords" content="{$seo_keywords}">
  76. <meta name="description" content="{$seo_description}">
  77. <?php }else{ ?>
  78. <title>{eyou:global name='web_title' /}</title>
  79. <meta name="keywords" content="{eyou:global name='web_keywords' /}">
  80. <meta name="description" content="{eyou:global name='web_description' /}">
  81. <?php } ?>
  82. <link rel="stylesheet" href="https://oss.zc10000.com/static/plug/layui/css/layui.css?v=<?php echo rand(1,100000); ?>" media="all">
  83. <link rel="stylesheet" href="/template/mobile/css/common.css?v=<?php echo rand(1,100000); ?>" media="all">
  84. <!--后续修改样式 在extend.css?v=<?php echo rand(1,100000); ?> 补充叠加 不修改原来的样式文件-->
  85. <link rel="stylesheet" href="/template/mobile/css/extend.css?v=<?php echo rand(1,100000); ?>" media="all">
  86. <script src="https://oss.zc10000.com/static/plug/layui/layui.js"></script>
  87. <script>
  88. layui.config({
  89. version: '1632428048355' //为了更新 js 缓存,可忽略
  90. });
  91. </script>
  92. </head>
  93. <body>
  94. {eyou:include file='/template/mobile/common/background.htm' /}
  95. {eyou:assign name='page' value='city' /}
  96. <div id="header">
  97. {eyou:include file='/template/mobile/common/header.htm' /}
  98. </div>
  99. <!--复制 copy/city.htm 页面名称: 省级二级域名的二级目录 各大城市主页-->
  100. <!--模板切换的问题-->
  101. <div id="city-index">
  102. <link rel="stylesheet" href="/template/mobile/css/city.css?v=<?php echo rand(1,100000); ?>" media="all">
  103. <div class="content-4">
  104. <div class="box-4">
  105. <!--start-->
  106. <div class="layui-col-xs4 qy-10">
  107. <div class="layui-col-xs12 qy-15">
  108. <span class="font-15">
  109. 职称专业分类对照表
  110. </span>
  111. </div>
  112. <?php
  113. //判断是什么省份
  114. $route_param = request()->route();
  115. //var_dump();
  116. //$route_param['site']
  117. ?>
  118. <div class="qy-11-1">
  119. <div class="layui-col-xs12 qy-12">
  120. <div class="layui-col-xs12">
  121. <span class="font-20" style="top: 2px;"></span>
  122. {eyou:assign name='sitename' value='$route_param.site' /}
  123. {eyou:sql sql="SELECT id,parent_id,name,domain FROM ey_citysite WHERE domain = '$sitename'" cachetime='3600' id="res2"}
  124. {eyou:assign name='siteid' value='$res2.parent_id' /}
  125. {eyou:sql sql="SELECT id,parent_id,name,domain FROM ey_citysite WHERE id = $siteid" cachetime='3600' id="res3"}
  126. {eyou:assign name='site_pro_id' value='$res3.id' /}
  127. {eyou:assign name='site_pro_name' value='$res3.name' /}
  128. <!-- <a target="_blank" style="margin-left: 15px;" href="https://{$res3.domain}.zc10000.com">当前: {$res3.name}</a>-->
  129. <a target="_blank" href="" style="margin-left: 15px;">热门职称推荐</a>
  130. {/eyou:sql}
  131. {/eyou:sql}
  132. </div>
  133. <div class="layui-col-xs12 qy-13" style="height: auto; overflow: auto;margin: 0;padding: 15px 5px 8px 5px;">
  134. <!--sql调用-->
  135. <?php
  136. if($site == "www"){
  137. //调用伪山东
  138. $sql = "SELECT id FROM ey_arctype WHERE area_id=10000 and parent_id=38 and topid=38 and is_del=0 and status=1 ORDER BY id limit 0,25";
  139. }else{
  140. $sql = "SELECT id FROM ey_arctype WHERE area_id=$site_pro_id and parent_id=38 and topid=38 and is_del=0 and status=1 ORDER BY id limit 0,25";
  141. }
  142. ?>
  143. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  144. {eyou:type typeid="$kp.id" id='field2'}
  145. <span class="font-22">
  146. <a target="_blank" href="{:get_tid_url_2($field2['typeurl'],0,0,0,$field2['type'],$field2['topid'],$field2['area_id'])}" title="{$field2.typename}">{$field2.typename}</a></span>
  147. <span class="clear"></span>
  148. {/eyou:type}
  149. {/eyou:sql}
  150. </div>
  151. </div>
  152. </div>
  153. <div id="sonMenu" style="width: 600px;height:567px;position: absolute;top:0;left:260px;background-color: #fff;z-index:9999;display: none;padding: 20px 10px;">
  154. <div class="" style="display: none;">
  155. <?php
  156. if($site == "www"){
  157. //调用伪山东
  158. $sql = "SELECT id FROM ey_arctype WHERE area_id=10000 and parent_id=38 and topid=38 and is_del=0 and status=1 ORDER BY id";
  159. }else{
  160. $sql = "SELECT id FROM ey_arctype WHERE area_id=$site_pro_id and parent_id=38 and topid=38 and is_del=0 and status=1 ORDER BY id";
  161. }
  162. ?>
  163. {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id='kp'}
  164. {eyou:type typeid="$kp.id" id='field2'}
  165. <span class="font-22">
  166. <a target="_blank" href="{:get_tid_url_2($field2['typeurl'],0,0,0,$field2['type'],$field2['topid'],$field2['area_id'])}" title="{$field2.typename}">{$field2.typename}</a></span>
  167. {/eyou:type}
  168. {/eyou:sql}
  169. </div>
  170. </div>
  171. <script>
  172. layui.use(['jquery'], function(args){
  173. var $ = layui.jquery;
  174. $(".qy-12").hover(function(){
  175. //鼠标进入和离开事件
  176. //var index = $(this).index();
  177. console.log(index);
  178. var index = 0;
  179. $("#sonMenu").show();
  180. $('#sonMenu div').hide();
  181. $('#sonMenu div:eq('+index+')').show();
  182. },function() {
  183. //离开就恢复初始样式
  184. });
  185. $("#sonMenu").hover(function(){
  186. },function() {
  187. //离开就恢复初始样式
  188. $("#sonMenu").hide();
  189. $('#sonMenu div').hide();
  190. });
  191. $(".box-4").hover(function(){
  192. },function() {
  193. //离开就恢复初始样式
  194. $("#sonMenu").hide();
  195. $('#sonMenu div').hide();
  196. });
  197. });
  198. </script>
  199. </div>
  200. <div class="layui-col-xs8 qy-11" style="position:relative;z-index:8000;">
  201. <div class="layui-col-xs8 qy-16">
  202. <div class="layui-carousel" id="banner" lay-filter="banner">
  203. <div carousel-item="">
  204. {eyou:adv pid='11'}
  205. <div>
  206. <a target="_blank" href='{$field.links}' ><img alt='{$field.title}' src='{$field.litpic}' style="width:100%;"/></a>
  207. </div>
  208. {/eyou:adv}
  209. </div>
  210. </div>
  211. </div>
  212. <div class="layui-col-xs8 qy-17" style="display: none;">
  213. <div class="layui-col-xs12 qy-20" style="position:relative;">
  214. <div class="layui-col-xs6">
  215. <span class="font-50">
  216. 最新
  217. {eyou:type typeid='115' empty='暂时没有数据'}
  218. <a target="_blank" href="{:get_tid_url_2($field['typeurl'])}">职称评审政策资讯</a>
  219. {/eyou:type}
  220. </span>
  221. </div>
  222. <div class="layui-col-xs6">
  223. <div class="layui-col-xs10">
  224. <span class="font-51">热门城市: </span>
  225. <!--url生成麻烦-->
  226. {eyou:sql sql='SELECT id,name,domain,parent_id FROM __PREFIX__citysite WHERE is_hot=1 and level=2 and status=1 order by update_time desc limit 0,4' cachetime='3600'}
  227. <span class="font-51">
  228. <a target="_blank" href="{:get_tid_url_2('https://www.zc10000.com/?m=home&site='.$field['domain'].'&sitepid='.$field['parent_id'])}">{$field.name}</a></span>
  229. {/eyou:sql}
  230. </div>
  231. <div class="layui-col-xs2 tr">
  232. <span class="font-52" id="area" style="cursor: pointer;">
  233. 全部 <img src="https://oss.zc10000.com/static/images/050.svg" />
  234. </span>
  235. </div>
  236. </div>
  237. </div>
  238. <!--显示所有城市-->
  239. <div id="citys" style="width: 98%;height:350px;position:absolute;top:40px;left:0%;background: #fff;z-index:9999;padding: 0 1%;overflow-y: scroll;border:1px solid #eee;" class="hide">
  240. {eyou:citysite type="top" loop="50" id="field" currentclass="on"}
  241. <ul style="width:100%;margin-top:10px;"> <a target="_blank" class="{$field.currentclass}" style="font-weight: bold;" href="{$field.siteurl}">{$field.name}</a> </ul>
  242. <ul style="width:100%;">
  243. {eyou:citysite siteid="$field.id" loop="50" type ='son' currentclass="on" id
  244. ="field2"}
  245. <!--{$field2.siteurl}&domain={$field.domain}-->
  246. <li style="float: left;margin: 0 10px;" class="{$field2.currentclass}"><a target="_blank" href="{:get_tid_url_2($field2['siteurl'].'&domain='.$field['domain'])}" >{$field2.name}</a> </li>
  247. {/eyou:citysite}
  248. <div class="clear"></div>
  249. </ul>
  250. {/eyou:citysite}
  251. </div>
  252. <script>
  253. layui.use(['jquery'], function(args){
  254. var $ = layui.jquery;
  255. $("#area").on("click", function() {
  256. $("#citys").toggleClass("hide");
  257. })
  258. });
  259. </script>
  260. <div class="layui-col-xs12 qy-30">
  261. {eyou:artlist typeid='115' limit='0,8' flag='c' titlelen='30' infolen='160' orderby='add_time'}
  262. <li class="layui-col-xs6 qy-30-li">
  263. <a target="_blank" href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="font-53 font-53-active-{$i}">{$field.title}</a>
  264. </li>
  265. {/eyou:artlist}
  266. </div>
  267. </div>
  268. </div>
  269. <!--end--->
  270. </div>
  271. </div>
  272. <!--职称评审流程 (区别内页)-->
  273. <!--职称评审流程 (区别内页)-->
  274. <div class="content-5">
  275. <div class="box-5">
  276. <div class="layui-col-xs12 qy-32">
  277. <span class="font-57"></span>
  278. <a target="_blank" href="" class="font-58">职称评审流程</a>
  279. </div>
  280. <div class="layui-col-xs12 qy-33">
  281. {eyou:php}
  282. $num = 1;
  283. {/eyou:php}
  284. {eyou:artlist typeid='33' titlelen='30' infolen='160' orderby='aid asc'}
  285. <li class="font-66">
  286. <div class="layui-col-xs12 tc">
  287. <a target="_blank" href="" class="font-80 tc">0{$num}</a>
  288. </div>
  289. <a target="_blank" href="{$field.arcurl}" class="font-81">
  290. <img src="{$field.litpic}" width="50" height="50">
  291. </a>
  292. <div class="layui-col-xs12 tc">
  293. <a target="_blank" href="" class="font-81">{$field.title}</a>
  294. </div>
  295. </li>
  296. <li class="li-ico <?php if($i==8){echo " hide";} ?>">
  297. <img src="https://oss.zc10000.com/static/images/051.svg" />
  298. </li>
  299. {eyou:php}
  300. $num++;
  301. {/eyou:php}
  302. {/eyou:artlist}
  303. </div>
  304. </div>
  305. </div>
  306. <!--热门职称推荐 (区别内页)-->
  307. <div class="content-6" style="display: none;">
  308. <div class="box-6">
  309. <div class="layui-col-xs12 qy-32">
  310. <div class="layui-col-xs6">
  311. <span class="font-57"></span>
  312. {eyou:type typeid='38' empty='暂时没有数据'}
  313. <a target="_blank" href="{:get_tid_url_2($field['typeurl'])}" class="font-58" >热门职称推荐</a>
  314. {/eyou:type}
  315. </div>
  316. <div class="layui-col-xs6 tr">
  317. <span class="font-90">换一批</span>
  318. <span class="font-91">
  319. {eyou:type typeid='38' empty='暂时没有数据'}
  320. <a target="_blank" href="{:get_tid_url_2($field['typeurl'])}" >
  321. 全部工程师职称</a>
  322. {/eyou:type}
  323. <img src="https://oss.zc10000.com/static/images/052.svg" />
  324. </span>
  325. </div>
  326. </div>
  327. <div class="layui-col-xs12 qy-36">
  328. {eyou:sql sql='SELECT id FROM __PREFIX__arctype WHERE topid=38 and status=1 and is_hot=1 and type="产品" limit 0,15' cachetime='3600' empty='没有数据' id="catlist"}
  329. {eyou:foreach name='$catlist' item='field_id'}
  330. {eyou:type typeid='$field_id' empty='暂时没有数据' id="field2"}
  331. <li class="qy-36-li">
  332. <a target="_blank" href="{:get_tid_url_2($field2['typeurl'],0,0,0,$field2['type'],$field2['topid'])}">
  333. <div class="layui-col-xs12 qy-36-1" style="position:relative;">
  334. <!--https://oss.zc10000.com/static/images/030.svg-->
  335. <img src="https://oss.zc10000.com/static/images/bg_1.png" width="191" height="167"/>
  336. <span style="display:block;position: absolute;top:45%;width:100%;text-align:center;font-size: 20px;font-weight: bold;">
  337. {$field2.typename}
  338. </span>
  339. </div>
  340. <div class="layui-col-xs12 qy-36-2 tc">
  341. {$field2.typename}
  342. </div>
  343. </a>
  344. </li>
  345. {/eyou:type}
  346. {/eyou:foreach}
  347. {/eyou:sql}
  348. </div>
  349. </div>
  350. </div>
  351. <div class="content">
  352. <div class="box">
  353. <div class="left">
  354. <?php
  355. $title = $site_pro_name.'职称评审'; //政策文件
  356. //复用省级主页的数据
  357. ?>
  358. {eyou:include file='/template/mobile/components/list/style_11.htm' /}
  359. </div>
  360. <div class="right">
  361. <!--职称工具包-->
  362. <?php
  363. $title = '职称常见问题解答'; //申报问题 改成 118
  364. ?>
  365. {eyou:include file='/template/mobile/components/list/style_3.htm' /}
  366. </div>
  367. </div>
  368. </div>
  369. <!---评审成功案例-->
  370. <div class="content-9">
  371. <div class="box-9">
  372. <div class="layui-col-xs12 qy-32">
  373. <div class="layui-col-xs6">
  374. <span class="font-57"></span>
  375. {eyou:type typeid='120' empty='暂时没有数据'}
  376. <a target="_blank" href="{:get_tid_url_2($field['typeurl'])}" class="font-58" >职称评审成功案例展示</a>
  377. {/eyou:type}
  378. </div>
  379. <div class="layui-col-xs6 tr">
  380. <span class="font-93">
  381. {eyou:type typeid='120' empty='暂时没有数据'}
  382. <a target="_blank" href="{:get_tid_url_2($field['typeurl'])}" class="" style="font-family: 'HarmonyOS Sans SC' !important;">更多</a>
  383. {/eyou:type}
  384. &nbsp;<img src="https://oss.zc10000.com/static/images/057.svg" />
  385. </span>
  386. </div>
  387. </div>
  388. <div class="layui-col-xs12 qy-36">
  389. <div class="layui-col-xs7 qy-36-l">
  390. <div class="layui-col-xs12">
  391. <div class="layui-col-xs12 qy-36-5">
  392. {eyou:artlist stypeid='0' typeid="120" limit='0,14' flag='c' titlelen='30' infolen='160' orderby='update_time desc'}
  393. <li class="layui-col-xs6 qy-36-5-li font-933-active-{$i}">
  394. <div class="layui-col-xs9">
  395. <span class="font-9668">案例</span><a target="_blank" href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}" class="singe-line" style="width: 220px;">{$field.title|msubstr=###,0,16,true}</a>
  396. </div>
  397. <div class="layui-col-xs3"><span>{$field.add_time|MyDate='Y-m-d',###}</span></div>
  398. </li>
  399. {/eyou:artlist}
  400. </div>
  401. </div>
  402. </div>
  403. <div class="layui-col-xs5 qy-36-r">
  404. <!--<img src="/template/mobile/skin/images/003.svg" />-->
  405. <!--专利申请广告 <a target="_blank" href='{$field.links}'>-->
  406. {eyou:adv pid='12' loop='3'}
  407. <a class="open_shangqiao" href="javascript:void(0);">
  408. <img alt='{$field.title}' src='{$field.litpic}' />
  409. </a>
  410. {/eyou:adv}
  411. </div>
  412. </div>
  413. </div>
  414. </div>
  415. <!--案例成功展示-->
  416. <div class="content-10">
  417. <div class="box-10">
  418. <div class="layui-col-xs12 qy-32">
  419. <div class="layui-col-xs6">
  420. <span class="font-57"></span>
  421. {eyou:type typeid='120' empty='暂时没有数据'}
  422. <a target="_blank" href="{:get_tid_url_2($field['typeurl'])}" class="font-58" >职称评审证书案例展示</a>
  423. {/eyou:type}
  424. </div>
  425. <div class="layui-col-xs6 tr">
  426. <span class="font-93">
  427. {eyou:type typeid='120' empty='暂时没有数据'}
  428. <a target="_blank" href="{:get_tid_url_2($field['typeurl'])}" class="" style="font-family: 'HarmonyOS Sans SC' !important;">更多</a>
  429. {/eyou:type}
  430. &nbsp;<img src="https://oss.zc10000.com/static/images/057.svg" />
  431. </span>
  432. </div>
  433. </div>
  434. <div class="layui-col-xs12 qy-36">
  435. <div class="layui-col-xs12">
  436. {eyou:artlist stypeid='0' typeid="120" limit='0,4' flag='h' titlelen='30' infolen='160' orderby='update_time desc'}
  437. <li class="qy-38-li">
  438. <a target="_blank" href="{:get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'])}">
  439. <div class="a">
  440. <img src="{$field.litpic}" width="244" height="220" /></div>
  441. <div class="b">
  442. </div>
  443. <div class="c" style="color: aliceblue;">
  444. {$field.title|msubstr=###,0,10,true}
  445. </div>
  446. </a>
  447. </li>
  448. {/eyou:artlist}
  449. </div>
  450. </div>
  451. </div>
  452. </div>
  453. <!--职称评审工具包--->
  454. {eyou:include file='/template/mobile/components/list/style_6.htm' /}
  455. </div>
  456. <div id="footer">
  457. {eyou:include file='/template/mobile/common/footer.htm' /}
  458. </div>
  459. {eyou:include file='/template/mobile/common/common_bot.htm' /}