📄 deptlist.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<jsp:directive.page import="com.crm.common.CommUtil"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!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>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>所有部门列表</title>
<link href="<%=basePath %>skin/default/default.css" rel="stylesheet" type="text/css" />
<script src="<%=basePath %>js/util.js" language="javascript" type="text/javascript"></script>
<script>
function updateState(state,id){
var str = "";
if(state == '1'){
str = "确定要停止该客户的服务吗?";
}else if(state == '2'){
str = "确定要将该客户加入到会名单中?";
}
if(confirm(str)){
location.href='<%=basePath %>manage/custinfo.do?paramtype=updateState&state=' + state + '&id=' + id;
}
}
</script>
</head>
<body class="mainbody">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td class="tdgriud">首页 >> 系统管理 >> 部门列表</td>
<td class="tdgriud" align="right">
<%
if(CommUtil.hasRight(session,"50201")){
%>
<html:link action="/manage/deptmanage?task=initInsert" target="mainframe">新增部门信息</html:link>
<%} %>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tdborder">
<tr>
<td width="8%" class="tdtitle">编号</td>
<td width="10%" class="tdtitle">部门名称</td>
<td width="10%" class="tdtitle">上级部门</td>
<td width="8%" class="tdtitle">修改</td>
</tr>
<logic:notEmpty name="deptlist">
<logic:iterate id="dept" name="deptlist" indexId="index" >
<tr onmouseover="TdMouseOver(this);" onmouseout="TdMouseOver(this);">
<td align="center" class="tdbg">
${index+1}
</td>
<td class="tdbg"><bean:write name="dept" property="dept_name" /></td>
<td class="tdbg"><bean:write name="dept" property="fdept_name" /> </td>
<td align="center" class="tdbg">
<%
if(CommUtil.hasRight(session,"50202")){
%>
<button class="btn_updateA" title="编辑" onclick="location.href='<%=basePath %>manage/deptmanage.do?task=initUpdate&dept_id=<bean:write property="dept_id" name="dept"/>'"/>
<%} %>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
<logic:present name="pagetool">
<bean:write name="pagetool" filter="false"/>
</logic:present>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -