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

<%@ Register Src="../UIControls/Interface/LabelEx.ascx" TagName="LabelEx" TagPrefix="uc1" %>

<%@ Register Src="../UIControls/Interface/SimpleSectionBreak.ascx" TagName="SimpleSectionBreak" TagPrefix="uc2" %>

<%@ Register Src="../UIControls/Interface/DropDownListEX.ascx" TagName="DropDownListEX" TagPrefix="uc3" %>

<%@ Register src="../UIControls/MessageBox.ascx" tagname="MessageBox" tagprefix="uc4" %>

<%@ Register src="../UIControls/Header.ascx" tagname="Header" tagprefix="uc5" %>

<asp:Content ID="Content1" ContentPlaceHolderID="h" runat="server">
    <script type="text/javascript" src="../scripts/jquery/jquery_min.js"></script>    
    <link rel="stylesheet" type="text/css" href="../scripts/jquery/jqbox.css" />
    <script type="text/javascript" src="../scripts/jquery/jquery.box-min.js"></script>

    <script type="text/javascript">
        function cb() {
            parent.$.colorbox.close();
            $('[id*=btn_partial_refresh]', parent.document).click();
        }
        function cb2() {
            parent.$.colorbox.close();
        }
    </script>

    <style>
        table.main {
            border-collapse: collapse;
            width: 99.8%;
            border: 1px solid #EAEAEA;
        }
    </style>

</asp:Content>

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

    <asp:UpdatePanel ID="up_m" runat="server">
        <ContentTemplate>
             <uc5:Header ID="u_h" runat="server" />
             <uc4:MessageBox ID="u_m" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>

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

            <asp:Button ID="btn_partial_refresh" runat="server" style="display:none;" /> 

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

                <asp:LinkButton runat="server" ID="tbl_Pass" CssClass="w-button" Style="background: url(../images/review/review_passed32.png); " OnClick="OnReviewPass">
                    <asp:Label ID="tbl_PassLabel" runat="server"></asp:Label>
                </asp:LinkButton>

                <asp:LinkButton runat="server" ID="tbl_NotApplicable" CssClass="w-button" Style="background: url(../images/review/review_na32.png); " OnClick="OnNAReview">
                    <asp:Label ID="tbl_NotApplicableLabel" runat="server"></asp:Label>
                </asp:LinkButton>

                <asp:LinkButton runat="server" ID="tbl_Fail" CssClass="w-button" Style="background: url(../images/review/review_fail32.png); " OnClick="OnFail">
                    <asp:Label ID="tbl_FailLabel" runat="server"></asp:Label>
                </asp:LinkButton>

                <div class="floatright">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lbl_ReviewLevel" runat="server" Style="font-weight: bold; color: #6D6D6D; font-size: medium;"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lbl_CurrentStatus" runat="server" CssClass="label"></asp:Label>
                            </td>
                            <td>
                        </tr>
                    </table>

                </div>


            </asp:Panel>

            <asp:Panel ID="tbl_Level2" runat="server" CssClass="w-bar">
                <asp:LinkButton runat="server" ID="tbl_Status" CssClass="w-button" Style="background: url(../images/user_message32.png); " OnClick="OnStatus">
                    <asp:Label ID="tbl_StatusLabel" runat="server"></asp:Label>
                </asp:LinkButton>

                <asp:LinkButton runat="server" ID="tbl_AuditTrail" CssClass="w-button"  Style="background: url(../images/document_view32.png); " OnClick="OnAuditTrail">
                    <asp:Label ID="tbl_AuditTrailLabel" runat="server"></asp:Label>
                </asp:LinkButton>

            </asp:Panel>


            <asp:MultiView ID="mv" runat="server">
                <asp:View ID="v_details" runat="server">

                    <table class="main">
                        <tr>

                            <td style="width: 80%; vertical-align: top;">
                                <table style="width: 100%">
                                    <tr>
                                        <td>
                                            <asp:Panel ID="pnl_ReviewType" runat="server">

                                                <uc2:SimpleSectionBreak ID="u_ReviewTypeHeader" runat="server" />

                                                <uc3:DropDownListEX ID="lst_Type" runat="server" />
                                            </asp:Panel>
                                        </td>

                                    </tr>
                                    <tr>
                                        <td>
                                            <uc2:SimpleSectionBreak ID="u_CommentsHeader" runat="server" />
                                            <asp:Panel ID="pn_c" runat="server" ScrollBars="Vertical" Style="min-height: 300px; height: 300px">
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <hr class="ee" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btn_AddComments" runat="server" />
                                        </td>
                                    </tr>
                                </table>

                            </td>

                            <td style="width: 20%; vertical-align: top;">

                                <div style="border-left: solid 1px #EAEAEA; min-height: 500px;background-color:#F5F5F5">
                                    <uc1:LabelEx ID="lbl_StartedDate" runat="server" />
                                    <uc1:LabelEx ID="lbl_LastReviewer" runat="server" />
                                    <uc1:LabelEx ID="lbl_LastAuditor" runat="server" />
                                </div>


                            </td>

                        </tr>
                    </table>

                </asp:View>
                <asp:View ID="v_trail" runat="server">
                    <asp:Panel ID="pn_a" runat="server" ScrollBars="Vertical" Style="min-height: 400px; height: 490px">
                      
                    </asp:Panel>

                     <hr class="ee" />

                </asp:View>
            </asp:MultiView>
            <div style="padding-top: 5px;"></div>

            <div class="floatright">
                <asp:Button ID="btn_OK" runat="server" OnClick="OnOK" />
                <asp:Button ID="btn_Cancel" runat="server" OnClientClick="cb2();" />

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

    <style>
        .lineheader {
            width: 99.5%;
        }
        .editor fieldset {
            border-color:#F5F5F5;
        }
    </style>

</asp:Content>
