<%@ page language="java" import="java.util.*,com.gaowj.business.SystemOpeBusiness,com.gaowj.business.comp.BusinessManager" pageEncoding="utf-8"%>
<%@ include file="header.jsp"%>
  <style type="text/css">
<!--

/*- Menu Tabs 10--------------------------- */

    #tabs10 {
      float:left;
      width:100%;
      font-size:93%;
      border-bottom:0px solid #2763A5;
      /* border-bottom:1px solid #2763A5; 菜单下显示横线*/
      line-height:normal;
      }
    #tabs10 ul {
          margin:0;
          padding:10px 10px 0 50px;
          list-style:none;
      }
    #tabs10 li {
      display:inline;
      margin:0;
      padding:0;
      }
    #tabs10 a {
      float:right;
      background:url("../../../image/image/oa_menu.gif") no-repeat left top;
      margin:0;
      padding:0 0 0 4px;
      text-decoration:none;
      }
    #tabs10 a span {
      float:right;
      display:block;
      background:url("../../../image/image/oa_menu1.gif") no-repeat left top;
      padding:5px 15px 4px 6px;
      color:#FFF;
      }
    /* Commented Backslash Hack hides rule from IE5-Mac \*/
    #tabs10 a span {float:none;}
    /* End IE5-Mac hack */
    #tabs9 a:hover span {
      color:#FFF;
      }
    #tabs10 a:hover {
      background-position:0% -42px;
      }
    #tabs10 a:hover span {
      background-position:100% -42px;
      }

      #tabs10 #current a {
              background-position:0% -42px;
      }
      #tabs10 #current a span {
              background-position:100% -42px;
      }
-->
</style>
                 <div id="tabs10">
                        <ul id="navPyra">
<!-- CSS Tabs -->
<li><a href=""  title="<fmt:message key="common.quit.title" bundle="${p1}"/>" onclick="return quit('<fmt:message key="common.quit.click" bundle="${p1}"/>?');"><span><fmt:message key="common.quit" bundle="${p1}"/></span></a></li>
<%
          
          String actionClass="2009001";//后台设置
          String tureAction="";
          String current = "";
          Map<String,Object> u1 = (Map<String, Object>) request.getSession().getAttribute("userInfo");
          String qx=(String)u1.get("QUANXIAN");
          if(qx!=null && qx.trim().length()>0){
          SystemOpeBusiness systemOpeBusiness = BusinessManager.getBusiness(SystemOpeBusiness.class);
          List<Map<String,Object>> list=systemOpeBusiness.getTopMenu(qx);
          for(Map<String,Object> mt:list){ 
              if(mt.get("MT_ID")!=null && mt.get("MT_ID").toString().trim().equals(actionClass)){
                 tureAction="class='active'";
                 current=(String)mt.get("MT_ID");
              }else{
                 tureAction="";
              } 
%>
<li><a id="<%=(String)mt.get("MT_ID") %>" href="../frameDojo/menu.jsp?menu1=<%=(String)mt.get("MT_ID") %>"  onclick="javascript:setChoice('<%=(String)mt.get("MT_ID") %>');" <%=tureAction %> title="<%=(String)mt.get("MT_TITLE") %>"><span class="font_1"><%=(String)mt.get("MT_NAME") %></span></a></li>
<%
}
%>
                        </ul>
                </div>
        <script type="text/javascript">
           var cu;
           cu = <%=current %>;
           function setChoice(ne){
             var ls_cu=document.getElementById(ne);
             var ls_pr=document.getElementById(cu);
             ls_cu.className='active';
             document.getElementById("ls_state1").innerHTML=ls_cu.innerHTML;
             document.getElementById("ls_state2").innerHTML="";
             ls_pr.className='';
             cu = ne;
             setFuyuanMenu();
             document.getElementById("g_password").style.display=''
         }
         
         function quit(message){
           if(window.confirm(message)){
              var WebContextPath = '<%=request.getContextPath() %>';
              window.top.location = WebContextPath + "/logout";
              //window.top.location = WebContextPath + "/logoutcas.jsp";
             return true;
           }else{
             return false;
         }
          
         }
        </script>
<%}  %>