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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>

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

    <script type="text/javascript" language="javascript">
        //function toggle_visibility() {
        //    var DivAlert = document.getElementById("ctl00_CPH_Content_div_systemAlertMsg");
        //    DivAlert.style.display = 'none';
        //}

        jQuery(document).ready(function ($) {

            setTimeout(function () {
                // set height of divs same as according to heighest Div
                var sectionheight = new Array(); //set empty array
                $(".packageWraper").each(function () { //get all div elements
                    var value = $(this).height(); //get div height
                    sectionheight.push(value); //write height to array
                });
                var newsectionheight = Math.max.apply(Math, sectionheight) + 5; //get largest value in array
                $('.packageWraper').height(newsectionheight); //set height of all elements to largest

                // set height of divs same as according to heighest Div
                var toolsBoxheight = new Array(); //set empty array
                $(".toolsBoxSimpleContent").each(function () { //get all div elements
                    var value = $(this).height(); //get div height
                    toolsBoxheight.push(value); //write height to array
                });
                newtoolsBoxheight = Math.max.apply(Math, toolsBoxheight); //get largest value in array
                $('.toolsBoxSimpleContent').height(newtoolsBoxheight); //set height of all elements to largest
            }, 200); //wait for 200 milli seconds after controls rendered.
        });


    </script>

    <div class="col-xs-12">
        <div class="card bg-col-grey">
            <div class="header">
                <h2><%= Resources.Content.SSM1000019 %></h2>
            </div>
            <div class="body">
                <div class="row">
                    <div class="col-xs-12">
                        <ajax:UpdatePanel ID="UPD" runat="server">
                            <ContentTemplate>

                                <%--Latest news and updates box--%>
                                <div id="div_systemNewsBox" runat="server" class="col-xs-12 p-l-50 p-r-50 m-b-20 p-b-20">
                                    <!-- ========================== Carousel ======================== -->
                                    <div id="notification-carousel" class="carousel slide" data-interval="5000" data-pause="hover" data-wrap="true">
                                        <div class="carousel-inner">
                                            <asp:Repeater ID="Rep_ID" runat="server">
                                                <ItemTemplate>
                                                    <div class='<%# IIf(Container.ItemIndex = 0, "item active", "item") %>'>
                                                        <div class="caption">
                                                            <div class="header">
                                                                <h3><%#DataBinder.Eval(Container.DataItem, "NotificationTitle")%></h3>
                                                            </div>
                                                            <div class="body">
                                                                <%#DataBinder.Eval(Container.DataItem, "NotificationDescription").ToString.Replace(Chr(10), "<br/>")%>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </div>
                                        <!-- Indicators -->
                                        <ol class="carousel-indicators">
                                            <asp:Repeater ID="Rep_NotificationIndicators" runat="server">
                                                <ItemTemplate>
                                                    <li data-target="#notification-carousel" data-slide-to="<%# Container.ItemIndex%>" class="<%# IIf(Container.ItemIndex = 0, " active", "")%>"></li>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </ol>
                                        <a class="left carousel-control" href="#notification-carousel" data-slide="prev">
                                            <span class="glyphicon glyphicon-chevron-left"></span>
                                            <span class="sr-only">Previous</span>
                                        </a>
                                        <a class="right carousel-control" href="#notification-carousel" data-slide="next">
                                            <span class="glyphicon glyphicon-chevron-right"></span>
                                            <span class="sr-only">Next</span>
                                        </a>
                                    </div>

                                    <!-- End Carousel -->
                                    <br />
                                    <br />
                                </div>

                                <%--// domain verification notice --%>
                                <div class="col-xs-12" id="Div_DomainVerificationNotice" runat="server" visible="false">
                                    <div class="card">
                                        <div class="header bg-orange">
                                            <asp:Literal ID="Literal11" runat="server" Text="<%$Resources:Content,DomainVerificationNotice %>" EnableViewState="false"></asp:Literal>
                                        </div>
                                        <div class="body">
                                            <p>
                                                There are pending domains that need verification, click <a href="Network/ServiceDirector/DomainVerification.aspx">here</a> to review.<br />

                                            </p>
                                        </div>
                                    </div>
                                </div>

                                <%--//Latest news and updates box--%>
                                <%--Voice Instant Search--%>
                                <div id="Div_VoiceSearch" runat="server" class="col-xs-12">
                                    <div class="row">
                                        <div class="panel-group search-panel" id="AS_Subscribers" role="tablist" aria-multiselectable="true">
                                            <div class="col-xs-12" role="tab" id="SH_Subscribers">
                                                <div class="card">
                                                    <div class="header" role="button" data-toggle="collapse" data-parent="#AS_Subscribers" href="#<%= CSB_Subscribers.ClientID%>" aria-expanded="true" aria-controls="SH_Subscribers">
                                                        <h3>
                                                            <%= Resources.Content.VoiceInstantSearch%>
                                                        </h3>
                                                    </div>
                                                    <div id="CSB_Subscribers" runat="server" class="body panel-collapse collapse" role="tabpanel" aria-labelledby="SH_Subscribers" aria-expanded="false">
                                                        <div class="row">
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SrchUser" runat="server" />
                                                                        <asp:Label ID="Label4" runat="server" class="form-label" EnableViewState="false"
                                                                            Text="<%$ Resources:Content,DEV1134%>"></asp:Label>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="col-md-3 col-sm-6 col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <div class="form-line">
                                                                        <asp:TextBox ID="TxBx_SrchPhoneNumber" runat="server"></asp:TextBox>
                                                                        <asp:Label ID="Label5" runat="server" class="form-label" EnableViewState="false"
                                                                            Text="<%$ Resources:Content,PhoneNumber%>"></asp:Label>
                                                                    </div>

                                                                </div>
                                                            </div>
                                                            <div class="col-xs-12">
                                                                <div class="form-group form-float">
                                                                    <asp:Button ID="Btn_SrchSubscribers" runat="server" class="btn btn-primary waves-effect" Text="<%$ Resources:Content,SearchInSubscribers%>" />
                                                                    <asp:Button ID="Btn_SrchPhoneNumbers" class="btn btn-primary waves-effect" runat="server" Text="<%$ Resources:Content,SearchInPhoneNumbers %>" />
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <%--Locale/Language box--%>
                                <div class="col-xs-12" id="Div_LocaleLang">
                                    <div class="card">
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-sm-2 col-xs-12 row-label">
                                                    <label><%= Resources.Content.FAM0024 %>:</label>
                                                </div>
                                                <div class="col-sm-2 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_Language" runat="server" AutoPostBack="true" />
                                                    </div>
                                                </div>
                                                <div class="col-sm-2 col-xs-12 row-label">
                                                    <label><%= Resources.Content.FAM0023 %>:</label>
                                                </div>
                                                <div class="col-sm-5 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_Locale" runat="server" AutoPostBack="true" />
                                                    </div>
                                                </div>
                                                <div class="col-sm-4 col-xs-12" id="Div_Format" runat="server" visible="false">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <%--End of Locale/Language box--%>


                                <div class="col-xs-12">

                                    <!-- Manage Subscription -->
                                    <div class="col-xs-12 p-l-0" id="tblSubscribe" runat="server">
                                        <div class="block-header" id="divSubscriptionsHeader" runat="server">
                                            <h2>
                                                <asp:Literal ID="Lblt_Subscriptions" runat="server" Text="<%$Resources:Content,DGN1110465 %>" /></h2>
                                        </div>
                                        <div class="row">
                                            <div class="col-lg-2 col-md-3 col-sm-3 col-xs-12">

                                                <div class="btn-group btn-group-primary m-t-10 m-b-15 p-l-0" id="Div_SubscribeService" runat="server">
                                                    <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle" type="button">
                                                        <asp:Label ID="subsTitle" runat="server" Text="<%$ Resources:Content,String276%>" />&nbsp;&nbsp;
                                                        <span class="caret"></span>
                                                    </button>
                                                    <ul class="dropdown-menu">
                                                        <li>
                                                            <asp:LinkButton ID="LB_O365" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=21&O=R"
                                                                Text="<%$Resources:Content,strO365Hosting%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_ExHosting_Client" runat="server" Text="<%$Resources:Content,GN0002000 %>"
                                                                PostBackUrl="~/Client/SubscribeService.aspx?PType=16&O=R"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_Lync" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=18&O=R"
                                                                Text="<%$Resources:Content,DEV1088%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_VPS" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=19&O=R"
                                                                Text="<%$Resources:Content,DB0001%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_SP_Client" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=17&O=R"
                                                                Text="<%$Resources:Content,String145 %>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_CRM_Client" runat="server" Text="<%$Resources:Content,DEV1029%>"
                                                                PostBackUrl="~/Client/SubscribeService.aspx?PType=14&O=R"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_OOrgHosting_Client" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=1416171821&O=R"
                                                                Text="<%$Resources:Content,NewOrganization%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_WebHosting_Client" runat="server" Text="<%$Resources:Content,GN0000009%>"
                                                                PostBackUrl="~/Client/SubscribeService.aspx?PType=1&O=R"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_DomainName_Client" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=10&O=R"
                                                                Text="<%$Resources:Content,GN000125%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_AddOn_Client" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=15&O=R"
                                                                Text="<%$Resources:Content,GN000129%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_DedHosting_Client" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=5&O=R"
                                                                Text="<%$Resources:Content,GN00008032%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_SSL_Client" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=8&O=R"
                                                                Text="<%$Resources:Content,GN000127%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_Reseller" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=2&O=R"
                                                                Text="<%$Resources:Content,GN00001463%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="IB_WorkfoldersHosting" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=23&O=R"
                                                                Text="<%$Resources:Content,Workfolder%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="IB_RDSHosting" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=22&O=R"
                                                                Text="<%$Resources:Content,RDSHosting%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="IB_SIPHosting" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=24&O=R"
                                                                Text="<%$Resources:Content,MachCloudCommunication%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="IB_HostedVoiceHosting" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=25&O=R"
                                                                Text="<%$Resources:Content,strHostedVoice%>"></asp:LinkButton></li>
                                                    </ul>
                                                </div>

                                            </div>
                                            <div class="col-lg-2 col-md-3 col-sm-3 col-xs-12">

                                                <div class="btn-group btn-group-primary m-t-10 m-b-15" id="Div_SubscribeAsResellerHeader" runat="server">
                                                    <button data-toggle="dropdown" class="btn btn-primary dropdown-toggle" type="button">
                                                        <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Content,String277%>" />&nbsp;&nbsp;
                                                        <span class="caret"></span>
                                                    </button>
                                                    <ul class="dropdown-menu">
                                                        <li>
                                                            <asp:LinkButton ID="LB_O365_Reseller" runat="server" Text="<%$Resources:Content,strO365Hosting%>"
                                                                PostBackUrl="~/Client/SubscribeService.aspx?PType=21&AR=1&Sub=1"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_ExHosting_Reseller" runat="server" Text="<%$Resources:Content,GN0002000 %>"
                                                                PostBackUrl="~/Client/SubscribeService.aspx?PType=16&AR=1"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_Lync_Reseller" runat="server" Text="<%$Resources:Content,DEV1088%>"
                                                                PostBackUrl="~/Client/SubscribeService.aspx?PType=18&AR=1"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_VPS_Reseller" runat="server" Text="<%$Resources:Content,DB0001%>"
                                                                PostBackUrl="~/Client/SubscribeService.aspx?PType=19&AR=1"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_SP_Reseller" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=17&AR=1"
                                                                Text="<%$Resources:Content,String145 %>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_CRM_Reseller" runat="server" Text="<%$Resources:Content,DEV1029%>"
                                                                PostBackUrl="~/Client/SubscribeService.aspx?PType=14&AR=1"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_WebHosting_Reseller" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=1&AR=1"
                                                                Text="<%$Resources:Content,GN0000009 %>"></asp:LinkButton></li>
                                                        <li visible="false">
                                                            <asp:LinkButton ID="LB_DigiCertCentral" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=8&AR=1"
                                                                Text="<%$Resources:Content,DigiCertSSL %>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="LB_AddOn_Reseller" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=15&AR=1"
                                                                Text="<%$Resources:Content,GN000129%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="IB_WorkfoldersHosting_Reseller" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=23&AR=1"
                                                                Text="<%$Resources:Content,Workfolder%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="IB_RDSHosting_Reseller" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=22&AR=1"
                                                                Text="<%$Resources:Content,RDSHosting%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="IB_SIPHosting_Reseller" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=24&AR=1"
                                                                Text="<%$Resources:Content,MachCloudCommunication%>"></asp:LinkButton></li>
                                                        <li>
                                                            <asp:LinkButton ID="IB_HostedVoiceHosting_Reseller" runat="server" PostBackUrl="~/Client/SubscribeService.aspx?PType=25&AR=1"
                                                                Text="<%$Resources:Content,strHostedVoice%>"></asp:LinkButton></li>
                                                    </ul>
                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                    <!-- Manage Subscription End -->

                                    <!-- #include file="../Components/Dashboard/Stats.html" -->
                                   
                                </div>

                                <div class="col-xs-12">
                                    <div class="col-xs-12 p-l-0" id="DivCustomTiles" runat="server">
                                        <div class="block-header" id="div2" runat="server">
                                            <h2>
                                                <asp:Literal ID="Literal1" runat="server" Text="<%$Resources:Content,strCustomLinks %>" /></h2>
                                        </div>
                                        <div class="row">
                                            <asp:Repeater ID="Rep_CustomTiles" runat="server">
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="HypLCustomTile" runat="server" CssClass="text" NavigateUrl='<%# Eval("HtmlContent")  %>'>
                                                        <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12" id="div_customtile" runat="server">
                                                            <div class="info-box-4 hover-zoom-effect">
                                                                <div class="icon">
                                                                    <img src='<%# Page.ResolveUrl(Eval("IconPathOrUrl")) %>' width="55px" height="50px" />
                                                                </div>
                                                                <div class="content">

                                                                    <br />
                                                                    &nbsp;&nbsp;<asp:Label ID="Ltrl_CustomTile" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                                                                </div>

                                                            </div>
                                                        </div>
                                                    </asp:HyperLink>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </div>
                                    </div>
                                </div>

                            </ContentTemplate>
                        </ajax:UpdatePanel>
                    </div>
                </div>
            </div>
        </div>
    </div>

</asp:Content>
