📄 paperitemlist.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 PaperID = ParamUtils.getIntParameter(request,"PaperID",0);
if(PaperID==0){
response.sendRedirect("/prog/nopermission.jsp");
}
String MsgUrl="PaperItemList.jsp?PaperID="+PaperID;
Item myPaperItem= new Item();
DbQuery myQuery=myPaperItem.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="PaperItemDelete.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 ChangeItem(){
var flag;
var ItemID;
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){
ItemID=coll[i].value;
flag=true;
break;
}
}
}
}
if(flag){
if(window.confirm("您将从题库里选择题目替换您选中的题目!开始下一步?")){
window.location.href="PaperItemChangeList.jsp?ItemID="+ItemID;
}
}else{
alert("请选择项目再执行换题操作!");
}
}
function AutoChangeItem(){
var flag;
var ItemID;
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){
ItemID=coll[i].value;
flag=true;
break;
}
}
}
}
if(flag){
if(window.confirm("系统将从题库里选择题目自动替换您选中的题目!开始?")){
window.location.href="PaperItemAutoChange.jsp?ItemID="+ItemID;
}
}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="Change1" value="手动换题" class="button1" onClick="ChangeItem();">
<input type="button" name="Change2" value="自动换题" class="button1" onClick="AutoChangeItem();">
<input type="button" name="addbtn" value="添 加" class="button1" onClick="window.location='PaperItemCreate.jsp?PaperID=<%=PaperID%>';">
<input type="button" name="deletebtn" value="删 除" class="button1" onclick="return deleteitems();">
<input type="button" name="cancel" value="返 回" class="button1" onclick="window.history.go(-1);">
</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 Paper(PaperID)._Title%>]试卷题目</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="PaperItemDelete.jsp" >
<%
myPaperItem.printPageList(myQuery,out);
%>
</form>
<%if(myQuery._totalPages>1){myQuery.printPageFooter(out);}%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -