Преглед на файлове

上传文件至 'WebRoot/user'

1801010606 преди 6 години
родител
ревизия
17374dd9bc
променени са 5 файла, в които са добавени 781 реда и са изтрити 0 реда
  1. 181 0
      WebRoot/user/NewFile.jsp
  2. 59 0
      WebRoot/user/error.jsp
  3. 215 0
      WebRoot/user/list.jsp
  4. 221 0
      WebRoot/user/select.jsp
  5. 105 0
      WebRoot/user/view.jsp

+ 181 - 0
WebRoot/user/NewFile.jsp

@@ -0,0 +1,181 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+	<HEAD>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<LINK href="${pageContext.request.contextPath}/css/Style.css" type="text/css" rel="stylesheet">
+		<script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
+		<script language="javascript" src="${pageContext.request.contextPath}/js/check.js"></script>
+		<!-- 日期插件,使用jquery -->
+		<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery-1.4.2.js"></script>
+		<link rel="stylesheet" href="${pageContext.request.contextPath}/jquery/jquery.datepick.css" type="text/css">
+		<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery.datepick.js"></script>
+		<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery.datepick-zh-CN.js"></script>
+	</HEAD>
+	<script type="text/javascript">
+		$(document).ready(function(){
+			//使用class属性处理  'yy-mm-dd' 设置格式"yyyy/mm/dd"
+			$('#birthday').datepick({dateFormat: 'yy-mm-dd'}); 
+		});
+		
+		$(function() {
+			//获取所有option
+			//$("#education option[value='${person.education}']").attr("selected","selected");
+			var values = '${person.education}';
+			alert(values);
+		var numbers = $("#education").find("option"); //获取select下拉框的所有值
+for (var j = 1; j < numbers.length; j++) {
+if ($(numbers[j]).val() == values) {
+	alert($(numbers[j]).val());
+$(numbers[j]).attr("selected", "selected");
+}
+}
+		})
+	</script>
+	<body>
+		<form id="userAction_save_do" name="Form1" action="${pageContext.request.contextPath}/user/list.jsp" method="post" enctype="multipart/form-data">
+			&nbsp;
+			<table cellSpacing="1" cellPadding="5" width="100%" align="center" bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0">
+				<input type="hidden" name="pid" value="${person.pid }" id="pid"/>
+				<input type="hidden" name="resume" value="${person.resume }" id="path"/>
+				<tr>
+					<td class="ta_01" align="center" bgColor="#afd1f3" colSpan="4"
+						height="26">
+						<strong><STRONG>编辑人员信息</STRONG>
+						</strong>
+					</td>
+				</tr>
+
+				<tr>
+					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
+						登录名:
+					</td>
+					<td class="ta_01" bgColor="#ffffff" colspan="3">
+						<input type="text" name="logonName" value="${person.username }" id="userAction_save_do_logonName" class="bg"/>
+					</td>
+				</tr>
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						 密码:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						<input type="password" name="logonPwd" value="${person.password }" id="logonPwd"/>
+					</td>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						用户姓名:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						<input type="text" name="userName" value="${person.realname }" id="userAction_save_do_userName" class="bg"/>
+					</td>
+				</tr>
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						性别:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+					
+<input type="radio" name="sex" id="sex男" value="男" <c:if test="${person.gender =='男' }">checked</c:if>/><label for="sex男">男</label>
+<input type="radio" name="sex" id="sex女" value="女" <c:if test="${person.gender =='女' }">checked</c:if>/><label for="sex女">女</label>
+
+					</td>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						学历:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						
+						
+						<select name="education" id="education">
+						    <option value=""
+						    >--选择学历--</option>
+						    <option value="博士">博士</option>
+						    <option value="硕士">硕士</option>
+						    <option value="研究生">研究生</option>
+						    <option value="本科">本科</option>
+						    <option value="专科">专科</option>
+						    <option value="高中">高中</option>
+						
+						
+						</select>
+
+					</td>
+				</tr>
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						出生日期:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						<input type="text" name="birthday" size="20" value="${person.birthday }" readonly="readonly" id="birthday"/>
+					</td>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						电话:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						<input type="text" name="telephone" value="${person.phone }" id="telephone"/>
+					</td>
+				</tr>
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						兴趣爱好:
+					</td>
+					<td class="ta_01" bgColor="#ffffff" colSpan="3">
+						 <input type="checkbox" name="interest" value="看电影" id="interest-1" checked="checked"/>
+						<label for="interest-1" class="checkboxLabel">看电影</label>
+						<input type="checkbox" name="interest" value="旅游" id="interest-2" checked="checked"/>
+						<label for="interest-2" class="checkboxLabel">旅游</label>
+						<input type="checkbox" name="interest" value="健身" id="interest-3"/>
+						<label for="interest-3" class="checkboxLabel">健身</label>
+						<input type="checkbox" name="interest" value="购物" id="interest-4"/>
+						<label for="interest-4" class="checkboxLabel">购物</label>
+						<input type="checkbox" name="interest" value="睡觉" id="interest-5"/>
+						<label for="interest-5" class="checkboxLabel">睡觉</label>
+						<input type="hidden" id="__multiselect_userAction_save_do_interest" name="__multiselect_interest" value="" /> 
+					</td>
+				</tr>
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						简历资料:
+					</td>
+					<td class="ta_01" bgColor="#ffffff" colSpan="3">
+						${person.resume }
+						<!-- <input type="file" name="upload" size="30" value="" id="userAction_save_do_upload"/> -->
+					</td>
+				</tr>
+				<TR>
+					<TD class="ta_01" align="center" bgColor="#f5fafe">
+						备注:
+					</TD>
+					<TD class="ta_01" bgColor="#ffffff" colSpan="3">
+						<textarea name="remark" cols="30" rows="3" id="userAction_save_do_remark" style="WIDTH: 96%">${person.rmark }</textarea>
+					</TD>
+				</TR>
+				<TR>
+					<td align="center" colSpan="4" class="sep1">
+						<img src="${pageContext.request.contextPath}/images/shim.gif">
+					</td>
+				</TR>
+				<tr>
+					<td class="ta_01" style="WIDTH: 100%" align="center"
+						bgColor="#f5fafe" colSpan="4">
+						<button type="submit" id="userAction_save_do_submit" name="submit" value="&#30830;&#23450;" class="button_ok">
+							&#30830;&#23450;
+						</button>
+
+						<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
+						<button type="reset" value="&#37325;&#32622;" class="button_cancel">&#37325;&#32622;</button>
+
+						<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
+						<INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回"/>
+						<span id="Label1"></span>
+					</td>
+				</tr>
+			</table>
+		</form>
+
+
+
+
+	</body>
+</HTML>

