Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

header.htm 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <div id="header">
  2. <link rel="stylesheet" href="/template/pc/css/header.css" media="all">
  3. <?php if(isset($page) && $page == 'document.htm' || isset($page) && $page == 'down'){ ?>
  4. <!--文档列表页和详情页--->
  5. {eyou:include file='/template/pc/components/banner/style_4.htm' /}
  6. <?php }else{ ?>
  7. {eyou:include file='/template/pc/components/text/style_1.htm' /}
  8. <div class="content-2">
  9. <div class="box-2">
  10. <div class="layui-row">
  11. <div class="layui-col-xs2 qy-2-1">
  12. <span class="font-3">
  13. <a target="_blank" href="{eyou:global name='web_basehost' /}" alt="{eyou:global name='web_name' /}LOGO">
  14. <img src="{eyou:global name='web_logo' /}" />
  15. </a>
  16. </span>
  17. </div>
  18. <!--选择地区-->
  19. <?php
  20. if($page == 'lunwen-detail' && isset($page) || $page == 'special' && isset($page)){
  21. //不显示
  22. }else{
  23. ?>
  24. {eyou:include file='/template/pc/components/choose/style_1.htm' /}
  25. <?php } ?>
  26. <!--搜索-->
  27. <?php
  28. if($page == 'lunwen-detail' && isset($page) || $page == 'special' && isset($page)){
  29. //不显示
  30. $key = '热门职称论文期刊';
  31. }else if($page === 'provincial'){
  32. //省级显示
  33. $key = '深圳职称网';
  34. }else{
  35. $key = '工程管理职称';
  36. }
  37. ?>
  38. {eyou:include file='/template/pc/components/search/style_1.htm' /}
  39. <!--400电话-->
  40. {eyou:include file='/template/pc/components/text/style_2.htm' /}
  41. </div>
  42. </div>
  43. </div>
  44. <?php } ?>
  45. <?php
  46. //判断是什么省份
  47. $route_domain_header = request()->domain();
  48. $domain_header = explode('//',$route_domain_header);
  49. $domain_header = explode('.',$domain_header[1]);
  50. $site_header = $domain_header[0];
  51. //伪山东
  52. $site_1 = $route_param['site']?$route_param['site']:'';
  53. if($site_1 == 'shandong' && $site_header == 'www'){
  54. $site_header = shandong;
  55. }
  56. ?>
  57. <div class="content-3">
  58. <div class="box-3">
  59. <!--导航菜单-->
  60. <div class="layui-col-xs8 qy-6" style="width:850px;">
  61. {eyou:php}
  62. $catid = $_GET['tid']?$_GET['tid']:0;
  63. if((int)$catid === 56){
  64. $catid = $_GET['catids']?$_GET['catids']:0;
  65. }
  66. {/eyou:php}
  67. {eyou:assign name='rowNum' value='0' /}
  68. {eyou:navigation position_id='1' currentclass='active'}
  69. <?php
  70. $class = '';
  71. //var_dump($page);
  72. if($rowNum == 3 && $page == 'document' || $rowNum == 3 && $page == 'down'){
  73. $class = 'active';
  74. }else if($rowNum == 2 && $page == 'lunwen-detail' || $rowNum == 2 && $page == 'lunwen-list'){
  75. $class = 'active';
  76. }else if($rowNum == 1 && $page == 'zccat' || $rowNum == 1 && $page == 'zccat-detail-list'){
  77. $class = 'active';
  78. }else if($rowNum == 4 && $page == 'article_list' && (int)$route_param['tid'] === 132 || $rowNum == 4 && $page == 'article-detail' && (int)$route_param['tid'] === 132){
  79. $class = 'active';
  80. }else if($rowNum == 0 && $page == 'index'){
  81. $class = 'active';
  82. }else if($rowNum == 5 && $page == 'special'){
  83. $class = 'active';
  84. }
  85. ?>
  86. {eyou:if condition='($rowNum == 0)'}
  87. <li class="qy-6-1">
  88. {eyou:if condition='($site_header != "www" && $site_header != "zc")'}
  89. {eyou:if condition='(!empty($city_domain) && $city_domain != "none")'}
  90. <a target="_blank" class="" href='https://{$site_header}.zc10000.com/{$city_domain}' {$field.target} {$field.nofollow}>
  91. 城市主页
  92. </a>
  93. {eyou:else /}
  94. {eyou:if condition='($site_header == "zczl")'}
  95. <a target="_blank" class="" href='https://www.zc10000.com/' {$field.target} {$field.nofollow}>
  96. 首页
  97. </a>
  98. {eyou:elseif condition='($site_header == "shandong" && $domain_header[0] == "www")'}
  99. <a target="_blank" class="" href='https://www.zc10000.com/{$site_header}' {$field.target} {$field.nofollow}>
  100. 省站主页
  101. </a>
  102. {eyou:else /}
  103. <a target="_blank" class="" href='https://{$site_header}.zc10000.com/' {$field.target} {$field.nofollow}>
  104. 省站主页
  105. </a>
  106. {/eyou:if}
  107. {/eyou:if}
  108. {eyou:else /}
  109. <a target="_blank" class="{$class}" href='{$eyou.global.web_basehost}' {$field.target} {$field.nofollow}>
  110. {$field.en_name}
  111. </a>
  112. {/eyou:if}
  113. <!--城市主页 还得区分 url和name-->
  114. </li>
  115. {eyou:else /}
  116. <li>
  117. <a target="_blank" class="{$class}" href='{:get_tid_url_2($field["nav_url"])}' {$field.target} {$field.nofollow}>
  118. {$field.en_name}
  119. </a>
  120. </li>
  121. {/eyou:if}
  122. {eyou:php}
  123. $rowNum++;
  124. {/eyou:php}
  125. {/eyou:navigation}
  126. </div>
  127. <!--用户状态-->
  128. <div class="layui-col-xs4 tr" style="width:200px;">
  129. {eyou:user type='userinfo'}
  130. <div id="{$field.htmlid}">
  131. <span class="font-11"><a target="_blank" href="https://www.zc10000.com{$field.loginurl}" class="font-10" rel="nofllow">登录</a></span>
  132. <span class="font-11-1">|</span>
  133. <span class="font-12"><a target="_blank" href="https://www.zc10000.com{$field.regurl}" class="font-13" rel="nofllow">注册</a></span>
  134. </div>
  135. {$field.hidden}
  136. {/eyou:user}
  137. </div>
  138. </div>
  139. </div>
  140. <!--清除float-->
  141. <div class="clear"></div>
  142. <script>
  143. </script>
  144. </div>