<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/jspf/common.jspf" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>嘉时软件</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="${path}/static/css/gatewayPageStyles.css?time=2020-08-26"/>
    <script src="${path}/static/js/echarts/echarts.min.js"></script>
    <script type="text/javascript">
        var path = "${path}";
    </script>
    <style type="text/css">
        .navbar-custom-menu{
            padding-right:17px;
        }
        /**
       *右侧
       */
        .rightDiv{
            width: 100%;
            height: 83%;
        }
        /**
        *右侧上部分
        */
        .rightTopDiv{
            width: 100%;
            height: 40%;
            min-height: 190px;
        }
        .rightTopSpanDiv{
            padding-top: 10%;
            width: 100%;
            height:50px;
            text-align: center;
        }
        .rightTopSpanDiv span{
            font-size: 36px;
            font-weight: bold;
        }

        .hidden-xs{
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .home-sidebar-menu>li{
            padding: 18px 0;
        }
        .skin-blue .sidebar-menu>li:hover,.skin-blue .sidebar-menu>li.active{
            background: #1e282c;
        }
        .skin-blue .sidebar-menu>li:hover>.aClass,.skin-blue .sidebar-menu>li.active>.aClass{
            color: white;
        }
        .aClass{
            display: grid;
            justify-content: center;
            align-items: center;
            font-size: 16px;
            font-weight: 700;
            text-align: center;
            color: #b8c7ce;
            cursor: pointer;
        }
        .aClass i{
            display: flex;
            justify-content: center;
            margin: 0 auto;
            font-size: 54px;
        }
        .aClass span{
            margin-top: 5px;
        }
        .sidebar-mini.sidebar-collapse .aClass{
            font-size: 12px;
        }
        .sidebar-mini.sidebar-collapse .aClass>i{
            font-size: 25px;
        }
        .home-menu:hover .dropdown-menu {display: block;}
        .sidebar-mini.sidebar-collapse .img {
            width: 25px;
        }
        .home-menu:hover .dropdown-menu {display: block;}
        .sidebar-mini.sidebar-collapse .titleDiv{
            font-size: 12px;
        }
    </style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<input type="hidden" id="userId" value="${CURRENT_USER.userId}">
<input type="hidden" id="webSocketUrl" value="${WEBSOCKET_URLHEAD}">
<input type="hidden" id="strSplit" value="${STR_SPLIT}">
<input type="hidden" id="flag" value="${flag}">
<div class="wrapper">
    <header class="main-header">
        <!--logo-->
        <div class="logo">
            <div class="pull-left info" style="width: 100%">
                <p>嘉时软件</p>
            </div>
        </div>
        <nav class="navbar navbar-static-top">
            <a href="javascript:void(0)" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="user user-menu">
                        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown" onclick="noticeManage()">
                            <span class="label label-warning" id="noticeCount">0</span>
                            <i class="fa fa-envelope-o"  style="font-size: 21px;"></i>
                        </a>
                    </li>
                    <li class="user user-menu">
                        <a href="javascript:void(0)" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="${path}/static/bootstrap-3.3.7/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                            <c:choose>
                                <c:when test="${CURRENT_USER.powerDepts == '' || CURRENT_USER.powerDepts == null || CURRENT_USER.powerDepts == 'null'}">
                                    <c:choose>
                                        <c:when test="${CURRENT_USER.name != null && CURRENT_USER.name != '' && CURRENT_USER.name != 'null'}">
                                            <span class="hidden-xs" title="${CURRENT_USER.name}">${CURRENT_USER.name}</span>
                                        </c:when>
                                        <c:otherwise>
                                            <span class="hidden-xs" title="${CURRENT_USER.userName}">${CURRENT_USER.userName}</span>
                                        </c:otherwise>
                                    </c:choose>
                                </c:when>
                                <c:otherwise>
                                    <c:choose>
                                        <c:when test="${CURRENT_USER.name != null && CURRENT_USER.name != '' && CURRENT_USER.name != 'null'}">
                                            <span class="hidden-xs" title="${CURRENT_USER.name}(${CURRENT_USER.powerDepts})">${CURRENT_USER.name}(${CURRENT_USER.powerDepts})</span>
                                        </c:when>
                                        <c:otherwise>
                                            <span class="hidden-xs" title="${CURRENT_USER.userName}(${CURRENT_USER.powerDepts})">${CURRENT_USER.userName}(${CURRENT_USER.powerDepts})</span>
                                        </c:otherwise>
                                    </c:choose>
                                </c:otherwise>
                            </c:choose>
                        </a>
                    </li>
                    <li class="home-menu">
                        <a href="${path}/gatewayPage" title="点击返回首页"><i class="fa fa-home" style="font-size: 21px"></i></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="${path}/logout?token=${token}">退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <aside class="main-sidebar">
    <section class="sidebar">
        <ul class="sidebar-menu home-sidebar-menu" data-widget="tree">
            <li class="active" title="主页">
                <div class="aClass" onclick="menuClick(this,'home')">
                    <i class="fa fa-home"></i>
                    <span>主页</span>
                </div>
            </li>
            <li title="通知信息">
                <div class="aClass notice-menu" onclick="menuClick(this,'notice')">
                    <i class="fa fa-file"></i>
                    <span>通知信息</span>
                </div>
            </li>
            <li title="帮助文档">
                <div class="aClass" onclick="menuClick(this,'help')">
                    <i class="fa fa-info"></i>
                    <span>帮助文档</span>
                </div>
            </li>
            <li title="修改密码">
                <div class="aClass" onclick="menuClick(this,'pwd')">
                    <i class="fa fa-key"></i>
                    <span>修改密码</span>
                </div>
            </li>
            <li title="联系我们">
                <div class="aClass" onclick="menuClick(this,'contact')">
                    <i class="fa fa-phone"></i>
                    <span>联系我们</span>
                </div>
            </li>
        </ul>
    </section>
    </aside>
    <div id="iframeDiv" class="content-wrapper" style="display: none">
        <iframe class="row-fluid" style="height:calc(100% - 102px);width:100%;"
                id="iframe" name="iframe" scrolling="no" frameborder="0"></iframe>
    </div>
    <div class="content-wrapper" id="sectionDiv">
        <div class="rightDiv">
            <div class="rightTopDiv">
                <div class="rightTopSpanDiv">
                    <span>嘉时软件          病案无纸化归档管理系统</span>
                </div>
            </div>
            <section class="content-header">
                <div class="header">
                    <c:if test="${power == 1}">
                        <div class="iconContext left">
                            <a href="${path}/index">
                                <div class="backgroupImgDiv blue rightDefaultImg_bg">
                                    <div class="rightImgDiv">
                                        <img class="rightImg" src="${path}/static/images/门户页面/u130.png"/>
                                    </div>
                                    <div class="rightTitleDiv">
                                        <div class="rightTitle">
                                            <span>权限系统</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </c:if>
                    <c:if test="${emr_medical_record == 1}">
                        <div class="iconContext left">
                            <a href="${EMRMEDICALRECORD_URLHEAD}/login?token=${token}&userName=${CURRENT_USER.userName}">
                                <div class="backgroupImgDiv green rightDefaultImg_bg">
                                    <div class="rightImgDiv">
                                        <img class="rightImg" src="${path}/static/images/门户页面/u136.png"/>
                                    </div>
                                    <div  class="rightTitleDiv">
                                        <div class="rightTitle" style="margin-top: 5px;">
                                            <span>病案归档系统</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </c:if>
                    <c:if test="${emr_record == 1}">
                        <div class="iconContext left">
                            <a href="${EMRRECORD_URLHEAD}/login?token=${token}&userName=${CURRENT_USER.userName}">
                                <div class="backgroupImgDiv orange rightDefaultImg_bg">
                                    <div class="rightImgDiv">
                                        <img class="rightImg" src="${path}/static/images/门户页面/u138.png"/>
                                    </div>
                                    <div class="rightTitleDiv">
                                        <div class="rightTitle">
                                            <span>档案管理系统</span>
                                        </div>
                                    </div>
                                </div>

                            </a>
                        </div>
                    </c:if>
                    <%--<c:if test="${emr_apply_copy == 1}">
                        <div class="iconContext left">
                            <a href="${EMRAPPLYCOPY_URLHEAD}/auth/login?token=${token}&userName=${CURRENT_USER.userName}">
                                <!-- Unnamed (矩形) -->
                                <div id="u146" class="ax_default sticky_3">
                                    <div id="u146_div" class=""></div>
                                    <!-- Unnamed () -->
                                    <div id="u147" class="text" style="display: none; visibility: hidden">
                                        <p><span></span></p>
                                    </div>
                                </div>
                                <!-- Unnamed (形状) -->
                                <div id="u148" class="ax_default icon">
                                    <img id="u148_img" class="img " src="${path}/static/images/门户页面/u149.png"/>
                                    <!-- Unnamed () -->
                                    <div id="u149" class="text" style="display: none; visibility: hidden">
                                        <p><span></span></p>
                                    </div>
                                </div>
                                <!-- Unnamed (矩形) -->
                                <div id="u150" class="ax_default _二级标题">
                                    <div id="u150_div" class=""></div>
                                    <!-- Unnamed () -->
                                    <div id="u151" class="text" style="visibility: visible;text-align: center">
                                        <p><span>病案复印预约</span></p>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </c:if>
                    <c:if test="${emr_files == 1}">
                        <div class="iconContext left">
                            <a href="${EMRFILES_URLHEAD}/login?token=${token}&userName=${CURRENT_USER.userName}">
                                <!-- Unnamed (矩形) -->
                                <div id="u1461" class="ax_default sticky_3">
                                    <div id="u1461_div" class=""></div>
                                    <!-- Unnamed () -->
                                    <div id="u1471" class="text" style="display: none; visibility: hidden">
                                        <p><span></span></p>
                                    </div>
                                </div>
                                <!-- Unnamed (形状) -->
                                <div id="u1481" class="ax_default icon">
                                    <img id="u1481_img" class="img " src="${path}/static/images/门户页面/u148.png"/>
                                    <!-- Unnamed () -->
                                    <div id="u1491" class="text" style="display: none; visibility: hidden">
                                        <p><span></span></p>
                                    </div>
                                </div>
                                <!-- Unnamed (矩形) -->
                                <div id="u1501" class="ax_default _二级标题">
                                    <div id="u1501_div" class=""></div>
                                    <!-- Unnamed () -->
                                    <div id="u1511" class="text" style="visibility: visible;text-align: center">
                                        <p><span>病案签收</span></p>
                                    </div>
                                </div>
                            </a>
                        </div>
                    </c:if>--%>
                </div>
            </section>
    </div>
    </div>
    <!-- 底部版权-->
    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 20200911_1
        </div>
        <strong>Copyright &copy; 2019-2090 厦门嘉时软件.</strong> All rights
        reserved.
    </footer>
</div>
<script type="text/javascript" src="${path}/static/js/getewayIndex.js?t=2020-08-18"></script>
<%@ include file="/WEB-INF/jspf/webSocket.jspf" %>
<%--<script src="${path}/static/js/gatewayIndexEcharts.js"></script>--%>
</body>
</html>
