<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="~/SiteMaster.Master"
    Theme="Main_Theme" CodeBehind="RiskViewSearchPage.aspx.cs" Inherits="MKInsight.Online.RRAM2.RiskViewSearchPage"
    MaintainScrollPositionOnPostback="true" EnableEventValidation="false" %>

<%@ Register Src="../UIControls/RisksControls/SearchCriteriaItems.ascx" TagName="SearchCriteriaItems"
    TagPrefix="uc2" %>
<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="../UIControls/RisksControls/RisksResult.ascx" TagName="RisksResult"
    TagPrefix="uc1" %>
<%@ Register Src="../UIControls/PopupPanel.ascx" TagName="PopupPanel" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/JavaScript">

        document.onkeypress = keyPress;
        var count = 1;
        function keyPress() {
            if (window.event.keyCode == 13) {
                event.returnValue = false;
                event.cancel = true;
			}
		}

    </script>

</asp:Content>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc4" %>
<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">
    <uc2:Header ID="usc_Header" runat="server" />
    <asp:UpdatePanel ID="sup" runat="server">
        <ContentTemplate>
            <asp:MultiView ID="mp" runat="server">
                <asp:View ID="mv" runat="server">
                    <table style="width: 100%">
                        <tr>
                            <td colspan="2">
                                <table style="width: 100%">
                                    <tr>
                                        <td colspan="2">
                                            <uc4:MessageBox ID="usc_M" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="tb_View" runat="server" CssClass="w-bar">

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

                                                </asp:LinkButton>

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

                                                </asp:LinkButton>

                                            </asp:Panel>

                                        </td>

                                    </tr>

                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 600px; vertical-align: top;">
                                <uc2:SearchCriteriaItems ID="RS" runat="server" />
                            </td>
                            <td style="vertical-align: top;">
                                <uc1:RisksResult ID="usc_R" runat="server" Visible="False" />
                            </td>
                        </tr>


                    </table>
                    <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>
                            <uc3:PopupPanel ID="usc_PP" runat="server" />
                            <div class="divpok">
                                <asp:Button ID="btn_POK" runat="server" />
                            </div>
                        </div>
                    </asp:Panel>
                    <asp:UpdateProgress ID="pr" runat="server" AssociatedUpdatePanelID="sup" 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:View>
                <asp:View ID="vtree" runat="server">
                    <asp:Panel ID="pmT" runat="server" Height="400px" ScrollBars="Both">
                        <div style="vertical-align: top;">
                            <asp:TreeView ID="PoupTree" runat="server" ExpandDepth="1" OnTreeNodePopulate="PopulateNode"
                                PathSeparator="|" ShowCheckBoxes="All" EnableClientScript="False" PopulateNodesFromClient="False">
                            </asp:TreeView>
                        </div>
                        <br />
                    </asp:Panel>
                    <br />
                    <div class="footer">
                        <asp:Button ID="btn_TreeOK" runat="server" />
                    </div>
                </asp:View>
            </asp:MultiView>
            <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" />
            <div style="display: none">
                <asp:Button ID="btn_r" runat="server" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
