<%@ page import="org.crosswire.xml.XMLRepo" %> <%@ page import="org.crosswire.community.data.User" %> <%@ page import="org.crosswire.community.data.Project" %> <% { User user = (User)session.getAttribute("user"); if (user == null || !"scribe".equals(user.getID())) return; String pid=request.getParameter("pid"); XMLRepo repo = XMLRepo.instance(pageContext); Project p = null; if (pid != null) { p = (Project)repo.get(new Project(pid)); } if (p == null) p = new Project(); String mp="projedit"; String mi="projedit_"+pid; %>
<% if (pid != null) { %> <% } %>
Project:
 
Project ID: <% if (pid == null) { %> " size="20"/> <% } else { %> <%=p.getID()%> <% } %>
Name:" size="20"/>
Admin EMail:" size="20"/>
<% } %>