<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="RCC_O365_PowerBIView, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="EM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" runat="Server">

    <script language="javascript" type="text/javascript">
        function setURL(iframeid, url) {
            parent.document.getElementById(iframeid).src = url;
            $("#htmldisplay").removeClass("hide");
            $("#listing").addClass("hide");
            //http://geekswithblogs.net/ranganh/archive/2005/04/25/37635.aspx
            //https://forums.asp.net/t/1225536.aspx?dynamically+loading+page+in+iframe+when+button+clicked+in+another+page
        }

        function hideFrame() {
            $("#listing").removeClass("hide");
            $("#htmldisplay").addClass("hide");
        }
    </script>

    <div class="col-xs-12" id="listing">
        <div class="card">
            <div class="header">
                <h3>
                    <%= Resources.Content.PowerBIview%>                                                                                                                                 
                </h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-sm-2 col-xs-12 row-label">
                        <label>
                            <asp:Literal ID="Literal4" runat="server" Text='<%$ Resources:Content, strSelectCSPProfile %>' EnableViewState="false" />:
                        </label>
                    </div>
                    <div class="col-sm-4 col-xs-12">
                        <div class="form-group">
                            <asp:DropDownList ID="DDL_CSPProfiles" runat="server" AutoPostBack="true" />
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <asp:Repeater ID="Rep_PowerBIViews" runat="server">
                            <HeaderTemplate>
                                <table class="table table-bordered table-striped table-hover">
                                    <tr>
                                        <th class="col-xs-12">
                                            <asp:Literal ID="Ltl_ViewNameHeader" runat="server" Text="<%$ Resources:Content,ViewName%>" EnableViewState="false"></asp:Literal>
                                        </th>
                                    </tr>
                                </table>
                                <div class="row">
                            </HeaderTemplate>
                            <ItemTemplate>
                                <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 m-t-20">
                                    <div class="powerBI-box hover-zoom-effect">
                                        <div class="content m-t-20">
                                            <div class="number">
                                                <asp:Literal ID="Ltl_ViewName" runat="server"></asp:Literal>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </ItemTemplate>
                            <FooterTemplate>
                                </div>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </div>
                <%--<div class="row">
                    <div class="col-xs-12">
                        <a id="Ltl_ViewName" runat="server" onclick='setURL("top", "http://localhost:8088/RCC/Dashboard.aspx")'>Google</a>
                        <div>
                            <input id="Button1" type="button" value="Submit" onclick='setURL("top", "http://localhost:8088/RCC/Dashboard.aspx")' />
                        </div>
                        <asp:HiddenField ID="HF_ViewLink" runat="server" Value="https://www.google.com.pk" />
                    </div>
                    <div class="col-xs-12 hide">
                    </div>
                </div>--%>
            </div>
        </div>
    </div>
    <div class="col-xs-12 hide" id="htmldisplay">
        
        <a id="closeframe" class="btn btn-primary pull-right" onclick="hideFrame();"><%= Resources.Content.DGN1110542%></a>
        <iframe id="top" name="top" src="https://www.google.com" class="iframeAdjuster">
            <br />

        </iframe>
    </div>
</asp:Content>

