<%@ 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/functions" prefix="fn" %>
	<ul class="dropdown-menu">
		<li class="m-0">
			<ul>
				<c:if test="${userdetail.roleName ne 'CREWS'}">
					<c:if test="${ fn:split(userdetail.roleName,'-')[0] != 'RESELLER' }">
					<li><a href="<c:url value='/pc/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">我的账户</a></li>
					</c:if>
					<c:if test="${userdetail.roleName eq 'RESELLER-TWO-HEAD'||userdetail.roleName eq 'RESELLER-ONE-HEAD' }">
						<li><a href="<c:url value='/pc/reseller/reseller/init?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">分销商管理</a></li>
					</c:if>
					<c:if test="${fn:split(userdetail.roleName,'-')[0] eq 'COMMON' }">
						<li><a href="<c:url value='/pc/myOrder?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">我的订单</a></li>
						<li><a href="<c:url value='/pc/claimList?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">理赔查询</a></li>
						<li><a href="<c:url value='/pc/commonApplicant/win?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">常用投保人</a></li>
					</c:if>
					<c:if test="${userdetail.company.authentication && (userdetail.roleName eq 'BID' || userdetail.roleName eq 'LAWFIRM') }">
						<c:if test="${userdetail.roleName eq 'LAWFIRM'}">
							<li><a href="<c:url value='/pc/myWork/init?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">我的工作</a></li>
						</c:if>
						<li><a href="<c:url value='/pc/businessQuery?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">业务查询</a></li>
						<c:if test="${userdetail.roleName eq 'BID'}">
							<li><a href="<c:url value='/pc/evaluation/init?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">评标结果</a></li>
						</c:if>
					</c:if>
					<c:if test="${userdetail.company.authentication && userdetail.roleName eq 'INSURANCE' }">
						<c:if test="${userdetail.company.accountType ne 'BRANCH'}">
							<li><a href="<c:url value='/pc/insureInfo/init?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">投保信息</a></li>
						</c:if>
						<c:if test="${userdetail.company.accountType eq 'SUBSIDIARY'}">
							<li><a href="<c:url value='/pc/conditions/init?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">承保条件</a></li>
						</c:if>
						<c:if test="${userdetail.company.accountType ne 'HEADQUARTERS'}">
							<li><a href="<c:url value='/pc/guarantee/init?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">上传保函</a></li>
						</c:if>
					</c:if>
				</c:if>
				<c:if test="${userdetail.roleName eq 'CREWS' }">
					<li id="insureConfig"><a href="<c:url value='/pc/index?ACCESS_TOKEN=${ACCESS_TOKEN}'/>">投保单配置</a></li>
				</c:if>
			</ul>
			<c:if test="${ fn:split(userdetail.roleName,'-')[0] eq 'RESELLER' }">
				<p><a href="<c:url value='/pc/reseller/logout'/>">退出</a></p>
			</c:if>
			<c:if test="${ fn:split(userdetail.roleName,'-')[0] != 'RESELLER' }">
				<p><a href="<c:url value='/j_spring_security_logout'/>">退出</a></p>
			</c:if>
		</li>
	</ul>