📄 dept_info.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="gb2312" %>
<%@ page import="hrm.dept.*,java.util.*,java.sql.*,commons.*" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<!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>
</head>
<body>
<center>
<%
request.setCharacterEncoding("GBK");
String path=request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
DeptForm dept =new DeptForm();
dept=(DeptForm)session.getAttribute("Dept");
request.removeAttribute("Dept");
%>
<form name="frm" method="post" >
<table width="333" border="0">
<tr>
<th colspan="2" scope="col">查看或修改部门</th>
</tr>
<tr>
<th width="140" scope="row">部门编号</th>
<td width="266">
<input type="text" name="deptCode" value='<%=dept.getDeptCode()==null?"":dept.getDeptCode() %>' checked /> </td>
</tr>
<tr>
<th scope="row">部门名称</th>
<td>
<input type="text" name="deptName" value='<%=dept.getDeptName()==null?"":dept.getDeptName()%>' /> </td>
</tr>
<tr>
<th scope="row">地 址</th>
<td>
<input type="text" name="address" value='<%=dept.getAddress()==null?"":dept.getAddress() %>' /> </td>
</tr>
<tr>
<th scope="row">电 话</th>
<td>
<input type="text" name="telphone" value='<%=dept.getTelphone()==null?"":dept.getTelphone() %>' /> </td>
</tr>
<tr>
<th scope="row">部门描述</th>
<td><textarea name="desc" value='<%=dept.getDesc()==null?"":dept.getDesc() %>' ></textarea></td>
</tr>
</table >
<table border=0>
<tr>
<td onclick="add();" style="cursor:hand">添加 | </td>
<td onclick="edit();" style="cursor:hand">修改 | </td>
<td onclick="del();" style="cursor:hand">删除 </td>
</tr>
</table>
</form>
</center>
</body>
</html>
<script type="text/javascript">
function edit(){
var key=frm.key;
frm.action="<%=path %>/dept/dept_update.jsp";
frm.submit();
}
function del(){
var key=frm.key;
frm.action="<%=path%>/deptDel.do?deptId=<%=dept.getDeptId() %>";
frm.submit();
}
function add(){
frm.action="<%=path%>/dept/dept_add.jsp";
frm.submit();
}
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -