📄 list.jsp
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<jsp:directive.page import="edu.yinhe.system.vo.PaginationVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.SchoolVO" />
<jsp:directive.page import="edu.yinhe.mis.dto.SchoolDTO" />
<jsp:directive.page import="java.util.ArrayList" />
<jsp:directive.page import="java.util.HashMap" />
<jsp:directive.page import="java.net.URLEncoder" />
<%
String path = request.getContextPath();
%>
<%@ 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"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>ECSHOP 管理中心 - 商品类型</TITLE>
<META content="noindex, nofollow" name=robots>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/CSS.css" type=text/css rel=stylesheet>
<LINK href="<%=path%>/admins/css/general.css" type=text/css
rel=stylesheet>
<LINK href="<%=path%>/admins/css/main.css" type=text/css
rel=stylesheet>
<SCRIPT src="<%=path%>/admins/js/transport.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path%>/admins/js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path%>/admins/js/utils.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path%>/admins/js/listtable.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path%>/admins/js/login.js" type=text/javascript></SCRIPT>
<SCRIPT src="transport.js" type=text/javascript></SCRIPT>
<SCRIPT src="common.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>
function aa(){
document.all.schoolmaster.value="";
}
function beginValidate(){
var a = document.getElementById("s1").value;
if(a.length>20){
alert("你输入的负责人长度已超过了范围");
document.all.schoolmaster.value="";
return;
}
}
</SCRIPT>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<style type="text/css">
</style>
</HEAD>
<BODY>
<H1>
<SPAN>学校综合管理系统管理中心 -
校区查询:</SPAN>
</H1>
<DIV class=form-div>
<form action="<%=path%>/admins/core/school.html?method=allSchool"
method=post>
<table width="90%" height="29" border="0" cellpadding="0"
cellspacing="0">
<tr>
<%
SchoolDTO schooldto = (SchoolDTO) request.getAttribute("schooldto");
%>
<td width="5%" height="29">
<img height=22 alt=SEARCH src="../images/icon_search.gif"
width=26 border=0>
</td>
<td align="right" width="8%">
校区负责人:
<input size=10 name="schoolmaster"
<%
if(schooldto!=null&&schooldto.getSchoolmaster()!=null&&!schooldto.getSchoolmaster().equals(""))
{
%>
value="<%=schooldto.getSchoolmaster()%>" <%} %> value="" id="s1"
onblur="beginValidate()">
<input name="submit" type=submit class=button value="搜索">
<input type=button class=button value="清空" onclick="aa()">
</td>
</tr>
</table>
</form>
</DIV>
<!-- start goods type list -->
<DIV class=list-div id=listDiv>
<table width="100%" height="52" cellpadding=3 cellspacing=1
id=listTable>
<tbody>
<tr>
<th width="15%" align="center">
校区编号
</th>
<th width="15%" align="center">
校区名称
</th>
<th width="15%" align="center">
负责人
</th>
<th width="15%" align="center">
联系电话
</th>
<th width="15%" align="center">
校区地址
</th>
<th width="10%">
删除
</th>
<th width="10%">
修改
</th>
</tr>
<%
ArrayList list1 = (ArrayList) request.getAttribute("list1");
PaginationVO pvo = (PaginationVO) request.getAttribute("pvo");
for (int i = 0; i < list1.size(); i++) {
SchoolVO schoolvo = (SchoolVO) list1.get(i);
%>
<tr>
<td class=first-cell align=center><a href="<%=path%>/admins/core/school.html?method=load1&id=<%=schoolvo.getId() %>"><%=schoolvo.getSchoolNo()%></a></td>
<td align=center><%=schoolvo.getSchoolName()%></td>
<td align=center><%=schoolvo.getSchoolmaster()%></td>
<td align=center><%=schoolvo.getTel()%></td>
<td align=center><%=schoolvo.getAddress()%></td>
<td align=center>
<a title=删除 onClick="return confirm('确定要删除此选项吗?')"
href="<%=path%>/admins/core/school.html?method=delSchool&schoolNo=<%=schoolvo.getSchoolNo()%>">
<img alt="删除" src="<%=path%>/admins/images/icon_trash.gif"
border="0">
</a>
</td>
<td>
<div align="center">
<a title=修改
href="<%=path%>/admins/core/school.html?method=load&id=<%=schoolvo.getId()%>">
<img alt="编辑" src="<%=path%>/admins/images/icon_edit.gif"
border="0">
</a>
</td>
</tr>
<%
}
%>
</table>
<%
HashMap hashmap = new HashMap();
if (schooldto.getSchoolmaster() != null
&& !"".equals(schooldto.getSchoolmaster())) {
hashmap.put("schoolmaster", URLEncoder.encode(schooldto
.getSchoolmaster()));
}
hashmap.put("allPage", pvo.getAllPages());
hashmap.put("currentPage", pvo.getCurrentPage());
pageContext.setAttribute("hashmap", hashmap);
%>
<tr colspan=4>
<TD height='30' colspan='5'>
<div align='CENTER'>
共 <%=pvo.getResultsNumber()%> 条记录 | 共 <%=pvo.getAllPages()%> 页 |
当前第 <%=pvo.getCurrentPage()%> 页 | <
<%
if (pvo.getCurrentPage() > 1) {
%>
<html:link page="/admins/core/school.html?method=allSchool&type=0"
name="hashmap">
首页</html:link>
> | <
<html:link page="/admins/core/school.html?method=allSchool&type=1"
name="hashmap">
上一页</html:link>
> |
<%
} else {
%>
<font color='#999999'>首页></font> |
<font color='#999999'><上一页></font> | <
<%
}
%>
<%
if (pvo.getCurrentPage() < pvo.getAllPages()) {
%>
<html:link page="/admins/core/school.html?method=allSchool&type=2"
name="hashmap">下一页</html:link>
> | <
<html:link page="/admins/core/school.html?method=allSchool&type=3"
name="hashmap">尾页</html:link>
>
<%
} else {
%>
<font color='#999999'><下一页></font> |
<font color='#999999'><尾页></font>
<%
}
%>
</div>
</TD>
</tr>
</DIV>
<DIV id=footer>
版权所有 © 2005-2007 湖北银河信息技术学院,并保留所有权利。
</DIV>
<SCRIPT src="tab.js" type=text/javascript></SCRIPT>
<SCRIPT src="validator.js" type=text/javascript></SCRIPT>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -