<div id="header">
    <div class="toper">
        <div class="wrapper">
            <div class="top-nav">
                {nav type="0" parent_id="0"}
                {nav:loop}
                <a class="link" href="[nav:url]" target="[nav:target]">[nav:name]</a>
                {/nav:loop}
                {/nav}
            </div>
            <div class="account-sign-status">
                <span id="welcome">欢迎来到<a href="{$site_url}">{$site_mini_name}</a>！</span>
                {if:OW.int("{$config(user_login_close)}")=0}<span id="user_status" class="user-status">请{if:OW.int("{$config(user_login_close)}")=0}<a href="{$login_url}" class="a-login">登陆</a>{/if}{if:OW.int("{$config(user_login_close)}")=0 and OW.int("{$config(user_reg_close)}")=0}/{/if}{if:OW.int("{$config(user_reg_close)}")=0}<a href="{$reg_url}" class="a-reg">免费注册</a>{/if}</span>{/if}
            </div>
            <div class="search">
                <div class="search-form">
                    <form action="{$site_url}" method="get">
                    <input type="hidden" name="ctl" value="search">
                    <input type="hidden" name="is_shop" value="0">
                    <div class="search-text"><input type="text" class="text-search" name="keyword" value="{$search_keyword}" placeholder="关键词" /></div>
                    <button type="submit" class="btn-search" name="btn_search">搜 索</button>
                    </form>
                </div>
                <div class="search-keywords">
                    {$search_keywords}
                </div>
            </div>
        </div>
    </div>
    <div class="header-line">
        <div class="wrapper">
            <div class="logo"><a href="{$site_url}"><img src="{$config(site_logo)}" alt="{$site_name}" title="{$site_name}"></a></div>
            <div class="main-nav" id="main_nav">
            <div class="previewArea"></div>
                {nav type="1" parent_id="0"}
                <ul class="main">
                {nav:loop}
                <li class="n1" url="[nav:url]">
                    {if:OW.int("[nav:children]")>0}
                        <a class="n1 has-child" href="[nav:url]" target="[nav:target]">[nav:name]</a>
                        {nav2 parent_id="[nav:nav_id]"}
                        <div class="subnav">
                        <ul>
                        {nav2:loop}
                        <li class="n2"><a class="n2" href="[nav2:url]" target="[nav2:target]">[nav2:name]</a></li>
                        {/nav2:loop}
                        </ul>
                        </div>
                        {/nav2}
                    {else}
                        <a class="n1" href="[nav:url]" target="[nav:target]">[nav:name]</a>
                    {/if}
                </li>
                {/nav:loop}
                </ul>
                {/nav}
            </div>
        </div>
    </div>
</div>