<%@ page language="C#" autoeventwireup="true" inherits="Pages_MobileView_DashBoard, App_Web_o2bmcyxc" masterpagefile="~/Pages/Common/MasterPages/MobileViewMasterPage.master" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            GetOrgId();
            $(document).on("click", function () {
                sessionStorage.removeItem("NewId");
                sessionStorage.removeItem("NewBatchId");
            });
        });
        function GetOrgId() {
            $.ajax({
                type: "POST",
                url: "DashBoard.aspx/GetOrgId",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (result) {
                    var obj = (result.d);
                    console.log(result.d);
                    var OrgGroupId = "";
                    var k = 0;
                    $.each(obj, function (i, item) {
                        // alert(obj.length);
                        if (item.Id != 30236)
                        {
                            var url = item.PagePath;
                            var domainName = url.substr(url.indexOf("~/") + 1);
                            OrgGroupId += " <div class='col-xs-6 col-sm-6 col-md-4 col-xl-3 mt-43 temp'><div class='card db pull-up'><a onclick='window.location.href=\"" + domainName + "\"'" +
                                          "<div class='block-content block-content-full aspect-ratio-16-9  justify-content-center align-items-center'>" +
                                          "<img src='../" + item.IconPath + "' /><div>" + item.Title + "</div></div></a></div></div>";
                        }
                    });
                    document.getElementById("MisDashBoard").innerHTML = OrgGroupId;


                    //$("#MisDashBoard").html(result.d);
                }
            });
        }
    </script>
    <style>
        .block-content{
            height:137px;
        }
        .mt-43{
            margin:auto
        }
    </style>
    <asp:UpdatePanel ID="DoctorScheduleUpdatePanel" runat="server">
        <ContentTemplate>
            <div class="page-header row mb37">
                <div class="col-xl-6 col-sm-6 col-xs-12 border-bottom-inline">
                    <div class="main-topic db">
                        <h2 class="page-title">Dashboard</h2>
                       
                    </div>
                </div>
            </div>

            <div class="bg-body-dark row center-block">
                <div class="container-fluid">
                    <div class="gutters-tiny push js-appear-enabled animated fadeIn" data-toggle="appear">
                        <div class="tab row" id="MisDashBoard">
                      <%--      <div class='col-xs-6 col-sm-6 col-md-4 col-xl-3 mt-43'>
                                <div class="card db pull-up">
                                    <a onclick="EisDashBoard()">
                                        <div class='block-content block-content-full aspect-ratio-16-9  justify-content-center align-items-center'>

                                            <img src="../../App_Themes/mis_db/images/eis.png" />
                                           
                                            <div>EIS Dashboard</div>

                                        </div>
                                    </a>
                                </div>
                            </div>
                            <div class='col-xs-6 col-sm-6 col-md-4 col-xl-3 mt-43'>
                                <div class="card db  pull-up">
                                    <a onclick="MisDashBoard()">
                                        <div class='block-content block-content-full  aspect-ratio-16-9 justify-content-center align-items-center'>

                                            <img src="../../App_Themes/mis_db/images/mis.png" />
                                           
                                            <div>MIS Dashboard</div>

                                        </div>
                                    </a>
                                </div>
                            </div>
                            <div class='col-xs-6 col-sm-6 col-md-4 col-xl-3 mt-43'>
                                <div class="card db pull-up">
                                    <a onclick="StudentSearchDashBoard()">
                                        <div class='block-content block-content-full  aspect-ratio-16-9 justify-content-center align-items-center'>

                                            <img src="../../App_Themes/mis_db/images/student.png" />
                                            <div>Student Search</div>

                                        </div>
                                    </a>
                                </div>
                            </div>
                            <div class='col-xs-6 col-sm-6 col-md-4 col-xl-3 mt-43'>
                                <div class="card db pull-up">
                                    <a onclick="EmployeeSearchDashBoard()">
                                        <div class='block-content block-content-full  aspect-ratio-16-9  justify-content-center align-items-center'>
                                            <img src="../../App_Themes/mis_db/images/employee.png" />
                                            <div>Employee Search</div>
                                        </div>
                                    </a>
                                </div>
                            </div>--%>



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

            <script>
                function openNav() {
                    document.getElementById("mySidenav").style.width = "344px";
                }

                function closeNav() {
                    document.getElementById("mySidenav").style.width = "0";
                }
            </script>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
