<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%String idMemberHeader = request.getParameter("id_member"); %>
<div id="navbar-dropdown" style="position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;">
                            <nav class="navbar navbar-default">
                              <div class="container-fluid">
                                <!-- Brand and toggle get grouped for better mobile display -->
                                <div class="navbar-header">
                                  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                                    <span class="sr-only"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                    <span class="icon-bar"></span>
                                  </button>
                                  <%
                                        if (session.getAttribute("idMember") != null)
                                        { %>
                                  <a class="navbar-brand" href="http://10.70.135.145:8080/RetroV/controller/join/logout_member_controller.jsp">RetroV</a>
                                  <%	} %>
                                  <%
                                        if (session.getAttribute("idAdmin") != null)
                                        { %>
                                  <a class="navbar-brand" href="http://10.70.135.145:8080/RetroV/controller/create/logout_moderator_controller.jsp">RetroV</a>
                                  <%	} %>
                                  
                                  <%
                                        if (session.getAttribute("idAdmin") == null && session.getAttribute("idMember") == null)
                                        { %>
                                  <a class="navbar-brand" href="http://10.70.135.145:8080/RetroV/">RetroV</a>
                                  <%	} %>
                                </div>

                                <!-- Collect the nav links, forms, and other content for toggling -->
                                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                                  <ul class="nav navbar-nav pull-right">
<!--                                       default dropdown -->
                                    <li class="dropdown">
                                      <button href="#" class="dropdown-toggle btn" data-toggle="dropdown">Member <b class="caret"></b></button>
<!--                                  You can add classes for different colours on the next element -->
                                      <ul class="dropdown-menu dropdown-menu-right">
                                        <li class="dropdown-header">Member...</li>
                                        <%
                                        if (session.getAttribute("idMember") != null)
                                        { %>
                                        <li><a href="http://10.70.135.145:8080/RetroV/join/profile.jsp?id_member=<%=idMemberHeader%>">Profile</a></li>
                                        <li class="divider"></li>
                                        <li><a href="../join/access-page.jsp?id_member=<%=idMemberHeader%>">Historical</a></li>
                                        <li><a href="../controller/join/go_last_retro_by_id.jsp?id_member=<%=idMemberHeader%>">Last retro</a></li>  
                                        <li class="divider"></li>
                                        <li><a href="../controller/join/logout_member_controller.jsp">Logout</a></li>                                                                          
                                        <%	
                                        }
                                        if (session.getAttribute("idMember") == null)
                                        { %>
                                            <li><a href="http://10.70.135.145:8080/RetroV">Login</a></li>                                                                          
                                        <%}
                                        %>
                                      </ul>
                                    </li>
<!--                                       primary dropdown -->
                                    <li class="dropdown">
                                      <button href="#" class="dropdown-toggle btn btn-primary" data-toggle="dropdown">Admin <b class="caret"></b></button>
<!--                                  You can add classes for different colours on the next element -->
                                      <ul class="dropdown-menu dropdown-primary dropdown-menu-right">
                                        <li class="dropdown-header">Admin...</li>
                                        <%
                                        if (session.getAttribute("idAdmin") != null)
                                        { %>
                                        <li><a href="http://10.70.135.145:8080/RetroV/create/add-retro.jsp?id_moderator=<%=session.getAttribute("idAdmin")%>">Create Retro</a></li>
                                        <li class="divider"></li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/create/list-meeting-admin.jsp">Validate</a></li>
                                        <li class="divider"></li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/create/list-meeting-admin.jsp">Historical</a></li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/pages/erreur.html">See all members</a></li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/pages/erreur.html">See all ideas</a></li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/controller/create/logout_moderator_controller.jsp">Logout</a></li>                                                                       
                                        <%	
                                        }
                                        if (session.getAttribute("idAdmin") == null)
                                        { %>
                                            <li><a href="http://10.70.135.145:8080/RetroV">Login</a></li>                                                                          
                                        <%}
                                        %>
                                      </ul>
                                    </li>
<!--                                       info dropdown -->
                                    <li class="dropdown">
                                      <button href="#" class="dropdown-toggle btn btn-info" data-toggle="dropdown">About <b class="caret"></b></button>
<!--                                  You can add classes for different colours on the next element -->
                                      <ul class="dropdown-menu dropdown-info dropdown-menu-right">
                                        <li class="dropdown-header">Infos about...</li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/pages/erreur.html">Retro Tool</a></li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/pages/erreur.html">4L's Method</a></li>
                                        <li class="divider"></li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/pages/erreur.html">How join a retro ?</a></li>
                                        <li class="divider"></li>
                                        <li><a href="http://10.70.135.145:8080/RetroV/pages/erreur.html">How create a retro ?</a></li>
                                      </ul>
                                    </li>
                                 

                                  </ul>
                                </div><!-- /.navbar-collapse -->
                              </div><!-- /.container-fluid -->
                            </nav>

                        </div><!--  end navbar -->
</body>
</html>