svn path=/trunk/mcs/; revision=70649
[mono.git] / mcs / class / Mainsoft.Web / Mainsoft.Web.AspnetConfig / aspnetconfig / EditUser.aspx
1 <%--\r
2 // Mainsoft.Web.Administration - Site administration utility\r
3 // Authors:\r
4 //  Klain Yoni <yonik@mainsoft.com>\r
5 //\r
6 // Mainsoft.Web.Administration - Site administration utility\r
7 // (C) 2006 Mainsoft Corporation (http://www.mainsoft.com)\r
8 // Permission is hereby granted, free of charge, to any person obtaining\r
9 // a copy of this software and associated documentation files (the\r
10 // "Software"), to deal in the Software without restriction, including\r
11 // without limitation the rights to use, copy, modify, merge, publish,\r
12 // distribute, sublicense, and/or sell copies of the Software, and to\r
13 // permit persons to whom the Software is furnished to do so, subject to\r
14 // the following conditions:\r
15 // \r
16 // The above copyright notice and this permission notice shall be\r
17 // included in all copies or substantial portions of the Software.\r
18 // \r
19 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
20 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
21 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
22 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
23 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
24 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
25 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --%>\r
26 <%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/aspnetconfig/Util.Master" CodeBehind="EditUser.aspx.cs" Inherits="Mainsoft.Web.Administration.EditUser" %>\r
27 <%@ Register TagPrefix="custom" TagName="searcher" Src="~/Controls/Searcher.ascx" %>\r
28 <asp:Content runat="server" ID="main" ContentPlaceHolderID="Main">\r
29     <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">\r
30         <asp:View ID="updateUser" runat="server" >\r
31         <div>\r
32         <table width="100%" class="maintable">\r
33             <tr>\r
34                 <td colspan="2" width="100%" style="height: 21px">\r
35                     Use this page to edit user information and to specify what roles a user belongs in. \r
36                      <br /> <br /> <br /> \r
37                 </td>\r
38             </tr>\r
39             <tr>\r
40                 <td width="70%" class="innertable" align="left" valign="top">\r
41                     <table width="100%" cellpadding="0" cellspacing="0">\r
42                         <tr>\r
43                             <td width="100%" class="controlheader" colspan="3">\r
44                                 User\r
45                             </td>\r
46                         </tr>\r
47                         <tr>\r
48                             <td>\r
49                                 User ID:\r
50                             </td>\r
51                             <td>\r
52                                 <asp:TextBox ID="userid_txb" runat="server" Enabled="false" />\r
53                             </td>\r
54                             <td>\r
55                                 &nbsp;\r
56                             </td>\r
57                         </tr>\r
58                         <tr>\r
59                             <td>\r
60                                <span style="font-size: 20px; color: red">*</span> E-mail address: \r
61                             </td>\r
62                             <td>\r
63                                 <asp:TextBox ID="email_txb" runat="server"></asp:TextBox>\r
64                             </td>\r
65                             <td>\r
66                                 <asp:CheckBox ID="active_chb" runat="server" /> Active user\r
67                             </td>\r
68                         </tr>\r
69                         <tr>\r
70                             <td>\r
71                                 Description:\r
72                             </td>\r
73                             <td>\r
74                                 <asp:TextBox ID="desc_txb" runat="server">[not set]</asp:TextBox>\r
75                             </td>\r
76                             <td>\r
77                                 <asp:Button ID="save_bt" runat="server" Text="Save" OnClick="save_bt_Click" />\r
78                             </td>\r
79                         </tr>\r
80                     </table>\r
81                 </td>\r
82                 <td class="innertable" valign="top" style="width: 82%" >\r
83                    <custom:searcher ID="srch" runat="server" />\r
84                 </td>\r
85             </tr>\r
86             <tr>\r
87                 <td colspan="2">\r
88                     (<span style="font-size: 20px; color: red">*</span>)Required field <br /><br />\r
89                     <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="email_txb" ValidationExpression="\S+@\S+\.\S+" runat="server" ErrorMessage="Email format is invalid"></asp:RegularExpressionValidator>\r
90                 </td>\r
91             </tr>\r
92         </table>\r
93         </div>\r
94         </asp:View>\r
95         <asp:View ID="successupdate" runat="server">\r
96             <div>\r
97             <table width="100%" class="maintable">\r
98             <tr>\r
99                 <td width="100%" class="controlheader">\r
100                     User Management\r
101                 </td>\r
102             </tr>\r
103             <tr>\r
104                 <td width="100%" style="height: 100px" valign="top" align="left">\r
105                     You have successfully updated the user\r
106                     <asp:Label ID="name_lbl" runat="server" /> <br /> <br /> <br />\r
107                 </td>\r
108             </tr>\r
109             <tr>\r
110                 <td width="100%" align="right">\r
111                     <asp:Button ID="success_btn" runat="server" Text="OK" OnClick="success_btn_Click" />\r
112                 </td>\r
113             </tr>\r
114             </table>\r
115             </div>\r
116         </asp:View>\r
117     </asp:MultiView>\r
118 </asp:Content>\r