<%-- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is the Venice Web Communities System. The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --%> <%@ page import = "java.util.*" %> <%@ page import = "com.silverwrist.util.StringUtil" %> <%@ page import = "com.silverwrist.venice.core.*" %> <%@ page import = "com.silverwrist.venice.ui.view.AdminFindUserView" %> <%@ taglib uri="/tlds/util" prefix="util" %> <% AdminFindUserView data = AdminFindUserView.get(request); %> Admin Find Users Menu Return to System Administration Menu

<%-- Display the search form --%> User Search Form

Find Users:
Display all users whose  
  

<% List results = data.getResults(); %> <% if (results!=null) { %> Display Search Results <% // Determine the number of results to display and whether to display a "next" button int dcount = results.size(); boolean go_next = false; if (dcount>data.getMaxResults()) { // there's a "next" dcount = data.getMaxResults(); go_next = true; } // end if %>
<%-- The initial search results --%> Search Results <% if (data.getFindCount()>0) { %> (Displaying <%= data.getOffset() + 1 %>-<%= data.getOffset() + dcount %> of <%= data.getFindCount() %>) <% } else { %>(None)<% } %> <% if (go_next || (data.getOffset()>0)) { %> <%-- The navigational form that allows us to page through the results --%> Navigational Form
<% if (data.getOffset()>0) { %> <% } else { %> <% } // end if %>    <% if (go_next) { %> <% } else { %> <% } // end if %>
<% } else { %> <% } %>

<%-- Display the results of the search --%> <% for (int i=0; i <% } // end for %>
<% UserFound uf = (UserFound)(results.get(i)); String fullname = uf.getGivenName() + " " + uf.getFamilyName(); fullname = fullname.trim(); if (StringUtil.isStringEmpty(fullname)) fullname = uf.getName(); String whence = ""; if (!(StringUtil.isStringEmpty(uf.getLocality()))) { // combine locations if (!(StringUtil.isStringEmpty(uf.getRegion()))) whence = uf.getLocality() + ", " + uf.getRegion(); else whence = uf.getLocality(); } // end if else if (!(StringUtil.isStringEmpty(uf.getRegion()))) whence = uf.getRegion(); %> user/<%= uf.getName() %> <%= uf.getName() %>
<%= fullname %>, from <%= whence %> <% if (!(uf.getCountry().equals("XX"))) { %><%= uf.getCountry() %><% } %> <% if (!StringUtil.isStringEmpty(uf.getDescription())) { %>
<%= uf.getDescription() %> <% } // end if %>
sysadmin/modify_user.js.vs?uid=<%= uf.getUID() %> [Modify User]

<% } // end if (results found) %> <%-- EOF --%>