header.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  7. <meta name="viewport"
  8. content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
  9. <meta name="renderer" content="webkit">
  10. <meta name="format-detection" content="telephone=no">
  11. <meta http-equiv="Cache-Control" content="no-siteapp" />
  12. <meta name="keywords" content="{$SEO['keyword']}">
  13. <meta name="description" content="{$SEO['description']}">
  14. <link rel="alternate icon" type="image/png" href="favicon.png">
  15. <link rel="stylesheet" href="{MY_PATH}css/bootstrap.min.css?<?php echo(rand(1,10000)) ?>" />
  16. <link rel="stylesheet" href="{MY_PATH}style/styles.css?<?php echo(rand(1,10000)) ?>" />
  17. <link rel="stylesheet" href="{MY_PATH}style/doem.css" />
  18. <link rel="stylesheet" href="{MY_PATH}css/device.css?<?php echo(rand(1,10000)) ?>">
  19. <!--[if lt IE 9]>
  20. <script src="stylejs/html5shiv.min.js"></script>
  21. <script type="text/javascript" src="stylejs/respond.min.js"></script>
  22. <![endif]-->
  23. <script type="text/javascript" src="{MY_PATH}js/jquery.min.js"></script>
  24. <script type="text/javascript" src="{MY_PATH}js/bootstrap.min.js?<?php echo(rand(1,10000)) ?>"></script>
  25. <link rel="stylesheet" type="text/css" href="{MY_PATH}css3/animate.min.css" />
  26. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  27. <link rel="stylesheet" href="statics/my/swiper/swiper-bundle.min.css" />
  28. <script src="{MY_PATH}swiper/swiper.jquery.min.js"></script>
  29. <script src="{MY_PATH}swiper/swiper-bundle.min.js"></script>
  30. </head>
  31. <body {if $catid=='' }style="height:100%;" {/if} onResize="javascript:resize();">
  32. {if $catid==''}
  33. <script type="text/javascript" src="{MY_PATH}fullPage/jquery.fullpage.min.js"></script>
  34. <script src="{MY_PATH}fullPage/jquery-ui-1.10.3.min.js"></script>
  35. <script>
  36. $(document).ready(function () {
  37. $('#fullpage').fullpage({
  38. // sectionsColor: ['#ffffff','#ffffff','#ffffff', '#ffffff', '#ffffff','#ffffff'],
  39. // anchors: ['home','about', 'product','services','video', 'footer'],
  40. sectionsColor: ['#ffffff', '#ffffff', '#ffffff', '#ffffff', '#ffffff'],
  41. anchors: ['home', 'about', 'product', 'video', 'footer'],
  42. autoScrolling: false,
  43. menu: '#pagemenu',
  44. scrollOverflow: false,
  45. scrollingSpeed: 1000,
  46. verticalCentered: false,
  47. easingcss3: 'cubic-bezier(0.445, 0.145, 0.355, 1)',
  48. afterRender: function () {
  49. $.fn.fullpage.setAutoScrolling(false);
  50. // if($(window).width() < 993){
  51. // $.fn.fullpage.setAutoScrolling(false);
  52. // }else{
  53. // $.fn.fullpage.setAutoScrolling(true);
  54. // }
  55. },
  56. afterResize: function () {
  57. /*$.fn.fullpage.reBuild();*/
  58. $.fn.fullpage.setAutoScrolling(false);
  59. $('.fullnavr').hide();
  60. // if($(window).width() < 993){
  61. // $.fn.fullpage.setAutoScrolling(false);
  62. // $('.fullnavr').hide();
  63. // }else{
  64. // $.fn.fullpage.setAutoScrolling(true);
  65. // $('.fullnavr').show();
  66. // }
  67. },
  68. afterLoad: function (anchorLink, index) {
  69. if ($(window).width() > 992) {
  70. if (index == 2 || index == 3 || index == 4) {
  71. $('.fullnavr').stop(false, true).animate({
  72. right: '15px'
  73. }, 200);
  74. }
  75. if (index == 1 || index == 5) {
  76. $('.fullnavr').stop(false, true).animate({
  77. right: '-200px'
  78. }, 200);
  79. }
  80. }
  81. if (index == 5) {
  82. $('.wx_top').show();
  83. } else {
  84. $('.wx_top').hide();
  85. }
  86. }, onLeave: function (index, nextIndex, direction) {
  87. if (nextIndex == 2 || nextIndex == 3 || nextIndex == 4 || nextIndex == 5) {
  88. $(".header_div").addClass("fixedmenu");
  89. } else if (nextIndex == 1 || nextIndex == 4) {
  90. $(".header_div").removeClass("fixedmenu");
  91. }
  92. }
  93. });
  94. $('.wx_top').mousedown(function () {
  95. $.fn.fullpage.moveTo(1)
  96. });
  97. });
  98. </script>
  99. {/if}
  100. {if $catid==''}
  101. <div class="layer">
  102. <div class="layer-top"></div>
  103. <div class="layer-bottom"></div>
  104. <!-- <img src="{MY_PATH}images/logo.png" class="loading"> -->
  105. {pc:content action="lists" catid="68" num="1" order="listorder desc,id desc"}
  106. {loop $data $r}
  107. <img src="{$r[thumb]}" alt="{$r[title]}" class="loading">
  108. {/loop}
  109. {/pc}
  110. </div>
  111. {/if}
  112. <!--pcd端导航1start-->
  113. <?php $SITE = getcache('sitelist','commons');?>
  114. <div class="header_div">
  115. <div class="minwidth">
  116. <div class="i_logo fl">
  117. {pc:content action="lists" catid="68" num="1" order="listorder desc,id desc"}
  118. {loop $data $r}
  119. <a href=".">
  120. <img src="{$r[thumb]}" alt="{$r[title]}" />
  121. </a>
  122. {/loop}
  123. {/pc}
  124. </div>
  125. <div class="i_morebtn fr">
  126. <div class="left_but">
  127. <div class="left_but_btn"></div>
  128. </div>
  129. </div>
  130. <span class="fr liu_phone">{pc:get sql="SELECT * FROM v9_about_data where id=11" }{strip_tags($data[0]['content'])}{/pc}</span>
  131. <div class="i_ss fr liu_sousuo clearfloat">
  132. <div class="i_ss_c fl">
  133. <form action="{APP_PATH}index.php" method="get" target="_blank" autocomplete="off">
  134. <input type="hidden" name="m" value="search" />
  135. <input type="hidden" name="c" value="index" />
  136. <input type="hidden" name="a" value="init" />
  137. <input type="hidden" name="typeid" value="{$typeid}" id="typeid" />
  138. <input type="hidden" name="siteid" value="{$siteid}" id="siteid" />
  139. <input name="q" id="KeyWord" value="" class="ipt1 fl" type="text" >
  140. <input name="" value="" class="ipt22 fl" type="submit">
  141. </form>
  142. <div class="clearboth"></div>
  143. </div>
  144. <div class="clearboth"></div>
  145. </div>
  146. <ul class="fr nav_menu">
  147. <li>
  148. <a href="{siteurl($siteid)}" class="a_nav {if $catid==''}active1{/if}">首页</a>
  149. </li>
  150. {pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
  151. {loop $data $r}
  152. {if count(subcat($r[catid])) > 0 && ($r[catid] == 42 || $r[catid] == 4 || $r[catid] == 6)}
  153. <!--获取第一个子类的 url 字段值-->
  154. {php $zi_arr = explode(',',$r[arrchildid])}
  155. {php $url = $CATEGORYS[$zi_arr[1]][url]}
  156. <!--否则直接得到当前的url-->
  157. {else}
  158. {php $url = $r[url]}
  159. {/if}
  160. <li>
  161. <a href="{$url}" class="a_nav {if $r[catid]==$top_parentid}active1{/if}">{$r[catname]}</a>
  162. {if $r[child]==1}
  163. <dl class="dl">
  164. {pc:content action="category" catid="$r[catid]" num="30" siteid="$siteid" order="listorder ASC"}
  165. {loop $data $v}
  166. <dd>
  167. <a href="{$v[url]}" title="{$v[catname]}">{$v[catname]}</a>
  168. </dd>
  169. {/loop}
  170. {/pc}
  171. </dl>
  172. {/if}
  173. </li>
  174. {/loop}
  175. {/pc}
  176. </ul>
  177. <div class="clearboth"></div>
  178. </div>
  179. </div>
  180. <div class="yc_box1">
  181. <div class="yc_box1_c">
  182. <ul class="fl yc_box1_c_ul">
  183. {pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
  184. {loop $data $r}
  185. {if count(subcat($r[catid])) > 0 && ($r[catid] == 42 || $r[catid] == 4 || $r[catid] == 6)}
  186. <!--获取第一个子类的 url 字段值-->
  187. {php $zi_arr = explode(',',$r[arrchildid])}
  188. {php $url = $CATEGORYS[$zi_arr[1]][url]}
  189. <!--否则直接得到当前的url-->
  190. {else}
  191. {php $url = $r[url]}
  192. {/if}
  193. <li>
  194. <a href="{$url}" class="a1">{$r[catname]}</a>
  195. {if $r[child]==1}
  196. {pc:content action="category" catid="$r[catid]" num="25" siteid="$siteid" order="listorder ASC"}
  197. {loop $data $v}
  198. <a href="{$v['url']}" title="{$v[catname]}" class="a2">{$v[catname]}</a>
  199. {/loop}
  200. {/pc}
  201. {/if}
  202. <div class="clearboth"></div>
  203. </li>
  204. {/loop}
  205. {/pc}
  206. </ul>
  207. <div class="clearboth"></div>
  208. </div>
  209. </div>
  210. <!--手机端导航start-->
  211. <div class="phone_nav">
  212. <div class="phone_logo">
  213. <a href="." class="p1">
  214. {pc:content action="lists" catid="68" num="1" order="listorder desc,id desc"}
  215. {loop $data $r}
  216. <img src="{$r[thumb]}" alt="{$r[title]}" />
  217. {/loop}
  218. {/pc}
  219. </a>
  220. </div>
  221. <div class="i_ssbn">
  222. <span>&nbsp;</span>
  223. <div class="i_ssbn_div">
  224. <form action="{APP_PATH}index.php" method="get" target="_blank">
  225. <input type="hidden" name="m" value="search" />
  226. <input type="hidden" name="c" value="index" />
  227. <input type="hidden" name="a" value="init" />
  228. <input type="hidden" name="typeid" value="{$typeid}" id="typeid" />
  229. <input type="hidden" name="siteid" value="{$siteid}" id="siteid" />
  230. <input name="q" id="KeyWord" value="" class="ipt1 fl" type="text">
  231. <input name="" value="" class="ipt2 fl" type="submit">
  232. </form>
  233. <div class="clear"></div>
  234. </div>
  235. </div>
  236. <div class="nav_but_box"><span class="nav_but"></span></div>
  237. <div class="nav_main">
  238. <ul>
  239. <li><a href="{siteurl($siteid)}">首页1</a></li>
  240. {pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
  241. {loop $data $r}
  242. {if count(subcat($r[catid])) > 0 && ($r[catid] == 42 || $r[catid] == 4 || $r[catid] == 6)}
  243. <!--获取第一个子类的 url 字段值-->
  244. {php $zi_arr = explode(',',$r[arrchildid])}
  245. {php $url = $CATEGORYS[$zi_arr[1]][url]}
  246. <!--否则直接得到当前的url-->
  247. {else}
  248. {php $url = $r[url]}
  249. {/if}
  250. <li>
  251. <a href="{$url}">{$r['catname']}</a>
  252. {if $r[child]==1}
  253. <b></b>
  254. <ul class="ul">
  255. {pc:content action="category" catid="$r[catid]" num="25" siteid="$siteid" order="listorder ASC"}
  256. {loop $data $v}
  257. <li>
  258. <a href="{$v['url']}">{$v[catname]}</a>
  259. </li>
  260. {/loop}
  261. {/pc}
  262. </ul>
  263. {/if}
  264. </li>
  265. {/loop}
  266. {/pc}
  267. </ul>
  268. </div>
  269. </div>
  270. <!--手机端导航end-->