⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usersearch.jsp

📁 java开发的一套非常好用的oa系统
💻 JSP
字号:
<%
/**
 *	$RCSfile: userSearch.jsp,v $
 *	$Revision: 1.1.1.1 $
 *	$Date: 2002/09/09 13:50:31 $
 */
%>

<%@ page import="java.util.*,
                 com.jivesoftware.forum.*,
				 com.jivesoftware.forum.util.*" %>
 
<%@	include file="include/global.jsp" %>

<%	// get parameters
    boolean lookup = ParamUtils.getBooleanParameter(request,"lookup");
    String username = ParamUtils.getParameter(request,"username");
    
    // get a user manager so we can lookup the user
	UserManager userManager = forumFactory.getUserManager();
    
    // The user requested
    User user = null;
    boolean error = false;
    try {
        user = userManager.getUser(username);
    }
    catch (Exception e) {
        error = true;
    }
    
    // Remove the user in the session (if we come to this page, the sidebar
    // shouldn't show the specific user options).
    session.removeAttribute("admin.sidebar.users.currentUser");
%>

<%  // special onload command to load the sidebar
    onload = " onload=\"parent.frames['sidebar'].location.href='sidebar.jsp?sidebar=users';\"";
%>
<%@ include file="include/header.jsp" %>

<p>

<%  // Title of this page and breadcrumbs
    String title = "User Search";
    String[][] breadcrumbs = {
        {"Main", "main.jsp"},
        {"User Summary", "users.jsp"},
        {title, "userSearch.jsp?username="+username}
    };
%>
<%@ include file="include/title.jsp" %>

<font size="-1">
<%  if (error) { %>
    Error: Unable to find user. Please go back to the last page and try again.
<%  } else { %>
    Below is a summary of user info.
<%  } %>
</font>
<p>

<%  if (user != null) { %>

<table bgcolor="<%= tableBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
<table bgcolor="<%= tableBorderColor %>" cellpadding="3" cellspacing="1" border="0" width="100%">
<tr bgcolor="#eeeeee">
    <td align="center" nowrap><font size="-2" face="verdana"><b>USER ID</b></font></td>
    <td align="center" nowrap><font size="-2" face="verdana"><b>USERNAME</b></font></td>
    <td align="center" nowrap><font size="-2" face="verdana"><b>NAME</b></font></td>
    <td align="center" nowrap><font size="-2" face="verdana"><b>EMAIL</b></font></td>
    <td align="center" nowrap><font size="-2" face="verdana"><b>EDIT</b></font></td>
    <td align="center" nowrap><font size="-2" face="verdana"><b>DELETE</b></font></td>
</tr>
<%
    String name = user.getName();
    String email = user.getEmail();
%>
<tr bgcolor="#ffffff">
    <td align="center" width="2%"><font size="-1"><%= user.getID() %></font></td>
    <td width="30%"><font size="-1"><a href="editUser.jsp?user=<%= user.getID() %>"><%= user.getUsername() %></a></font></td>
    <td width="30%"><font size="-1"><%= (name!=null)?name:"" %></font></td>
    <td width="30%"><font size="-1"><%= (email!=null)?email:"" %></font></td>
    <td align="center" width="4%"
        ><a href="editUser.jsp?user=<%= user.getID() %>"
        ><img src="images/button_edit.gif" width="17" height="17" alt="Edit User Properties..." border="0"
        ></a
        ></td>
    <td align="center" width="4%"
        ><a href="removeUser.jsp?user=<%= user.getID() %>"
        ><img src="images/button_delete.gif" width="17" height="17" alt="Delete User..." border="0"
        ></a
        ></td>
</tr>
</table>
</td></tr>
</table>

<%  } %>

<p>

</body>
</html>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -