<%@ Page Title="" Language="C#" AutoEventWireup="false" MasterPageFile="~/SiteMaster.master"
    MaintainScrollPositionOnPostback="true" CodeBehind="ManageUserTypesPage.aspx.cs"
    Inherits="MKinsight.Online.UIServices.ManageUserTypesPage" %>

<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc2" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Src="../UIControls/Users/NewUserCredentials.ascx" TagName="NewUserCredentials"
    TagPrefix="uc3" %>
<%@ Register Src="../UIControls/Users/UserTypeMatrixFooter.ascx" TagName="UserTypeMatrixFooter"
    TagPrefix="uc4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript" src="../scripts/jquery/jquery_min.js"></script>

    <script type="text/javascript" src="../scripts/jquery/jquery.box-min.js"></script>

    <link rel="stylesheet" type="text/css" href="../scripts/jquery/jqbox.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">
    <uc1:Header ID="u_H" runat="server" />
    <uc2:MessageBox ID="u_M" runat="server" />


    <asp:Panel ID="tbM" runat="server" CssClass="w-bar">

        <asp:LinkButton runat="server" ID="tbl_Save" CssClass="w-button" Style="background: url(../images/save32.png);">
            <asp:Label ID="tbl_SaveLabel" runat="server"></asp:Label>
        </asp:LinkButton>

        <asp:LinkButton runat="server" ID="tbl_Filter" CssClass="w-button" Style="background: url(../images/filterapply32.png);"
            OnClientClick="$.colorbox({ transition: 'none', width: '95%', height: '95%', iframe: true,href:'UsersFilterPage.aspx' }); return false;">
            <asp:Label ID="tbl_FilterLabel" runat="server"></asp:Label>
        </asp:LinkButton>

        <asp:LinkButton runat="server" ID="tbl_FilterRemove" CssClass="w-button" Style="background: url(../images/filterremove32.png);" Visible="false">
            <asp:Label ID="tbl_FilterRemoveLabel" runat="server"></asp:Label>
        </asp:LinkButton>

     
        <asp:LinkButton runat="server" ID="tbl_Users" CssClass="w-button" Style="background: url(../images/user32.png);">
            <asp:Label ID="tbl_UsersLabel" runat="server"></asp:Label>
        </asp:LinkButton>

    </asp:Panel>

    <div>
        <cc4:MKGridView ID="d_u" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
            BorderStyle="None" CellPadding="3" DataKeyNames="ID" PageSize="100"
            OnRowDataBound="OnRowDataBound" Width="95%">
            <AlternatingRowStyle CssClass="alternatingrowstyle" />
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle CssClass="headerstyle" Font-Bold="True" HorizontalAlign="Left" Wrap="False" />
            <PagerStyle HorizontalAlign="Left" />
            <Columns>
                <asp:TemplateField HeaderStyle-Width="0">
                    <ItemTemplate>
                        <asp:HiddenField ID="hdID" runat="server" Value='<%#Eval("ID")%>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Name" HeaderText="User" />
                <asp:ButtonField ButtonType="Link" HeaderText="audit" DataTextField="audit" CommandName="audit" />
                <asp:ButtonField ButtonType="Link" DataTextField="risk" CommandName="risk" HeaderText="risk" />

                <asp:ButtonField ButtonType="Link" DataTextField="actionTracking" CommandName="actionTracking" HeaderText="extFeature_ActionTracking" />
                <asp:ButtonField ButtonType="Link" DataTextField="timeRecording" CommandName="timeRecording" HeaderText="extFeature_TimeRecording" />
                <asp:ButtonField ButtonType="Link" DataTextField="controlManage" CommandName="controlManage" HeaderText="extFeature_ControlsManagement" />
                <asp:ButtonField ButtonType="Link" DataTextField="auditReports" CommandName="auditReports" HeaderText="extFeature_AuditReport" />

                <asp:ButtonField ButtonType="Link" DataTextField="contact" CommandName="contact" HeaderText="contact" />
                <asp:ButtonField ButtonType="Link" DataTextField="nonUser" CommandName="nonUser" HeaderText="nonUser" />
            </Columns>
            <PagerTemplate>
                <asp:Label ID="lbl_ShowRows" runat="server" Text="Show rows:" /><asp:DropDownList
                    ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="OnSelectedIndexChanged">
                    <asp:ListItem Value="20" />
                    <asp:ListItem Value="50" />
                    <asp:ListItem Value="100" />
                    <asp:ListItem Value="150" />
                    <asp:ListItem Value="300" />
                    <asp:ListItem Value="1000" />
                </asp:DropDownList>
                <asp:Label ID="lbl_page" runat="server" Text="Page" />
                <asp:TextBox ID="txtGoToPage" runat="server" AutoPostBack="true" CssClass="gotopage"
                    OnTextChanged="GoToPageOnTextChanged" />
                <asp:Label ID="lbl_Of" runat="server" Text="of" />
                <asp:Label ID="lblTotalNumberOfPages" runat="server" />
                <asp:Button ID="btn_p" runat="server" CommandArgument="Prev" SkinID="_" CommandName="Page"
                    CssClass="previous" ToolTip="Previous Page" /><asp:Button ID="btn_n" runat="server"
                        CommandArgument="Next" SkinID="_" CommandName="Page" CssClass="next" ToolTip="Next Page" />
            </PagerTemplate>
            <SelectedRowStyle BackColor="#D6E8FF" ForeColor="Black" />
        </cc4:MKGridView>
        <div>
            <uc4:UserTypeMatrixFooter ID="u_TF" runat="server" />
        </div>
    </div>
    <uc3:NewUserCredentials ID="u_Nuser" runat="server" />
    <br />
    <br />
    <asp:Panel ID="p_L" runat="server">
        <cc4:MKGridView ID="d_L" runat="server" AllowPaging="false" AllowSorting="false"
            AutoGenerateColumns="False" BorderStyle="None" CellPadding="3" PageSize="20"
            Width="95%">
            <AlternatingRowStyle CssClass="alternatingrowstyle" />
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle CssClass="headerstyle" Font-Bold="True" HorizontalAlign="Left" Wrap="False" />
            <PagerStyle HorizontalAlign="Left" />
            <Columns>
                <asp:BoundField DataField="type" HeaderText="LicenseType" ItemStyle-Width="150" />
                <asp:BoundField DataField="available" HeaderText="Available" ItemStyle-Width="100" />
                <asp:BoundField DataField="inuse" HeaderText="InUse" ItemStyle-Width="100" />
                <asp:BoundField DataField="total" HeaderText="Total" ItemStyle-Width="100" />
                <asp:BoundField DataField="" HeaderText="" />
            </Columns>
        </cc4:MKGridView>

        <br />
        <table>
            <tr>
                <td>
                    <asp:Label ID="lbl_RsaLicense" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="txt_RsaLicense" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbl_CSALicense" runat="server"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="txt_CSALicense" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top;">
                    <asp:Label ID="lbl_BusinessUserFeatures" runat="server"></asp:Label>
                </td>
                <td style="vertical-align: top;">
                    <asp:Label ID="txt_BusinessUserFeatures" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
