📄 taoti.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="lesson" class="com.wgh.dao.TaoTiDAO" scope="page"/>
<html>
<head>
<title>网络在线考试——后台管理</title>
<link href="../CSS/style.css" rel="stylesheet">
<script language="javascript">
function CheckAll(elementsA,elementsB){
for(i=0;i<elementsA.length;i++){
elementsA[i].checked = true;
}
if(elementsB.checked ==false){
for(j=0;j<elementsA.length;j++){
elementsA[j].checked = false;
}
}
}
//判断用户是否选择了要删除的记录,如果是,则提示“是否删除”;否则提示“请选择要删除的记录”
function checkdel(delid,formname){
var flag = false;
for(i=0;i<delid.length;i++){
if(delid[i].checked){
flag = true;
break;
}
}
if(!flag){
alert("请选择要删除的记录!");
return false;
}else{
if(confirm("确定要删除吗?")){
formname.submit();
}
}
}
</script>
</head>
<body>
<%@ include file="top.jsp"%>
<table width="778" border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td width="176" align="center" valign="top" bgcolor="#FFFFFF"><%@ include file="left.jsp"%></td>
<td width="602" valign="top" bgcolor="#FFFFFF"><table width="99%" height="487" border="0" cellpadding="0" cellspacing="0" align="right">
<tr>
<td height="30" bgcolor="#EEEEEE" class="tableBorder_thin"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="78%" class="word_grey"> 当前位置:<span class="word_darkGrey">套题信息管理 >>></span></td>
<td align="right"><img src="../Images/m_ico1.gif" width="5" height="9"> 当前管理员:<%=session.getAttribute("manager")%> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top">
<table width="96%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90%" height="27" align="right"><img src="../Images/add.gif" width="19" height="18"> </td>
<td width="10%"><html:link page="/manage/taoTi.do?action=taoTiAddQuery">添加套题</html:link> </td>
</tr>
</table>
<table width="96%" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#67A8DB">
<html:form action="/manage/taoTi.do?action=taoTiDel" method="post">
<tr align="center">
<td width="29%" height="30" bgcolor="#B2D6F1">套题名称</td>
<td width="25%" bgcolor="#B2D6F1">所属课程</td>
<td width="32%" bgcolor="#B2D6F1">加入时间</td>
<td width="7%" bgcolor="#B2D6F1">修改</td>
<td width="7%" bgcolor="#B2D6F1">选项</td>
</tr>
<logic:iterate id="taoTi" name="taoTiQuery" type="com.wgh.actionForm.TaoTiForm" scope="request">
<bean:define id="lessonID" name="taoTi" property="lessonId" type="Integer"/>
<tr>
<td style="padding:5px;"><bean:write name="taoTi" property="name" filter="true"/></td>
<td style="padding:5px;"><%=lesson.getLesson(lessonID)%></td>
<td align="center"><bean:write name="taoTi" property="joinTime" format="yyyy-MM-dd HH:mm:ss" filter="true"/></td>
<td align="center"><html:link page="/manage/taoTi.do?action=taoTiModifyQuery" paramId="id" paramName="taoTi" paramProperty="ID">修改</html:link></td>
<td align="center"><html:multibox property="delIdArray" styleClass="noborder"><bean:write name="taoTi" property="ID"/></html:multibox></td>
</tr>
</logic:iterate>
</table>
<table width="94%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="60%" height="24"> </td>
<td width="40%" align="right"><input name="checkbox" type="checkbox" class="noborder" onClick="CheckAll(taoTiForm.delIdArray,taoTiForm.checkbox)">
[全选/反选] [<a style="color:red;cursor:hand;" onClick="checkdel(taoTiForm.delIdArray,taoTiForm)">删除</a>]
<div id="ch">
<input name="delid" type="checkbox" class="noborder" value="0">
</div></td>
<!--层ch用于放置隐藏的checkbox控件,因为当表单中只是一个checkbox控件时,应用javascript获得其length属性值为undefine-->
<script language="javascript">ch.style.display="none";</script>
</tr>
</html:form>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<%@ include file="copyright.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -