add2_address_list.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:11k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <jsp:useBean id="groupSelect" scope="request" class="com.vnex.intranet.addresslist.handler.GroupSelectHandler" />
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/util/popup.js"></script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language="JavaScript">
- function checkChar(str)
- {
- var i,j,strTemp;
- strTemp=""<>/\'%&";
- for (i=0;i<str.length;i++)
- {
- j=strTemp.indexOf(str.charAt(i));
- if (j!=-1)
- {
- return false;
- }
- }
- return true;
- }
- function searchIt(form)
- {
- if(checkChar(form.search_text.value))
- {
- form.action = "/mainctrl/addressbook/home";
- form.submit();
- }
- else
- {
- alert("请不要在查询条件中加入"<>/\'%&这样的字符");
- }
- }
- function addToAddressBook(form)
- {
- if(checkIt(form))
- {
- form.action="/mainctrl/addressbook/createContactProcess";
- form.submit();
- }
- }
- function checkIt(form)
- {
- if(isEmpty(form.contactName.value) || isEmptyStr(form.contactName.value))
- {
- alert("请输入联系人姓名");
- form.contactName.focus();
- return false;
- }
- if(isInvalidateLen(form.notes.value, 2000))
- {
- alert("你的注释过长了,它只能容纳500个汉字或2000个英文字符");
- form.notes.focus();
- return false;
- }
- return true;
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td align="center" colspan="2" bgcolor="#FFFFFF">
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#666666">
- <td colspan="2"><font class="strongw"><a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>><a href="/mainctrl/personal/main"><font color="#ffffff">个人办公</font></a>>><a href="/mainctrl/addressbook/home"><font color="#ffffff">个人通讯录</font></a>>>添加联系人</font>
- </td>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr height="22">
- <td colspan="4"><font class="strong"> 基本信息</font></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td align="left" width="14%"><strong> 姓名:</strong></td>
- <td align="left" colspan="3">
- <input type="text" name="contactName" maxlength="10" size="25" class="text"> * (注:带*为必填内容)
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td align="left" width="14%"><strong> 昵称:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="nickName" maxlength="10" size="25" class="text">
- </td>
- <td align="left" width="14%"><strong> 生日:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="bDate" readonly size="25" class="text">
- <img src="/vnex/util/datetime.gif" style="cursor:hand;" align="absmiddle" alt="弹出日历下拉菜单" onClick="fPopUpCalendarDlg(bDate);return false;">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td align="left" width="14%"><strong> 性别:</strong></td>
- <td align="left" colspan="3">
- <input type="radio" name="gender" value="0" checked > 男
- <input type="radio" name="gender" value="1"> 女
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td align="left" width="14%"><strong> 联系组别:</strong></td>
- <td align="left" colspan="3">
- <select name="contactGrp" size="4" multiple style="width:144px">
- <option value="0"></option>
- <%=groupSelect.generateGroupCode(""+BusinessName.getEmpId(), null)%>
- </select>
- <<按住<font color="#ff0000">Ctrl</font>键并用鼠标点击相应组别可以进行复选>>
- </td>
- </tr>
- <tr height="22">
- <td colspan="4"><font class="strong"> 联系方式</font></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td align="left" width="14%"><strong> EMail:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="emailAddress" maxlength="25" size="25" class="text">
- </td>
- <td align="left" width="14%"><strong> 备用EMail:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="anotherEmail" maxlength="25" size="25" class="text">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td align="left" width="14%"><strong> 个人主页:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="personalUrl" maxlength="25" size="25" class="text">
- </td>
- <td align="left" width="14%"><strong> OICQ:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="oicqNum" maxlength="10" size="25" class="text">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td align="left" width="14%"><strong> 呼机:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="pagerNum" maxlength="25" size="25" class="text">
- </td>
- <td align="left" width="14%"><strong> 手机:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="mobileNum" maxlength="25" size="25" class="text">
- </td>
- </tr>
- <tr height="22">
- <td colspan="4"><font class="strong"> 家庭信息</font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td align="left" width="14%"><strong> 家庭地址:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="homeAddress" maxlength="125" size="25" class="text">
- </td>
- <td align="left" width="14%"><strong> 邮政编码:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="homePC" maxlength="6" size="25" class="text">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td align="left" width="14%"><strong> 家庭电话:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="homeTeleNum" maxlength="25" size="25" class="text">
- </td>
- <td align="left" width="14%"> </td>
- <td align="left" width="36%"> </td>
- </tr>
- <tr height="22">
- <td colspan="2"><font class="strong"> 工作信息</font></td>
- </tr>
- <tr bgcolor="#fafafa">
- <td align="left" width="14%"><strong> 工作单位:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="unit" maxlength="25" size="25" class="text">
- </td>
- <td align="left" width="14%"><strong> 职务:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="position" maxlength="10" size="25" class="text">
- </td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td align="left" width="14%"><strong> 单位地址:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="unitAddress" maxlength="125" size="25" class="text">
- </td>
- <td align="left" width="14%"><strong> 单位电话:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="unitTeleNum" maxlength="25" size="25" class="text">
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td align="left" width="14%"><strong> 单位邮编:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="unitPC" maxlength="6" size="25" class="text">
- </td>
- <td align="left" width="14%"><strong> 单位传真:</strong></td>
- <td align="left" width="36%">
- <input type="text" name="unitFaxNum" maxlength="25" size="25" class="text">
- </td>
- </tr>
- <tr height="22">
- <td colspan="2"><font class="strong"> 其它信息</font></td>
- </tr>
- <tr bgcolor="#e0e0e0">
- <td align="left" width="14%"><strong> 备注:</strong></td>
- <td align="left" colspan="3">
- <textarea name="notes" cols="59" rows="5"></textarea>
- </td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="4" align="center" height="30">
- <input type="button" name="Button2" value="保存" onClick="addToAddressBook(this.form)" class="text">
-
- <input type="reset" name="Button2" value="重置" class="text">
-
- <input type="button" name="Button2" value="放弃" class="text" onclick="history.back()">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>