+ 59 - 0
WebRoot/user/error.jsp

@@ -0,0 +1,59 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<html>
+	<head>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<title></title>
+		<link href="${pageContext.request.contextPath}/css/Style.css" rel="stylesheet" type="text/css">
+		<style type="text/css">
+<!--
+.style1 {
+	color: #FF0000;
+	font-size: 18px;
+}
+-->
+</style>
+	</head>
+	<body>
+		<p>
+			&nbsp;
+		</p>
+		<table width="100%" border="0">
+			<tr>
+				<th width="18%" height="261" scope="col">
+					&nbsp;
+				</th>
+
+				<th width="53%" scope="col">
+					<table width="453" height="220" border="0" cellpadding="0"
+						cellspacing="0">
+
+						<tr>
+							<td height="220" align="center" valign="middle"
+								background="${pageContext.request.contextPath}/images/loginbg.gif">
+								<p class="style1">
+									<font color="red">上传附件错误</font>
+								</p>
+								<p>
+									
+								</p>
+							</td>
+						</tr>
+						<tr>
+							<td height="220" align="center" valign="middle">
+								<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
+								<INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回"/>
+							</td>
+						</tr>
+					</table>
+				</th>
+				<th width="29%" scope="col">
+					&nbsp;
+				</th>
+			</tr>
+		</table>
+		<p>
+			&nbsp;
+		</p>
+	</body>
+</html>

+ 215 - 0
WebRoot/user/list.jsp

