<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Web.Master" CodeBehind="Admins.aspx.vb" Inherits="AFMReportServer.Admins" %>
   <%@ MasterType VirtualPath="/Web.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="griddiv">
     <table style="width:100%" cellpadding="0" cellspacing="0" border="0">
     <tr>
        <td style="height:40px;text-align:right;"><asp:Button ID="btnAddNew" runat="server" Text="Add User" Width="120px" /></td>
      </tr>
      <tr>
       <td>
           <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
               AutoGenerateColumns="False" BorderWidth="0px" CellPadding="4" DataKeyNames="ID"
               DataSourceID="SqlDataSource1" Width="100%">
               <RowStyle CssClass="gridcell" BackColor="White" />
               <Columns>
                   <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                   <asp:BoundField DataField="UserName" HeaderText="Username" SortExpression="UserName" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                   <asp:BoundField DataField="UserType" HeaderText="User Type" SortExpression="UserType" ><ItemStyle HorizontalAlign="Center" /></asp:BoundField>
                   <asp:CheckBoxField DataField="InActive" HeaderText="Disabled" SortExpression="InActive" >
                       <ItemStyle Width="75px" HorizontalAlign="Center" />
                   </asp:CheckBoxField>
                       <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="/admin/Admin.aspx?id={0}"
                      HeaderText="Edit" Text="Edit">
                      <ItemStyle HorizontalAlign="Center" Width="50px" />
                  </asp:HyperLinkField>
               </Columns>
               <HeaderStyle CssClass="gridhead" />
               <AlternatingRowStyle CssClass="gridcell" BackColor="#FAFAFA" />
           </asp:GridView>
           <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
               SelectCommand="SELECT ID,Name,UserName,InActive,UserType FROM ReportServerUsers ORDER BY Name">
           </asp:SqlDataSource>
       </td>
      </tr>
     </table>
    </div>
</asp:Content>