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

<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc2" %>
<%@ Register Src="../UIControls/PopupsHandler.ascx" TagName="PopupsHandler" TagPrefix="uc4" %>
<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc5" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="UIWebControls" Namespace="UIWebControls" TagPrefix="cc4" %>
<%@ Register Src="../UIControls/PopupMessageBox.ascx" TagName="PopupMessageBox" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../scripts/jquery/jquery_min.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">
    <uc1:Header ID="usc_Header" runat="server" />

    <asp:UpdatePanel ID="um" runat="server">
        <ContentTemplate>
            <uc2:MessageBox ID="usc_M" runat="server" />
            <uc3:PopupMessageBox ID="usc_mp" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>


    <div class="info">
        <asp:Label ID="lbl_Info" runat="server"></asp:Label>

    </div>
    <table id="tb_RiskUniverse" runat="server" style="width: 100%">
        <tr>
            <td class="left" colspan="3" style="border-top-width: 1px; border-top-color: black; border-bottom: #c0c0c0 1px solid; height: 42px; background-color: whitesmoke; vertical-align: top;">
                <asp:UpdatePanel ID="up_Mnu" runat="server">
                    <ContentTemplate>

                        <asp:Panel ID="tbM" runat="server" CssClass="w-bar">
                            <asp:LinkButton runat="server" ID="tbl_Process" CssClass="w-button" Style="background: url(../images/tree32.png);">
                                <asp:Label ID="tbl_ProcessLabel" runat="server"></asp:Label>
                            </asp:LinkButton>

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

                            <asp:LinkButton runat="server" ID="tbl_AURisk" CssClass="w-button" Style="background: url(../images/tree32.png);">
                                <asp:Label ID="tbl_AURiskLabel" runat="server"></asp:Label>
                            </asp:LinkButton>
                            
                            <asp:LinkButton runat="server" ID="tbl_Project" CssClass="w-button" Style="background: url(../images/tree32.png);">
                                <asp:Label ID="tbl_ProjectLabel" runat="server"></asp:Label>
                            </asp:LinkButton>
                                                     
                            <asp:LinkButton runat="server" ID="tbl_ExpandAll" CssClass="w-button" Style="background: url(../images/expand32.png);">
                                <asp:Label ID="tbl_ExpandAllLabel" runat="server"></asp:Label>
                            </asp:LinkButton>

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

                        </asp:Panel>

                    </ContentTemplate>

                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td class="left" style="width: 290px; vertical-align: top;">
                <asp:Panel ID="pt" runat="server" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px"
                    Height="450px" ScrollBars="Vertical" Width="300px" Visible="False">
                    <asp:UpdatePanel ID="ptr" runat="server">
                        <ContentTemplate>
                            <asp:TreeView ID="rt" runat="server" PopulateNodesFromClient="false" EnableClientScript="false"
                                PathSeparator="|" AutoGenerateDataBindings="False">
                            </asp:TreeView>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </asp:Panel>
            </td>
            <td class="left" colspan="2" style="vertical-align: top;">
                <asp:UpdatePanel ID="par" runat="server">
                    <ContentTemplate>
                        <asp:Panel ID="pv" runat="server" Visible="False">

                            <asp:Panel ID="tbP" runat="server" CssClass="toolbar" >
                                <table>
                                    <tr>
                                        <td>
                                            <uc4:PopupsHandler ID="ph_A" runat="server" />
                                        </td>
                                        <td>
                                            <uc4:PopupsHandler ID="ph_R" runat="server" />
                                        </td>
                                        <td>
                                            <uc4:PopupsHandler ID="ph_C" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>

                            <asp:Panel runat="server" ID="temp" Width="300">
                                <b style="padding-left: 10px;">
                                    <asp:Label ID="lbl_NoAssigments" runat="server"></asp:Label></b>

                            </asp:Panel>
                            <asp:Panel ID="PA" runat="server">
                            </asp:Panel>

                            <div>
                                <hr class="ee" />
                            </div>
                            <div>
                                <asp:Button ID="btn_Update" runat="server" Text="Update" Font-Bold="true" />
                                <asp:Button ID="btn_Cancel" runat="server" Text="Cancel" />

                                <span class="tab"></span>
                                <asp:Button ID="btn_Delete" runat="server" Text="Delete" ForeColor="Red" />

                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:UpdatePanel>

            </td>
        </tr>
    </table>
    <asp:UpdatePanel ID="pth" runat="server">
        <ContentTemplate>
            <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" OnClick="OnOK" />
                    </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:UpdateProgress ID="prz" runat="server" AssociatedUpdatePanelID="ptr" DisplayAfter="20">
        <ProgressTemplate>
            <div class="UpdateProgressBackground">
                <center>
                    <div class="UpdateProgressContent">
                        <h3>
                            <asp:Label ID="lbl_Wait" runat="server"></asp:Label></h3>
                        <br />
                        <img src="../images/ajax.gif" alt="" />
                    </div>
                </center>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Content>
