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

<%@ Register Src="../UIControls/SecuredFeatureAuthentication.ascx" TagName="SecuredFeatureAuthentication"
    TagPrefix="uc1" %>
<%@ Register Src="../UIControls/Header.ascx" TagName="Header" TagPrefix="uc2" %>
<%@ Register Src="../UIControls/MessageBox.ascx" TagName="MessageBox" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="c_M" runat="server">
    <uc1:SecuredFeatureAuthentication ID="usc_FS" runat="server" />
    <asp:UpdatePanel ID="up_a" runat="server">
        <ContentTemplate>
            <uc3:MessageBox ID="usc_M" runat="server" />

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


            <asp:Panel ID="pnl_Wrapper" runat="server" Visible="false">

                <table style="width: 100%">
                    <tr>
                        <td>
                            <asp:TextBox ID="txt_Sql" runat="server" Height="70px" TextMode="MultiLine"
                                Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btn_Run" runat="server" Text="Run query" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <hr class="ee" />
                        </td>
                    </tr>

                    <tr>
                        <td>

                            <asp:GridView ID="dg_Data" runat="server" CellPadding="4" ForeColor="#333333"
                                GridLines="None">
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>

                        </td>
                    </tr>

                    <tr>
                        <td>
                            <hr class="ee" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btn_Export" runat="server" Text="Export" />
                        </td>
                    </tr>
                </table>

            </asp:Panel>
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="btn_Export" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