@@ -0,0 +1,215 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<HTML>
+	<HEAD>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<link href="${pageContext.request.contextPath}/css/Style.css" rel="stylesheet" type="text/css" />
+		<script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
+		<script type="text/javascript">
+			function addUser(){
+				window.location.href = "${pageContext.request.contextPath}/user/add.jsp";
+			}
+			
+			function deletePerson(pid) {
+				var flag = window.confirm("是否删除?");
+				if(flag) {
+					location.href="${pageContext.request.contextPath}/person?method=delete&pid="+pid;
+				} 
+			}
+		</script>
+	</HEAD>
+	<body>
+		<br>
+		<form id="Form1" name="Form1" action="${pageContext.request.contextPath}/person?method=selectPerson&currentPage=1" method="post">
+			<table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
+				<TBODY>
+					<tr>
+						<td class="ta_01" align="center" bgColor="#afd1f3">
+							<strong>查 询 条 件</strong>
+						</td>
+					</tr>
+					<tr>
+						<td>
+							<table cellpadding="0" cellspacing="0" border="0" width="100%">
+								<tr>
+									<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
+										用户姓名
+									</td>
+									<td class="ta_01" bgColor="#ffffff">
+										<input type="text" name="realname" size="15" value="" id="Form1_userName" class="bg"/>
+									</td>
+									<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
+										性别:
+									</td>
+									<td class="ta_01" bgColor="#ffffff">
+										
+										<select name="gender" id="sex">
+										    <option value="">--选择性别--</option>
+										    <option value="男">男</option>
+										    <option value="女">女</option>
+										
+										
+										</select>
+
+									</td>
+								</tr>
+								<tr>
+									<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
+										学历:
+									</td>
+									<td class="ta_01" bgColor="#ffffff">
+										
+										<select name="education" id="education">
+										    <option value="">--选择学历--</option>
+										    <option value="博士">博士</option>
+										    <option value="硕士">硕士</option>
+										    <option value="研究生">研究生</option>
+										    <option value="本科">本科</option>
+										    <option value="专科">专科</option>
+										    <option value="高中">高中</option>
+										
+										
+										</select>
+
+									</td>
+									<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
+										是否上传简历
+									</td>
+									<td class="ta_01" bgColor="#ffffff">
+										
+										<select name="resume" id="isUpload">
+										    <option value="">--请选择--</option>
+										    <option value="1">有</option>
+										    <option value="2">无</option>
+										</select>
+
+									</td>
+								</tr>
+								<tr>
+									<td width="100" height="22" align="center" bgColor="#f5fafe"
+										class="ta_01">
+									</td>
+									<td class="ta_01" bgColor="#ffffff">
+										<font face="宋体" color="red"> &nbsp;</font>
+									</td>
+									<td align="right" bgColor="#ffffff" class="ta_01"><br><br></td>
+									<td align="right" bgColor="#ffffff" class="ta_01">
+										<button type="submit" id="search" name="search" value="&#26597;&#35810;" class="button_view">
+&#26597;&#35810;
+</button>
+
+										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+										<input type="reset" name="reset" value="&#37325;&#32622;" class="button_view"/>
+
+									</td>
+								</tr>
+							</table>
+						</td>
+
+					</tr>
+					<tr>
+						<td class="ta_01" align="center" bgColor="#afd1f3">
+							<strong>人员 列 表</strong>
+						</TD>
+					</tr>
+					<tr>
+						<td class="ta_01" align="right">
+							<button type="button" id="add" name="add" value="&#28155;&#21152;" class="button_add" onclick="addUser()">
+&#28155;&#21152;
+</button>
+						</td>
+					</tr>
+					<tr>
+						<td class="ta_01" align="center" bgColor="#f5fafe">
+							<table cellspacing="0" cellpadding="1" rules="all"
+								bordercolor="gray" border="1" id="DataGrid1"
+								style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
+								<tr
+									style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
+
+									<td align="center" width="18%">
+										登录名
+									</td>
+									<td align="center" width="17%">
+										用户姓名
+									</td>
+									<td align="center" width="8%">
+										性别
+									</td>
+									<td align="center" width="23%">
+										联系电话
+									</td>
+									<td width="11%" align="center">
+										学历
+									</td>
+									<td width="7%" align="center">
+										编辑
+									</td>
+									<td width="7%" align="center">
+										查看
+									</td>
+									<td width="7%" align="center">
+										删除
+									</td>
+								</tr>
+								<c:forEach items="${pageBean.list }" var="p">
+								<tr onmouseover="this.style.backgroundColor = 'white'"
+											onmouseout="this.style.backgroundColor = '#F5FAFE';">
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center"
+												width="18%">
+												${p.username }
+											</td>
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center"
+												width="17%">
+												${p.realname }
+											</td>
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center"
+												width="8%">
+												${p.gender }
+											</td>
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center"
+												width="23%">
+												${p.phone }
+											</td>
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center">
+												${p.education }
+											</td>
+											<td align="center" style="HEIGHT: 22px">
+												<a href="${pageContext.request.contextPath}/person?method=toUpdatePage&pid=${p.pid }">
+													<img src="${pageContext.request.contextPath}/images/i_edit.gif" border="0" style="CURSOR: hand">
+												</a>
+											</td>
+											<td align="center" style="HEIGHT: 22px">
+												<a href="${pageContext.request.contextPath}/person?method=viewPerson&pid=${p.pid}">
+													<img src="${pageContext.request.contextPath}/images/button_view.gif" border="0" style="CURSOR: hand">
+												</a>
+											</td>
+											<td align="center" style="HEIGHT: 22px">
+												<a href="#" onclick="deletePerson('${p.pid}');">
+													<img src="${pageContext.request.contextPath}/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
+												</a>
+											</td>
+										</tr>
+								</c:forEach>
+							</table>
+<span>
+	当前 ${pageBean.currentPage} 页/ ${pageBean.totalPage}页,共 ${pageBean.totalCount}记录
+	&nbsp;
+	<a href="${pageContext.request.contextPath}/person?method=list&currentPage=1">首页</a>
+	<c:if test="${pageBean.currentPage!=1 }">
+		<a href="${pageContext.request.contextPath}/person?method=list&currentPage=${pageBean.currentPage-1}">上一页</a>
+	</c:if>
+	<c:if test="${pageBean.currentPage!=pageBean.totalPage }">
+		<a href="${pageContext.request.contextPath}/person?method=list&currentPage=${pageBean.currentPage+1}">下一页</a>
+	</c:if>
+	<a href="${pageContext.request.contextPath}/person?method=list&currentPage=${pageBean.totalPage}">尾页</a>
+</span>
+						</td>
+					</tr>
+				</TBODY>
+			</table>
+		</form>
+	</body>
+</HTML>
+

