📄 outlinelist.jsp
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<jsp:directive.page import="edu.yinhe.system.util.PaginationVO"/>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="edu.yinhe.mis.vo.OutlineVO"/>
<jsp:directive.page import="edu.yinhe.mis.vo.DictionaryVO"/>
<jsp:directive.page import="edu.yinhe.mis.dto.OutlineDTO"/>
<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"%>
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>银河综合信息管理中心 -大纲管理</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 type="text/javascript">
function toclear(){
document.all.outlineType.value="";
document.all.objectNo.value="";
document.all.objectType.value="";
return;
}
function findall(checked){
var box=document.getElementsByName("checkbox");
var length=box.length;
for(var i =0;i<length;i++){
box[i].checked = checked;
}
}
function deleteAll(){
var box=document.getElementsByName("checkbox");
var flag=false;
var oid="";
for(var i=0;i<box.length;i++){
if(box[i].checked==true){
oid=oid+" "+box[i].value;
flag=true;
}
}
if(flag==false){
alert("对不起,您还没有选择!!")
}else{
confirm('确定要删除选中选项吗?')
window.location="<%=path%>/admins/core/outline.html?method=delete&oid="+oid
}
return flag;
}
</script>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<style type="text/css">
<!--
.STYLE1 {font-size: 8px}
.STYLE2 {color: #000000}
.STYLE4 {color: #000000; font-size: 16px; }
-->
</style>
</HEAD>
<BODY>
<H1>
<SPAN>学校综合管理系统管理中心 - 大纲查询:</SPAN></H1>
<jsp:include page="/admins/core/room.html" flush="false">
<jsp:param name="method" value="findroomscope"/>
</jsp:include>
<jsp:include page="/admins/core/outline.html" flush="false">
<jsp:param name="method" value="findobjecttype"/>
</jsp:include>
<DIV class=form-div>
<form action="<%=path%>/admins/core/outline.html?method=query" method="post" name="outlineForm">
<table width="100%" height="29" border="0" cellpadding="0" cellspacing="0">
<%
OutlineDTO outlineDTO=(OutlineDTO)request.getAttribute("outlineDTO");
%>
<tr>
<td width="5%" height="29"><img height=22 alt=SEARCH
src="../images/icon_search.gif" width=26 border=0></td>
<td align="center" width="9%">科目编号 :</td>
<td align="center" width="14%">
<input size=10 name="objectNo"
<%if(outlineDTO.getObjectNo()!=null){ %>
value="<%=outlineDTO.getObjectNo() %>"<%}else{ %>
value=""<%} %> maxlength="15"></td>
<td align="center" width="7%">科目类型:</td>
<td width="12%">
<select name="objectType">
<option value="">请选择...</option>
<%
ArrayList listtype=(ArrayList)request.getAttribute("listtype");
DictionaryVO dicvo=null;
for(int i=0;i<listtype.size();i++){
dicvo=(DictionaryVO)listtype.get(i);
%>
<option value=<%=dicvo.getName() %>
<%if(outlineDTO.getObjectType()!=null&&outlineDTO.getObjectType().equals(dicvo.getName())){ %>
selected="selected"<%} %>
><%=dicvo.getName() %></option><%} %>
</select>
</td>
<td align="center" width="7%">大纲类型:</td>
<td width="12%">
<select name="outlineType">
<option value="">请选择...</option>
<%
ArrayList scopelist=(ArrayList)request.getAttribute("scopelist");
DictionaryVO dictiVO=null;
for(int i=0;i<scopelist.size();i++){
dictiVO=(DictionaryVO)scopelist.get(i);
%>
<option value="<%=dictiVO.getName() %>"
<%if(outlineDTO.getOutlineType()!=null&& dictiVO.getName().equals(outlineDTO.getOutlineType())) {%>
selected="selected"<%} %>><%=dictiVO.getName() %></option><%} %>
</select>
</td>
<td width="10%"><input name="submit" type=submit class=button value=" 搜索 " ></td>
<td width="10%"><input type=button class=button onclick="toclear()" value=" 重置 " ></td>
</tr>
</table>
</form>
</DIV><!-- start goods type list -->
<DIV class=list-div id=listDiv>
<table width="86%" height="52" cellpadding=3 cellspacing=1 id=listTable>
<tbody>
<tr>
<th width="8%" ><input type="checkbox" onclick="findall(this.checked)"/>课程编号</th>
<th width="20%" >课程名称</th>
<th width="8%" >课程类型</th>
<th width="8%" >大纲类型</th>
<th width="8%" >制定人</th>
<th width="15%" >课程优先级序号</th>
<th width="10%" >实际课时</th>
<th width="10%" >计划学时</th>
<th width="8%" >删除</th>
<th width="8%" >修改</th>
</tr>
<%
ArrayList arrayList = (ArrayList) request.getAttribute("list");
PaginationVO paginationVO = (PaginationVO) request.getAttribute("paginationVO");
if(arrayList!=null){
for (int i = 0; i < arrayList.size(); i++) {
OutlineVO outlineVO = (OutlineVO) arrayList.get(i);
System.out.println(outlineVO.getId());
%>
<tr>
<td class=first-cell><input type="checkbox" name="checkbox" value="<%=outlineVO.getId() %>" /><a href="<%=path%>/admins/core/outline.html?method=findById&id=<%=outlineVO.getId() %>"><%=outlineVO.getObjectNo() %></a></td>
<td align=center><%=outlineVO.getObjectName() %></td>
<td align=center><%=outlineVO.getObjectType() %></td>
<td align=center><%=outlineVO.getOutlineType() %></td>
<td align=center><%=outlineVO.getCreater() %></td>
<td align=center><%=outlineVO.getSequenceNo() %></td>
<td align=center><%=outlineVO.getFactperiod() %></td>
<td align=center><%=outlineVO.getPlanperiod() %></td>
<td align=center >
<div align="center">
<a title=删除
onClick="return confirm('确定要删除此选项吗?')"
href="<%=path%>/admins/core/outline.html?method=delete&oid=<%=outlineVO.getId() %>">
<img alt="删除"
src="<%=path%>/admins/images/icon_trash.gif"
border="0"></a></div> </td>
<td>
<div align="center">
<a title=修改
href="<%=path%>/admins/core/outline.html?method=load&id=<%=outlineVO.getId() %>">
<img alt="编辑" src="<%=path%>/admins/images/icon_edit.gif"
border="0"></a>
</div>
</td>
</tr>
<%}
} %>
</table>
<tr colspan=4>
<TD height='30'>
<INPUT class=button type="button" value=" 批量删除 " onclick="deleteAll()">
</TD>
</tr>
<%
HashMap map=new HashMap();
if(outlineDTO.getObjectNo()!=null&&!"".equals(outlineDTO.getObjectNo())){
map.put("objectNo",outlineDTO.getObjectNo());
}
if(outlineDTO.getObjectType()!=null&&!"".equals(outlineDTO.getObjectType())){
map.put("objectType",outlineDTO.getObjectType());
}if(outlineDTO.getOutlineType()!=null&&!"".equals(outlineDTO.getOutlineType())){
map.put("outlineType",outlineDTO.getOutlineType());
}
map.put("allpage",paginationVO.getAllPages());
map.put("currentPage",paginationVO.getCurrentPage());
pageContext.setAttribute("hashmap",map);
%>
<tr colspan=4>
<TD height='30' colspan='5'>
<div align='CENTER'>
共 <%=paginationVO.getResultsNumber() %> 条记录 |
共 <%=paginationVO.getAllPages() %> 页 |
当前第 <%=paginationVO.getCurrentPage() %> 页 | <
<%
if(paginationVO.getCurrentPage() > 1) {
%>
<html:link page="/admins/core/outline.html?method=query&type=0" name="hashmap">
首页</html:link>> | <
<html:link page="/admins/core/outline.html?method=query&type=1" name="hashmap">
上一页</html:link>> |
<%
}else{
%>
<font color='#999999'>首页></font> | <font color='#999999'><上一页></font> | <
<%}%>
<%
if (paginationVO.getCurrentPage() < paginationVO.getAllPages()) {
%>
<html:link page="/admins/core/outline.html?method=query&type=2" name="hashmap">下一页</html:link>> | <
<html:link page="/admins/core/outline.html?method=query&type=3" name="hashmap">尾页</html:link>>
<%} else {%>
<font color='#999999'><下一页></font> | <font color='#999999'><尾页></font>
<%} %>
</div></TD>
</tr>
</DIV>
<DIV id=footer><SPAN><BR>版权所有 © 2008-4
银河学院IBM,并保留所有权利.</SPAN> </DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -