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

📄 list.jsp

📁 本源码为教学管理信息系统
💻 JSP
字号:
<%@page contentType="text/html;charset=GBK"%>
<%@ include file="/include/header.inc"%>
<%@ page import="com.opensymphony.xwork.util.OgnlValueStack"%>

<%
	href="kkgl!query.action";
	target="";
	OgnlValueStack st = (OgnlValueStack)request.getAttribute("webwork.valueStack");
%>
<script language="javascript">
<!--
	function editEmpSub(employeeId){
		var form = document.forms['createForm']; 
		form.action="kkgl!queryById.action?kkId="+employeeId;
		form.submit();
	}
	function query(){
		var form = document.forms['createForm']; 
		form.action="kkgl!query.action";
		form.submit();
	}
	function deleteEmpSub(){
		if(hasChecked(delForm)==false){
			alert("请选择要删除的课程");
			return;
		}
		if(confirm("您确定要删除选中的课程吗?")==true){
			document.delForm.submit();
		}
	}
	function init(){
		var form = document.forms['createForm'];  
		var name_temp = form.elements['condition.KC_NAME'].value
		var name_temp1 = form.elements['condition.KCBH'].value
		if(name_temp=='%'){
			form.elements['condition.KC_NAME'].value='';
		}
		if(name_temp=='%'){
			form.elements['condition.KCBH'].value='';
		}
	}
//-->
</script>
<body onload="init();">
	<form name="createForm" method="POST">
		<table cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td class="topg" />
			</tr>
		</table>
		<table cellspacing="0" cellpadding="0" align="center" class="wukuang">

			<tr>
				<td width="1%" align="left">
					<img class="img"
						src="<%= request.getContextPath() %>/images/tleft.gif">
				</td>
				<td width="10%" align="left">
					[课程信息]
				</td>
				<td width="8%" align="left">
					名&nbsp;&nbsp;&nbsp;&nbsp;称:
				</td>
				<td width="10%" align="left">
					<input type="text" class="inputt" name="condition.KC_NAME" maxlength="20"
						value="<ww:property value="condition.KC_NAME"/>">
				</td>
				<td width="8%" align="left">
					编&nbsp;&nbsp;&nbsp;&nbsp;号:
				</td>
				<td width="10%" align="left">
					<input type="text" class="inputt" name="condition.KCBH" maxlength="20"
						value="<ww:property value="condition.KCBH"/>">
				</td>
				<td width="28%" align="left">
					课程类型:
					<ww:select  name="'condition.KCLX'" listKey = 'CodeName' listValue = 'CodeName' list = 'kclxList'/>
				</td>
				<td align="right" width="20%">
					<a href="javascript:query();" /><img class="imgd"
							src="<%= request.getContextPath() %>/images/button/find.gif">
					</a>
					<a href="kkgl!toAddPage.action" /><img class="imgd"
							src="<%= request.getContextPath() %>/images/button/add.gif">
					</a>
					<a href="javascript:deleteEmpSub();" /><img class="imgd"
							src="<%= request.getContextPath() %>/images/button/del.gif" />
					</a>
				</td>
				<td width="1%" align="left">
					<img class="img"
						src="<%= request.getContextPath() %>/images/tright.gif">
				</td>
			</tr>

		</table>
		<table cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td class="topg" />
			</tr>
		</table>
		<table align="center" border="0" cellspacing="0" cellpadding="0">
			</form>
			<form name="delForm" action="kkgl!delete.action" method="POST">
				<input type="hidden" name="orderby"
					value="<ww:property value="orderby"/>" />
				<input type="hidden" name="order"
					value="<ww:property value="order"/>" />
			<tr>
				<td>
					<img class="img"
						src="<%= request.getContextPath() %>/images/result.gif"
						align="absmiddle">
				</td>
			</tr>
		</table>
		<table border="1" cellspacing="1" cellpadding="2" align="center"
			class="bgtable" style="table-layout: fixed">
			<tr align="center" class="henglan">
				<td width="5%">
					<div align="center">
						操作
					</div>
				</td>
				<td width="5%">
					<div align="center">
						序号
					</div>
				</td>
				<td width="4%" align="center">
					<input type="checkbox" name="all"
						onclick="javascrpt:check(delForm,delForm.all);" class="wu">
				</td>
				<td width="15%">
					<div align="center">
						课程性质
					</div>
				</td>
				<td width="10%">
					<div align="center">
						课程号
					</div>
				</td>
				<td width="14%">
					<div align="center">
						课程名称
					</div>
				</td>
				<td width="14%">
					<div align="center">
						考试类型
					</div>
				</td>
				<td width="14%">
					<div align="center">
						学时
					</div>
				</td>
				<td width="14%">
					<div align="center">
						学分
					</div>
				</td>
			</tr>
			<ww:iterator value="kkList" status="status">
				<ww:if test="#status.odd == true">
					<tr class="tabtd1" onMouseOver="MouseMoveIn(this);"
						onMouseOut="MouseMoveOut(this);">
				</ww:if>
				<ww:else>
					<tr class="tabtd2" onMouseOver="MouseMoveIn(this);"
						onMouseOut="MouseMoveOut(this);">
				</ww:else>
				<td align="center">
					<a href="javascript:editEmpSub('<ww:property value="KK_ID"/>');"><img
							class="img"
							src="<%= request.getContextPath() %>/images/button/modify.gif"
							alt="修改">
					</a>
				</td>
				<td align="center">
					<ww:property value="#status.count" />
				</td>
				<td align="center">
					<input type="checkbox"
						name="selectedKcs[<ww:property value="#status.count-1"/>]"
						value="<ww:property value="KK_ID"/>">
				</td>
				<td title="<ww:property value="KCLX"/>">
					<ww:property value="KCLX" />
				</td>
				<td title="<ww:property value="KCBH"/>">
					<ww:property value="KCBH" />
				</td>
				<td title="<ww:property value="KC_NAME"/>">
					<ww:property value="KC_NAME" />
				</td>
				<td title="<ww:property value="KSLX"/>">
					<ww:property value="KSLX" />
				</td>
				<td title="<ww:property value="XS"/>">
					<ww:property value="XS" />
				</td>
				<td title="<ww:property value="XF"/>">
					<ww:property value="XF" />
				</td>
				</tr>
			</ww:iterator>
			</form>
			<form name="PageForm" method="POST">
		</table>
		<input name="groupNo" type="hidden"
			value="<ww:property value="groupNo"/>">
		<table border=0 cellspacing="0" cellpadding="0" align="center">
			<tr>
				<td align="right"><%@ include file="/include/pagecontrol.inc"%>
				</td>
			</tr>
		</table>
	</form>
	</table>
	</table>
</body>

⌨️ 快捷键说明

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