<?php if( !defined( 'ONGPHP')) exit( 'Error ONGSOFT');?>
<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php if(isset($DATA['name']))echo $DATA['name'],'-'; if( isset($PAGE) && $PAGE > '1' )echo $LANG['PAGE']['dqdi'].$PAGE.$LANG['PAGE']['ye'].'-';echo $CONN['title'];?></title>
    <meta name="description" content="<?php echo !isset($DATA['miaoshu']) || $DATA['miaoshu']==''?$CONN['miaoshu']:$DATA['miaoshu'];?>" /> 
    <meta name="keywords" content="<?php echo !isset($DATA['guanjian']) ||$DATA['guanjian']==''?$CONN['guanjian']:$DATA['guanjian'];?>" />
    <meta name="applicable-device"content="pc,mobile">
    <link href="<?php echo DQTPL?>T02/Public/css/bootstrap.css" rel="stylesheet">
    <link href="<?php echo DQTPL?>T02/Home/Tpl/default/Public/css/bxslider.css" rel="stylesheet">
    <link href="<?php echo DQTPL?>T02/Home/Tpl/default/Public/css/style.css" rel="stylesheet">
    <script src="<?php echo DQTPL?>T02/Public/js/jquery.min.js"></script>
    <script src="<?php echo DQTPL?>T02/Home/Tpl/default/Public/js/bxslider.min.js"></script>
    <script src="<?php echo DQTPL?>T02/Home/Tpl/default/Public/js/common.js"></script>
    <script src="<?php echo DQTPL?>T02/Public/js/bootstrap.js"></script>
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<?php echo $LANG['head']; ?>
  <script type="text/javascript">
    function sousuo(){
        var url = document.getElementById("URLs");
	    if(url.value== "")
		    alert('<?php echo $LANG['sosoer'];?>');
	    else
	        window.location.href="<?php echo mourl($CONN['sosoword'],'',$CONN['fenge']);?>"+url.value+"<?php echo $CONN['houzui'];?>";
        return false;
    }
  </script>
  </head>
<body>
<header>
    <div class="top_menu">
      <div class="container">
        <span class="top_name"><?php echo $LANG['headlefet'];?> </span>
        <div class="language">
             <?php echo $LANG['headright'];?>

          
        </div>
      </div>
    </div>

    <div class="container">
      <div class="row">
        <div class="col-xs-12 col-sm-9 col-md-9">
            <a href="<?php echo WZHOST;?>"><img src="<?php echo $CONN['logo'];?>" class="logo" alt="<?php echo $CONN['name'];?>"/></a>
        </div>
 
        <div id="topsearch" class="col-xs-12 col-sm-3 col-md-3">
            <form id="searchform" method="get" onsubmit="return sousuo();">
                <div class="input-group search_group">
                    <input type="text" name="name" class="form-control input-sm" id="URLs" placeholder="<?php echo $LANG['cpsoso'];?>">
                       <span class="input-group-btn">
                          <input href="javascript:searchform.submit();" class="btn btn-sm mysearch_btn" type="submit" value="<?php echo $LANG['sososubmi'];?>">
                      </span>
                </div>
            </form>
        </div>

      </div>
    </div>
    <nav class="navbar navbar-default navbar-static-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <span id="small_search" class="glyphicon glyphicon-search" aria-hidden="true"></span>
          <span class="glyphicon glyphicon-home home-btn" aria-hidden="true"></span>
          <a class="navbar-brand" href="#"><?php echo $LANG['dbname'];?></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">

            <li><a href="<?php echo WZHOST;?>"><?php echo $LANG['home'];?></a></li>

            <?php $DTYPE = menulist('',$D);
            
            
            if( $DTYPE ){

                foreach( $DTYPE as $anyou){

                    $ZDTYPE = menulist($anyou['id'],$D);
                    if($ZDTYPE ){ ?>

                    <li class="dropdown"><a href="<?php echo $anyou['link'];?>"><?php echo $anyou['name'];?></a>
                        <a href="<?php echo $anyou['link'];?>" id="app_menudown" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><span class="glyphicon glyphicon-menu-down btn-xs"></span></a>
                        <ul class="dropdown-menu nav_small" role="menu">
                            <?php foreach($ZDTYPE as $wood ){ ?>
                                <li><a href="<?php echo $wood['link'];?>"><?php echo $wood['name'];?></a></li>
                            <?php } ?>
                        </ul>
                    </li>
            <?php  }else{ ?>
                    <li><a href="<?php echo $anyou['link'];?>"><?php echo $anyou['name'];?></a></li>
            <?php } ?>
            <?php }} ?>
     
          </ul>
        </div>
      </div>
    </nav>
        <!-- bxslider -->
    <div class="flash">
        <ul class="bxslider">

        <?php if($LANG['flash']){

        foreach( $LANG['flash'] as $anyou){


            echo '<li><a href="'.$anyou['连接'].'" title="'.$anyou['描述'].'"
            =><img src="'.$anyou['update-图片'].'" alt="'.$anyou['描述'].'" /></a></li>';
        }

        } ?>

          
        </ul>
    </div>   
    
    <?php if($LANG['flash']){?>
    <script type="text/javascript">
        $('.bxslider').bxSlider({
          adaptiveHeight: true,
          infiniteLoop: true,
          hideControlOnEnd: true,
          auto:true
        });
    </script>
    <?php } ?>

</header>
