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

📄 aeab102a.jsp

📁 WAP PUSH后台源码,WAP PUSH后台源码
💻 JSP
字号:
 <html>
<head>
<title>管理软件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<%@ include file="../aadm/jspheader.jsp"%>
<%@ page contentType="text/html; charset=gb2312" %>

<%
/**
 * <p>功能: 新增企业成员联系人</p>
 * <p>作者: sxit</p>
 * <p>公司: 深训信科</p>
 * <p>日期: 2005-07-21</p>
 * @版本: 1.0
 * @修改:
**/
%>

<%
String groupid="";
if(request.getAttribute("groupid")!=null){
  groupid=(String)request.getAttribute("groupid");
}
String userid="";
if(request.getAttribute("userid")!=null){
  userid=(String)request.getAttribute("userid");
}
int i=0;
int j=0;
%>
<script type="text/javascript" src="/calendar.js"></script>
<script language=javascript>
<!--
  var CalendarWebControl = new atCalendarControl();
-->
</script>
<script lanaguage="javascript">
<!--
function isEmpty(s){
  return ((s == null) || (s.length == 0))
}
function isInBag(s,bag){
  var i;
  for (i = 0; i < s.length; i++){
    var c = s.charAt(i);
    if (bag.indexOf(c) == -1) return false;
  }
  return true;
}
function isNotInBag(s,bag){
  var i;
  for (i = 0; i < s.length; i++){
    var c = s.charAt(i);
    if (bag.indexOf(c) > -1) return false;
  }
  return true;
}
function isGoodChar(content2){
  if (isNotInBag(content2," -_.><,[]{}?/+=|\\\'\":;~!@#$%^&()`")) return true;
  else return false;
}
function isNumber(content2){
  if (isInBag(content2,"0123456789")) return true;
  else return false;
}
function isDouble(content2){
  if (isInBag(content2,".0123456789")) return true;
  else return false;
}
function isLetter(content2){
  if (isInBag(content2,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")) return true;
  else return false;
}
function isLetterNumber(content2){
  if (isInBag(content2,"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")) return true;
  else return false;
}
function isTel(content2){
  if (isInBag(content2,",;/()-0123456789 ")) return true;
  else return false;
}
//str全部为空格
function isSpace(content2){
  for(i=0;i<content2.length;i++){
    var c=content2.charAt(i);
    if(c!=" ") return false;
  }
  return true;
}
//str为邮件地址
function isEMail(content2){
  len=content2.length;
  pos1=content2.indexOf("@");
  pos2=content2.indexOf(".");
  if ((pos1<= 0)||(pos1==len)||(pos2<= 0)||(pos2== len)){
    return false;
  }else{
    if((pos1==pos2-1)||(pos1==pos2+1)){
      return false;
    }
  }

  return true;
}
function getStringLength(content2){
  var num=0;
  if (content2!=""){
    var i;
    var s;
    for(i=0;i<content2.length;i++){
      s=content2.charCodeAt(i);
      if(s-128<0) num=num+1;
      else num=num+2;
    }
  }
  return num;
}
function isOneSpace (s)
{
  var whitespace = " tnr";
  var i;
   for (i = 0; i < s.length; i++)
   {
       var c = s.charAt(i);
       if (whitespace.indexOf(c) >= 0)
	   {
		  return true;
	   }
   }
   return false;
}
function getValue(){

  if(document.form1.groupid.options[document.form1.groupid.selectedIndex].value==0){
     alert("请选择分组,不能不选!");
     document.form1.groupid.focus();
     return false;
  }
  
  
  if(isEmpty(document.form1.membername.value)){
     alert("请输入姓名全称,不能为空!");
     document.form1.membername.focus();
     return false;
  }else{
    if(isSpace(document.form1.membername.value)){
      alert("请输入正确姓名全称,不能全部为空格!");
      document.form1.membername.focus();
      return false;
    }else{
      if(getStringLength(document.form1.membername.value)>50){
        alert("请输入正确姓名全称,长度为1-50位!");
        document.form1.membername.focus();
        return false;
      }
    }
  }

  
  if(isEmpty(document.form1.email.value)){
     alert("请输入电子邮件,不能为空!");
     document.form1.email.focus();
     return false;
  }else{
    if(isSpace(document.form1.email.value)){
      alert("请输入正确电子邮件,不能全部为空格!");
      document.form1.email.focus();
      return false;
    }else{
      if(getStringLength(document.form1.email.value)>50){
        alert("请输入正确电子邮件,长度为1-50位!");
        document.form1.email.focus();
        return false;
      }
    }
  }

  
  if(isEmpty(document.form1.mobiletel.value)){
     alert("请输入移动电话,不能为空!");
     document.form1.mobiletel.focus();
     return false;
  }else{
    if(isSpace(document.form1.mobiletel.value)){
      alert("请输入正确移动电话,不能全部为空格!");
      document.form1.mobiletel.focus();
      return false;
    }else{
      if(getStringLength(document.form1.mobiletel.value)>20){
        alert("请输入正确移动电话,长度为1-20位!");
        document.form1.mobiletel.focus();
        return false;
      }
    }
  }

  
  if(document.form1.sexid.options[document.form1.sexid.selectedIndex].value==0){
     alert("请选择性别(1:男,2:女),不能不选!");
     document.form1.sexid.focus();
     return false;
  }

  
  if(document.form1.statusid.options[document.form1.statusid.selectedIndex].value==0){
     alert("请选择状态,不能不选!");
     document.form1.statusid.focus();
     return false;
  }


  document.form1.save.value="save";
  return true;
}
// -->
</script>



</head>
<body leftmargin="0" marginwidth="0" marginheight="0" topmargin="0">
<%@ include file="../aadm/menu.jsp"%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table1">
    <tr class="tr1">
      <td>您目前正在企业通讯录-企业成员联系人管理-新增企业成员联系人页面</td>
    </tr>
  </table>

    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
  <tr>
    <td>
  <table width="100%" border="0" cellspacing="1" cellpadding="0" align="center" class="table2">
    <tr class="tr2">
      <td>
<form name="form1" action="../aeab/aeab102b" method="post" onsubmit="return getValue()" enctype="multipart/form-data">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table3">
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table>
        
        
        
        
        <table width="65%" border=1 align=center cellpadding=1 cellspacing=1 bordercolor="#FFFFFF" bgcolor="#DADDE2" align="center" class="table5">
           

          
          
           <input type="hidden" name="save">
           <input type="hidden" name="userid" value="100">
           <input type="hidden" name="businesstel2" value="000000">
           <input type="hidden" name="surname" value="轩辕">
           <input type="hidden" name="firstname" value="炎黄子孙">
           <input type="hidden" name="nickname" value="炎黄子孙">
           <input type="hidden" name="type" value="1">
           <input type="hidden" name="cartel" value="13666666666">
           <input type="hidden" name="radiotel" value="13666666666">
           <input type="hidden" name="pager" value="13666666666">
           <input type="hidden" name="icq" value="66666666">
           <input type="hidden" name="favorite" value="爱好广泛">
           <input type="hidden" name="website" value="www.china.com">
           <input type="hidden" name="housecountry" value="中国">
           <input type="hidden" name="houseprovince" value="江西">
           <input type="hidden" name="housecity" value="宜春">
           <input type="hidden" name="housepostalcode" value="000000">
           <input type="hidden" name="houseaddress" value="四海为家">
           <input type="hidden" name="housetel2" value="000000">
           <input type="hidden" name="housefax" value="000000">
           <input type="hidden" name="email2" value="email2@jxyc.com.cn">
           <input type="hidden" name="commemorationdate" value="1983-02-11">
           <input type="hidden" name="spouse" value="大乔">
           <input type="hidden" name="children" value="孙仲谋">
           <input type="hidden" name="corporation" value=" ">
           <input type="hidden" name="duty" value=" ">
           <input type="hidden" name="officecountry" value="中国">
           <input type="hidden" name="officeprovince" value="江西">
           <input type="hidden" name="officecity" value="宜春">
           <input type="hidden" name="officepostalcode" value="000000">
           <input type="hidden" name="assistant" value=" ">
           <input type="hidden" name="assistanttel" value="000000">
           <input type="hidden" name="businessfax" value="000000">
           <input type="hidden" name="email3" value="email3@jxyc.com">
           <input type="hidden" name="filename" value="000000">
           <input type="hidden" name="sharerankid" value="1">
           <input type="hidden" name="department" value="开发部">
           <input type="hidden" name="qq" value="6666666">
           <input type="hidden" name="corporationwebsite" value="www">
           <input type="hidden" name="description" value="很棒的员工">
           <input type="hidden" name="housetel" value="6666666">
           
           
           
          
           <tr>
            <td align="center" class="tr52">
              部门
            </td>
            <td class="tr52">
              <select name="groupid" class="select1">
                <%=groupid%>
              </select>
             <font color="#FF0000">*</font> </td>
          </tr>
          
          <tr>
            <td align="center" class="tr52">
              姓名
            </td>
            <td class="tr52">
              <input type="text" name="membername" size="20" maxlength="50" class="text1">
              <font color="#FF0000">*</font> </td>
          </tr>
          
 
           <tr>
            <td align="center" class="tr52">
              性别
            </td>
            <td class="tr52">
              <select name="sexid" class="select1">
                <option selected value='0'>请选择</option>
                <option value='1'>女</option>
                <option value='2'>男</option>
              </select>
              <font color="#FF0000">*</font> </td>
          </tr>
           
          
           <tr>
            <td align="center" class="tr52">
              生日
            </td>
            <td class="tr52">
              <input type="text" name="birthday" size="20" readonly class="text1"><a href="javascript:CalendarWebControl.show(document.form1.elements['birthday'],document.form1.elements['birthday'].value)">选择日期</a>
            </td>
          </tr>
          
          <tr>
            <td align="center" class="tr52">
              移动电话
            </td>
            <td class="tr52">
              <input type="text" name="mobiletel" size="20" maxlength="20" class="text1">
            <font color="#FF0000">*</font> </td>
          </tr>
          
           <tr>
            <td align="center" class="tr52">
              商务电话
            </td>
            <td class="tr52">
              <input type="text" name="businesstel" size="20" maxlength="20" class="text1">
            </td>
          </tr>
          
          
          <tr>
            <td align="center" class="tr52">
              电子邮件
            </td>
            <td class="tr52">
              <input type="text" name="email" size="20" maxlength="50" class="text1">
          </tr>
                  
          <tr>
            <td align="center" class="tr52">
              办公地址
            </td>
            <td class="tr52">
              <input type="text" name="officeaddress" size="20" maxlength="50" class="text1">
            </td>
          </tr>
          
         
  
          <tr>
            <td align="center" class="tr52">
              状态
            </td>
            <td class="tr52">
              <select name="statusid" class="select1">
                <option value='0'>请选择</option>
                <option value='1'>不用</option>
                <option selected value='2'>使用</option>
              </select>
            <font color="#FF0000">*</font> </td>
          </tr>
          
          
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="table6">
          <tr> 
            <td>&nbsp;
            </td>
          </tr>
          <tr align="center"> 
            <td><input type="submit" value="保存" class="button1">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="返回" onclick="javascript:history.back(-1)" class="button1">
            </td>
          </tr>
          <tr> 
            <td>&nbsp;
            </td>
          </tr>
        </table>
</form>
      </td>
    </tr>
  </table>

    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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