UserAdd.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:5k
源码类别:

.net编程

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserAdd.aspx.cs"  Inherits="SysManage_UserAdd" %>
  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. <base target="_self" ></base>
  6.     <title>增加用户</title>
  7.    <script>
  8.   
  9.     function modelesswin(url,mwidth,mheight)
  10.      { 
  11.       var a=new  Array(2);
  12.        if (document.all&&window.print) 
  13.         { 
  14.              var re=window.showModalDialog(url,"","help:0;dialogWidth=350px;dialogHeight=400px,status=no;scroll=no;");
  15.             
  16.              if (re!=undefined) 
  17.               {
  18.                    a= re.split(',');
  19.                    document.getElementById("TB_employe").innerText=a[1];
  20.                    document.getElementById("txt_employeid").innerText=a[0];
  21.               }
  22.          }
  23.         
  24.          
  25.       }
  26.    
  27.    
  28.     </script> 
  29. </head>
  30. <body  bgcolor="#f7f7f7">
  31.     <form id="form1" runat="server" >
  32.     
  33.      <TABLE width="100%"  border="0" cellPadding="0" cellSpacing="0" >
  34.         <tr valign="middle">
  35.             <td height="25px" width="17%" > 
  36.              &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <img src="../Images/assignuser.ico" height="30" >
  37.             </td>
  38.             <td  align="left"   width="83%" style="font-size:15px">
  39.                 <strong>   增加用户   </strong>
  40.             </td>
  41.         </tr> 
  42.         <tr>
  43.          <td background="../Images/Menu_bg.jpg"  height="20px">
  44.             &nbsp; &nbsp;  <img src="../Images/assignuser.ico" height="15px">     
  45.            </td>
  46.           <td  background="../Images/Menu_bg.jpg"  align="left">
  47.            
  48.            </td>
  49.         </tr>
  50.         </TABLE>
  51.        <TABLE width="100%"  border="0" cellPadding="0" cellSpacing="0" >
  52.           <tr>
  53.             <td >  &nbsp; &nbsp; 账 号:   </td>
  54.             <td >     
  55.                 <asp:TextBox ID="TB_Account" runat="server" Width="120px"></asp:TextBox>  
  56.                 
  57.                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必填" ControlToValidate="TB_Account" ValidationGroup="SaveButton" Display="Dynamic"></asp:RequiredFieldValidator>    
  58.             </td>
  59.              <td>   &nbsp; &nbsp;  &nbsp; &nbsp;  &nbsp; &nbsp;描 述: </td>
  60.             <td align="left"  rowspan="2">     
  61.                 <asp:TextBox ID="TB_Decs" runat="server" TextMode="MultiLine"></asp:TextBox>      
  62.             </td>
  63.           </tr>
  64.           <tr>
  65.             <td>
  66.                 &nbsp; &nbsp; 职 工:
  67.              </td>
  68.              <td>
  69.                   <asp:TextBox ID="TB_employe" runat="server" Width="120px" Enabled="false"></asp:TextBox>  
  70.                    <input type="hidden" id="txt_employeid" name="txt_employeid"   runat="server">
  71.                   <a href="javascript: modelesswin('EmpTree.aspx',100,100)" ID="A1" title="选择职工"><img src="image/user.gif"  border="0"></a>
  72.                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="必填" ControlToValidate="TB_employe" ValidationGroup="SaveButton" Display="Dynamic"></asp:RequiredFieldValidator>    
  73.              </td>
  74.               <td>  </td>
  75.             
  76.           </tr>   
  77.           
  78.           <tr height="2px">
  79.              <td colspan="4" background="image/header_bg.gif">  </td>
  80.              
  81.           </tr> 
  82.            <tr height="10px" >
  83.              <td>  </td>
  84.              <td>  </td>
  85.               <td>  </td>
  86.              <td>  </td>
  87.           </tr> 
  88.           
  89.            <tr>
  90.              <td> 
  91.                  &nbsp; &nbsp;  &nbsp; &nbsp;  <asp:CheckBox ID="CB_isLock" runat="server"  Text="禁用"/></td>
  92.              <td>   &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; 
  93.                 <asp:CheckBox ID="CB_isIPbound" runat="server"  Text="绑定IP地址"/>   </td>
  94.               <td>  &nbsp; &nbsp; &nbsp; &nbsp; IP地址:  </td>
  95.              <td>    <asp:TextBox ID="TB_address" runat="server" Width="150px"></asp:TextBox>       </td>
  96.           </tr> 
  97.           
  98.           <tr height="20px">
  99.              <td>  </td>
  100.              <td>  </td>
  101.               <td>   </td>
  102.               <td>  </td>
  103.           </tr> 
  104.            <tr height="2px">
  105.              <td colspan="4" background="image/header_bg.gif">  </td>
  106.              
  107.           </tr> 
  108.          <%-- <tr>
  109.              <td>  </td>
  110.              <td>  </td>
  111.               <td>
  112.                  
  113.                   <asp:Button ID="BT_Confirm" runat="server" Text="确 定" OnClick="BT_Confirm_Click" ValidationGroup="SaveButton"/> 
  114.                   <button onclick="javascript: if(confirm('确认离开此页面吗?')){window.close();}" id="BT_Cancel"> 取 消</button>
  115.               </td> 
  116.               <td>  </td>
  117.           </tr> --%>
  118.           <tr>
  119.               <td colspan="4" align="center">  
  120.          
  121.              
  122.                    <asp:ImageButton ID="BT_Confirm" runat="server" ImageUrl="image/queding.gif" OnClick="BT_Confirm_Click" ValidationGroup="SaveButton"/>
  123.                   
  124.                   <asp:ImageButton   ID="BT_Cancel" runat="server" ImageUrl="image/quxiao.gif" />
  125.              
  126.               </td>
  127.               </tr>
  128.         </TABLE>
  129.         
  130.       
  131.     </form>
  132. </body>
  133. </html>