📄 adminquestion.jsp
字号:
<%@ page language="java" pageEncoding="utf-8"%>
<jsp:directive.page import="edu.yinhe.system.util.PaginationVO"/>
<jsp:directive.page import="edu.yinhe.mis.vo.QuestionVO"/>
<jsp:directive.page import="java.util.List"/>
<%
String path = request.getContextPath();
%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0058)http://192.168.3.23/ecshop/admin/goods_type.php?act=manage -->
<!-- $Id: adminquestion.jsp,v 1.9 2008/05/09 08:13:50 liuzhou Exp $ --><HTML
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>ECSHOP 管理中心 - 商品类型</TITLE>
<META content="noindex, nofollow" name=robots>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/CSS.css" type=text/css rel=stylesheet>
<LINK href="<%=path %>/admins/css/general.css" type=text/css rel=stylesheet>
<LINK href="<%=path %>/admins/css/main.css" type=text/css rel=stylesheet>
<SCRIPT src="<%=path %>/admins/js/transport.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path %>/admins/js/common.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path %>/admins/js/utils.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path %>/admins/js/listtable.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=path %>/admins/js/login.js" type=text/javascript></SCRIPT>
<SCRIPT src="transport.js" type=text/javascript></SCRIPT>
<SCRIPT src="common.js" type=text/javascript></SCRIPT>
<script type="text/javascript">
<!--
// 这里把JS用到的所有语言都赋值到这里
var process_request = "正在处理您的请求...";
var lang_enabled = "启用";
var lang_remove = "移除";
var attribute = "属性";
var remove_confirm = "删除类型将会清除该类型下的所有属性。\您确定要删除选定的类型吗?";
//-->
function checkAll()
{
a = document.getElementsByName("check");
var n = a.length;
for(var i = 0; i<n; i++){
a[i].checked = document.getElementById("cid").checked;
}
}
function checkNull()
{
var qid = document.query.qID.value;
var questionName = document.all.questionName.value;
if(qid == ""&& questionName=="")
{
alert("请输入搜索条件!");
return false;
}
}
function checkDelNull()
{
var a = document.getElementsByName("check");
alert(a);
if(check.checked)
{
alert("aaa");
return false;
}
}
</script>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<style type="text/css">
<!--
.STYLE1 {font-size: 8px}
.STYLE2 {color: #000000}
.STYLE4 {color: #000000; font-size: 16px; }
-->
</style>
</HEAD>
<BODY>
<H1>
<SPAN><银河管理中心 - 试题管理 </SPAN></H1>
<DIV class=form-div>
<form name="query" action="/yhsoft1/admins/exam/question.html?method=queryQuestion" method="post">
<table width="100%" height="29" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="5%" height="29"><img height=22 alt=SEARCH
src="../images/icon_search.gif" width=26 border=0></td>
<td align="center" width="8%">试题编号:</td>
<td align="center" width="14%"><input size=10 name="qID" value="" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
<td align="center" width="9%">试题名称 :</td>
<td align="center" width="14%"><input size=10 name="questionName" value=""></td>
<td align="center" width="7%"></td>
<td width="12%">
</td>
<td width="10%"><input name="submit" onclick="return checkNull()" type=submit class=button value=" 搜索 "></td>
</tr>
</table>
</form>
</DIV><!-- start goods type list -->
<DIV class=list-div id=listDiv>
<form name="admin" action="<%=path%>/admins/exam/question.html?method=delQuestion" method="post">
<table width="86%" height="52" cellpadding=3 cellspacing=1 id=listTable style="word-break: break-all">
<tbody>
<tr>
<th width="15%" align="center"><input type="checkbox" id="cid" name="checkbox" value="checkbox" onclick=checkAll()>试题编号</th>
<th width="35%" align="center">试题名称</th>
<th width="15%" align="center">所属科目</th>
<th width="15%" align="center">试题类型</th>
<th width="20%" align="center">操作</th>
</tr>
<%
QuestionVO questionVO = new QuestionVO();
List arrayList = (List) request.getAttribute("qlist");
//PaginationVO paginationVO = (PaginationVO) request.getAttribute("paginationVO");
for (int i = 0; i < arrayList.size(); i++) {
questionVO = (QuestionVO) arrayList.get(i);
%>
<tr>
<td class=first-cell align=center><input type="checkbox" name="check" value="<%=questionVO.getQuestionID() %>"><%=questionVO.getQuestionID() %></td>
<td align=middle ><a href="<%=path%>/admins/exam/question.html?method=viewQuestion&qID=<%=questionVO.getQuestionID() %> "><%=questionVO.getQuestionName() %></a></td>
<td align="middle"><%=questionVO.getObjectName() %></td>
<td align="middle"><%=questionVO.getQuestionTypeName() %></td>
<td align=middle >
<div align="center"><a title=查看 href="<%=path%>/admins/exam/question.html?method=viewQuestion&qID=<%=questionVO.getQuestionID() %> ">查看</a>
| <a title=修改
href="<%=path%>/admins/exam/question.html?method=lookQuestion&qID=<%=questionVO.getQuestionID() %>">修改</a>
</div>
</td>
</tr>
<%} %>
</table>
<input type=submit class=button value="删除所选" onClick="return confirm('确定删除?')">
</form>
<%
PaginationVO paginationVO = (PaginationVO)request.getAttribute("paginationVO");
if (paginationVO != null) {
out.print("<tr class=''>");
out.print("<TD height='30'");
out.print(" colspan='5'>");
out.print("<div align='CENTER'> "
+ " 共 "
+ paginationVO.getResultsNumber()
+ " 条记录 | 共 "
+ paginationVO.getAllPages()
+ " 页 | 当前第 "
+ paginationVO.getCurrentPage()
+ " 页 ");
if (paginationVO.getCurrentPage() > 1) {
out.print("| <<a href=\"" + path);
//请求服务器的URL
out.print("/admins/exam/question.html?method=queryQuestion");
out.print("¤tPage=1\">首页</a>> | <<a href=\""
+ path);
//请求服务器的URL
out.print("/admins/exam/question.html?method=queryQuestion");
out.print("¤tPage="
+ (paginationVO.getCurrentPage() - 1)
+ "\">上一页</a>> ");
} else {
out.print("| <font color='#999999'><首页></font> | <font color='#999999'><上一页></font> ");
}
if (paginationVO.getCurrentPage() < paginationVO.getAllPages()) {
out.print("| <<a href=\"" + path);
//请求服务器的URL
out.print("/admins/exam/question.html?method=queryQuestion");
out.print("¤tPage="
+ (paginationVO.getCurrentPage() + 1)
+ "\">下一页</a>> | <<a href=\""
+ path);
//请求服务器的URL
out.print("/admins/exam/question.html?method=queryQuestion");
out.print("¤tPage=" + paginationVO.getAllPages()
+ "\">尾页</a>>");
} else {
out.print("| <font color='#999999'><下一页></font> | <font color='#999999'><尾页></font>");
}
out.println();
out.print(" </div></TD>");
out.print("</tr>");
}
%>
</DIV>
<DIV id=footer><BR>
版权所有 @2005-2007 湖北银河软件开发有限公司,并保留所有权利。</DIV>
<!-- end goods type list -->
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -