<header class="header header-1 navbar-default">
  <div class="container clearfix">
    <div class="pull-left logo-wrap"><a class="logo" href="<%=SiteUrl%>"><img src="/Images/themes/images/logo.png" alt="<%=ComName%>"></a></div>
    <div class="pull-right tell-wrap">
      <div class="tell-icon">
        <div class="fa fa-phone"></div>
      </div>
      <div class="tel">
        <h3 class="tel-title">客服电话</h3>
        <p class="tel-num"><%=Telephone%></p>
      </div>
    </div>
  </div>
  <div class="header-menu">
    <div class="container clearfix">
      <div class="pull-right search-index"><a class="search-icon" href="javascript:void 0;"><i class="fa fa-search"></i></a>
        <form class="search-form" action="Search.Asp" method="get" role="search">
          <input type="text" class="keyword" name="KeyWord" placeholder="请输入搜索关键词" value="">
          <input type="hidden" name="Range" value="News">
          <input type="submit" class="submit" value="&#xf002;">
        </form>
      </div>
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-menu"><span class="sr-only"></span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
      </div>
      <nav class="collapse navbar-collapse navbar-left navbar-menu">
        <ul id="menu-menu" class="nav navbar-nav">
          <li class="menu-item active"><a href="/">首页</a></li>
          <li class="menu-item dropdown"><a href="Products.html" class="dropdown-toggle">公司产品</a>
            <ul role="menu" class=" dropdown-menu">
              <%=ProductsFolder()%>
            </ul>
          </li>
          <li class="menu-item dropdown"><a href="News.html" class="dropdown-toggle">新闻动态</a>
            <ul role="menu" class=" dropdown-menu">
              <%=NewsFolder()%>
            </ul>
          </li>
          <li class="menu-item"><a href="Contact.html">联系我们</a></li>
          <li class="menu-item"><a href="About.html">关于我们</a></li>
          <li class="menu-item"><a href="Message.html">留言反馈</a></li>
        </ul>
      </nav>
    </div>
  </div>
</header>
<%
Function ProductsFolder()
    Set rs = Server.CreateObject("Adodb.Recordset")
    sql = "Select * From Qianbo_ProductSort Where ViewFlag Order By ID Asc"
    rs.Open sql, conn, 1, 1
	If Not rs.EOF Then
		While Not rs.EOF
			If ISHTML = 1 Then
				AutoLink = "" & ProSortName & Separated & rs("ID") & Separated & "1." & HTMLName & ""
			Else
				AutoLink = "ProductList.Asp?SortID=" & rs("ID") & ""
			End If
			Response.Write "<li class=""menu-item""><a href=""" & AutoLink & """>" & rs("SortName") & "</a></li>"
			rs.movenext
		Wend
	End If
    rs.Close
    Set rs = Nothing
End Function

Function NewsFolder()
    Set rs = Server.CreateObject("Adodb.Recordset")
    sql = "Select * From Qianbo_NewsSort Where ViewFlag Order By ID Asc"
    rs.Open sql, conn, 1, 1
	If Not rs.EOF Then
		While Not rs.EOF
			If ISHTML = 1 Then
				AutoLink = "" & NewSortName & Separated & rs("ID") & Separated & "1." & HTMLName & ""
			Else
				AutoLink = "NewsList.Asp?SortID=" & rs("ID") & ""
			End If
			Response.Write "<li class=""menu-item""><a href=""" & AutoLink & """>" & rs("SortName") & "</a></li>"
			rs.movenext
		Wend
	End If
    rs.Close
    Set rs = Nothing
End Function
%>