📄 chapterlist.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" import="net.xerllent.campus.database.*,net.xerllent.campus.util.*,net.xerllent.campus.exam.*,net.xerllent.campus.sysadmin.*" %>
<%
//静态权限认证
security.checkAuth(session,"",response,request);
%>
<%
int VolumeID = ParamUtils.getIntParameter(request,"VolumeID",0);
String MsgUrl="ChapterList.jsp?VolumeID="+VolumeID;
Chapter myChapter=new Chapter();
DbQuery myQuery=myChapter.getQuery(request);
%>
<html>
<head>
<title>题库管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/prog/images/campus.css" type="text/css">
<script src="/prog/jscript/floatPanel.js"></script>
<script src="/prog/jscript/DoneMSG.js"></script>
<script src="/prog/jscript/string.js"></script>
<script language="javascript">
<!--
function deleteitems(){
var flag;
var coll = document.all.tags("input");
if (coll!=null) {
for (i=0; i<coll.length; i++) {
if(coll[i].type=="checkbox"&&coll[i].name=="chk"){
if(coll[i].checked){
flag=true;
break;
}
}
}
}
if(flag){
if(window.confirm("删除题库将会删除下属所有的内容,请先转移内容再执行删除。\n你真的要删除吗?这项操作将不可恢复!")){
deleteform.action="ChapterDelete.jsp";
deleteform.submit();
}
}else{
alert("请选择项目再执行删除操作!");
}
}
function selectall(){
var coll = document.all.tags("input");
if (coll!=null) {
for (i=0; i<coll.length; i++) {
if(coll[i].type=="checkbox"&&coll[i].name=="chk"){
if(document.all.selhandle.checked){
coll[i].checked=true;
}else{
coll[i].checked=false;
}
}
}
}
}
function ExportQuestion(){
var flag;
var coll = document.all.tags("input");
if (coll!=null) {
for (i=0; i<coll.length; i++) {
if(coll[i].type=="checkbox"&&coll[i].name=="chk"){
if(coll[i].checked){
flag=true;
break;
}
}
}
}
if(flag){
if(window.confirm("选择的题库信息将以XML格式输出,请保存到本地硬盘。\n你真的要输出吗?按确认开始!")){
deleteform.action="/prog/Exam/admin/PaperIOServlet?action=ExportQuestion&ExportType=1";
deleteform.target="_blank";
deleteform.submit();
}
}else{
alert("请选择项目再执行此项操作!");
}
}
-->
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" onload="popDlg();">
<%net.xerllent.campus.util.dialogMsg.getDlgValue(request,MsgUrl,out);%>
<table width="100%" height="22" border="0" cellspacing="0" cellpadding="0">
<tr>
<td ></td>
</tr>
</table>
<DIV id=floater style="LEFT: 0px; TOP: 0px">
<table width="100%" class="gl_mainBar" height="22" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap>【在线考试系统-题库-题库管理】</td>
<td align="right" nowrap>
<input type="button" name="ExpQt" value="导出题库" class="button1" onClick="ExportQuestion()" >
<input type="button" name="addbtn2" value="添 加" class="button1" onClick="window.location='ChapterCreate.jsp?VolumeID=<%=VolumeID%>';">
<input type="button" name="deletebtn" value="删 除" class="button1" onclick="return deleteitems();">
<input type="button" name="addbtn" value="返 回" class="button1" onclick="window.location='VolumeList.jsp';">
</td>
<td width="10"> </td>
</tr>
</table>
</DIV>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="40">
<tr>
<td background="/prog/images/ModIco_Document.gif" nowrap valign="bottom" style="background-repeat:no-repeat;padding-left:40"><font size="3"><b>[<%=new Volume(VolumeID)._VolumeName%>]题库</b></font></td>
<td align="right" nowrap> </td>
<td width="10"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="f90">
<tr>
<td> </td>
</tr>
</table>
<form name="deleteform" method="post" class="form" action="ChapterDelete.jsp" >
<%
myChapter.printPageList(myQuery,out);
%>
</form>
<%if(myQuery._totalPages>1){myQuery.printPageFooter(out);}%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -