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

📄 modifypage.jsp

📁 培训考试系统代码
💻 JSP
字号:
<%@ 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="pageform" method="POST" action="/pageAction.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="pagenum" type="text" class="input1" value="<%=Initor.systemConfig.get("agt/pageNum","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 pagenum = document.forms[0].pagenum;


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

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

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


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


</script>

⌨️ 快捷键说明

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