Java web项目 在线网络考试添加考套题部分代码

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/Allureyou/article/details/54604728
<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
<title>网络在线考试——后台管理</title>
<link href="../CSS/style.css" rel="stylesheet">
</head>
<script language="javascript">
function checkForm(form){
	if(form.name.value==""){
		alert("请输入套题名称!");form.name.focus();return false;
	}
}
</script>
<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="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="84%">       </td>
</tr>
</table> 
<html:form action="/manage/taoTi.do?action=taoTiAdd" method="post" οnsubmit="return checkForm(taoTiForm)">
  <table width="63%"  border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
  <tr align="center">
    <td width="27%" height="30" align="left" style="padding:5px;">套题名称:</td>
    <td width="73%" align="left">
      <html:text property="name" size="30"/>
	  </td>
    <tr>
    <td height="30" align="left" style="padding:5px;">所属课程:</td>
    <td align="left">
	 <html:select property="lessonId">
		<html:options collection="lessonList" property="ID" labelProperty="name"/>
	 </html:select>
     </td>
    </tr>
    <tr>
      <td height="65" align="left" style="padding:5px;"> </td>
      <td><html:submit property="submit" styleClass="btn_grey" value="保存"/>
         
        <html:reset property="reset" styleClass="btn_grey" value="取消"/>
		 
		<html:button property="button" styleClass="btn_grey" value="返回" οnclick="window.location.href='taoTi.do?action=taoTiQuery'"/>		</td>
    </tr>
</table>
</html:form>
</td>
      </tr>
    </table>
</td>
  </tr>
</table>
<%@ include file="copyright.jsp"%>
</body>
</html>

展开阅读全文

没有更多推荐了,返回首页