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

📄 classjindu.jsp

📁 中应用程序的访问权限对Java Web Console 中应用程序的访问权限 成功登录 Web 控制台后,可能无法自动访问在该控制台中注册的所有应用程序。通常,必须安装应用程序,才能让所有的用户在控制
💻 JSP
字号:
<%@ page language="java" pageEncoding="utf-8"%>

<jsp:directive.page import="edu.yinhe.mis.vo.ClassJinduVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.OutlineVO" />
<jsp:directive.page import="edu.yinhe.mis.vo.ClassesVO" />
<jsp:directive.page import="edu.yinhe.mis.dto.ClassJinduDTO" />
<%@page import="edu.yinhe.mis.vo.DictionaryVO"%>

<%@ 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"%>

<jsp:directive.page import="java.util.ArrayList" />
<jsp:directive.page import="java.util.Iterator" />
<jsp:directive.page import="java.util.HashMap" />
<jsp:directive.page import="java.net.URLEncoder" />
<%
String path = request.getContextPath();
%>

<%
      //得到本页的参数内容
   int totals=0,totalPage=1,pageNo=1,prePageNo=1,nextPageNo=1,preOk=1,nextOk=1;
   int factperiod=0,teachtime=0;
   String classname = (String)request.getAttribute("classname");
   String objectname  = (String)request.getAttribute("objectname");
   if(classname==null) classname="";
   if(objectname==null) objectname="";
   String action= path+"/admins/paike/classjindu.html?method=checkJindu&";
   if(request.getAttribute("totals")!=null) totals = Integer.parseInt(request.getAttribute("totals").toString());
   if(request.getAttribute("totalPage")!=null) totalPage = Integer.parseInt(request.getAttribute("totalPage").toString());
   if(request.getAttribute("currentPage")!=null) pageNo = Integer.parseInt(request.getAttribute("currentPage").toString());
   if(request.getAttribute("factperiod")!=null) factperiod = Integer.parseInt(request.getAttribute("factperiod").toString());
   if(request.getAttribute("teachtime")!=null) teachtime = Integer.parseInt(request.getAttribute("teachtime").toString());
   
   
   //计算上一页和下一页的页码及按钮的状态
   if(totalPage<1) totalPage=1;
   prePageNo = pageNo;
   nextPageNo = pageNo;
   if(pageNo > 1) prePageNo--;
       else prePageNo=1;
   if(pageNo < totalPage) nextPageNo++;
       else nextPageNo = totalPage;
   if(pageNo == 1) preOk=0;
   if(pageNo == totalPage) nextOk=0;
   
 %>

<%@ 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>查询班级课时进度</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></SCRIPT>
		<script type="text/javascript">
	function aa(){
		document.all.classname.value="";
		document.all.objectname.value="";
		
					
		reutrn;
		
		
	}
</script>
		<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
		<style type="text/css">
</style>
	</HEAD>
	<BODY>

		<H1>
			<SPAN> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
				&nbsp;&nbsp;&nbsp; 查看班级课时表:</SPAN>
		</H1>

		<DIV class=form-div>

			<form
				action="<%=path%>/admins/paike/classjindu.html?method=checkJindu&"
				method="post" name="form1">

				<jsp:include page="/admins/paike/classjindu.html">
					<jsp:param name="method" value="findClassesName" />
				</jsp:include>

				<jsp:include page="/admins/paike/classjindu.html">
					<jsp:param name="method" value="findcourse" />
				</jsp:include>

				<jsp:include page="/admins/core/outline.html">
					<jsp:param name="method" value="findobjectno" />
				</jsp:include>

				<jsp:include page="/admins/core/classes.html">
					<jsp:param name="method" value="findClasses" />
				</jsp:include>
				<table width="100%" height="29" border="0" cellpadding="0"
					cellspacing="0">
					<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="15%">
							班级编号 :
							<select id="slt1" name="classname">
								<option value="">
									请选择
								</option>
								<%
								       ArrayList clist =(ArrayList)request.getAttribute("clist");
								       ClassJinduDTO dto = new ClassJinduDTO();
										if (clist != null) {
										for (Iterator it = clist.iterator(); it.hasNext();) {
											ClassesVO cvo = (ClassesVO) it.next();
								%>
								<option value="<%=cvo.getClassNo()%>"
									<%

    			 					if(dto!=null&&dto.getClass_no()!=null&&!dto.getObject_no().equals("")
    			 					&&dto.getClass_no().equals(cvo.getClassNo())){ %>
									selected="selected" <%}%>><%=cvo.getClassNo()%></option>
								<%
									}
									}
								%>
							</select>
						</td>

						<td align="center" width="15%">
							课程编号 :
							<select id="s2" name="objectname">
								<option value="">
									请选择
								</option>
								<%
                        OutlineVO ovo = null;
                       ArrayList courselist = (ArrayList)request.getAttribute("list4");
                      for(int i=0;i<courselist.size();i++){
                      ovo = (OutlineVO)courselist.get(i);
                      %>
								<option value="<%=ovo.getObjectNo()%>"><%=ovo.getObjectNo() %></option>
								<%} %>
							</select>
						</td>

						<td width="10%">
							<input name="submit" type="submit" class="button" value="搜索">
							<input name="submit" type=button class=button value="清空"
								onClick="JavaScript:aa()">





						</td>
					</tr>
				</table>
		</DIV>
		<!-- start goods type list -->
		<DIV class=list-div id=listDiv>

			<table width="68%" height="52" border="0" cellpadding=3 cellspacing=1
				id=listTable>
				<tbody>
					<tr>
						<th width="8%" align="center">
							班级名称
						</th>
						<th width="8%" align="center">
							课程名称
						</th>
						<th width="8%" align="center">
							总课时
						</th>
						<th width="8%" align="center">
							已上课时
						</th>
						<th width="8%" align="center">
							剩下课时
						</th>
					</tr>

					<%
					    ClassJinduVO classesVO = null;
						ArrayList classlist = (ArrayList) request.getAttribute("classlist");
						for (int i = 0; i < classlist.size(); i++) {
							 classesVO = (ClassJinduVO) classlist.get(i);
					%>
					<tr>
						<td align=center><%=classesVO.getClass_name() %></td>
						<td class=first-cell align=center><%=classesVO.getObject_name() %></td>
						<td align=center><%=classesVO.getRemak3() %></td>
						<td align=center><%=classesVO.getFactperiod() %></td>
						<td align=center><%=classesVO.getLeavetimes() %></td>

					</tr>
					<%
					}
					%>
					<tr>

						<td colspan="5" align="center">
							<%if(pageNo>1){ %>
							<a
								href="<%=action%>pageNo=1&classname=<%=classname%>&objectname=<%=objectname%>"
								class="blueText"><span class="blueText">首页</span> </a>&nbsp;
							<%if(preOk==1){ %>
							<a
								href="<%=action%>pageNo=<%=prePageNo%>&classname=<%=classname%>&objectname=<%=objectname%>"
								class="blueText"><span class="blueText">上一页</span> </a>&nbsp;
							<%}   }else{%>
							<span class="grayText">首页</span>&nbsp;
							<span class="grayText">上一页</span>&nbsp;
							<% }%>
							<%if(pageNo<totalPage){ %>
							<%if(nextOk==1){ %>
							<a
								href="<%=action%>pageNo=<%=nextPageNo%>&classname=<%=classname%>&objectname=<%=objectname%>"
								class="blueText"><span class="blueText">下一页</span> </a>&nbsp;
							<a
								href="<%=action%>pageNo=<%=totalPage%>&classname=<%=classname%>&objectname=<%=objectname%>"
								class="blueText"><span class="blueText">尾页</span> </a>
							<%} }else{%>
							<span class="grayText">下一页</span>&nbsp;
							<span class="grayText">尾页</span>&nbsp;
							<%} %>
							<span class="redText"><%=pageNo%></span>页/共
							<span class="redText"><%=totalPage%></span>页 总数
							<span class="redText"><%=totals%></span>
						</td>
					</tr>
			</table>

		</DIV>
		<DIV id=footer>
			<SPAN><BR>版权所有 © 2008-4 银河学院IBM,并保留所有权利.</SPAN>
		</DIV>
	</BODY>
</HTML>

⌨️ 快捷键说明

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