<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%
    String basePath = request.getContextPath();
    String resourcePath = basePath + "/resource";
%>
<div class="top">
    <div class="top-main">
        <span class="hy">欢迎来到衡水大数据中心资源开放平台</span>
        <span class="top1">
            <shiro:guest>
                <a href="<%=basePath%>/open/account/login.htm" class="denglu-font">登录</a> &nbsp | &nbsp
                <a href="<%=basePath%>/open/account/register.htm" class="denglu-font">注册</a>
            </shiro:guest>
            <shiro:authenticated>
                <img src="<%=resourcePath%>/images/touxiang.png" class="nameimg">
                <a onclick="showOrHidden()"  style="color: white;text-decoration: none;"><shiro:principal/></a>
            </shiro:authenticated>
        </span>
        <span class="xiaoxi">
            <img src="<%=resourcePath%>/images/icon_xiaoxi.png" class="masimg">
            <a href="<%=basePath%>/open/notification/index.htm">我的消息</a>
        </span>
        <span class="yingyong">
            <img src="<%=resourcePath%>/images/icon_yingyong.png" class="yingyongicon">
            <a href="<%=basePath%>/open/myMicroapp/list.htm">我的应用</a>
        </span>
        <div class="clearfix"></div>
        <div hidden id="mytanchu" class="tuichutanchuang">
            <div class="yonghuzhongxin">
                <a href="<%=basePath%>/open/mydata/index.htm/1" class="yonghuzx-font">
                    <span class="icon1"></span>
                    用户中心
                </a>
            </div>
            <div class="yonghuzhongxin">
                <a href="<%=basePath%>/open/account/logout.action" class="tuichu-font">
                    <span class="icon20"></span>
                    退出
                </a>
            </div>

        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    function showOrHidden() {
        $("#mytanchu").toggle() ;
    }
</script>