+ 221 - 0
WebRoot/user/select.jsp

@@ -0,0 +1,221 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<HTML>
+	<HEAD>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<link href="${pageContext.request.contextPath}/css/Style.css" rel="stylesheet" type="text/css" />
+		<script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
+		<script type="text/javascript" src="${pageContext.request.contextPath}/jquery/jquery-1.4.2.js"></script>
+		<script type="text/javascript">
+			function addUser(){
+				window.location.href = "${pageContext.request.contextPath}/user/add.jsp";
+			}
+			
+			function deletePerson(pid) {
+				var flag = window.confirm("是否删除?");
+				if(flag) {
+					location.href="${pageContext.request.contextPath}/person?method=delete&pid="+pid;
+				} 
+			}
+			
+			$(function() {
+				//获取所有option
+				$("#education1 option[value='${pageBean.education}']").attr("selected","selected");
+			})
+			$(function() {
+				//获取所有option
+				$("#gender option[value='${pageBean.gender}']").attr("selected","selected");
+			})
+			$(function() {
+				//获取所有option
+				$("#resume option[value='${pageBean.resume}']").attr("selected","selected");
+			})
+			
+		</script>
+	</HEAD>
+	<body>
+		<br>
+		<form id="Form1" name="Form1" action="${pageContext.request.contextPath}/person?method=selectPerson&currentPage=1" method="post">
+			<table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
+				<TBODY>
+					<tr>
+						<td class="ta_01" align="center" bgColor="#afd1f3">
+							<strong>查 询 条 件</strong>
+						</td>
+					</tr>
+					<tr>
+						<td>
+							<table cellpadding="0" cellspacing="0" border="0" width="100%">
+								<tr>
+									<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
+										用户姓名
+									</td>
+									<td class="ta_01" bgColor="#ffffff">
+										<input type="text" name="realname" size="15" value="${pageBean.realname }" id="Form1_userName" class="bg"/>
+									</td>
+									<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
+										性别:
+									</td>
+									<td class="ta_01" bgColor="#ffffff">										
+										<select name="gender" id="gender">
+										    <option value="">--选择性别--</option>
+										    <option value="男">男</option>
+										    <option value="女">女</option>
+										</select>
+									</td>
+								</tr>
+								<tr>
+									<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
+										学历:
+									</td>
+									<td class="ta_01" bgColor="#ffffff">										
+										<select name="education" id="education1">
+										    <option value="">--选择学历--</option>
+										    <option value="博士">博士</option>
+										    <option value="硕士">硕士</option>
+										    <option value="研究生">研究生</option>
+										    <option value="本科">本科</option>
+										    <option value="专科">专科</option>
+										    <option value="高中">高中</option>	
+										</select>
+									</td>
+									<td height="22" align="center" bgColor="#f5fafe" class="ta_01">
+										是否上传简历
+									</td>
+									<td class="ta_01" bgColor="#ffffff">										
+										<select name="resume" id="resume">
+										    <option value="">--请选择--</option>
+										    <option value="1">有</option>
+										    <option value="2">无</option>
+										</select>
+									</td>
+								</tr>
+								<tr>
+									<td width="100" height="22" align="center" bgColor="#f5fafe"
+										class="ta_01">
+									</td>
+									<td class="ta_01" bgColor="#ffffff">
+										<font face="宋体" color="red"> &nbsp;</font>
+									</td>
+									<td align="right" bgColor="#ffffff" class="ta_01"><br><br></td>
+									<td align="right" bgColor="#ffffff" class="ta_01">
+										<button type="submit" id="search" name="search" value="&#26597;&#35810;" class="button_view">
+&#26597;&#35810;
+</button>
+
+										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+										<input type="reset" name="reset" value="&#37325;&#32622;" class="button_view"/>
+
+									</td>
+								</tr>
+							</table>
+						</td>
+
+					</tr>
+					<tr>
+						<td class="ta_01" align="center" bgColor="#afd1f3">
+							<strong>人员 列 表</strong>
+						</TD>
+					</tr>
+					<tr>
+						<td class="ta_01" align="right">
+							<button type="button" id="add" name="add" value="&#28155;&#21152;" class="button_add" onclick="addUser()">
+&#28155;&#21152;
+</button>
+						</td>
+					</tr>
+					<tr>
+						<td class="ta_01" align="center" bgColor="#f5fafe">
+							<table cellspacing="0" cellpadding="1" rules="all"
+								bordercolor="gray" border="1" id="DataGrid1"
+								style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
+								<tr
+									style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
+
+									<td align="center" width="18%">
+										登录名
+									</td>
+									<td align="center" width="17%">
+										用户姓名
+									</td>
+									<td align="center" width="8%">
+										性别
+									</td>
+									<td align="center" width="23%">
+										联系电话
+									</td>
+									<td width="11%" align="center">
+										学历
+									</td>
+									<td width="7%" align="center">
+										编辑
+									</td>
+									<td width="7%" align="center">
+										查看
+									</td>
+									<td width="7%" align="center">
+										删除
+									</td>
+								</tr>
+								
+								<c:forEach items="${pageBean.list }" var="p">
+								<tr onmouseover="this.style.backgroundColor = 'white'"
+											onmouseout="this.style.backgroundColor = '#F5FAFE';">
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center"
+												width="18%">
+												${p.username }
+											</td>
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center"
+												width="17%">
+												${p.realname }
+											</td>
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center"
+												width="8%">
+												${p.gender }
+											</td>
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center"
+												width="23%">
+												${p.phone }
+											</td>
+											<td style="CURSOR: hand; HEIGHT: 22px" align="center">
+												${p.education }
+											</td>
+											<td align="center" style="HEIGHT: 22px">
+												<a href="${pageContext.request.contextPath}/person?method=toUpdatePage&pid=${p.pid }">
+													<img src="${pageContext.request.contextPath}/images/i_edit.gif" border="0" style="CURSOR: hand">
+												</a>
+											</td>
+											<td align="center" style="HEIGHT: 22px">
+												<a href="${pageContext.request.contextPath}/person?method=viewPerson&pid=${p.pid}">
+													<img src="${pageContext.request.contextPath}/images/button_view.gif" border="0" style="CURSOR: hand">
+												</a>
+											</td>
+											<td align="center" style="HEIGHT: 22px">
+												<a href="#" onclick="deletePerson('${p.pid}');">
+													<img src="${pageContext.request.contextPath}/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
+												</a>
+											</td>
+										</tr>
+								</c:forEach>
+							</table>
+<span>
+	当前 ${pageBean.currentPage} 页/ ${pageBean.totalPage}页,共 ${pageBean.totalCount}记录
+	&nbsp;
+	<a href="${pageContext.request.contextPath}/person?method=selectPerson&currentPage=1&realname=${pageBean.realname}&education=${pageBean.education}&gender=${pageBean.gender}&resume=${pageBean.resume}">首页</a>
+	<c:if test="${pageBean.currentPage!=1 }">
+		<a href="${pageContext.request.contextPath}/person?method=selectPerson&currentPage=${pageBean.currentPage-1}&realname=${pageBean.realname}&education=${pageBean.education}&gender=${pageBean.gender}&resume=${pageBean.resume}">上一页</a>
+	</c:if>
+	<c:if test="${pageBean.currentPage!=pageBean.totalPage }">
+		<a href="${pageContext.request.contextPath}/person?method=selectPerson&currentPage=${pageBean.currentPage+1}&realname=${pageBean.realname}&education=${pageBean.education}&gender=${pageBean.gender}&resume=${pageBean.resume}">下一页</a>
+	</c:if>
+	<a href="${pageContext.request.contextPath}/person?method=selectPerson&currentPage=${pageBean.totalPage}&realname=${pageBean.realname}&education=${pageBean.education}&gender=${pageBean.gender}&resume=${pageBean.resume}">尾页</a>
+</span>
+						</td>
+					</tr>
+				</TBODY>
+			</table>
+		</form>
+	</body>
+</HTML>
+

