<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!--[if lt IE 9]> 
    <script src="<c:url value='/resources/versions-2.0/js/html5shiv/3.7.2/html5shiv.min.js'/>"></script>
    <script src="<c:url value='/resources/versions-2.0/js/respond.js/1.4.2/respond.min.js'/>"></script>
 <![endif]-->
<div class="aside"><!-- aside-war 左边导航 start -->
	<c:if test="${!empty indexType}">
		<div class="logo-img" onclick="window.open('<c:url value='/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>','_self')"><a href="<c:url value='/index'/>"><img src="<c:url value='/resources/versions-2.0/images/ac-su-logo.png' />"></a></div>
	</c:if>
	<c:if test="${empty indexType}">
		<div class="logo-img"><a href="<c:url value='/?ACCESS_TOKEN=${ACCESS_TOKEN}'/>"><img src="<c:url value='/resources/versions-2.0/images/account/ac-logo.png'/>"></a></div>
	</c:if>
	<div class="title-list">
		<h3>我的账户</h3>
		<ul class="br-2a">

			<c:if test="${userdetail.role_name ne 'CREWS' && userdetail.role_name ne 'REVIEWER' && userdetail.role_name ne 'BUSINESSER' }">
				<li id="myAccount" class="active"><a href="<c:url value='/pc/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">我的账户</a></li>
				<li id="myOrder"><a href="<c:url value='/pc/order/myOrder?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">我的订单</a></li>
			</c:if>
		</ul>
	</div>
	<%--<c:if test="${userdetail.role_name ne 'CREWS' && userdetail.role_name ne 'REVIEWER' && userdetail.role_name ne 'BUSINESSER' }">--%>
	<%--<c:if test="${userdetail.role_name eq 'USER' }">--%>
	<c:if test="${empty indexType || indexType eq 'credit' }">
		<div class="title-list">
			<h3>信用险业务管理</h3>
			<ul>
				<li id="shipping"><a href="<c:url value='/exports/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">首页</a></li>
				<li id="shipping01"><a href="<c:url value='/exports/credit/policyChange?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">信用限额管理</a></li>
				<%-- <li id="declare"><a href="<c:url value='/exports/declare/index'/>">出运申报</a></li> --%>
				<li id="declare"><a href="<c:url value='/ship/declare/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">出运申报</a></li>
				<%--<li id="receiveAmounts"><a href="<c:url value='/exports/receive/accounts/index'/>">应收账款管理</a></li>
				<li id="overDueAmounts"><a href="<c:url value='/exports/overDue/accounts/index'/>">逾期损失管理</a></li>
				<li id="claim"><a href="<c:url value='/ship/claim/index'/>">理赔管理</a></li>--%>
			</ul>
		</div>
	</c:if>
	<%--</c:if>--%>
	<%--</c:if>--%>
	<div class="title-list">
		<h3>保险服务</h3>
		<ul>
			<li><a target="_blank" href="<c:url value='/synopsis/insuranceService/insure-serve?ACCESS_TOKEN=${ACCESS_TOKEN}'/>"><i class="i-icon1"></i>保险服务</a></li>
			<%--<li><a target="_blank" href="<c:url value='/synopsis/insuranceService/app-set'/>"><i class="i-icon2"></i>申请理赔</a></li>
			<li><a target="_blank" href="<c:url value='/synopsis/insuranceService/chi-query'/>"><i class="i-icon3"></i>保单查询</a></li>--%>
			<li><a target="_blank" href="<c:url value='/synopsis/insuranceService/chi-ver?ACCESS_TOKEN=${ACCESS_TOKEN}'/>"><i class="i-icon4"></i>保单验真</a></li>
<%-- 			<li><a target="_blank" href="<c:url value='/'/>"><i class="i-icon5"></i>资料下载</a></li> --%>
		</ul>
	</div>
</div><!-- aside-war 左边导航 end -->
<div class="mar-content "><!-- mar-content 右边内容块 start -->
	<div class="mar-title"><!-- mar-title start -->
		<div class="pull-left">
			<h3>我的账户</h3>
		</div>
		<div class="pull-right">
			<ul>
				<li style="display: none;"><a href="javascript:;"><i class="glyphicon glyphicon-envelope mess-war"><span class="mess-count">0</span></i></a></li>
				<%--<li class="exit-btn text-center"><a href="<c:url value='/pc/reseller/logout'/>">退出</a></li>--%>

			 <li><a href="<c:url value='/pc/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>"><c:if test="${empty userdetail.user_pic }"><img src="<c:url value='/resources/versions-2.0/images/account/user-img.png'/>"></c:if><c:if test="${not empty userdetail.user_pic }"><img src="${userdetail.user_pic }"></c:if></a></li>

				<li class="btn-group dropdown">
					<div>
						<div class="pull-left account">
							<a href="<c:url value='/pc/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>" title="${empty userdetail.login_name ? userdetail.login_name:userdetail.login_name }">${empty userdetail.login_name ? userdetail.login_name:userdetail.login_name }</a>
							<a href="<c:url value='/pc/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>" class="co-b5" title="${userdetail.email }">${userdetail.email }</a>
						</div>
						<div class="pull-left"><i class="glyphicon glyphicon-menu-down cursor-pointer"></i></div>
					</div>
					<ul class="dropdown-menu">
						<li class="m-0">
							<ul>

								<li><a href="<c:url value='/pc/reseller/logout'/>" style="background: #f8fafc;height: 45px;color: #56688a;line-height: 45px;">退出</a></li>
							</ul>
<%-- 							<p><a href="<c:url value='/j_spring_security_logout'/>">退出</a></p> --%>
						</li>
					</ul> 
				</li> 
				</ul>
				</li>
			</ul>
		</div>
	</div><!-- mar-title end -->
</div>
<script type="text/javascript" src="<c:url value='/resources/versions-2.0/js/jquery.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resources/versions-2.0/js/account/hover-dropdown.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resources/versions-2.0/js/bootstrap.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resources/js/layer/layer.js'/>"></script>
<jsp:include page="../index/multi_init_param.jsp"/>
<script>
	function choiseMenu(objId){
		$(".title-list li").removeClass("active");
		$("#" + objId).addClass("active");
	}
</script>
