📄 peopleinfo.jsp
字号:
<%@ page contentType="html/text;charset=gb2312"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- <html xmlns="http://www.w3.org/1999/xhtml"> -->
<html>
<head>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:133px;
top:234px;
width:69px;
height:16px;
z-index:1;
}
#Layer2 {
position:absolute;
left:133px;
top:185px;
width:71px;
height:15px;
z-index:2;
}
#Layer3 {
position:absolute;
left:133px;
top:282px;
width:72px;
height:15px;
z-index:3;
}
#Layer4 {
position:absolute;
left:133px;
top:324px;
width:72px;
height:15px;
z-index:4;
}
#Layer5 {
position:absolute;
left:133px;
top:370px;
width:70px;
height:17px;
z-index:5;
}
.STYLE3 {font-family: "宋体"; font-size: 12px; }
.STYLE4 {font-size: 12px; }
#Layer6 {
position:absolute;
left:10px;
top:15px;
width:770px;
height:136px;
z-index:6;
}
#Layer7 {
position:absolute;
left:11px;
top:15px;
width:769px;
height:136px;
z-index:6;
}
.STYLE13 {
color: #FFFFFF;
font-size: 12px;
font-weight: bold;
}
.STYLE15 {
font-size: 16px;
color: #990000;
font-weight: bold;
}
-->
</style>
</head>
<script type="text/javascript">
function checkform(obj){
var flag ;
var userid=document.all("userid");
if(userid.length >= 2){
for(var i = 0 ; i < userid.length ; i++){
if(userid[i].checked == true){
flag = true;
}
}
}else{
if(userid.checked == true){
flag=true;
}
}
if(flag){
return true;
}else{
alert("请选择要查询的记录");
return false;
}
}
</script>
<body>
<td width="30"><img src="" alt="" name="a" width="30" height="1" id="a" /></td>
<td width="648" valign="top"/>
<form action="<%=request.getContextPath() %>/PeopleDetail.do" onsubmit="return checkform(this)">
<table>
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td colspan="5" background="images/line_r2_c2.gif"><img src="" alt="" name="b1" width="1" height="1" id="b1" /></td>
</tr>
<tr>
<td height="33" colspan="5"><span class="STYLE15">人员信息:</span></td>
</tr>
<tr>
<td colspan="5" background="images/line_r2_c2.gif"><img src="" alt="" name="b2" width="1" height="1" id="b2" /></td>
</tr>
<tr>
<td width="79" bgcolor="#990000"><span class="STYLE13">姓名</span></td>
<td width="80" bgcolor="#990000"><span class="STYLE13">性别</span></td>
<td width="97" bgcolor="#990000"><span class="STYLE13">入职时间</span></td>
<td width="86" bgcolor="#990000"><span class="STYLE13">职位</span></td>
<td bgcolor="#FFFFFF"> </td>
</tr>
<logic:iterate id="People" name="PeopleList">
<tr>
<td colspan="5" background="images/line_r2_c2.gif"><img src="" alt="" name="b3" width="1" height="1" id="b3" /></td>
</tr>
<tr>
<td height="25" bgcolor="#999999"><span class="STYLE4">${People.name }</span></td>
<td bgcolor="#999999">${People.sex }</td>
<td bgcolor="#999999"><span class="STYLE4">${People.hireDate }</span></td>
<td bgcolor="#999999"><span class="STYLE4">${People.position }</span></td>
<td bgcolor="#FFFFFF"><div align="left">
<label>
<input type="radio" name="userid" value="${People.id }" />
</label>
</div></td>
</tr>
</logic:iterate>
<tr>
<td height="2" colspan="5" background="images/line_r2_c2.gif"><img src="" alt="" name="b5" width="1" height="1" id="b5" /></td>
</tr>
<tr>
<td height="33" colspan="5"><div align="right">
<label>
<input type="submit" value="详细信息" />
</label>
</div></td>
</tr>
<tr>
<td height="14" colspan="5"> </td>
</tr>
<tr>
<td colspan="5" background="images/line_r2_c2.gif"><img src="" alt="" name="b6" width="1" height="1" id="b6" /></td>
</tr>
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td width="32"><img src="" alt="" name="a1" width="30" height="1" id="a1" /></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -