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

📄 modifytestitem.jsp

📁 培训考试系统代码
💻 JSP
字号:
<%--
/**
 * Copyright  1988-2004, Huawei Tech. Co., Ltd.
 * filename: ModifyTestItem.jsp
 * description: 配置考题数目
 * date: 2004-06-09
 * @author 黄育源
 * @version 3.0
 *
 * History:         // 历史修改记录
 * <author>  <time>   <version >   <desc>
 */
--%>

<%@ page contentType="text/html;charset=gb2312"%>

<%@ page import = "com.huawei.icd30.common.systemconfig.*" %>
<%
    // 确保系统已经初始化
    if (!Initor.ensureInited())
    {
        response.sendRedirect("/public/systemconfig/common/error.jsp?ecode=initorError");
        return;
    }
%>

<%@ include file="/agt/public/jsp/top.jsp" %>


<form name="testItemform" method="POST" action="/testItemAction.do">

  <table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1">

    <tr align="center">

                        <td height="35" colspan="3" class="td-cs1"><strong>配置考题数目</strong></td>

    </tr>

    <tr>

      <td align="right" nowrap class="td-cs1">每页显示的考题数目:</td>

      <td colspan="2" class="td-cs2">

        <input name="testItemNum" type="text" class="input1" value="<%=Initor.systemConfig.get("agt/testItemNum","10")%>">
        <font color="#FFFFFF">(范围:1-100)</font>
      </td>

    </tr>



  </table>

                    <table width="400" border="0" cellspacing="1" cellpadding="3">
                      <tr>
                        <td height="35" align="right" width="40%" >
                          <input name="edit" type="image" onclick="submitConfig();return false;" src="/agt/public/images/edit.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
                        </td>
                                                 <td height="50"align="center" width="60%" >
                 <input name="reset" type="image" onclick="reset();return false;" src="/agt/public/images/reset.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'"></td>

                      </tr>
                    </table>
                  </form>

<%@ include file="/agt/public/jsp/bot.jsp" %>

<script src="/agt/public/js/scriptfuns.js" type="text/javascript"></script>
<script language="javascript">


function submitConfig()
{
     var testItemNum = document.forms[0].testItemNum;


      if(testItemNum == null || testItemNum.value =="")
      {
         testItemNum.focus();
         alert("列表每页显示的行数参数不能为空。");
         return;
      }

      if(! isNumber(testItemNum.value))
      {
          testItemNum.focus();
          alert("列表每页显示的行数参数输入不符合格式。");
          return;
      }

      if(testItemNum.value < 1 || testItemNum.value > 100)
      {
           testItemNum.focus();
           alert("列表每页显示的行数参数输入不符合格式。");
           return;
      }


     document.forms[0].submit();
}


</script>

⌨️ 快捷键说明

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