<%@ page language="java" session="true" import="com.websina.util.*,com.websina.bean.Person,com.websina.util.log.Log" errorPage="error.jsp" %> <% String contextPath = request.getContextPath(); Person person = (Person)session.getAttribute("person"); int CUSTOM_FIELDS = com.websina.bean.Schema.CUSTOM_FIELDS; if(person == null) { String projectId = request.getParameter("projectId"); String issueId = request.getParameter("issueId"); String requestUri = request.getRequestURI(); StringBuffer buf = new StringBuffer("?msg="); String msg = java.net.URLEncoder.encode(MessageCode.get("servlet.cookie_setting_error")); buf.append(msg); buf.append("&requestUri=").append(requestUri.trim()); if (projectId != null && projectId.trim().length()>0) { buf.append("&projectId="+projectId.trim()); } if (issueId != null && issueId.trim().length()>0) { buf.append("&issueId="+issueId.trim()); } response.sendRedirect("login.jsp"+buf.toString()); return; } if(person.isAdmin()) { response.sendRedirect("error.jsp?" +java.net.URLEncoder.encode(MessageCode.get("servlet.not_user"))); return; } else { String projectId = request.getParameter("projectId"); if (projectId != null && projectId.trim().length()>0) { person.switchProject(projectId); } } Label label = Label.getInstance(); %>
">   <%=person.getDisplay()%>  / <%=person.getAccessCode()%> <% if (!com.websina.bean.Group.isGuest(person.getGroup())) { %> <%=label.get("prefs_button")%> | <% } %> <%=label.get("help_button")%> | <%=label.get("logoff_button")%>  
 
   <%=label.get("home_button")%> | <% if (person.isAllowed("create")) { %> <%=label.get("create_button")%> | <% } if (person.isAllowed("query")) { %> <%=label.get("query_button")%> | <% } if (person.isAllowed("report")) { %> <%=label.get("report_button")%> | <% } %> <%=label.get("open_button")%> <%=label.get("project_label")%>