add2_address_list.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:11k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
  3. <jsp:useBean id="groupSelect" scope="request" class="com.vnex.intranet.addresslist.handler.GroupSelectHandler" />
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  5. <HTML>
  6. <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
  7. <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
  8. <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
  9. <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
  10. <script language="JavaScript" src="/vnex/util/popup.js"></script>
  11. <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
  12. <script language="JavaScript">
  13. function checkChar(str)
  14. {
  15.     var i,j,strTemp;
  16.     strTemp=""<>/\'%&";
  17.     for (i=0;i<str.length;i++)
  18.     {
  19.       j=strTemp.indexOf(str.charAt(i));
  20.       if (j!=-1)
  21.       {
  22.         return false;
  23.       }
  24.     }
  25.     return true;
  26. }
  27. function searchIt(form)
  28. {
  29.    if(checkChar(form.search_text.value))
  30.    {
  31.       form.action = "/mainctrl/addressbook/home";
  32.       form.submit();
  33.    }
  34.    else
  35.    {
  36.       alert("请不要在查询条件中加入"<>/\'%&这样的字符");
  37.    }
  38. }
  39. function addToAddressBook(form)
  40. {
  41.    if(checkIt(form))
  42.    {
  43.        form.action="/mainctrl/addressbook/createContactProcess";
  44.        form.submit();
  45.    }
  46. }
  47. function checkIt(form)
  48. {
  49.    if(isEmpty(form.contactName.value) || isEmptyStr(form.contactName.value))
  50.    {
  51.        alert("请输入联系人姓名");
  52.        form.contactName.focus();
  53.        return false;
  54.    }
  55.    if(isInvalidateLen(form.notes.value, 2000))
  56.    {
  57.        alert("你的注释过长了,它只能容纳500个汉字或2000个英文字符");
  58.        form.notes.focus();
  59.        return false;
  60.    }
  61.    return true;
  62. }
  63. </script>
  64. <DIV align=center>
  65. <form name="form1" method="post" action="">
  66.   <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
  67.     <TBODY>
  68.     <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
  69.     <TR> 
  70.         <TD colSpan=3 align="center"><br>
  71.           <table width="600" border="1" cellspacing="1" bordercolor="#666666">
  72.             <tr> 
  73.               <td align="center" colspan="2" bgcolor="#FFFFFF"> 
  74.                 <table width="600" border="0" cellspacing="0" cellpadding="0">
  75.                   <tr bgcolor="#666666"> 
  76.                       <td colspan="2"><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>&gt;&gt;<a href="/mainctrl/personal/main"><font color="#ffffff">个人办公</font></a>&gt;&gt;<a href="/mainctrl/addressbook/home"><font color="#ffffff">个人通讯录</font></a>&gt;&gt;添加联系人</font>
  77.                       </td>
  78.                   </tr>
  79.                 </table>
  80.                 <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
  81.                    <tr height="22">
  82.                        <td colspan="4"><font class="strong">&nbsp;基本信息</font></td>
  83.                    </tr>
  84.                    <tr bgcolor="#e0e0e0">
  85.                     <td align="left" width="14%"><strong>&nbsp;姓名:</strong></td>
  86.                     <td align="left" colspan="3">
  87.                      <input type="text" name="contactName" maxlength="10" size="25" class="text">&nbsp;*&nbsp;(注:带*为必填内容)
  88.                     </td>
  89.                </tr>
  90.                <tr bgcolor="#fafafa">     
  91.                     <td align="left" width="14%"><strong>&nbsp;昵称:</strong></td>
  92.                     <td align="left" width="36%">
  93.                      <input type="text" name="nickName" maxlength="10" size="25" class="text">
  94.                     </td>
  95.                     <td align="left" width="14%"><strong>&nbsp;生日:</strong></td>
  96.                     <td align="left" width="36%">
  97.                      <input type="text" name="bDate" readonly size="25" class="text">
  98.                              <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(bDate);return false;">
  99.                     </td>
  100.                   </tr>
  101.                   <tr bgcolor="#e0e0e0">  
  102.                     <td align="left" width="14%"><strong>&nbsp;性别:</strong></td>
  103.                     <td align="left" colspan="3">
  104.                        <input type="radio" name="gender" value="0" checked >&nbsp;男&nbsp;
  105.                        <input type="radio" name="gender" value="1">&nbsp;女
  106.                     </td>
  107.                   </tr>  
  108.                   <tr bgcolor="#fafafa">
  109.                     <td align="left" width="14%"><strong>&nbsp;联系组别:</strong></td>
  110.                     <td align="left" colspan="3">
  111.                        <select name="contactGrp" size="4" multiple style="width:144px">
  112.                           <option value="0"></option>
  113.                           <%=groupSelect.generateGroupCode(""+BusinessName.getEmpId(), null)%>
  114.                </select>
  115.                &lt;&lt;按住<font color="#ff0000">Ctrl</font>键并用鼠标点击相应组别可以进行复选&gt;&gt;
  116.             </td>
  117.            </tr>
  118.                    <tr height="22">
  119.                        <td colspan="4"><font class="strong">&nbsp;联系方式</font></td>
  120.                    </tr>
  121.                    <tr bgcolor="#e0e0e0">
  122.                  <td align="left" width="14%"><strong>&nbsp;EMail:</strong></td>
  123.                  <td align="left" width="36%">
  124.                    <input type="text" name="emailAddress" maxlength="25" size="25" class="text">
  125.                  </td>
  126.                          <td align="left" width="14%"><strong>&nbsp;备用EMail:</strong></td>
  127.                          <td align="left" width="36%">
  128.                              <input type="text" name="anotherEmail" maxlength="25" size="25" class="text">
  129.                          </td>
  130.                    </tr>
  131.                    <tr bgcolor="#fafafa">   
  132.                      <td align="left" width="14%"><strong>&nbsp;个人主页:</strong></td>
  133.                      <td align="left" width="36%">
  134.                        <input type="text" name="personalUrl" maxlength="25" size="25" class="text">
  135.                      </td>
  136.                          <td align="left" width="14%"><strong>&nbsp;OICQ:</strong></td>
  137.                          <td align="left" width="36%">
  138.                             <input type="text" name="oicqNum" maxlength="10" size="25" class="text">
  139.                         </td>
  140.                    </tr>
  141.                    <tr bgcolor="#e0e0e0">   
  142.                         <td align="left" width="14%"><strong>&nbsp;呼机:</strong></td>
  143.                         <td align="left" width="36%">
  144.                             <input type="text" name="pagerNum" maxlength="25" size="25" class="text">
  145.                         </td>    
  146.                 <td align="left" width="14%"><strong>&nbsp;手机:</strong></td>
  147.                 <td align="left" width="36%">
  148.                   <input type="text" name="mobileNum" maxlength="25" size="25" class="text">
  149.            </td>
  150.        </tr>  
  151.                    <tr height="22">
  152.                        <td colspan="4"><font class="strong">&nbsp;家庭信息</font></td>
  153.                    </tr>
  154.                    <tr bgcolor="#fafafa">
  155.                <td align="left" width="14%"><strong>&nbsp;家庭地址:</strong></td>
  156.                <td align="left" width="36%">
  157.                  <input type="text" name="homeAddress" maxlength="125" size="25" class="text">
  158.                </td>  
  159.                        <td align="left" width="14%"><strong>&nbsp;邮政编码:</strong></td>
  160.                        <td align="left" width="36%">
  161.                           <input type="text" name="homePC" maxlength="6" size="25" class="text">
  162.                        </td>
  163.                    </tr>
  164.                    <tr bgcolor="#e0e0e0">   
  165.                    <td align="left" width="14%"><strong>&nbsp;家庭电话:</strong></td>
  166.                    <td align="left" width="36%">
  167.                      <input type="text" name="homeTeleNum" maxlength="25" size="25" class="text">
  168.                    </td>
  169.                        <td align="left" width="14%">&nbsp;</td>
  170.                        <td align="left" width="36%">&nbsp;</td>
  171.        </tr>  
  172.                    <tr height="22">
  173.                         <td colspan="2"><font class="strong">&nbsp;工作信息</font></td>
  174.                    </tr>
  175.                    <tr bgcolor="#fafafa">
  176.    <td align="left" width="14%"><strong>&nbsp;工作单位:</strong></td>
  177.    <td align="left" width="36%">
  178.         <input type="text" name="unit" maxlength="25" size="25" class="text">
  179.                    </td>
  180.                        <td align="left" width="14%"><strong>&nbsp;职务:</strong></td>
  181.                        <td align="left" width="36%">
  182.                             <input type="text" name="position" maxlength="10" size="25" class="text">
  183.                        </td>
  184.                    </tr>
  185.                    <tr bgcolor="#e0e0e0">   
  186.        <td align="left" width="14%"><strong>&nbsp;单位地址:</strong></td>
  187.                        <td align="left" width="36%">
  188.                             <input type="text" name="unitAddress" maxlength="125" size="25" class="text">
  189.                        </td>
  190.                        <td align="left" width="14%"><strong>&nbsp;单位电话:</strong></td>
  191.                        <td align="left" width="36%">
  192.                            <input type="text" name="unitTeleNum" maxlength="25" size="25" class="text">
  193.                        </td>
  194.                    </tr>
  195.                    <tr bgcolor="#fafafa">   
  196.                       <td align="left" width="14%"><strong>&nbsp;单位邮编:</strong></td>
  197.                       <td align="left" width="36%">
  198.                            <input type="text" name="unitPC" maxlength="6" size="25" class="text">
  199.                       </td>   
  200.                   <td align="left" width="14%"><strong>&nbsp;单位传真:</strong></td>
  201.   <td align="left" width="36%">
  202.        <input type="text" name="unitFaxNum" maxlength="25" size="25" class="text">
  203.           </td>
  204.       </tr>  
  205.                   <tr height="22">
  206.                       <td colspan="2"><font class="strong">&nbsp;其它信息</font></td>
  207.                   </tr>
  208.                   <tr bgcolor="#e0e0e0">
  209.                       <td align="left" width="14%"><strong>&nbsp;备注:</strong></td>
  210.                       <td align="left" colspan="3">
  211.             <textarea name="notes" cols="59" rows="5"></textarea>
  212.               </td>
  213.                    </tr>
  214.            <tr bgcolor="#fafafa">
  215.              <td colspan="4" align="center" height="30"> 
  216.                   <input type="button" name="Button2" value="保存" onClick="addToAddressBook(this.form)" class="text">
  217.                   &nbsp;&nbsp;
  218.                   <input type="reset" name="Button2" value="重置" class="text">
  219.                   &nbsp;&nbsp;
  220.                   <input type="button" name="Button2" value="放弃" class="text" onclick="history.back()">
  221.                      </td>
  222.            </tr>
  223.                </table>
  224.               </td>
  225.             </tr>
  226.           </table>
  227.           <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
  228.        </TD>
  229.      </TR>
  230.      <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
  231.     </TBODY> 
  232.   </TABLE>
  233.     <BR>
  234.   <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
  235. </form>
  236. </DIV>
  237. </BODY>
  238. </HTML>