<%@ Page Title="" Language="C#" MasterPageFile="~/EmptyAjaxMaster.Master" AutoEventWireup="true" CodeBehind="ControlUserEditPage.aspx.cs" Inherits="MKInsight.Online.RRAM2.ControlsPrposedAndStandardControls.ControlUserEditPage" %>


<%@ Register Src="../UIControls/Interface/SimpleSectionBreak.ascx" TagName="SimpleSectionBreak" TagPrefix="uc10" %>
<%@ 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/PopupsHandler.ascx" TagName="PopupsHandler" TagPrefix="uc4" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc5" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Src="../UIControls/MKControls/ControlsAuditTrail.ascx"
    TagName="ControlsAuditTrail" TagPrefix="uc6" %>
<%@ Register Src="../UIControls/Interface/LabelEx.ascx" TagName="LabelEx" TagPrefix="uc7" %>
<%@ Register Src="../UIControls/Interface/TextBoxEx.ascx" TagName="TextBoxEx" TagPrefix="uc8" %>
<%@ Register Src="../UIControls/Interface/MultilineTextBoxEx.ascx" TagName="MultilineTextBoxEx" TagPrefix="uc9" %>
<%@ Register Src="~/UIControls/Metabase/MetabaseViewer.ascx" TagPrefix="uc1" TagName="MetabaseViewer" %>

<%@ Register Src="../UIControls/EntityLibrary/EntityEffectiveness.ascx" TagName="EntityEffectiveness" TagPrefix="uc3" %>

<%@ Register Src="../UIControls/EntityLibrary/ManagedItemsState.ascx" TagName="ManagedItemsState" TagPrefix="uc10" %>

<%@ Register Src="../UIControls/ControlSection/ControlButtonActions.ascx" TagName="ControlButtonActions" TagPrefix="uc11" %>
<%@ Register Assembly="MKinsight.Online.UIServices" Namespace="Geekees.Common.Controls" TagPrefix="ct" %>

<asp:Content ID="Content1" ContentPlaceHolderID="h" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cm" runat="server">

    <asp:UpdatePanel ID="p_update" runat="server">
        <ContentTemplate>

            <uc1:Header ID="usc_Header" runat="server" />

            <uc2:MessageBox ID="usc_M" runat="server" />

            <uc10:SimpleSectionBreak ID="u_Search" runat="server" />

            <div>
                <asp:Panel ID="p_Search" runat="server">
                    <table>
                        <tr>
                            <td colspan="2">
                                <uc8:TextBoxEx ID="u_SRef" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <uc8:TextBoxEx ID="u_SName" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="left" colspan="2">
                                <uc4:PopupsHandler ID="ph_SRAG" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="left" colspan="2">
                                <uc4:PopupsHandler ID="ph_SS" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="left" colspan="2">
                                <uc4:PopupsHandler ID="ph_SNRD" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class=" " colspan="2" style="vertical-align: top;">
                                <hr class="ee" />
                            </td>
                        </tr>
                        <tr>
                            <td class="left" colspan="2" style="vertical-align: top;">
                                <asp:Button ID="btn_SSearch" runat="server" Text="Add" />
                                <asp:Button ID="btn_SClear" runat="server" Text="Clear" />
                                <asp:Button ID="btn_SCancel" runat="server" Text="Cancel" />
                            </td>
                        </tr>
                        <tr>
                            <td class="left" colspan="2" style="vertical-align: top;">&nbsp;
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>

            <uc10:SimpleSectionBreak ID="u_List" runat="server" Visible="false" />
            <div>
                <cc4:MKGridView ID="dg_CS" runat="server" AllowPaging="false" AllowSorting="True" AutoGenerateCheckBoxColumn="true"
                    AutoGenerateColumns="False" BorderStyle="None" CellPadding="3" DataKeyNames="ID">
                    <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="ID" HeaderText="RiskControlsUniqueReference" SortExpression="ID" />
                        <asp:BoundField DataField="RiskName" HeaderText="RiskName" SortExpression="RiskName">
                            <ItemStyle Width="200px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Name" HeaderText="RiskControlsName" SortExpression="Name" />
                        <asp:BoundField DataField="Ref" HeaderText="RiskControlsReference" SortExpression="Ref" />

                        <asp:BoundField DataField="RAGStatusName" HeaderText="RiskControlsRAG" SortExpression="RAGStatusName" />
                        <asp:BoundField DataField="StatusName" HeaderText="RiskControlsStatus" SortExpression="StatusName" />
                        <asp:BoundField DataField="NextReviewDate" DataFormatString="{0:dd/MM/yyyy }" HeaderText="RiskControlsNextReviewDate"
                            SortExpression="NextReviewDate" />
                        <asp:BoundField DataField="LastReviewed" DataFormatString="{0:dd/MM/yyyy }" HeaderText="RiskControlsLastReviewed"
                            SortExpression="LastReviewed" />
                    </Columns>


                </cc4:MKGridView>
            </div>

            <br />

             <uc10:SimpleSectionBreak ID="u_NewControlOwners" runat="server" Visible="false" />
            
            <div>
                
                <uc4:PopupsHandler ID="u_NewOwners" runat="server" Visible="false"  />

                <asp:Button ID="btn_ChangeOwners" runat="server" Visible="false" />
            </div>

            <asp:Button ID="btn_pHandler" runat="server" Text="Button" Style="display: none;" />
            <asp:Panel ID="p" runat="server" CssClass="frame" Style="display: none;">
                <div class="overlay">
                    <div style="float: right; margin-top: -28px; margin-right: -10px;">
                        <asp:ImageButton ID="ImageButton1" ImageUrl="~/images/jq/close.png" runat="server" />
                    </div>

                    <div class="floatright">
                        <asp:Button ID="btn_TopOK" runat="server" />
                    </div>
                    <uc5:PopupPanel ID="usc_PP" runat="server" />
                    <div class="divpok">
                        <asp:Button ID="btn_POK" runat="server" />
                    </div>
                </div>
            </asp:Panel>
            <cc1:ModalPopupExtender ID="mdp" runat="server" TargetControlID="btn_pHandler" PopupControlID="P"
                BackgroundCssClass="modalBackground">
            </cc1:ModalPopupExtender>
            <cc1:DragPanelExtender ID="dpE" runat="server" DragHandleID="pnlHeader" TargetControlID="p" />
        </ContentTemplate>

    </asp:UpdatePanel>


</asp:Content>
