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

📄 showlist.jsp

📁 人力资源管理系统
💻 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" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/page.tld" prefix="page" %>

<html>
  <head>
    <base href="http://localhost:8080/accp_hr/"/>

    <title>三级机构显示页面</title>

	
  </head>
  
  <body bgcolor="#DADEDD" style="background-image: url('images/accphr/main.jpg');background-attachment :fixed ;">
    <html:form action="thirdKind">
    	<input type="hidden" name="optk" value="toList"/>
    	<input type="hidden" name="thirdKind.ftkId" value="" />
    	<table align="center" width="100%">
    		<tr>
    			<td align="right"><input type="button" value="添加" onclick="javascript:location.href='thirdKind.do?optk=toAdd'"/></td>
    		</tr>
    		<tr>
    			<td>
    				<table border="1" cellspacing="0" align="center" width="90%" bordercolor="black" style="font-size: 12px">
    					<tr>
    						<th>ID编号</th>
    						<th>一级机构名称</th>
    						<th>二级机构名称</th>
    						<th>部门名称</th>
    						<th>负责人</th>
    						<th>部门状态</th>
    						<th>操 作</th>
    					</tr>
    				<c:if test="${thirdKindForm.pageResult.list!=null}">
    					<c:forEach var="item" items="${thirdKindForm.pageResult.list}">
    						<tr>
    							<td align="center">${item.ftkId }</td>
    							<td align="center">${item.firstKindName }</td>
    							<td align="center">${item.secondKindName }</td>
    							<td align="center">${item.thirdKindName }</td>
    							<td align="center">${item.thirdKindSaleName }</td>
    							<td align="center">${item.thirdKindIsRetail?'正常':'已关闭' }</td>
    							<td align="center"><a href="javascript:toup(${item.ftkId })">修改</a> 
    							&nbsp;<a href="javascript:todel(${item.ftkId })" >删除</a></td>
    						</tr>
    					</c:forEach>
    				</c:if>
    				</table></td>
    		</tr>
    		<tr>
    			<td>
					<page:link formName="thirdKindForm"/>
    			</td>
    		</tr>
    	</table>
    </html:form>
  </body>
</html>
<script type="text/javascript">
<!--
	function toup(tkid){
	
		document.forms[0].elements[0].value="toUpdate";
		document.forms[0].elements[1].value=tkid;
		document.forms[0].submit();
	}
	function todel(tkid){
		if(window.confirm("是否确认删除该信息?")){
			document.forms[0].elements[0].value="doDel";
			document.forms[0].elements[1].value=tkid;
			document.forms[0].submit();
		}
	}
//-->
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -