<!DOCTYPE html>
<html lang="zh">
<head>
    <@seoMeta/>
    <@title/>
    <#include "admin/common/include_hplus.ftl">

    <style type="text/css">
        .logo {
            height:64px;
        }
        .logo-text {
            text-align: center;
            vertical-align: middle;
            font-size:26px;
            line-height:64px;
            color: transparent;
            -webkit-text-stroke: 1px #95B1BD;
            letter-spacing: 0.04em;
        }
    </style>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i></div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header" style="padding-left: 10px;padding-right: 10px;">
                        <div class="dropdown profile-element">
                            <div class="logo">
                                <#if app.logo == "true">
                                    <img alt="image" src="<@contextPath/>/img/logo.png">
                                <#else>
                                    <div class="logo-text">${app.title}</div>
                                </#if>
                            </div>
                        </div>
                        <div class="logo-element">M</div>
                    </li>
                    <#list operator_context_modules as m >
                        <#if m.children??>
                        <li title="${m.name }">
                            <a href="#"><i class="${m.iconCls!'fa fa-list'}"></i> <span class="nav-label">${m.name }</span><span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <#list m.children as mc >
                                    <#if mc.children??>
                                    <li title="${mc.name }">
                                        <a href="#">${mc.name } <span class="fa arrow"></span></a>
                                        <ul class="nav nav-third-level">
                                            <#list mc.children as mcc >
                                            <li title="${mcc.name }"><a class="J_menuItem" target="main_iframe" href="<@contextPath/>/auth/jump?moduleId=${mcc.oid }&url=${mcc.visiturl }">${mcc.name }</a></li>
                                            </#list>
                                        </ul>
                                    </li>
                                    <#else>
                                    <li title="${mc.name }"><a class="J_menuItem" target="main_iframe" href="<@contextPath/>/auth/jump?moduleId=${mc.oid }&url=${mc.visiturl }">${mc.name }</a></li>
                                    </#if>
                                </#list>
                            </ul>
                        </li>
                        <#else>
                        <li title="${m.name }">
                            <a class="J_menuItem" target="main_iframe" href="<@contextPath/>/auth/jump?moduleId=${m.oid }&url=${m.visiturl }"><i class="fa fa-list"></i> <span class="nav-label">${m.name }</span></a>
                        </li>
                        </#if>
                    </#list>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0;">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                        <!--<form role="search" class="navbar-form-custom" method="post" action="http://www.zi-han.net/theme/hplus/search_results.html">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form>-->
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <!--
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                <i class="fa fa-envelope"></i> <span class="label label-warning">0</span>
                            </a>
                            <ul class="dropdown-menu dropdown-messages">
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a class="J_menuItem" href="javascript:;">
                                            <i class="fa fa-envelope"></i> <strong> 查看所有消息</strong>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                <i class="fa fa-bell"></i> <span class="label label-primary">0</span>
                            </a>
                            <ul class="dropdown-menu dropdown-alerts">
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a class="J_menuItem" href="javascript:;">
                                            <strong>查看所有 </strong>
                                            <i class="fa fa-angle-right"></i>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        -->
                        <li class="dropdown pull-right">
                            <a class="dropdown-toggle" data-toggle="dropdown">
                                <i class="fa fa-user"></i> <span class="hidden-xs">${userInfo.realName }</span>
                            </a>
                            <ul class="dropdown-menu dropdown-alerts">
                                <li>
                                    <a class="J_menuItem" href="<@contextPath/>/sys/user/info" onclick="$('.dropdown.pull-right').removeClass('open');">
                                        <div>
                                            <i class="fa fa-qq fa-fw"></i> 个人资料
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a class="J_menuItem" href="<@contextPath/>/sys/user/password" onclick="$('.dropdown.pull-right').removeClass('open');">
                                        <div>
                                            <i class="fa fa-key"></i> 修改密码
                                        </div>
                                    </a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <div class="text-center link-block">
                                        <a href="<@contextPath/>/auth/logout">
                                            <strong>安全退出</strong>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row content-tabs">
                <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
                </button>
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="javascript:;" class="active J_menuTab" data-id="/welcome">首页</a>
                    </div>
                </nav>
                <button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
                </button>
                <div class="btn-group roll-nav roll-right">
                    <button class="dropdown J_tabClose" data-toggle="dropdown">关闭<span class="caret"></span>

                    </button>
                    <ul role="menu" class="dropdown-menu dropdown-menu-right">
                        <li class="J_tabShowActive"><a>定位当前选项卡</a>
                        </li>
                        <li class="divider"></li>
                        <li class="J_tabCloseAll"><a>关闭全部选项卡</a>
                        </li>
                        <li class="J_tabCloseOther"><a>关闭其他选项卡</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe src="<@contextPath/>/welcome" class="J_iframe" name="iframe0" width="100%" height="100%" frameborder="0" data-id="/welcome" seamless></iframe>
            </div>
            <div class="footer">
                <div class="pull-right"><span class="hidden-xs"><#if icp??>备案号：<a href="https://beian.miit.gov.cn/" target="_blank">${icp}</a> |</#if></span> 技术支持：</div>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>
    <script src="<@contextPath/>/static/common/hplus/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="<@contextPath/>/static/common/hplus/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="<@contextPath/>/static/common/hplus/js/hplus.min.js?v=4.1.0"></script>
    <script src="<@contextPath/>/static/common/hplus/js/contabs.min.js" type="text/javascript"></script>
    <script src="<@contextPath/>/static/common/hplus/js/plugins/pace/pace.min.js"></script>
</body>

</html>