+ 105 - 0
WebRoot/user/view.jsp

@@ -0,0 +1,105 @@
+<%@ page language="java" pageEncoding="UTF-8"%>
+<HTML>
+	<HEAD>
+		<meta http-equiv="Content-Language" content="zh-cn">
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<LINK href="${pageContext.request.contextPath}/css/Style.css" type="text/css" rel="stylesheet">
+		<script language="javascript" src="${pageContext.request.contextPath}/js/public.js"></script>
+	</HEAD>
+	<body>
+		<form id="userAction_save_do" name="Form1" action="${pageContext.request.contextPath}/user/userAction_save.do" method="post" enctype="multipart/form-data">
+			&nbsp;
+			<table cellSpacing="1" cellPadding="5" width="100%" align="center" bgColor="#eeeeee" style="border: 1px solid #8ba7e3" border="0">
+				<tr>
+					<td class="ta_01" align="center" bgColor="#afd1f3" colSpan="4"
+						height="26">
+						<strong><STRONG>查看用户</STRONG>
+						</strong>
+					</td>
+				</tr>
+
+				<tr>
+					<td width="18%" align="center" bgColor="#f5fafe" class="ta_01">
+						登录名:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						${p.username }
+					</td>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						用户姓名:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						${p.realname }
+					</td>
+				</tr>
+				
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						性别:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						${p.gender }
+					</td>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						学历:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						${p.education }
+					</td>
+				</tr>
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						出生日期:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						${p.birthday }
+					</td>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						电话:
+					</td>
+					<td class="ta_01" bgColor="#ffffff">
+						${p.phone }
+					</td>
+				</tr>
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						兴趣爱好:
+					</td>
+					<td class="ta_01" bgColor="#ffffff" colSpan="3">
+						 ${p.love }
+					</td>
+				</tr>
+				<tr>
+					<td align="center" bgColor="#f5fafe" class="ta_01">
+						简历资料:
+					</td>
+					<td class="ta_01" bgColor="#ffffff" colSpan="3">
+						<a href="#" onclick="openWindow('user/userAction_download.do?userID=17','700','400')" class="cl_01">
+						     ${p.resume }
+						</a>
+					</td>
+				</tr>
+				<TR>
+					<TD class="ta_01" align="center" bgColor="#f5fafe">
+						备注:
+					</TD>
+					<TD class="ta_01" bgColor="#ffffff" colSpan="3">
+						${p.rmark }
+					</TD>
+				</TR>
+				<TR>
+					<td align="center" colSpan="4" class="sep1">
+						<img src="${pageContext.request.contextPath}/images/shim.gif">
+					</td>
+				</TR>
+				<TR>
+					<td class="ta_01" style="WIDTH: 100%" align="right" bgColor="#f5fafe" colSpan="4">
+						<FONT face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
+						<INPUT class="button_ok" type="button" onclick="history.go(-1)" value="返回"/>
+						<span id="Label1"></span>
+					</td>
+				</TR>
+			</table>
+		</form>
+	</body>
+</HTML>