<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Test123, MachSol.MachPanel.Web" %>
<%@ Register Src="~/Template/CC/VirtualDropDownList.ascx" TagName="VirtualDropDownList" TagPrefix="EM" %>
<%@ Register Assembly="MachSol.MachPanel.Utility" Namespace="MachSol.MachPanel.Utility" TagPrefix="CC" %>


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

    <script type="text/javascript">
        //Write userControl for DropDownList that takes Options, hfOptions.ClientId, Filter, AutoPostBackMethodName, SelectedValue
        //Gives SelectedText, SelectedValue, SelectedIndex


        function reload() {
            setInterval(() => {
                location.reload();
            }, 30000); // 30000 milliseconds = 30 seconds
        }
        reload();
    </script>

    <EM:VirtualDropDownList ID="DDL_ADUsers" runat="server" />

    <asp:button ID="Btn_Submit" Text="Submit" runat="server" />

    <asp:Label ID="Lbl_Result" runat="server"></asp:Label>

    <div id="Div_Result" runat="server"></div>

</asp:Content>
<%--<%@ Register src="~/RCC/Exchange/CC/MBDetail.ascx" tagname="MBDetail" tagprefix="MBDetail" %>--%>
<%--<%@ Register Src="~/Template/LargeFileUpload.ascx" TagName="LFU" TagPrefix="UC" %>


<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <style>
        html {
            box-sizing: border-box;
        }

        *,
        *:before,
        *:after {
            box-sizing: inherit;
        }

        .itemDrag {
            height: auto;
            float: left;
            padding: 1em;
            margin: .5em;
            border: 1px solid #000;
            /*display: flexbox;
            flex-wrap: wrap;*/
            background-color: #fff;
            display: inline-block;
            width: auto;
        }

        .chart {
            width: auto;
            height: auto;
        }

        h2 {
            cursor: move;
        }


        .largeBox {
            width: auto;
            height: auto;
        }

        .mediumBox {
            width: auto;
            height: auto;
        }

        .ui-content {
            width: 150px;
            height: 150px;
            padding: 0.5em;
            border: 1px solid #000;
        }

        img {
            width: 200px;
            height: 200px;
        }
    </style>

    <input id="Txbx_SkinColor" type="text">
    <br />
    <br />
    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h3>Test Page</h3>
            </div>
            <div class="body">
                <div class="row">
                    <div class="row">
                        <UC:LFU ID="LFU_1" runat="server" />
                    </div>
                </div>
                <div class="row">



                    <%--<div class="col-sm-10 col-xs-12">
                        <div class="ui-content">
                            <p>Drag me around 1</p>
                            <a href="Dashboard.aspx">Dashboard</a>
                        </div>
                        <div class="ui-content">
                            <p>Drag me around 2</p>
                        </div>
                    </div>
                </div>


            </div>


        </div>
    </div>



    <asp:PlaceHolder ID="PH" runat="server"></asp:PlaceHolder>
    <div class="row">
        <div class="col-xs-12">
            <asp:Button ID="Btn_Test" runat="server" Text="TEST IT" />
        </div>
    </div>

    <table class="table table-bordered table-striped table-hover">
        <tbody>
            <asp:Repeater ID="Rep_Licenses" runat="server">
                <HeaderTemplate>
                    <tr>
                        <th class="row-label">
                            <asp:Label ID="Label3" runat="server" Text="<%$ Resources:Content,License%>" /></th>
                        <th id="Th_LicenseId" runat="server" class="row-label">
                            <asp:Label ID="Label9" runat="server" Text="<%$ Resources:Content,LicenseID%>" /></th>
                        <th id="Th_LicenseStatus" runat="server" class="row-label">
                            <asp:Label ID="Label7" runat="server" Text="<%$ Resources:Content,String385%>" /></th>
                        <th id="Th_LicenseExpiry" runat="server" class="row-label">
                            <asp:Label ID="Label16" runat="server" Text="<%$ Resources:Content,GN00001478%>" /></th>
                        <th class="row-label">
                            <asp:Label ID="Label30" runat="server" Text="<%$ Resources:Content,GN000114%>" /></th>
                        <th class="row-label" id="Th_Allocated" runat="server">
                            <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Content,AllocatedToCustomers%>" /></th>
                        <th class="row-label">
                            <asp:Label ID="Label5" runat="server" Text="<%$ Resources:Content,SMI666%>" /></th>
                        <th class="row-label">
                            <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Content,DEV1146%>" /></th>
                    </tr>

                </HeaderTemplate>
                <ItemTemplate>
                    
                    <tr>
                        <td class="row-label">
                            <asp:Label ID="Label55" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseId" runat="server">
                            <asp:Label ID="Label56" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseStatus" runat="server">
                            <asp:Label ID="Label57" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Status") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseExpiry" runat="server">
                            <asp:Label ID="Label54" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Expiry") %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label58" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Total") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_Allocated" runat="server">
                            <asp:Label ID="Label59" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AllocatedToCustomers") %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label60" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "InUse") %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label61" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Available") %>'></asp:Label>
                        </td>
                    </tr>

                </ItemTemplate>
                <AlternatingItemTemplate>
                    
                    <tr>
                        <td class="row-label">
                            <asp:Label ID="Label55" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Name") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseId" runat="server">
                            <asp:Label ID="Label56" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Id") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseStatus" runat="server">
                            <asp:Label ID="Label57" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Status") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_LicenseExpiry" runat="server">
                            <asp:Label ID="Label54" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Expiry") %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label58" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Total") %>'></asp:Label>
                        </td>
                        <td class="row-label" id="Td_Allocated" runat="server">
                            <asp:Label ID="Label59" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "AllocatedToCustomers") %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label60" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "InUse") %>'></asp:Label>
                        </td>
                        <td class="row-label">
                            <asp:Label ID="Label61" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Available") %>'></asp:Label>
                        </td>
                    </tr>

                </AlternatingItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
    <%--<br />
    <hr />
    <div class="container">
        <div class="row">

            <h2>Delete CSP Customer</h2>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="form-label">Select CSP Profile: &nbsp;&nbsp;&nbsp;&nbsp;</label>
                    <asp:DropDownList ID="Ddl_CSPProfile" runat="server" CssClass="form-control"></asp:DropDownList>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="form-label">Input CSP customer microsoft id (guid): &nbsp;</label>
                    <asp:TextBox ID="Txbx_CSPCustomerId" runat="server" CssClass="form-control"></asp:TextBox>
                </div>
            </div>
            <div class="col-xs-12">
                <asp:Button ID="Btn_DeleteCSPCustomer" runat="server" Text="Delete" CssClass="btn btn-primary btn-default" />
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row">

            <h2>Tech Data Distributor Test call</h2>
            <div class="col-xs-12">
                <asp:Button ID="Btn_TestTechDataTestCall" runat="server" Text="Test Tech Data Test Call" CssClass="btn btn-primary btn-default" />
            </div>
        </div>
        <div class="row">
            <pre id="pre_response" runat="server">

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

    <script type='text/javascript' language='javascript'>

</script>
</asp:Content>

--%>