下拉菜单实现页面跳转与页面合成的方法
时间:2006-10-26 来源:wxz20032003
<!-- ==========/include.jsp====================================== -->
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="/WEB-INF/tags/cewolf.tld" prefix="cewolf" %>
<%@ taglib uri="/WEB-INF/tags/displaytag-el.tld" prefix="display" %>
<%@ taglib prefix="app" uri="http://www.wiscom.com.cn/stat" %>
<!-- ==========院系学生总数:院系.jsp=============================== -->
<%@ page pageEncoding="GB2312" %>
<%@ include file="/WEB-INF/jsp/include.jsp" %> <!--获得结果集-->
<app:simpleQuery var="objects" queryHandler="stuyxXSZSQueryAllHandler"/>
<table>
<tr>
<td colspan="6" height="12" align="left" class="rr" nowrap>
<c:import url="/WEB-INF/jsp/xszsCondition.jsp"/></td>
</tr>
</table>
<table border="0" cellpadding="4" class="simple"> <tr><td colspan="6" align="center"><h7>院系学生数据维护</h7></td></tr>
<tr>
<th align="center">学生类别</th>
<th align="center">院系</th>
<th align="center">数量</th>
</tr>
<c:choose>
<c:when test="${not empty objects}">
<c:forEach items="${objects}" var="object">
<tr>
<td><c:out value="${object['XSLBMC']}"/></td>
<td><c:out value="${object['LBMC']}"/></td>
<td><c:out value="${object['COUNT']}"/></td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="6">尚未获取该统计的数据,请先从基础数据库获取数据
<a href='stuyxXSZSBatchUpdate.do?tableExist=false'>更新</a></td>
</tr>
</c:otherwise>
</c:choose>
</table> <!-- ========== ///WEB-INF/jsp下的xszsCondition.jsp ================= -->
<%@ page pageEncoding="GB2312"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%> <table width="100%" cellspacing="0" cellpadding="0" class="searchBox">
<form name="SerachForm" method="post" action="main.do" onsubmit="">
<tr>
<td nowrap="true">
<select name='LX' onChange='onSYDChange(this[selectedIndex].value)'>
<option value="" <c:if test="${empty param.LX}">selected='selected'</c:if>>院系</option>
<option value="1" <c:if test="${param.LX==1}">selected='selected'</c:if>>性别</option>
<option value="2" <c:if test="${param.LX==2}">selected='selected'</c:if>>专业</option>
<option value="3" <c:if test="${param.LX==3}">selected='selected'</c:if>>学科</option>
</select>
<input type="submit" name="Submit" value="统计"/>
</td>
</tr>
</form>
</table> <!-- ========== ///WEB-INF/jsp下的xszs.jsp ========================= --> <%@ page pageEncoding="GB2312" %>
<%@ include file="/WEB-INF/jsp/include.jsp" %> <c:choose>
<c:when test="${empty param.LX}">
<c:import url="/WEB-INF/jsp/stuyxXSZSObjectView.jsp"/>
</c:when>
<c:when test="${param.LX==1}">
<c:import url="/WEB-INF/jsp/stuxbXSZSObjectView.jsp"/>
</c:when>
<c:when test="${param.LX==2}">
<c:import url="/WEB-INF/jsp/stuzyXSZSObjectView.jsp"/>
</c:when>
<c:when test="${param.LX==3}">
<c:import url="/WEB-INF/jsp/stuxkXSZSObjectView.jsp"/>
</c:when>
</c:choose> <!--
xszs.jsp要放入后台布置。
后台布置的目的:为每个树型结构的节点增加链接,当点击节点进入xszs.jsp,然后
加入(<c:import>)/WEB-INF/jsp/stuyxXSZSObjectView.jsp或其它3页面之一,
注意这些页面都是页面碎片!最后形成一个左边含树型结构,右上为下来菜点,右下为
××××××××××ObjectView.jsp的总页面。
-->
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib uri="/WEB-INF/tags/cewolf.tld" prefix="cewolf" %>
<%@ taglib uri="/WEB-INF/tags/displaytag-el.tld" prefix="display" %>
<%@ taglib prefix="app" uri="http://www.wiscom.com.cn/stat" %>
<!-- ==========院系学生总数:院系.jsp=============================== -->
<%@ page pageEncoding="GB2312" %>
<%@ include file="/WEB-INF/jsp/include.jsp" %> <!--获得结果集-->
<app:simpleQuery var="objects" queryHandler="stuyxXSZSQueryAllHandler"/>
<table>
<tr>
<td colspan="6" height="12" align="left" class="rr" nowrap>
<c:import url="/WEB-INF/jsp/xszsCondition.jsp"/></td>
</tr>
</table>
<table border="0" cellpadding="4" class="simple"> <tr><td colspan="6" align="center"><h7>院系学生数据维护</h7></td></tr>
<tr>
<th align="center">学生类别</th>
<th align="center">院系</th>
<th align="center">数量</th>
</tr>
<c:choose>
<c:when test="${not empty objects}">
<c:forEach items="${objects}" var="object">
<tr>
<td><c:out value="${object['XSLBMC']}"/></td>
<td><c:out value="${object['LBMC']}"/></td>
<td><c:out value="${object['COUNT']}"/></td>
</tr>
</c:forEach>
</c:when>
<c:otherwise>
<tr>
<td colspan="6">尚未获取该统计的数据,请先从基础数据库获取数据
<a href='stuyxXSZSBatchUpdate.do?tableExist=false'>更新</a></td>
</tr>
</c:otherwise>
</c:choose>
</table> <!-- ========== ///WEB-INF/jsp下的xszsCondition.jsp ================= -->
<%@ page pageEncoding="GB2312"%>
<%@ include file="/WEB-INF/jsp/include.jsp"%> <table width="100%" cellspacing="0" cellpadding="0" class="searchBox">
<form name="SerachForm" method="post" action="main.do" onsubmit="">
<tr>
<td nowrap="true">
<select name='LX' onChange='onSYDChange(this[selectedIndex].value)'>
<option value="" <c:if test="${empty param.LX}">selected='selected'</c:if>>院系</option>
<option value="1" <c:if test="${param.LX==1}">selected='selected'</c:if>>性别</option>
<option value="2" <c:if test="${param.LX==2}">selected='selected'</c:if>>专业</option>
<option value="3" <c:if test="${param.LX==3}">selected='selected'</c:if>>学科</option>
</select>
<input type="submit" name="Submit" value="统计"/>
</td>
</tr>
</form>
</table> <!-- ========== ///WEB-INF/jsp下的xszs.jsp ========================= --> <%@ page pageEncoding="GB2312" %>
<%@ include file="/WEB-INF/jsp/include.jsp" %> <c:choose>
<c:when test="${empty param.LX}">
<c:import url="/WEB-INF/jsp/stuyxXSZSObjectView.jsp"/>
</c:when>
<c:when test="${param.LX==1}">
<c:import url="/WEB-INF/jsp/stuxbXSZSObjectView.jsp"/>
</c:when>
<c:when test="${param.LX==2}">
<c:import url="/WEB-INF/jsp/stuzyXSZSObjectView.jsp"/>
</c:when>
<c:when test="${param.LX==3}">
<c:import url="/WEB-INF/jsp/stuxkXSZSObjectView.jsp"/>
</c:when>
</c:choose> <!--
xszs.jsp要放入后台布置。
后台布置的目的:为每个树型结构的节点增加链接,当点击节点进入xszs.jsp,然后
加入(<c:import>)/WEB-INF/jsp/stuyxXSZSObjectView.jsp或其它3页面之一,
注意这些页面都是页面碎片!最后形成一个左边含树型结构,右上为下来菜点,右下为
××××××××××ObjectView.jsp的总页面。
-->
|
相关阅读 更多 +