<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<!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">
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <meta http-equiv="Cache-Control" content="no-siteapp" /> 
    <meta name="applicable-device" content="pc,mobile">

    <title><?php if(!empty($navtitle)) { ?><?php echo $navtitle;?> - <?php } if(empty($nobbname)) { ?> <?php echo $_G['setting']['bbname'];?><?php } ?></title>
    <?php echo $_G['setting']['seohead'];?>
    <meta name="keywords" content="<?php if(!empty($metakeywords)) { echo dhtmlspecialchars($metakeywords); } ?>" />
    <meta name="description" content="<?php if(!empty($metadescription)) { echo dhtmlspecialchars($metadescription); ?> <?php } if(empty($nobbname)) { ?>,<?php echo $_G['setting']['bbname'];?><?php } ?>" />
    <!-- Bootstrap -->
    <link href="/static/assets/css/bootstrap.css" rel="stylesheet" media="screen">
    <link href="/static/assets/css/font-awesome.min.css" rel="stylesheet" media="screen">
    <link href="/static/assets/css/animate.css" rel="stylesheet" media="screen">
    <link href="/static/assets/css/app.css" rel="stylesheet" type="text/css">
    <link href="/static/assets/css/style.css" rel="stylesheet" type="text/css">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js" type="text/javascript"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js" type="text/javascript"></script>
    <![endif]-->
</head>
<body>

<div class="header">
    <div class="container">

        <script src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" type="text/javascript"></script>
        <!-- weixing_auto_header -->
        <ins class="adsbygoogle"
             style="display:block"
             data-ad-client="ca-pub-9300693432708777"
             data-ad-slot="8788321639"
             data-ad-format="auto"></ins>
        <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
        </script>

        <div class="visible-xs pull-left header-btn m-l" data-toggle-class="active" data-target=".header">
            <div class="tip tip1 tras-03"></div>
            <div class="tip tip2 tras-03"></div>
            <div class="tip tip3 tras-03"></div>
        </div>
        <div class="visible-xs pull-right header-btn m-r" data-toggle-class="search" data-target=".header">
            <i class="fa fa-search"></i>
            <i class="fa fa-close"></i>
        </div>
        <a href="/"><img class="img-responsive center-block pull-left pull-none-xs padder-v-md w-md logo" src="/static/image/common/logo.png" alt=""></a>
        <div class="search-bar input-group input-group-sm w w-auto-xs pull-right padder-v-md hidden-xs hidden-sm">
            <input placeholder="ȫվ����" type="text" class="form-control">
            <span class="input-group-btn">
                <button class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
            </span>
        </div>
        <ul class="list-inline text-center main-nav hidden-xs m-n">
            <li>
                <a class="tras-03" href="/">��ҳ</a>
            </li>
            <?php if(is_array($_G['cache']['portalcategory'])) foreach($_G['cache']['portalcategory'] as $value) { ?>            <?php if($value['upid'] == 0) { ?>
            <li>
                
                <a class="tras-03" href="<?php echo $value['caturl'];?>" target="_blank"><?php echo $value['catname'];?></a>
                
                <div class="b-list animated fadeIn d3 hidden-xs" style="margin-left: -50px;">

                    <div class="wrapper w-xxxxl">
                        <div class="row">
                            <?php $childID = 0;?>                            <div class="col-xs-3 b-r b-r-dashed b-white">
                                <div>
                                    <ul class="list-unstyled">
                                        
                                        <?php if(is_array($_G['cache']['portalcategory'])) foreach($_G['cache']['portalcategory'] as $k => &$v) { ?>                                        <?php if($v['upid'] == $value['catid']) { ?>
                                        <?php if($childID == 3)break;?>                                        <?php $childID++; $v['isNaved'] = 1;?>                                        <li><a class="hover-main" href="<?php echo $v['caturl'];?>" target="_blank"><?php echo $v['catname'];?></a></li>
                                        <?php } ?>
                                        <?php } ?>

                                    </ul>
                                </div>
                            </div>
                            
                            <?php if($childID >= 3) { ?>
                            <div class="col-xs-3 b-r b-r-dashed b-white">
                                <div>
                                    <ul class="list-unstyled">
                                        
                                        <?php if(is_array($_G['cache']['portalcategory'])) foreach($_G['cache']['portalcategory'] as $k => &$v) { ?>                                        <?php if($v['upid'] == $value['catid'] && $v['isNaved'] != 1) { ?>
                                        <?php if($childID == 6)break;?>                                        <?php $childID++; $v['isNaved'] = 1;?>                                        <li><a class="hover-main" href="<?php echo $v['caturl'];?>" target="_blank"><?php echo $v['catname'];?></a></li>
                                        <?php } ?>
                                        <?php } ?>
                                        
                                    </ul>
                                </div>
                            </div>
                            <?php } ?>
                            <div class="col-xs-6">
                                <a href="">
                                    <img class="img-responsive center-block padder-v-sm" src="/static/assets/imgs/pic_01.jpg" alt="">
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </li>
            <?php } ?>
            <?php } ?>

            <!-- <li><a class="tras-03" href="/news/gedian/" target="_blank"></a></li> -->
            
            

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