<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>


<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="adm/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="adm/css/jquery.dialog.css"/>
    <link rel="stylesheet" href="adm/css/index.css"/>
    <link rel="stylesheet" href="adm/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="adm/css/font-awesome.css" rel="stylesheet"/>
    <style>
        .layui-layer-title {
            background: url(adm/images/righttitlebig.png) repeat-x;
            font-weight: bold;
            color: #46647e;
            border: 1px solid #c1d3de;
            height: 33px;
            line-height: 33px;
        }
        .layui-btn-primary {
            border: 1px solid #C9C9C9;
            background-color: #337ab7;
            color: #fff;
        }
        .dialog-content{color:#ffffff !important}
        .tips{color:#ffffff !important}

    </style>
    <title>应急资源管理系统</title>
</head>
<body>
<div id="container">
    <div id="hd">
        <div class="hd-wrap ue-clear" style="background: #337ab7;">
            <div class="top-light"></div>
            <h1 style="width: 400px;color: #fff;font-size: 26px;line-height: 65px;padding-left: 10px"><i class="fa fa-arrows-alt"></i> 应急资源管理系统</h1>

            <div class="login-info ue-clear" >
                <div class="welcome ue-clear" style="width: 250px;"><span>欢迎您,</span>
                    <a href="javascript:void(0)" class="user-name">${sessionScope.auser.uname }(${sessionScope.auser.utype })</a>
                </div>
            </div>
            <div class="toolbar ue-clear">
                <a href="showUserInfo.do" class="layui-btn layui-btn-primary layui-border" target="right"><i class="fa fa-user"></i> 个人中心</a>
                <%--<a href="showUserInfo.do" class="layui-btn layui-btn-primary layui-border" target="right"><i class="fa fa-unlock-alt"></i> 修改密码</a>--%>
                <a href="javascript:void(0)" id="exit" class="layui-btn layui-btn-primary layui-border"><i class="fa fa-power-off"></i> 退出系统</a>
            </div>
        </div>
    </div>
    <div id="bd">
        <div class="wrap ue-clear" style="background: #337ab7;">
            <div class="sidebar"  >
                <h2 class="sidebar-header" style="background: #337ab7;"><p>功能导航</p></h2>
                <ul class="nav" >
                    <li class="office current">
                        <div class="nav-header"><a href="welcome.do" target="right" class="ue-clear"><span>首页</span></a></div>
                    </li>
                    <c:if test="${sessionScope.auser.utype=='管理员'}">

                        <li class="list01">
                            <div class="nav-header">
                                <a href="newsList.do" target="right" class="ue-clear"><span>应急案例管理</span></a>
                            </div>
                        </li>
                        <li class="land">
                            <div class="nav-header"><a href="JavaScript:;" class="ue-clear"><span>应急资源管理</span><i
                                    class="icon hasChild"></i></a></div>
                            <ul class="subnav">
                                <li><a href="resourcesTypeList.do" target="right">资源分类管理</a></li>
                                <li><a href="emergencyResourcesList.do" target="right">储备资源管理</a></li>
                                <li><a href="applyList.do" target="right">应急资源申请管理</a></li>
                                <%--<li><a href="reserveList.do" target="right">储备物资</a></li>--%>
                                <%--<li><a href="emergencyResourcesList.do" target="right">应急资源信息</a></li>--%>
                            </ul>
                        </li>

                        <li class="data">
                            <div class="nav-header"><a href="earlyWarningList.do" target="right" class="ue-clear"><span>应急预警管理</span></a></div>
                        </li>


                        <li class="train">
                            <div class="nav-header"><a href="JavaScript:;" class="ue-clear"><span>应急庇护场所管理</span><i
                                    class="icon hasChild"></i></a></div>
                            <ul class="subnav">
                                <li><a href="placeList.do" target="right">场所管理</a></li>
                                <li><a href="place.do" target="right">场所列表</a></li>
                            </ul>
                        </li>


                        <li class="list02">
                            <div class="nav-header"><a href="JavaScript:;" class="ue-clear"><span>捐赠信息管理</span><i
                                    class="icon hasChild"></i></a></div>
                            <ul class="subnav">
                                <li><a href="donationTypeList.do" target="right">捐赠分类管理</a></li>
                                <li><a href="donationList.do" target="right">捐赠信息管理</a></li>
                            </ul>
                        </li>

                        <li class="dossier">
                            <div class="nav-header">
                                <a href="capitalList.do" target="right" class="ue-clear"><span>应急资金管理</span></a>
                            </div>
                        </li>

                        <li class="train">
                            <div class="nav-header">
                                <a href="bbsList.do" target="right" class="ue-clear"><span>留言信息管理</span></a>
                            </div>
                        </li>

                        <li class="user">
                            <div class="nav-header"><a href="JavaScript:;" class="ue-clear"><span>用户管理</span><i
                                    class="icon hasChild"></i></a></div>
                            <ul class="subnav">
                                <li><a href="usersList.do" target="right">普通用户管理</a></li>
                            </ul>
                        </li>
                    </c:if>
                    <c:if test="${sessionScope.auser.utype=='普通用户'}">

                        <li class="case">
                            <div class="nav-header">
                                <a href="newsList.do" target="right" class="ue-clear"><span>应急案例</span></a>
                            </div>
                        </li>
                        <li class="land">
                            <div class="nav-header"><a href="JavaScript:;" class="ue-clear"><span>应急资源</span><i
                                    class="icon hasChild"></i></a></div>
                            <ul class="subnav">
                                <li><a href="emergencyResourcesList.do" target="right">储备资源</a></li>
                                <li><a href="applyList.do" target="right">应急资源申请</a></li>
                                <%--<li><a href="reserveList.do" target="right">储备物资</a></li>--%>
                                <%--<li><a href="emergencyResourcesList.do" target="right">应急资源信息</a></li>--%>
                            </ul>
                        </li>
                        <li class="arena">
                            <div class="nav-header">
                                <a href="place.do" target="right" class="ue-clear"><span>应急庇护场所</span></a>
                            </div>
                        </li>

                        <li class="part">
                            <div class="nav-header">
                                <a href="capitalList.do" target="right" class="ue-clear"><span>应急资金</span></a>
                            </div>
                        </li>

                        <li class="train">
                            <div class="nav-header">
                                <a href="bbsList.do" target="right" class="ue-clear"><span>留言信息</span></a>
                            </div>
                        </li>
                    </c:if>

                </ul>
            </div>
            <div class="content">
                <iframe src="welcome.do" id="iframe" width="100%" height="100%" frameborder="0" name="right"
                        style="min-width: 1100px"></iframe>
            </div>
        </div>
    </div>
    <div id="ft" class="foot_div" style="background: #337ab7;">
        <span></span>
        <em style="color: #fff;font-size: 20px;font-weight: bold">CopyRight @ 应急资源管理系统</em>
    </div>
</div>
</body>
<script type="text/javascript" src="adm/js/jquery.js"></script>
<script type="text/javascript" src="adm/js/core.js"></script>
<script type="text/javascript" src="adm/js/index.js"></script>
<script src="adm/js/layer_v2.1/layer/layer.js"></script>
<script>

  $(function (){

      $("#exit").click(function(){
          layer.confirm('你确定要退出系统？<br/> 如果是请点击“确定”，否则点“取消”',
              {icon: 3, title: '提示信息'},
              function (index) {
                  layer.close(index);
                  window.location.href = "loginOut.do";
         });
      });
  });



</script>
</html>
