暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

header.htm 6.5KB

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