PageRenderTime 13ms CodeModel.GetById 10ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/pigeoncms/Modules/PigeonCms.MembersAdmin/views/Default.ascx

http://pigeoncms.googlecode.com/
ASP.NET | 131 lines | 110 code | 21 blank | 0 comment | 0 complexity | 9be9fbabac8fe39e2df86f626a68a60f MD5 | raw file
  1<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Default.ascx.cs" Inherits="Controls_Default" %>
  2<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  3<%@ Register src="~/Controls/MemberEditorControl.ascx" tagname="MemberEditor" tagprefix="uc1" %>
  4
  5<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
  6<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="1" AssociatedUpdatePanelID="Upd1">
  7    <ProgressTemplate>
  8        <div class="loading"><%=PigeonCms.Utility.GetLabel("LblLoading", "loading") %></div>
  9    </ProgressTemplate>
 10</asp:UpdateProgress>
 11
 12<asp:UpdatePanel ID="Upd1" runat="server">
 13<ContentTemplate>
 14    
 15    <asp:Label ID="LblErr" runat="server" Text="" CssClass="error"></asp:Label>
 16    <asp:Label ID="LblOk" runat="server" Text="" CssClass="success"></asp:Label>
 17
 18    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0" OnActiveViewChanged="MultiView1_ActiveViewChanged">
 19    
 20        <asp:View ID="ViewSee" runat="server">
 21            <div class="adminToolbar">
 22                <asp:Button ID="BtnNew" runat="server" Text="<%$ Resources:PublicLabels, CmdNew %>" CssClass="button" OnClick="BtnNew_Click" />
 23            </div>
 24            <fieldset class="adminFilters">
 25                <%=base.GetLabel("LblFilters", "Filters")%>&nbsp;
 26                <asp:TextBox ID="TxtUserNameFilter" runat="server" AutoPostBack="true" CssClass="adminMediumText" 
 27                    ontextchanged="TxtUserNameFilter_TextChanged"></asp:TextBox>
 28                <cc1:TextBoxWatermarkExtender TargetControlID="TxtUserNameFilter" runat="server" 
 29                    WatermarkText="<username>" WatermarkCssClass="adminMediumText watermark">
 30                </cc1:TextBoxWatermarkExtender>
 31            </fieldset>
 32            <br />       
 33            <asp:GridView ID="Grid1" runat="server" Width="100%" AllowPaging="True" 
 34                AllowSorting="false" AutoGenerateColumns="False"
 35                DataKeyNames="UserName" OnRowCommand="Grid1_RowCommand" 
 36                OnRowCreated="Grid1_RowCreated" OnRowDataBound="Grid1_RowDataBound" 
 37                onpageindexchanging="Grid1_PageIndexChanging" onsorting="Grid1_Sorting">
 38                <Columns>
 39                    <asp:TemplateField ItemStyle-Width="10">
 40                        <ItemTemplate>
 41                        <asp:ImageButton ID="LnkSel" CommandName="Select" CommandArgument='<%#Eval("UserName") %>' 
 42                        runat="server" SkinID="ImgEditFile" />                
 43                        </ItemTemplate>
 44                    </asp:TemplateField>
 45                    
 46                    <asp:TemplateField HeaderText="User" SortExpression="UserName">
 47                        <ItemTemplate>
 48                            <asp:Literal ID="LitUserName" runat="server"></asp:Literal>
 49                        </ItemTemplate>
 50                    </asp:TemplateField>
 51                    
 52                    <asp:TemplateField HeaderText="Name">
 53                        <ItemTemplate>
 54                            <asp:Literal ID="LitName" runat="server"></asp:Literal>
 55                        </ItemTemplate>
 56                    </asp:TemplateField>
 57
 58                    <asp:TemplateField HeaderText="Email">
 59                        <ItemTemplate>
 60                            <asp:Literal ID="LitEmail" runat="server"></asp:Literal>
 61                        </ItemTemplate>
 62                    </asp:TemplateField>
 63
 64                    <asp:TemplateField HeaderText="Roles">
 65                        <ItemTemplate>
 66                            <asp:Literal ID="LitRolesForUser" runat="server"></asp:Literal>
 67                        </ItemTemplate>
 68                    </asp:TemplateField>
 69                    
 70                    <asp:TemplateField HeaderText="Access Level" SortExpression="AccessCode, AccessLevel">
 71                        <ItemTemplate>
 72                        <asp:Literal ID="LitAccessLevel" runat="server" Text=""></asp:Literal>
 73                        </ItemTemplate>
 74                    </asp:TemplateField>
 75                    
 76                    <asp:TemplateField ItemStyle-Width="10">
 77                        <ItemTemplate>
 78                        <asp:ImageButton ID="LnkRoles" CommandName="Roles" CommandArgument='<%#Eval("UserName") %>' 
 79                        runat="server" SkinID="ImgAttributes" ToolTip="roles" />                
 80                        </ItemTemplate>
 81                    </asp:TemplateField>                    
 82                    
 83                    <asp:TemplateField ItemStyle-Width="10">
 84                        <ItemTemplate>
 85                        <asp:ImageButton ID="LnkPwd" CommandName="Password" CommandArgument='<%#Eval("UserName") %>' 
 86                        runat="server" SkinID="ImgKey" ToolTip="password" />                
 87                        </ItemTemplate>
 88                    </asp:TemplateField>
 89                    
 90                    <asp:TemplateField HeaderText="Abilitato">
 91                        <ItemTemplate>
 92                        <asp:CheckBox ID="ChkEnabled" Enabled="false" runat="server" />
 93                        </ItemTemplate>
 94                    </asp:TemplateField>
 95
 96                    <asp:TemplateField HeaderText="Core" SortExpression="IsCore" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
 97                        <ItemTemplate>
 98                        <asp:CheckBox Enabled="false" Checked='<%#Eval("IsCore") %>' runat="server" />
 99                        </ItemTemplate>
100                    </asp:TemplateField>
101                    
102                    <asp:TemplateField ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="10">
103                        <ItemTemplate>
104                        <asp:ImageButton ID="LnkDel" CommandName="DeleteRow" CommandArgument='<%#Eval("UserName") %>' runat="server" 
105                        SkinID="ImgDelFile" OnClientClick="return confirm('Cancellare la riga?');"  />
106                        </ItemTemplate>
107                    </asp:TemplateField>
108                </Columns>
109            </asp:GridView>
110        </asp:View>
111   
112
113        <asp:View ID="ViewInsert" runat="server">
114        
115            <div class="adminToolbar">
116                <asp:Button ID="BtnInsSave" runat="server" Text="<%$ Resources:PublicLabels, CmdSave %>" CssClass="button" OnClick="BtnSave_Click" />
117                <asp:Button ID="BtnInsCancel" runat="server" Text="<%$ Resources:PublicLabels, CmdCancel %>" CssClass="button" OnClick="BtnCancel_Click" />
118            </div>
119        
120            <div class="col width-100">
121                <fieldset class="adminForm">
122                    <legend><asp:Literal runat="server" ID="LitTitle"></asp:Literal></legend>
123                    <uc1:MemberEditor ID="MemberEditor1" runat="server" />                
124                </fieldset>
125            </div>
126        </asp:View>
127        
128    </asp:MultiView>
129
130</ContentTemplate>
131</asp:UpdatePanel>