<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
    <c:choose>
        <c:when test="${headMenu eq 'user' }">
            <div class="menu">
		        <ul>
		          <li <c:if test="${subMenu eq 'info' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('user', 'info', '/user/info')"><i class="ico-menu ico-profile"></i><span>个人信息</span></a></li>
		          <security:authorize ifAnyGranted="SYS_ADMIN">
		          <li <c:if test="${subMenu eq 'list' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('user', 'list', '/user/list')"><i class="ico-menu ico-user"></i><span>用户管理</span></a></li>
		          <!-- 
		          <li <c:if test="${subMenu eq 'backups' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('user', 'backups', '/user/backups')"><i class="ico-menu ico-backup"></i><span>备份还原</span></a></li>
		          -->
		          </security:authorize>
		        </ul>
		    </div>
        </c:when>
        
        <c:when test="${headMenu eq 'taskCenter' }">
            <div class="menu">
		        <ul>
		          <li <c:if test="${subMenu eq 'pending' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('taskCenter', 'pending', '/taskCenter/pending')"><i class="icon todo"></i><span>待处理</span></a></li>
		          <li <c:if test="${subMenu eq 'relevance' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('taskCenter', 'relevance', '/taskCenter/relevance')"><i class="icon related"></i><span>全部任务</span></a></li>
		        </ul>
		    </div>
        </c:when>
        
        <c:when test="${headMenu eq 'business' }">
            <div class="menu">
		        <ul>
		          <li <c:if test="${subMenu eq 'addBatch' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('business', 'addBatch', '/business/addBatch')"><i class="icon paperBatch"></i><span>任务批次</span></a></li>
		          <li <c:if test="${subMenu eq 'taskReport' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('business', 'taskReport', '/business/taskReport')"><i class="icon paperTasks"></i><span>任务报表</span></a></li>
		        </ul>
		    </div>
        </c:when>
        
        <c:when test="${headMenu eq 'tiku' }">
		    <div class="menu">
		        <ul>
		          <security:authorize ifAnyGranted="quesInputer">
		          <li <c:if test="${subMenu eq 'list' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('tiku', 'list', '/question/list')"><i class="ico-menu ico-paper"></i><span>查询试题</span></a></li>
		          <li <c:if test="${subMenu eq 'import' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('tiku', 'import', '/question/import')"><i class="ico-menu ico-paper"></i><span>导入试题</span></a></li>
		          </security:authorize>
		          <security:authorize ifAnyGranted="processManagement">
		          <li <c:if test="${subMenu eq 'report' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('tiku', 'report', '/question/report')"><i class="ico-menu ico-paper"></i><span>题库报表</span></a></li>
		          </security:authorize>
		          <security:authorize ifAnyGranted="quesAuditor">
		          <li <c:if test="${subMenu eq 'audit' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('tiku', 'audit', '/question/audit')"><i class="ico-menu ico-knowledge"></i><span>待审试题</span></a></li>
		          </security:authorize>
		        </ul>
		    </div>
        </c:when>
        <c:when test="${headMenu eq 'zujuan' }">
		    <div class="menu">
		        <ul>
		          <security:authorize ifAnyGranted="PAPER_TEACHER" >
		          <li <c:if test="${subMenu eq 'auto' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('zujuan', 'auto', '/zujuan/auto')"><i class="ico-menu ico-question"></i><span>智能组卷</span></a></li>
		          <!--  <li <c:if test="${subMenu eq 'manual' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('zujuan', 'manual', '/zujuan/manual')"><i class="ico-menu ico-paper"></i><span>手工组卷</span></a></li>-->
		          <li <c:if test="${subMenu eq 'list' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('zujuan', 'list', '/zujuan/list')"><i class="ico-menu ico-knowledge"></i><span>查询试卷</span></a></li>
		          </security:authorize>
		          <security:authorize ifAnyGranted="SECRETARY" >
		          <li <c:if test="${subMenu eq 'audit' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('zujuan', 'audit', '/zujuan/audit')"><i class="ico-menu ico-knowledge"></i><span>审核试卷</span></a></li>
		         </security:authorize>
		        </ul>
		    </div>
        </c:when>
        <c:when test="${headMenu eq 'paperSkeleton' }">
		    <div class="menu">
		        <ul>
		         <security:authorize ifAnyGranted="PAPER_TEACHER" >
		          <li <c:if test="${subMenu eq 'add' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('paperSkeleton', 'add', '/paperSkeleton/add')"><i class="ico-menu ico-question"></i><span>新建细目表</span></a></li>
		          <li <c:if test="${subMenu eq 'list' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('paperSkeleton', 'list', '/paperSkeleton/list')"><i class="ico-menu ico-paper"></i><span>查询细目表</span></a></li>
		         </security:authorize>
		         <security:authorize ifAnyGranted="SECRETARY" >
		          <li <c:if test="${subMenu eq 'audit' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('paperSkeleton', 'audit', '/paperSkeleton/audit')"><i class="ico-menu ico-knowledge"></i><span>审核细目表</span></a></li>
		         </security:authorize>
		        </ul>
		    </div>
        </c:when>
        <c:when test="${headMenu eq 'baseData' }">
		    <div class="menu">
		        <ul>
		          <li <c:if test="${subMenu eq 'course' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('baseData', 'course', '/course/list')"><i class="ico-menu ico-paper"></i><span>课程管理</span></a></li>
		          <li <c:if test="${subMenu eq 'book' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('baseData', 'book', '/book/list')"><i class="ico-menu ico-paper"></i><span>教材管理</span></a></li>
		          <li <c:if test="${subMenu eq 'questionType' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('baseData', 'questionType', '/questionType/list')"><i class="ico-menu ico-paper"></i><span>题型管理</span></a></li>
		        </ul>
		    </div>
        </c:when>
        <c:when test="${headMenu eq 'examPaper' }">
		    <div class="menu">
		        <ul>
		          <li <c:if test="${subMenu eq 'list' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('examPaper', 'list', '/examPaper/list')"><i class="ico-menu ico-paper"></i><span>试卷检索</span></a></li>
		          <li <c:if test="${subMenu eq 'batch' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('examPaper', 'batch', '/examPaper/batch')"><i class="ico-menu ico-paper"></i><span>批次管理</span></a></li>
		        </ul>
		    </div>
        </c:when>
        <c:when test="${headMenu eq 'learnCenter' }">
		    <div class="menu">
		        <ul>
		          <li <c:if test="${subMenu eq 'gzzd' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('learnCenter', 'gzzd', '/learnCenter/view/gzzd')"><i class="ico-menu ico-paper"></i><span>工作制度</span></a></li>
		          <li <c:if test="${subMenu eq 'rwsm' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('learnCenter', 'rwsm', '/learnCenter/view/rwsm')"><i class="ico-menu ico-paper"></i><span>任务说明</span></a></li>
		          <li <c:if test="${subMenu eq 'ywjs' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('learnCenter', 'ywjs', '/learnCenter/view/ywjs')"><i class="ico-menu ico-paper"></i><span>业务介绍</span></a></li>
		          <li <c:if test="${subMenu eq 'jcdg' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('learnCenter', 'jcdg', '/learnCenter/list/jcdg')"><i class="ico-menu ico-paper"></i><span>教材大纲</span></a></li>
		          <li <c:if test="${subMenu eq 'sczx' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('learnCenter', 'sczx', '/learnCenter/list/sczx')"><i class="ico-menu ico-paper"></i><span>素材中心</span></a></li>
		        </ul>
		    </div>
        </c:when>
        
        <c:when test="${headMenu eq 'userManagement' }">
		    <div class="menu">
		        <ul>
		          <li <c:if test="${subMenu eq 'teacher' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('userManagement', 'teacher', '/teacher/list')"><i class="ico-menu ico-paper"></i><span>命题教师</span></a></li>
		          <li <c:if test="${subMenu eq 'secretary' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('userManagement', 'secretary', '/user/secretaryList')"><i class="ico-menu ico-paper"></i><span>学科秘书</span></a></li>
		          <li <c:if test="${subMenu eq 'inputer' }">class='active'</c:if>><a href="javascript:void(0)" onclick="changMenu('userManagement', 'inputer', '/user/inputerList')"><i class="ico-menu ico-paper"></i><span>录入员</span></a></li>
		        </ul>
		    </div>
        </c:when>
    </c:choose>