📄 employeelist.jsp
字号:
<%@ page language="java" pageEncoding="GB2312"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>${CompanyName}--${ProjectName}</title>
<%@ include file="/commons/meta.jsp" %>
</head>
<body>
<div id="content">
<TABLE cellSpacing="1" cellPadding="2" width="90%" align="center" border="0">
<TBODY>
<TR>
<TD align=right><h2><Strong><bean:message key="employeeForm.top"/></Strong></h2></TD>
<TD align=right width="300">
<input type="button" value="添加员工" onClick="location.href='employee.do?p=edit'" class="BigButton">
<input type="button" value="添加部门" onClick="location.href='deptment.do?p=edit'" class="BigButton">
</TD>
</TR>
</TBODY>
</TABLE>
<hr width="90%">
<html:form action="employee" method="post">
<html:hidden property="p" value="list"/>
<TABLE class=small cellSpacing="1" cellPadding="2" width="80%" align="center" bgColor="#000000" border="0">
<TBODY>
<TR>
<TD class=TableLabel align=center>
<bean:message key="employeeForm.name"/>:
<html:text property="name" styleClass="BigInput"/>
<bean:message key="employeeForm.sex"/>:
<html:select property="sex">
<html:option value="">--请选择--</html:option>
<html:option value="男">男</html:option>
<html:option value="女">女</html:option>
</html:select>
<bean:message key="employeeForm.address"/>:
<html:text property="address" styleClass="BigInput"/>
<html:submit value="查询" />
</TD>
</TR>
</TBODY>
</TABLE>
</html:form>
<hr width="90%">
<%@ include file="/commons/messages.jsp" %>
<TABLE class=small cellSpacing="1" cellPadding="2" width="90%" align="center" bgColor="#000000" border="0">
<TBODY>
<TR>
<TD class="TableSeparator" width="10%" align="center">
<strong><bean:message key="employeeForm.name"/></strong>
</TD>
<TD class="TableSeparator" width="10%" align="center">
<strong><bean:message key="employeeForm.sex"/></strong>
</TD>
<TD class="TableSeparator" width="10%" align="center">
<strong><bean:message key="employeeForm.age"/></strong>
</TD>
<TD class="TableSeparator" width="10%" align="center">
<strong><bean:message key="employeeForm.deptmentId"/></strong>
</TD>
<TD class="TableSeparator" width="10%" align="center">
<strong><bean:message key="employeeForm.postcard"/></strong>
</TD>
<TD class="TableSeparator" width="10%" align="center">
<strong><bean:message key="employeeForm.telephone"/></strong>
</TD>
<TD class="TableSeparator" width="25%" align="center">
<strong><bean:message key="employeeForm.address"/></strong>
</TD>
<TD class="TableSeparator" width="15%" align="center"><strong>操作</strong>
</TD>
</TR>
<c:forEach items="${employees}" var="item">
<TR>
<TD class=TableData>${item.name}</TD>
<TD class=TableData>${item.sex}</TD>
<TD class=TableData>${item.age}</TD>
<TD class=TableData>${item.deptment.name}</TD>
<TD class=TableData>${item.postcard}</TD>
<TD class=TableData>${item.telephone}</TD>
<TD class=TableData>${item.address}</TD>
<TD class=TableData align="center">[
<a href="${ctx}/employee.do?p=edit&id=${item.id}">编辑</a> |
<a href="${ctx}/employee.do?p=delete&id=${item.id}">删除</a>]
</TD>
</TR>
</c:forEach>
</TBODY>
</TABLE>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -