⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userlist.jsp

📁 JAVA实现的中小型企业CRM客户关系管理系统
💻 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>

</head>

<body class="mainbody">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td class="tdgriud">首页&nbsp;&gt;&gt;&nbsp;系统管理&nbsp;&gt;&gt;&nbsp;员工列表</td>
    <td class="tdgriud" align="right">
                   <%
				if(CommUtil.hasRight(session,"50301")){
			  %>   
    <html:link action="/manage/usermanage?task=initadd" 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="10%" class="tdtitle">员工职位</td>
    <td width="10%" class="tdtitle">性别</td>
    <td width="10%" 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="userlist"> 
  <logic:iterate id="userinfo" name="userlist" indexId="index" >
  <tr onmouseover="TdMouseOver(this);" onmouseout="TdMouseOver(this);">
    <td align="center" class="tdbg">
    	${index+1}
    </td>
    <td class="tdbg"><bean:write name="userinfo" property="employee_name" /></td>
    <td class="tdbg"><bean:write name="userinfo" property="employee_id" /></td>
    <td class="tdbg"><bean:write name="userinfo" property="post_name" /></td>
    <td class="tdbg"><bean:write name="userinfo" property="sex_name" /></td>
    <td class="tdbg"><bean:write name="userinfo" property="school" /></td>
    <td class="tdbg"><bean:write name="userinfo" property="professional" /></td>
    <td class="tdbg"><bean:write name="userinfo" property="entry_date" /></td>
    <td align="center" class="tdbg">
               <%
				if(CommUtil.hasRight(session,"50302")){
			  %>    
    <button class="btn_updateA" title="编辑" onclick="location.href='<%=basePath %>manage/usermanage.do?task=detail&id=<bean:write property="id" name="userinfo"/>'"/>&nbsp;
        	<%} %>
              <%
				if(CommUtil.hasRight(session,"50303")){
			  %>  
    <button class="btn_deleteA" title="删除" onclick="if(!confirm('确定删除该员工?')) return false;location.href='<%=basePath %>manage/usermanage.do?task=delete&id=<bean:write property="id" name="userinfo"/>'"/>&nbsp;
    <%} %>
    </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 + -