bangongtongxuluxiugai.aspx
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:22k
源码类别:

OA系统

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="bangongtongxuluxiugai.aspx.cs" Inherits="qs_Default" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.     <title>办公通讯录修改</title>
  6.     <link href="../css/textarea.css" rel="stylesheet" type="text/css"/>
  7. <style type="text/css">
  8. <!--
  9. .style1 {
  10. color: #FFFFFF;
  11. font-weight: bold;
  12. }
  13. body {
  14. margin-top: 0px;
  15. }
  16. }
  17. -->
  18. </style>
  19.     <script type="text/javascript" language="javascript">
  20. function check() 
  21. {
  22.   if(document.form1.txtShouji.value!="")
  23. {
  24.     var mobile = document.form1.txtShouji.value;
  25.     var myreg = /^(((13[0-9]{1})|159|(15[0-9]{1}))+d{8})$/;
  26.     if(mobile.length!=11)
  27.     {
  28.         alert("请输入合法的手机号码位数!");
  29.         document.form1.txtShouji.value = "";
  30.         document.form1.txtShouji.focus();
  31.         return false;
  32.     } 
  33.     
  34.       
  35.     if(!myreg.test(mobile))
  36.     {
  37.         alert("请输入合法的手机号码!");
  38.         document.form1.txtMobile.value = "";
  39.         document.form1.txtMobile.focus();
  40.         return false;
  41.     }
  42. }
  43. if(document.form1.txtEmail.value !="")
  44. {
  45.     var pattern = /^([a-z0-9A-Z]+[-|.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?.)+[a-zA-Z]{2,}$/;
  46.     var b = pattern.test(document.form1.txtEmail.value);
  47.     if(b)
  48.     {  
  49.     }else
  50.     {
  51.         alert("eMail格式不正确! 如: wc840302@163.com"); 
  52.         document.form1.txtEmail.value = "";
  53.         document.form1.txtEmail.focus()
  54.         return false;
  55.     }            
  56. }
  57.    
  58. if(document.form1.txtBangong.value!="")
  59. {
  60.     var str=document.form1.txtBangong.value;
  61.     var reg=/(^[0-9]{3,4}-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^([0-9]{3,4})[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/
  62.     if(reg.test(str))
  63.     {
  64.         alert("请输入合法的电话号码!如:01067231100");
  65.         document.form1.txtBangong.value = "";
  66.         document.form1.txtBangong.focus();
  67.         return false;
  68.     } 
  69.     
  70. }
  71. if(document.form1.txtXiaolingtong.value!="")
  72. {
  73.     var str=document.form1.txtXiaolingtong.value;
  74.     var reg=/(^[0-9]{3,4}-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^([0-9]{3,4})[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/
  75.     if(reg.test(str))
  76.     {
  77.         alert("请输入合法的电话号码!如:01067231100");
  78.         document.form1.txtXiaolingtong.value = "";
  79.         document.form1.txtXiaolingtong.focus();
  80.         return false;
  81.     } 
  82.     
  83. }
  84. if(document.form1.txtFenji.value!="")
  85. {
  86.     var str=document.form1.txtFenji.value;
  87.     var reg=/(^[0-9]{3,4}-[0-9]{3,8}$)|(^[0-9]{3,8}$)|(^([0-9]{3,4})[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)/
  88.     if(reg.test(str))
  89.     {
  90.         alert("请输入合法的电话号码!如:01067231100");
  91.         document.form1.txtFenji.value = "";
  92.         document.form1.txtFenji.focus();
  93.         return false;
  94.     } 
  95.     
  96. }
  97. }
  98. </script>
  99. </head>
  100. <body>
  101.           <form id="form1" runat="server" onsubmit="return check()">
  102.     <div>
  103.     <div><table border="0" cellpadding="0" cellspacing="0" bgcolor="#5AAE18" style="width: 100%">
  104.     <tr>
  105.       <td width="6" height="21"><img alt="" src="../../img/bbs/leftlin1.gif" width="6" height="21"/></td>
  106.       <td width="936" bgcolor="#5AAE18"><div align="center"><span class="style3"><span class="style1">通 讯 录</span></span></div></td>
  107.       <td height="21">&nbsp;</td>
  108.     </tr>
  109.   </table></div>
  110.     
  111.         <div align="center">
  112.             <table bgcolor="#5aae18" border="0" cellpadding="3" cellspacing="1" width="100%">
  113.                 <tr>
  114.                     <td bgcolor="#ffffff" >
  115.                         <div align="left">
  116.                             姓 名:</div>
  117.                     </td>
  118.                     <td bgcolor="#ffffff" >
  119.                         <asp:TextBox ID="txtUname" runat="server"></asp:TextBox>&nbsp;
  120.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  ControlToValidate="txtUname" ErrorMessage="姓名不能为空">*</asp:RequiredFieldValidator>
  121.                     </td>
  122.                     <td bgcolor="#ffffff" >
  123.                         职 务:
  124.                         <asp:TextBox ID="txtZhiWu" runat="server"></asp:TextBox>
  125.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtZhiWu" ErrorMessage="职务不能为空">*</asp:RequiredFieldValidator>
  126.                        
  127.                         </td>
  128.                         </tr>
  129.                 <tr>
  130.                     <td bgcolor="#ffffff" >
  131.                         <div align="left">
  132.                             部门:</div>
  133.                     </td>
  134.                     <td bgcolor="#ffffff" >
  135.                         <asp:TextBox ID="txtBumen" runat="server"></asp:TextBox>&nbsp;
  136.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtBumen" ErrorMessage="部门不能为空">*</asp:RequiredFieldValidator>
  137.                     
  138.                     </td>
  139.                     <td bgcolor="#ffffff">
  140.                         小灵通:
  141.                         <asp:TextBox ID="txtXiaolingtong" runat="server"></asp:TextBox>
  142.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtXiaolingtong" ErrorMessage="小灵通不能为空">*</asp:RequiredFieldValidator>
  143.                         </td>
  144.                         </tr>
  145.                 <tr>
  146.                     <td bgcolor="#ffffff">
  147.                         <div align="left">
  148.                             手 机:</div>
  149.                     </td>
  150.                     <td bgcolor="#ffffff">
  151.                         <asp:TextBox ID="txtShouji" runat="server"></asp:TextBox>&nbsp;
  152.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtShouji" ErrorMessage="手机不能为空">*</asp:RequiredFieldValidator></td>
  153.                         
  154.                         <td bgcolor="#ffffff">
  155.                             办公电话:
  156.                         <asp:TextBox ID="txtBangong" runat="server"></asp:TextBox>
  157.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtBangong" ErrorMessage="办公不能为空">*</asp:RequiredFieldValidator>
  158.                         </td>
  159.                         </tr>
  160.                 <tr>
  161.                     <td bgcolor="#ffffff">
  162.                         <div align="left">
  163.                             分机:</div>
  164.                     </td>
  165.                     <td bgcolor="#ffffff">
  166.                         <asp:TextBox ID="txtFenji" runat="server"></asp:TextBox>&nbsp;
  167.                         </td>
  168.                     <td bgcolor="#ffffff">
  169.                         Email:
  170.                         <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
  171.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtEmail" ErrorMessage="EMAIL不能为空">*</asp:RequiredFieldValidator>
  172.                         </td>
  173.                 </tr>
  174.                 <tr>
  175.                     <td bgcolor="#ffffff" style="height: 33px">
  176.                         <div align="left" >
  177.                             传 真:</div>
  178.                     </td>
  179.                     <td bgcolor="#ffffff" style="height: 33px">
  180.                         <asp:TextBox ID="txtChuanZhen" runat="server"></asp:TextBox>&nbsp;
  181.                         </td>
  182.                     <td bgcolor="#ffffff" style="height: 33px">
  183.                         Msn:&nbsp;
  184.                         <asp:TextBox ID="txtMsn" runat="server"></asp:TextBox>
  185.                         </td>
  186.                 </tr>
  187.                 <tr>
  188.                     <td bgcolor="#ffffff" style="height: 30px">
  189.                         <div align="left">
  190.                             Q Q:</div>
  191.                     </td>
  192.                     <td bgcolor="#ffffff" style="height: 30px">
  193.                         <asp:TextBox ID="txtQQ" runat="server"></asp:TextBox>
  194.                         &nbsp; &nbsp;
  195.                         &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</td>
  196.                     <td bgcolor="#ffffff" style="height: 30px">
  197.                     </td>
  198.                 </tr>
  199.                 <tr>
  200.                     <td bgcolor="#ffffff">
  201.                         <div align="left">
  202.                             地 址:</div>
  203.                     </td>
  204.                     <td bgcolor="#ffffff" colspan="2">
  205.                         <asp:TextBox ID="txtAdd" runat="server"></asp:TextBox>
  206.                         <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtAdd" ErrorMessage="地址不能为空">*</asp:RequiredFieldValidator>
  207.                         </td>
  208.                         </tr>
  209.                 <tr>
  210.                     <td bgcolor="#ffffff" style="height: 111px">
  211.                         <div align="right">
  212.                             备 注:</div>
  213.                     </td>
  214.                     <td bgcolor="#ffffff" colspan="2" style="height: 111px">
  215.                         <asp:TextBox ID="txtBeiZhu" runat="server" Height="84px" TextMode="MultiLine" Width="298px"></asp:TextBox></td>
  216.                 </tr>
  217.                 <tr>
  218.                     <td bgcolor="#ffffff">
  219.                         &nbsp;</td>
  220.                     <td bgcolor="#ffffff" colspan="2">
  221.                         <span class="style2"><span class="bg"><span class="bg style2"><strong><font color="#ffffff">
  222.                             <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  223.                                 <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  224.                                     <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  225.                                         <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  226.                                             <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  227.                                                 <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  228.                                                     <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  229.                                                         <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  230.                                                             <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  231.                                                                 <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  232.                                                                     <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  233.                                                                         <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  234.                                                                             <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  235.                                                                                 <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  236.                                                                                     <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  237.                                                                                         <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  238.                                                                                             <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  239.                                                                                                 <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  240.                                                                                                     <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  241.                                                                                                         <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  242.                                                                                                             <strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  243.                                                                                                                 <strong><font color="#ffffff"><strong><font color="#ffffff">
  244.                                                                                                                     <asp:Button ID="btXiuGai" runat="server" Text="修改" Width="87px" OnClick="btXiuGai_Click" />
  245.                                                                                                                     <asp:Button ID="btChongZhi" runat="server" Text="重置" Width="73px" OnClick="btChongZhi_Click" CausesValidation="False" />&nbsp;<strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff"><strong><font color="#ffffff">
  246.      </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></span></span></span></td>
  247.                 </tr>
  248.             </table>
  249.         </div>
  250.     
  251.     </div>
  252.               <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
  253.               ShowMessageBox="true" ShowSummary="false" />
  254.     </form>
  255. </body>
  256. </html>