Bez popisu
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.

header.htm 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <header class="header">
  2. <div class="h-fix">
  3. <div class="container">
  4. <h1 class="logo"> <a href="https://www.zc10000.com" title="">
  5. <img id="light-logo" src="{eyou:global name='web_attr_31' /}" alt="职称E家LOGO" title="职称E家LOGO">
  6. <img id="dark-logo" src="{eyou:global name='web_attr_32' /}" alt="职称E家LOGO" title="职称E家LOGO">
  7. </a> </h1>
  8. <div id="m-btn" class="m-btn"><i class="fa fa-bars"></i></div>
  9. <div class="search"> <i class="s-btn off fa fa-search"></i>
  10. <div class="s-form"> <i class="arrow fa fa-caret-up"></i>
  11. <div class="layui-tab">
  12. <ul class="layui-tab-title">
  13. <li class="layui-this">政策</li>
  14. <li>材料</li>
  15. </ul>
  16. <div class="layui-tab-content">
  17. <div class="layui-tab-item layui-show">
  18. {eyou:searchform type='sonself' typeid='1232' modelid='103'}
  19. <form name="formsearch" method="get" action="{$field.action}" class="sform">
  20. <input class="sinput" name="keywords" type="text" placeholder="请输入政策相关搜索词" style="padding: 0px 0 0 10px;">
  21. <button><i class="fa fa-search"></i></button>
  22. <!-- <input type="submit" value='点击搜索' />--->
  23. {$field.hidden}
  24. </form>
  25. {/eyou:searchform}
  26. </div>
  27. <div class="layui-tab-item">
  28. {eyou:searchform type='sonself' typeid='1233' modelid='103'}
  29. <form name="formsearch" method="get" action="{$field.action}" class="sform">
  30. <input class="sinput" name="keywords" type="text" placeholder="请输入材料相关搜索词" style="padding: 0px 0 0 10px;">
  31. <button><i class="fa fa-search"></i></button>
  32. <!-- <input type="submit" value='点击搜索' />--->
  33. {$field.hidden}
  34. </form>
  35. {/eyou:searchform}
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="darkmode"> <a href="javascript:switchNightMode()" target="_self" class=""><i class="fa fa-moon-o"></i></a> </div>
  42. <nav class="nav-bar" id="nav-box" data-type="index" data-infoid="">
  43. <ul class="nav">
  44. {eyou:php}
  45. $catid = $_GET['tid']?$_GET['tid']:0;
  46. if((int)$catid === 56){
  47. $catid = $_GET['catids']?$_GET['catids']:0;
  48. }
  49. {/eyou:php}
  50. {eyou:assign name='rowNum' value='0' /}
  51. {eyou:navigation position_id='1' currentclass=''}
  52. <?php
  53. //$class = 'active';
  54. //$page
  55. //$rowNum
  56. //var_dump($rowNum);
  57. //var_dump($catid);
  58. $class = '';
  59. if((int)$catid === 1231 && (int)$rowNum === 1){
  60. $class = 'active';
  61. }else if((int)$catid === 1232 && (int)$rowNum === 2){
  62. $class = 'active';
  63. }else if((int)$catid === 1233 && (int)$rowNum === 3){
  64. $class = 'active';
  65. }else if((int)$catid === 1234 && (int)$rowNum === 4){
  66. $class = 'active';
  67. }else{
  68. if((int)$rowNum === 0 && (int)$catid === 0){
  69. $class = 'active';
  70. }else{
  71. $class = '';
  72. }
  73. }
  74. //var_dump($class);
  75. ?>
  76. {eyou:if condition='((int)$rowNum === 0)'}
  77. <!--nvabar-item-index-->
  78. <li id="" class="{$class}"><a href="https://www.zc10000.com">首页</a></li>
  79. {eyou:else /}
  80. {eyou:notempty name='$field1.children'}
  81. <li id="navbar-category-3" class="li-cate-3 {$class}">
  82. <a href="">{$field.nav_name}</a>
  83. <ul class="sub-menu">
  84. {eyou:navigation name='$field1.children' id='field2'}
  85. <li id="navbar-category-8" class="li-cate-8">
  86. <a href='{:get_tid_url_2($field2["nav_url"])}'>{$field2.nav_name}</a>
  87. </li>
  88. {/eyou:navigation} // 第二级菜单循环结束
  89. </ul>
  90. </li>
  91. {eyou:else /}
  92. <li id="navbar-category-3" class="li-cate-3 {$class}">
  93. <a href="{:get_tid_url_2($field["nav_url"])}">
  94. {$field.en_name}
  95. </a>
  96. </li>
  97. {/eyou:notempty}
  98. {/eyou:if}
  99. {eyou:php}
  100. $rowNum++;
  101. {/eyou:php}
  102. {/eyou:navigation}
  103. </ul>
  104. </nav>
  105. <div style="float: right;">
  106. {eyou:if condition='($is_mobile === false)'}
  107. {eyou:user type='userinfo'}
  108. <div id="{$field.htmlid}" style="float: left;">
  109. <div class="submit fr">
  110. <a target="_blank" href="https://www.zc10000.com{$field.loginurl}" class="a transition" rel="nofollow">
  111. <i class="fa fa-heart"></i>登录
  112. </a>
  113. </div>
  114. <div class="submit fr">
  115. <a target="_blank" href="https://www.zc10000.com{$field.regurl}" class="a transition" rel="nofollow">
  116. <i class="fa fa-heart"></i>注册
  117. </a>
  118. </div>
  119. </div>
  120. {$field.hidden}
  121. {/eyou:user}
  122. {/eyou:if}
  123. </div>
  124. </div>
  125. </div>
  126. </header>