📄 updateuser.jsp
字号:
<%@ page contentType="text/html;charset=gbk" pageEncoding="gbk"%>
<%@ page import="com.liubin.model.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.liubin.service.user.UserService" %>
<%
String path=request.getContextPath();
User user=(User)request.getAttribute("user");
%>
<jsp:useBean id="us" class="com.liubin.service.user.UserService" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>企业竞争情报检索系统</title>
<link href="<%=path %>/styles/public.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="home_frame_head">
<tr>
<td><table height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="<%=path %>/images/spaces.gif" width="30" height="1" /></td>
<td valign="bottom"><span class="title_cn">企业竞争情报检索系统</span><br><span class="title_en">Enterprise Competitive Intelligence System</span></td>
</tr>
</table></td>
</tr>
<table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="220" height="80" valign="top" class="home_frame_left">
<img src="<%=path %>/images/spaces.gif" width="1" height="12" />
<table border="0" align="center" cellpadding="0" cellspacing="0" class="list_frame_title">
<tr>
<td class="word_color2 word_size14 word_bottom"><strong>后台管理</strong></td>
</tr>
</table>
<table width="170" border="0" align="center" cellpadding="1" cellspacing="1" class="list_frame">
<tr>
<th><img src="<%=path %>/images/images_04.gif" width="4" height="7" hspace="5" vspace="1" border="0" />用户管理</th>
</tr>
<tr>
<td><table width="90%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><img src="<%=path %>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/user/addUser.jsp">添加用户</a></td>
</tr>
<tr>
<td><img src="<%=path %>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/listUserServlet">管理用户</a></td>
</tr>
</table></td>
</tr>
<tr>
<th><img src="<%=path %>/images/images_04.gif" width="4" height="7" hspace="5" vspace="1" border="0" />权限管理</th>
</tr>
<tr>
<td><table width="90%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><img src="<%=path %>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/purview/roleList.jsp">权限管理</a></td>
</tr>
</table></td>
</tr>
<tr>
<th><img src="<%=path %>/images/images_04.gif" width="4" height="7" hspace="5" vspace="1" border="0" />文章管理</th>
</tr>
<tr>
<td><table width="90%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><img src="<%=path %>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/article/addArticle.jsp">添加文章</td>
</tr>
<tr>
<td><img src="<%=path %>/images/images_11.gif" width="3" height="3" hspace="5" vspace="3" border="0" /><a href="<%=path%>/articleSplitServlet">管理文章</td>
</tr>
</table></td>
</tr>
</table></td>
<td height="80" valign="top" class="home_frame_right">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="41" align="right"><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td><img src="<%=path %>/images/images_12.gif" width="13" height="13" hspace="0" vspace="0" border="0" /></td>
<td valign="bottom" class="word_color3">帮助</td>
<td><img src="<%=path %>/images/spaces.gif" width="13" height="13" hspace="0" vspace="0" border="0" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="20" class="word_color2">目录:/ 后台管理 / 用户管理 / 添加用户</td>
</tr>
</table>
<table width="80%" border="1" cellspacing="0" cellpadding="3" bordercolor="gray">
<TBODY>
<TR>
<form action="<%=path%>/updateUserServlet" method="post" name="all">
<input type="hidden" name="id" value="<%=user.getId()%>" />
<input type="hidden" name="pagenum" value="<%=(String)request.getAttribute("pagenum")%>" />
<TD></TD>
<TD>CIS系统 添加用户 </TD>
<TD></TD></TR>
<TR>
<TD>用户名 </TD>
<TD><INPUT name="name" value="<%=user.getName() %>" readonly="true"><span id="feedback_info1" style="color: #FF0000"></span> </TD>
<TD>* </TD></TR>
<TR>
<TD>密 码 </TD>
<TD><INPUT type=password name="password" onblur="send_request(2)" value="<%=user.getPassword() %>" > <span id="feedback_info2" style="color: #FF0000"></span></TD>
<TD>* </TD></TR>
<TR>
<TD>确认密码 </TD>
<TD><INPUT type=password name="password2" onblur="send_request(3)" value="<%=user.getPassword() %>" ><span id="feedback_info3" style="color: #FF0000"></span> </TD>
<TD>* </TD></TR>
<TR>
<TD>部 门 </TD>
<%
List list=us.getAllDepartment();
Department dpe=null;
%>
<TD>
<SELECT name="department_id">
<%
for(int i=0;i<list.size();i++){
dpe=(Department)list.get(i);
%>
<OPTION value="<%=dpe.getDepartment_id()%>" <%if (user.getDepartment_id()==dpe.getDepartment_id()) %> <%="selected"%> ><%=dpe.getDepartment_name() %></OPTION>
<%} %>
</SELECT> </TD>
<td> </TD></TR>
<TR>
<TD>性 别 </TD>
<TD><INPUT type="radio" <% if (user.getSex().equals("f"))%><%="checked"%> value="f" name="sex"> 女 <INPUT type="radio"
value="m" name="sex" <% if (user.getSex().equals("m"))%><%="checked"%> > 男 </TD>
<TD></TD></TR>
<TR>
<TD>住 址 </TD>
<TD><INPUT name="address" value="<%=user.getAddress()%>"> </TD>
<TD>* </TD></TR>
<TR>
<TD>电 话 </TD>
<TD><INPUT name="telephone" value="<%=user.getTelephone() %>"> </TD>
<TD>* </TD></TR>
<TR>
<TD>email </TD>
<TD><INPUT name="email" value="<%=user.getEmail()%>"></TD>
<TD></TD></TR>
<TR>
<TD></TD>
<TD></TD>
<TD></TD></TR><!-- 身 份,r普通用户-->
<TR>
<TD>级 别</TD>
<%
List<Level>list1=us.getAllLevel();
Level level=null;
%>
<TD>
<SELECT name="level_id">
<%
for(int i=0;i<list1.size();i++){
level=(Level)list1.get(i);
%>
<OPTION value="<%=level.getLevel_id()%>" <% if (user.getLevel_id()==level.getLevel_id())%><%="selected"%> ><%=level.getLevel_name()%></OPTION>
<%} %>
</SELECT> </TD>
<TD></TD></TR>
<TR>
<TD>角 色 </TD>
<%
List<Role>list2=us.getAllRole();
Role role=null;
System.out.println(list2.size()+"---------sdf");
%>
<TD>
<SELECT name="role_id">
<%
for(int i=0;i<list2.size();i++){
role=(Role)list2.get(i);
%>
<OPTION value="<%=role.getRole_id()%>" <%if (user.getRole_id()==role.getRole_id()) %><%="selected"%> ><%=role.getRole_name() %></OPTION>
<%} %>
</SELECT> </TD>
<TD></TD></TR>
<TR>
<TD></TD>
<TD><INPUT type=submit value=修改></TD>
<TD></TD></TR></TBODY>
<font size=2 color=red>
<% if(request.getAttribute("message")!=null) %><%=(String)request.getAttribute("message")%>
</font>
</table></td>
</tr>
</table>
<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" class="word_copyright2" align="right">北京科瑞尔思科技有限公司 版权所有<img src="images/spaces.gif" width="30" height="1" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -