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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>
<%@ Register Src="~/UserControls/DatePicker/DatePickerControl.ascx" TagName="DatePickerControl" TagPrefix="Date" %>
<%@ Register Src="~/UserControls/AutoComplete/AutoCompleteControl.ascx" TagName="AutoCompleteControl" TagPrefix="acc" %>
<%@ Register Src="~/UserControls/Common/CommonSearch/CommonSearch.ascx" TagName="CommonSearchUserControl" TagPrefix="Common" %>
<%@ Register Src="~/UserControls/Common/Alert/AlertDetailBoxControl.ascx" TagName="AlertControl" TagPrefix="Alert" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager"
    TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

    <style>
        @import url(https://fonts.googleapis.com/css?family=Lato:400,700);

        . /*sidebar-img {
            float: left;
            height: 32px;
            margin-top: 0px;
            width: 32px;
            margin-right: 10px;
        }

        .sidebar-show {
            margin: unset;
            width: 78% !important;
        }

        body {
            background: #000;
            margin: 0 0px;
            position: relative !important;
            right: 0px !important;
            z-index: auto !important;            
        }

        .sidebar-replace {
            margin: 0 auto;
        }*/
        /*.text-area-new {
            background-color: #fff;
            color: #000;
            border-radius: 50px;
        }

        .modal-content-area {
            padding: 10px;
        }

        .Receiverdownload {
            float: right !important;
            color: #37465b;
            padding-left: 14px;
        }

        .Senderdownload {
            float: right !important;
            color: white;
            padding-left: 14px;
        }

        .ReceiverLabel {
            color: #37465b;
        }

        .SenderLabel {
            color: white;
        }

        .new-Image {
            width: 100%;
            height: 160px;
            padding: 10px 0px;
        }

        .input-button-style {
            padding: 10px 0px 10px 10px;
        }

        .approve {
            color: green !important;
            font-size: 17px;
            padding: 10px;
        }

        :focus {
            outline: -webkit-focus-ring-color auto 0px;
        }

        .reject {
            color: red !important;
            font-size: 17px;
            padding: 10px;
        }

        .Image-Div {
            width: 34% !important;
        }

        .input-button-style {
            padding: 10px;
        }

        input.new-button-type {
            background-color: #94c2ed;
            color: #fff;
            padding: 15px 7px;
            width: 100%;
        }*/
        /*ul#ChatScreen li {
            list-style-type: none;
        }*/
        /**, *:before, *:after {
            box-sizing: border-box;
        }*/
        /*body {            
            font-size: 13px;
            font-family: Helvetica;
            padding: 34px 0;
            color: #6e6c6c;
            background-image: url('../../../Images/FolderIcon/chat-images/vidyalaya-chat.jpg');
            position: absolute;            
            z-index: 999;
            width: 100% !important;
            background-repeat: no-repeat;
            background-size: cover;
        }*/
        /*.container {
            width: 100%;
            padding-right: 0px !important;
            padding-left: 0px !important;
            background-color: #fff;
            border-radius: 10px;
            height: 500px;
        }*/
        /*@media (min-width: 1340px) {
            .container {
                max-width: 1340px;
            }
        }

        @media (min-width: 1200px) {
            .container {
                max-width: 1200px;
            }
        }*/
        ul#ChatScreen {
            padding-left: 15px;
        }

        a:not([href]):not([tabindex]) {
            color: #878787;
            text-decoration: none;
            border-bottom: 1;
        }

        .people-list {
            width: 25%;
            float: left;
        }

        ul#GroupList li.clearfix {
            border-bottom: 1px solid #f1f1f1;
        }

        .list {
            list-style: none;
            height: 420px;
            overflow-y: auto;
            padding-top: 0px;
        }

        /*.search {
            padding: 20px;
        }*/

        /*input {
            border-radius: 3px;
            border: none;
            padding: 14px;
            color: white;
            background: #6A6C75;
            width: 90%;
            font-size: 14px;
        }*/

        /*.fa-search {
            position: relative;
            left: -25px;
        }*/

        ul {
            height: auto;
        }



        li {
            padding: 5px;
            line-height: 2;
        }

        i.fa.fa-user {
            padding-right: 5px;
            font-size: 18px;
        }


        /*img {
            float: left;
            height: 50px;
            margin-top: -10px;
            width: 50px;
        }


        .about {
            float: left;            
        }

        .about {
            padding-left: 8px;
        }*/

        .status {
            color: #92959E;
        }



        .chat {
            width: 75%;
            /*background: #F2F5F8;*/
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
            color: #434651;
            background: #efe7dd url(https://cloud.githubusercontent.com/assets/398893/15136779/4e765036-1639-11e6-9201-67e728e86f39.jpg) repeat;
        }

        .chat-header {
            padding: 10px 15px;
            border-bottom: 1px solid #f1f1f1;
            border-top-left-radius: 10px;
        }

        i.fas.fa-plus-circle {
            font-size: 18px;
        }

        /*img {
            float: left;
        }*/

        .chat-about {
            float: left;
            padding-left: 10px;
            margin-top: 6px;
        }

        .chat-with {
            font-weight: bold;
            font-size: 16px;
        }

        div.mainchatname {
            background-color: #e7e6e6;
            border-top-right-radius: 10px;
        }

        .chat-num-messages {
            color: #92959E;
        }

        .fa-star {
            float: right;
            color: #D8DADF;
            font-size: 20px;
            margin-top: 12px;
        }


        .chat-history {
            padding: 0px 0px 0px;
            /*border-bottom: 2px solid white;*/
            overflow-y: scroll;
            height: 375px;
        }

        .message-data {
            margin-bottom: 15px;
        }

        .message-data-time {
            color: #5c5a5a;
            padding-left: 6px;
        }

        .message {
            color: #1d1c1c;
            padding: 12px 20px;
            line-height: 26px;
            font-size: 16px;
            border-radius: 7px;
            width: fit-content;
            position: relative;
            margin-right: 2%;
        }

        /*&:after {
            bottom: 100%;
            left: 7%;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
            border-bottom-color: $green;
            border-width: 10px;
            margin-left: -10px;
        }*/

        span.message-data-name {
            font-size: 15px;
            font-weight: bold;
        }


        .my-message {
            background: #f8f8f8;
        }

        .other-message {
            background-color: #9da4ae;
            color: #ffffff;
        }

        &:after; {
            border-bottom-color: #94C2ED;
            left: 93%;
        }


        .chat-message {
            padding: 30px;
        }

        /*textarea {
            width: 100%;
            border: none;
            padding: 10px 20px;
            font: 14px/22px "Lato", Arial, sans-serif;
            margin-bottom: 10px;
            border-radius: 5px;
            resize: none;
        }*/

        /*.fa-file-o, .fa-file-image-o {
            font-size: 16px;
            color: #92959E;
            cursor: pointer;
        }*/

        button {
            /*float: right;*/
            color: #94C2ED;
            font-size: 16px;
            text-transform: uppercase;
            border: none;
            cursor: pointer;
            font-weight: bold;
            background: #F2F5F8;
        }

        &:hover {
            color: #483d8b;
        }


        .online, .offline, .me {
            margin-right: 3px;
            font-size: 10px;
        }

        .online {
            color: #000;
        }

        ul#GroupList li img {
            width: 32px;
            height: 15%;
            /* line-height: 8; */
            margin-top: 0px;
        }

        .offline {
            color: #E38968;
        }

        .me {
            color: #000;
        }

        .align-left {
            text-align: left;
        }

        .align-right {
            text-align: right;
        }

        .float-right {
            float: right;
        }

        .clearfix:after {
            visibility: hidden;
            display: block;
            font-size: 0;
            content: " ";
            clear: both;
            height: 0;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            padding-top: 100px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
        }

        .modal-content {
            background-color: #fefefe;
            margin: auto;
            padding: 0px;
            border: 1px solid #888;
            width: 45%;
            border-radius: 10px;
            max-height: 560px;
        }

        /*.close:not(:disabled):not(.disabled):focus, .close:not(:disabled):not(.disabled):hover {
            color: #fff;
            text-decoration: none;
            opacity: .75;
        }

        .close {
            color: #aaaaaa;
            font-size: 28px;
            font-weight: bold;
            right: 0;
            position: absolute;
            top: 0;
            margin-right: 10px;
            padding-top: 7px;
        }

            .close:hover,
            .close:focus {
                color: #000;
                text-decoration: none;
                cursor: pointer;
            }

        .h2 {
            padding-top: 4px;
            padding-left: 16px;
            color: inherit;
        }*/

        /*.header {
            color: #fff !important;
            background-color: #37465b !important;
            padding: 0.01em 16px;
            position: relative;
            border-bottom: 1px dotted #6c757d;
            height: 50px;
        }*/

        /*.RadioButton {
            color: black;
            width: 100%;
            padding-top: 20px;
            font-size: 17px;
        }

        .Radio {
            width: 30px;
            height: 15px;
        }

        .searchlabel {            
            float: left;
            margin: 0 20px 0 0;
        }

        /*.searchtext {
            padding: 5px;
            border-bottom-style: groove;
            background-color: white;
            color: black !important;
        }

        .searchspan {
            display: block;
            margin: 0 0 3px;
            font-size: 1.2em;
            font-weight: bold;
            color: #464646;
        }

        .SearchButton {
            padding-top: 5px;
            text-align: center;
        }

        .searchtable {
            max-height: 150px;
            color: black;
        }


        .pagination li a {
            display: inline-block !important;
            padding: 0px 11px !important;
            line-height: 30px !important;
        }

            .pagination li a img {
                width: 100%;
                height: 100%;
            }

        .side#menu {
            position: fixed;
            top: 35px;
            right: 0;
            width: 22%;
            height: 60%;
            background: White;
            border-radius: 5px;
            z-index: 1;
            min-height: 500px;            
        }

            .side#menu ul {
                margin: 0;
                padding: 0;
                overflow-y: auto;
                height: 415px;
            }

                .side#menu ul li {
                    list-style: none;
                    display: block;
                    line-height: 30px;
                    border: 1px solid #f8f5f547;
                    font-size: 15px;
                    font-weight: 500;
                }

                    .side#menu ul li.active {
                        background: #fbce52;
                    }

                    .side#menu ul li a {
                        padding: 6px 0;
                        color: #FFF;
                        font-size: 14px;
                        font-weight: bold;
                        text-transform: uppercase;
                        display: block;
                        text-decoration: none;
                        -webkit-transition-property: all;
                        -webkit-transition-duration: 0.1s;
                        -webkit-transition-timing-function: ease-out;
                        -moz-transition-property: all;
                        -moz-transition-duration: 0.1s;
                        -moz-transition-timing-function: ease-out;
                        -ms-transition-property: all;
                        -ms-transition-duration: 0.1s;
                        -ms-transition-timing-function: ease-out;
                        -o-transition-property: all;
                        -o-transition-duration: 0.1s;
                        -o-transition-timing-function: ease-out;
                        transition-property: all;
                        transition-duration: 0.1s;
                        transition-timing-function: ease-out;
                    }

                    .side#menu ul li:hover {
                        border-bottom: 1px solid #e4e4e4;
                    }

                    .side#menu ul li a:hover {
                        color: #e4e4e4;
                    }*/
    </style>


    <asp:UpdatePanel ID="SMSHistorySearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">

                <div class="dashBoardLeftCont" valign="top">
                    <div class="himssuHeader3WireBox">
                        <table width="0px" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <div class="himsBoxContent">
                                        <div class="leftUlMenu">
                                            <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="124"
                                                Visible="true" runat="server" />
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row whiteboxpaddingleft">
                    <Alert:AlertControl ID="AlertUserControl" runat="server" Visible="true" />
                    <div class="himssuHeader5WireBox card card-box">
                        <div class="himsBoxHeader card-head">
                            <asp:Panel ID="SearchHeaderPanel" runat="server" meta:resourcekey="SearchHeaderPanelResource1">
                                <div class="leftdiv">
                                </div>
                                <div class="himsBoxTitle">
                                    <div class="headerText">
                                        <header>
                                            <i class="fas fa-search"></i>
                                            <asp:Label ID="SearchHeaderLabel" runat="server" Text="Search"></asp:Label>
                                        </header>
                                    </div>
                                </div>
                                <div class="fRight mt-27">
                                    <asp:Button ID="BackButton" runat="Server" SkinID="0" CssClass="btn btn-back fas" Text="&#xf30a;  back" OnClick="BackButton_Click" Visible="false" />
                                </div>
                            </asp:Panel>
                        </div>
                        <div class="himsBoxContent card-body">
                            <asp:Panel ID="DetailPanel" runat="Server">
                                <div class="contentHolder">
                                    <div class="tableContainer">
                                        <cc1:TabContainer Width="100%" ID="AlertTabContainer" runat="server" CssClass="ajax__myTab nav nav-tabs tabs-style-iconbox"
                                            meta:resourcekey="AlertTabContainerResource1" ActiveTabIndex="0">
                                            <cc1:TabPanel Width="100%" ID="AlertDetails" runat="server" HeaderText="Alert">

                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab" style="padding: 0px !important"><a><i class="fas fa-check-circle"></i>&nbsp;Alert History</a></li>
                                                    </ul>

                                                </HeaderTemplate>

                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <asp:Panel ID="SearchDetailPanel" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                                            <div class="himsBoxContent">
                                                                <div class="contentHolder">
                                                                    <div class="col-md-12 bg-lghtgrey radiobtn">
                                                                        <div class="col-md-3 controlLabelWidth">
                                                                            <asp:RadioButtonList ID="SourceTypeRadioButtonList" runat="server" RepeatDirection="Horizontal"
                                                                                AutoPostBack="true" OnSelectedIndexChanged="SourceTypeRadioButtonList_SelectedIndexChanged">
                                                                                <asp:ListItem Text="SMS" Value="2" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="Email" Value="1"></asp:ListItem>
                                                                                <asp:ListItem Text="WhatsApp" Value="4"></asp:ListItem>
                                                                            </asp:RadioButtonList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="OrganizationLabel" Text="Organization" runat="server"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList ID="OrganizationDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="EventLabel" runat="server" Text="Event"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="EventDropDownList" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3" id="ResultStatusDiv" runat="server">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="StatusLabel" runat="server" Text="Status"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="StatusDropDownList" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                                <asp:ListItem Value="-1" Text="- ALL -" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Value="0" Text="Pending"></asp:ListItem>
                                                                                <asp:ListItem Value="1" Text="Delivered"></asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="SourceEventLabel" runat="server" Text="Source Event"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="SourceEventDropDownList" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                                <asp:ListItem Value="0" Text="- ALL -" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Value="1" Text="Scheduler"></asp:ListItem>
                                                                                <asp:ListItem Value="2" Text="Predefine"></asp:ListItem>
                                                                                <asp:ListItem Value="3" Text="Transaction"></asp:ListItem>
                                                                                <asp:ListItem Value="4" Text="Custom"></asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="ContactIdLabel" runat="server" Text="Mobile No / EmailId"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="ContactIdTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="20"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3" id="UserSearchPanel" runat="server">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="UserSearchLabel" runat="server" Text="User" meta:resourcekey="Label7Resource1"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="UserNameTextBox" runat="server" SkinID="CustomWidthTextBox"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                        <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="ReceiverSourceTypeLabel" runat="server" Text="Receiver Source Type"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="ReceiverSourceTypeDropDownList" SkinID="CustomWidthDropDownList"
                                                                                    CssClass="form-control" AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ReceiverSourceTypeDropDownList_SelectedIndexChanged">
                                                                                    <asp:ListItem Value="0">- ALL -</asp:ListItem>
                                                                                    <asp:ListItem Value="2003">Student</asp:ListItem>
                                                                                    <asp:ListItem Value="95">Employee</asp:ListItem>
                                                                                    <asp:ListItem>Other</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>

                                                                        <div class="outerBox pTop5 col-md-3" runat="server" id="CodeDiv" visible="false">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="IDNoLabel" runat="server" Text="ID No"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:TextBox ID="IDNoTextbox" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                    runat="server" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                                            </div>
                                                                        </div>

                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="FromDateLabel" runat="server" Text="From Date"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePicker" runat="server" />
                                                                        </div>
                                                                        
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="ToDateLabel" runat="server" Text="To Date"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePicker" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <div class="alignCenter pTop5">
                                                                        <asp:Button ID="SearchButton" runat="server" OnClick="SearchButton_Click"
                                                                            SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                                                        <asp:Button ID="SearchHistoryButton" runat="server" OnClick="SearchHistoryButton_Click"
                                                                            SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search History" />
                                                                        <asp:Button ID="ClearButton" runat="server" SkinID="0" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" OnClick="ClearSearchControls_Click"
                                                                            meta:resourcekey="ClearButtonResource1" />
                                                                        <asp:Button ID="ExportToExcelButton" Text="&#xf093; Export To Excel" CssClass="btn btn-examcommon fas" runat="Server" SkinID="0"
                                                                            OnClick="ExportToExcelButton_OnClick" />
                                                                    </div>
                                                                    <div class="spacer">
                                                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image7Resource1" />
                                                                    </div>
                                                                    <div class="himssuHeader1WireBox col-md-12">
                                                                        <div id="SMSHistoryListGridDiv" runat="server">
                                                                            <div class="spacer">
                                                                                <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                                                            </div>
                                                                            <div id="SMSHistoryListGridViewPagerDiv" runat="server">
                                                                                <div class="leftdiv">
                                                                                    <asp:HyperLink ID="AlertStatusHyperlink" runat="server" NavigateUrl="http://mobi1.blogdns.com/sms/Login.aspx?referer=default.aspx" onclick="window.open (this.href, 'popupwindow'); return false;" Font-Bold="true" Font-Size="Small">View SMS Alert Status</asp:HyperLink>
                                                                                    <asp:LinkButton ID="WhatsappQRCodeLinkButton" runat="server" Visible="False" Style="font-size: Small; font-weight: bold;" OnClick="WhatsappQRCodeLinkButton_Click" Text="Whatsapp QR Code Status"></asp:LinkButton>
                                                                                   
                                                                                    <asp:Label ID="DRStatusLabel" runat="server"></asp:Label>
                                                                                    <%--<br />
                                                    <asp:Label ID="CountLabel" runat="server" Text="Count : "></asp:Label>
                                                    <asp:Label ID="Count" runat="server"></asp:Label>--%>
                                                                                </div>
                                                                                <div class="himsBoxTitle">
                                                                                    <div class="col-md-12" style="padding-top:3px">
                                                                                        <div class="col-md-5">
                                                                                            <%--<div class="col-md-3 padd-0">--%>
                                                                                                <asp:Label ID="RecordsPerPage" Text="Records per Page : " runat="server" />
                                                                                            <%--</div>--%>
                                                                                           <%-- <div class="col-md-3 padd-0">--%>
                                                                                                <asp:DropDownList ID="AddRowsToGridDropDownList" SkinID="CustomWidthDropDownList" Width="70px" runat="server"
                                                                                                    AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList_SelectedIndexChanged" >
                                                                                                    <asp:ListItem Text="100" Value="100" Selected="True"></asp:ListItem>
                                                                                                    <asp:ListItem Text="200" Value="200"></asp:ListItem>
                                                                                                    <asp:ListItem Text="300" Value="300"></asp:ListItem>
                                                                                                    <asp:ListItem Text="400" Value="400"></asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            <%--</div>--%>
                                                                                        </div>

                                                                                        <div class="col-md-7">
                                                                                            <uc1:GridViewPager ID="SMSHistoryListGridView_GridViewPager" runat="server" OnFirstRecordClick="SMSHistoryListGridView_GridViewPager_FirstRecordClick"
                                                                                                OnLastRecordClick="SMSHistoryListGridView_GridViewPager_LastRecordClick" OnNextRecordClick="SMSHistoryListGridView_GridViewPager_NextRecordClick"
                                                                                                OnPrevRecordClick="SMSHistoryListGridView_GridViewPager_PrevRecordClick" OnTextBoxValueChange="SMSHistoryListGridView_GridViewPager_TextBoxValueChange"
                                                                                                ParentGridView="SMSHistoryListGridView" />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                          <%--  <div class="himssuHeader1WireBox col-md-15">
                                                                                <div class="controlLabelWidth">
                                                                                </div>
                                                                            </div>--%>
                                                                            <div class="himsBoxContent pTop15" style="padding-bottom:0px">
                                                                                <div id="Div4" runat="server" class="table-responsive ">
                                                                                    <asp:GridView runat="server" ID="SMSHistoryListGridView" Width="100%" AutoGenerateColumns="False"
                                                                                        EmptyDataText="No records available for the seacrh criteria!" AllowPaging="true" OnRowDataBound="SMSHistoryListGridView_RowDataBound"
                                                                                        PageSize="100" DataKeyNames="Id,OrgId" ShowHeader="True" CssClass="table table-striped table-bordered table-hover"
                                                                                        meta:resourcekey="SMSHistoryListGridViewResource1">
                                                                                        <Columns>
                                                                                            <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="SourceEvent" HeaderText="Source Event" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="EventName" HeaderText="Event Name" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" />

                                                                                            <asp:TemplateField HeaderText="Mobile No / EmailId" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left"
                                                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                                <ItemTemplate>
                                                                                                    <asp:TextBox ID="ContactIdTextBox" Enabled="false" runat="server" Text='<%# Bind("ContactId") %>' TextMode="MultiLine"></asp:TextBox>
                                                                                                    <asp:LinkButton ID="WhatsAppHistoryLinkButton" runat="server" CommandName="Select" OnClick="WhatsAppHistoryLinkButton_Click" Visible="false"
                                                                                                        Text='<%# Bind("ContactId") %>'></asp:LinkButton>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                            <asp:BoundField DataField="AlertSubject" HeaderText="Alert Subject" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:TemplateField HeaderText="Alert Message" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left"
                                                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                                <ItemTemplate>
                                                                                                    <asp:TextBox ID="AlertMessageTextBox" Enabled="false" runat="server" Text='<%# Bind("AlertMessage") %>' TextMode="MultiLine"></asp:TextBox>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>

                                                                                            <asp:TemplateField HeaderText="Result Message" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left"
                                                                                                ItemStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                                                                <ItemTemplate>
                                                                                                    <asp:LinkButton ID="ResultMessageButton" runat="server" CommandName="Select" OnClick="ResultMessageButton_Click"
                                                                                                        Text='<%# Bind("ResultMessage") %>' CausesValidation="false"></asp:LinkButton>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>

                                                                                            <asp:BoundField DataField="UserName" HeaderText="User Name" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="CreatedDateTime" HeaderText="Created DateTime" ItemStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="ResultMessage" HeaderText="Result Status" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                        </Columns>
                                                                                        <PagerSettings Visible="False" />
                                                                                    </asp:GridView>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="TabPanel1" runat="server" HeaderText="Alert">
                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab" style="padding: 0px !important"><a><i class="fas fa-check-circle"></i>&nbsp;Track Alert</a></li>
                                                    </ul>

                                                </HeaderTemplate>

                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <asp:Panel ID="Panel1" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                                            <div class="himsBoxContent">
                                                                <div class="contentHolder">
                                                                    <div class="col-md-12 bg-lghtgrey radiobtn">
                                                                        <div class="col-md-4 controlLabelWidth">
                                                                            <asp:RadioButtonList ID="TrackAlertRadioButtonList" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="TrackAlertRadioButtonList_SelectedIndexChanged"
                                                                                AutoPostBack="true">
                                                                                <asp:ListItem Text="SMS" Value="2" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="Email" Value="1"></asp:ListItem>
                                                                                <asp:ListItem Text="Notification" Value="3"></asp:ListItem>
                                                                                <asp:ListItem Text="WhatsApp" Value="4"></asp:ListItem>

                                                                            </asp:RadioButtonList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="EmailScreenLabel" runat="server" Text="Screen Title"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="EmailScreenTextBox" runat="server"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="EmailFromDateLabel" runat="server" Text="From Date"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="EmailFromDatePickerControl" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="EmailToDateLabel" runat="server" Text="To Date"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="EmailToDatePickerControl" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <div class="alignCenter pTop5">
                                                                        <asp:Button ID="SearchEmailTrackButton" runat="server" OnClick="SearchEmailTrackButton_Click"
                                                                            SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                                                        <asp:Button ID="ResetEmailTrackButton" runat="server" SkinID="0" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas" OnClick="ResetEmailTrackButton_Click"
                                                                            meta:resourcekey="ClearButtonResource1" />
                                                                    </div>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <div class="himsBoxContent col-md-12">
                                                                        <div id="Div1" runat="server" class="table-responsive">
                                                                            <asp:GridView runat="server" ID="EmailTrackGridView" Width="100%" AutoGenerateColumns="False"
                                                                                EmptyDataText="No records available for the seacrh criteria!" AllowPaging="False"
                                                                                ShowHeader="True" CssClass="table table-striped table-bordered table-hover"
                                                                                meta:resourcekey="SMSHistoryListGridViewResource1">
                                                                                <Columns>
                                                                                    <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="23%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                    <asp:BoundField DataField="ScreenTitle" HeaderText="Screen" ItemStyle-Width="17%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                    <asp:BoundField DataField="SourceType" HeaderText="Source Type" ItemStyle-Width="17%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                    <asp:BoundField DataField="Code" HeaderText="Code" ItemStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                    <asp:TemplateField HeaderText="EmailIds/Contacts" ItemStyle-Width="30%" ItemStyle-HorizontalAlign="Left"
                                                                                        ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                        <ItemTemplate>
                                                                                            <asp:TextBox ID="EmailIdsTextBox" Enabled="false" runat="server" Text='<%# Bind("Receiver") %>' TextMode="MultiLine"></asp:TextBox>
                                                                                        </ItemTemplate>
                                                                                    </asp:TemplateField>

                                                                                    <asp:BoundField DataField="StartDateTime" HeaderText="Start DateTime" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                    <asp:BoundField DataField="EndDateTime" HeaderText="End DateTime" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                </Columns>
                                                                                <PagerSettings Visible="False" />
                                                                            </asp:GridView>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                            <cc1:TabPanel Width="100%" ID="StudentAlertHistory" runat="server" HeaderText="Alert">

                                                <HeaderTemplate>
                                                    <ul class="nav nav-tabs tabs-style-iconboxinner ajaxnavtabs">
                                                        <li class="fancyTab" style="padding: 0px !important"><a><i class="fas fa-check-circle"></i>&nbsp;Student Alert History</a></li>
                                                    </ul>

                                                </HeaderTemplate>

                                                <ContentTemplate>
                                                    <div class="contentHolder">
                                                        <asp:Panel ID="Panel4" runat="server" meta:resourcekey="SearchDetailPanelResource1">
                                                            <div class="himsBoxContent">
                                                                <div class="contentHolder">
                                                                    <div class="col-md-12 bg-lghtgrey radiobtn">
                                                                        <div class="col-md-3 controlLabelWidth">
                                                                            <asp:RadioButtonList ID="SourceTypeRadioButtonList1" runat="server" RepeatDirection="Horizontal"
                                                                                AutoPostBack="true" OnSelectedIndexChanged="SourceTypeRadioButtonList1_SelectedIndexChanged">
                                                                                <asp:ListItem Text="SMS" Value="2" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Text="Email" Value="1"></asp:ListItem>
                                                                                <asp:ListItem Text="WhatsApp" Value="4"></asp:ListItem>
                                                                            </asp:RadioButtonList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="OrganizationLabel1" Text="Organization" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList ID="OrganizationDropDownList1" runat="server" onmouseleave="showHideTooltip()"
                                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control"
                                                                                OnSelectedIndexChanged="OrganizationDropDownList1_OnSelectedIndexChanged" AutoPostBack="true">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="BatchLable" Text="Batch" runat="server" SkinID="MandatoryLabel"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList ID="BatchDropDownList" runat="server" onmouseleave="showHideTooltip()"
                                                                                onmouseenter="showHideTooltip()" SkinID="CustomWidthDropDownList" CssClass="form-control">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="EventLabel1" runat="server" Text="Event"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="EventDropDownList1" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3" id="ResultStatusDiv1" runat="server">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="StatusLabel1" runat="server" Text="Status"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="StatusDropDownList1" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                                <asp:ListItem Value="-1" Text="- ALL -" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Value="0" Text="Pending"></asp:ListItem>
                                                                                <asp:ListItem Value="1" Text="Delivered"></asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="SourceEventLabel1" runat="server" Text="Source Event"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:DropDownList runat="server" ID="SourceEventDropDownList1" SkinID="CustomWidthDropDownList"
                                                                                CssClass="form-control" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()">
                                                                                <asp:ListItem Value="0" Text="- ALL -" Selected="True"></asp:ListItem>
                                                                                <asp:ListItem Value="1" Text="Scheduler"></asp:ListItem>
                                                                                <asp:ListItem Value="2" Text="Predefine"></asp:ListItem>
                                                                                <asp:ListItem Value="3" Text="Transaction"></asp:ListItem>
                                                                                <asp:ListItem Value="4" Text="Custom"></asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="ContactIdLabel1" runat="server" Text="Mobile No / EmailId"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="ContactIdTextBox1" runat="server" SkinID="CustomWidthTextBox"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="20"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3" id="UserSearchPanel1" runat="server">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="UserSearchLabel1" runat="server" Text="User" meta:resourcekey="Label7Resource1"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <asp:TextBox ID="UserNameTextBox1" runat="server" SkinID="CustomWidthTextBox"
                                                                                onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" MaxLength="100"></asp:TextBox>
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                       <%-- <div class="outerBox pTop5 col-md-3">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="ReceiverSourceTypeLabel1" runat="server" Text="Receiver Source Type"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:DropDownList runat="server" ID="ReceiverSourceTypeDropDownList1" SkinID="CustomWidthDropDownList"
                                                                                    CssClass="form-control" AutoPostBack="true" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()" OnSelectedIndexChanged="ReceiverSourceTypeDropDownList_SelectedIndexChanged">
                                                                                    <asp:ListItem Value="0">- ALL -</asp:ListItem>
                                                                                    <asp:ListItem Value="2003">Student</asp:ListItem>
                                                                                    <asp:ListItem Value="95">Employee</asp:ListItem>
                                                                                    <asp:ListItem>Other</asp:ListItem>
                                                                                </asp:DropDownList>
                                                                            </div>
                                                                        </div>--%>

                                                                        <div class="outerBox pTop5 col-md-3" runat="server" id="CodeDiv1" visible="true">
                                                                            <div class="controlLabelWidth">
                                                                                <asp:Label ID="IDNoLabel1" runat="server" Text="ID No"></asp:Label>
                                                                            </div>
                                                                            <div class="fLeft pRight5">
                                                                                <asp:TextBox ID="IDNoTextbox1" onmouseleave="showHideTooltip()" onmouseenter="showHideTooltip()"
                                                                                    runat="server" SkinID="CustomWidthTextbox"></asp:TextBox>
                                                                            </div>
                                                                        </div>

                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="FromDateLabel1" runat="server" Text="From Date"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="FromDatePicker1" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="outerBox pTop5 col-md-3">
                                                                        <div class="controlLabelWidth">
                                                                            <asp:Label ID="ToDateLabel1" runat="server" Text="To Date"></asp:Label>
                                                                        </div>
                                                                        <div class="fLeft pRight5">
                                                                            <Date:DatePickerControl DisplayDatePicker="true" ID="ToDatePicker1" runat="server" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="cBoth">
                                                                    </div>
                                                                    <div class="alignCenter pTop5">
                                                                        <asp:Button ID="StudentAlertHistorySearchButton" runat="server" OnClick="StudentAlertHistorySearchButton_Click"
                                                                            SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search" />
                                                                        <asp:Button ID="StudentSearchHistoryButton" runat="server" OnClick="StudentSearchHistoryButton_Click"
                                                                            SkinID="0" CssClass="btn-search btn fas" Text="&#xf002; Search History" />
                                                                        <asp:Button ID="StudentHistoryClearButton" runat="server" SkinID="0" Text="&#xf0e2; Reset" CssClass="btn-reset btn fas"
                                                                            meta:resourcekey="ClearButtonResource1" OnClick="StudentHistoryClearButton_Click"/>
                                                                        <asp:Button ID="StudentExportToExcelButton" Text="&#xf093; Export To Excel" CssClass="btn btn-examcommon fas" runat="Server" SkinID="0"
                                                                            OnClick="StudentExportToExcelButton_OnClick"/>
                                                                    </div>
                                                                    <div class="spacer">
                                                                        <asp:Image ID="Image4" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image7Resource1" />
                                                                    </div>
                                                                    <div class="himssuHeader1WireBox col-md-12">
                                                                        <div id="SMSHistoryListGridDiv1" runat="server">
                                                                            <div class="spacer">
                                                                                <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image6Resource1" />
                                                                            </div>
                                                                            <div id="SMSHistoryListGridViewPagerDiv1" runat="server">
                                                                                <div class="leftdiv">
                                                                                    <asp:HyperLink ID="AlertStatusHyperlink1" runat="server" NavigateUrl="http://mobi1.blogdns.com/sms/Login.aspx?referer=default.aspx" onclick="window.open (this.href, 'popupwindow'); return false;" Font-Bold="true" Font-Size="Small">View SMS Alert Status</asp:HyperLink>
                                                                                    <asp:LinkButton ID="WhatsappQRCodeLinkButton1" runat="server" Visible="False" Style="font-size: Small; font-weight: bold;" OnClick="WhatsappQRCodeLinkButton1_Click" Text="Whatsapp QR Code Status"></asp:LinkButton>
                                                                                   
                                                                                    <asp:Label ID="DRStatusLabel1" runat="server"></asp:Label>
                                                                                    <%--<br />
                                                    <asp:Label ID="CountLabel" runat="server" Text="Count : "></asp:Label>
                                                    <asp:Label ID="Count" runat="server"></asp:Label>--%>
                                                                                </div>
                                                                                <div class="cBoth">
                                                                                    <div class="col-md-12 padd-0">
                                                                                        <div class="col-md-5 padd-0">
                                                                                            <div class="col-md-3 padd-0">
                                                                                                <asp:Label ID="RecordsPerPage1" Text="Records per Page : " runat="server" />
                                                                                            </div>
                                                                                            <div class="col-md-3 padd-0">
                                                                                                <asp:DropDownList ID="AddRowsToGridDropDownList1" SkinID="CustomWidthDropDownList" Width="70px" runat="server"
                                                                                                    AutoPostBack="true" OnSelectedIndexChanged="AddRowsToGridDropDownList1_SelectedIndexChanged" class="form-control">
                                                                                                    <asp:ListItem Text="100" Value="100" Selected="True"></asp:ListItem>
                                                                                                    <asp:ListItem Text="200" Value="200"></asp:ListItem>
                                                                                                    <asp:ListItem Text="300" Value="300"></asp:ListItem>
                                                                                                    <asp:ListItem Text="400" Value="400"></asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </div>
                                                                                        </div>

                                                                                        <div class="col-md-7">
                                                                                            <uc1:GridViewPager ID="SMSHistoryListGridView1_GridViewPager" runat="server" OnFirstRecordClick="SMSHistoryListGridView1_GridViewPager_FirstRecordClick"
                                                                                                OnLastRecordClick="SMSHistoryListGridView1_GridViewPager_LastRecordClick" OnNextRecordClick="SMSHistoryListGridView1_GridViewPager_NextRecordClick"
                                                                                                OnPrevRecordClick="SMSHistoryListGridView1_GridViewPager_PrevRecordClick" OnTextBoxValueChange="SMSHistoryListGridView1_GridViewPager_TextBoxValueChange"
                                                                                                ParentGridView="SMSHistoryListGridView1" />
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                            <div class="himssuHeader1WireBox col-md-15">
                                                                                <div class="controlLabelWidth">
                                                                                </div>
                                                                            </div>
                                                                            <div class="himsBoxContent">
                                                                                <div id="Div8" runat="server" class="table-responsive">
                                                                                    <asp:GridView runat="server" ID="SMSHistoryListGridView1" Width="100%" AutoGenerateColumns="False"
                                                                                        EmptyDataText="No records available for the seacrh criteria!" AllowPaging="true" OnRowDataBound="SMSHistoryListGridView1_RowDataBound"
                                                                                        PageSize="100" DataKeyNames="Id,OrgId" ShowHeader="True" CssClass="table table-striped table-bordered table-hover"
                                                                                        meta:resourcekey="SMSHistoryListGridViewResource1">
                                                                                        <Columns>
                                                                                            <asp:BoundField DataField="Organization" HeaderText="Organization" ItemStyle-Width="15%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="SourceEvent" HeaderText="Source Event" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="ClassDivision" HeaderText="Class Division" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="Code" HeaderText="ID No" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="StudentName" HeaderText="Student Name" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="EventName" HeaderText="Event Name" ItemStyle-Width="10%" ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left" />

                                                                                            <asp:TemplateField HeaderText="Mobile No / EmailId" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left"
                                                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                                <ItemTemplate>
                                                                                                    <asp:TextBox ID="ContactIdTextBox" Enabled="false" runat="server" Text='<%# Bind("ContactId") %>' TextMode="MultiLine"></asp:TextBox>
                                                                                                    <asp:LinkButton ID="WhatsAppHistoryLinkButton" runat="server" CommandName="Select" OnClick="WhatsAppHistoryLinkButton_Click" Visible="false"
                                                                                                        Text='<%# Bind("ContactId") %>'></asp:LinkButton>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                            <asp:BoundField DataField="AlertSubject" HeaderText="Alert Subject" ItemStyle-Width="10%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:TemplateField HeaderText="Alert Message" ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Left"
                                                                                                ItemStyle-Wrap="true" HeaderStyle-HorizontalAlign="Left">
                                                                                                <ItemTemplate>
                                                                                                    <asp:TextBox ID="AlertMessageTextBox" Enabled="false" runat="server" Text='<%# Bind("AlertMessage") %>' TextMode="MultiLine"></asp:TextBox>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>

                                                                                            <asp:TemplateField HeaderText="Result Message" ItemStyle-Width="5%" ItemStyle-HorizontalAlign="Left"
                                                                                                ItemStyle-Wrap="false" HeaderStyle-HorizontalAlign="Left" Visible="false">
                                                                                                <ItemTemplate>
                                                                                                    <asp:LinkButton ID="ResultMessageButton" runat="server" CommandName="Select" OnClick="ResultMessageButton_Click"
                                                                                                        Text='<%# Bind("ResultMessage") %>' CausesValidation="false"></asp:LinkButton>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>

                                                                                            <asp:BoundField DataField="UserName" HeaderText="User Name" ItemStyle-Width="5%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="CreatedDateTime" HeaderText="Created DateTime" ItemStyle-Width="12%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                            <asp:BoundField DataField="ResultMessage" HeaderText="Result Status" ItemStyle-Width="8%" HeaderStyle-HorizontalAlign="Left" ItemStyle-Wrap="true" />
                                                                                        </Columns>
                                                                                        <PagerSettings Visible="False" />
                                                                                    </asp:GridView>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                    </div>
                                                </ContentTemplate>
                                            </cc1:TabPanel>
                                        </cc1:TabContainer>
                                    </div>
                                </div>
                            </asp:Panel>
                        </div>

                        <div class="spacer">
                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/spacer.gif" meta:resourcekey="Image7Resource1" />
                        </div>
                    </div>
                </div>

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <cc1:ModalPopupExtender ID="ModalPopupExtenderWhatsAppHistory" runat="server" TargetControlID="HidenButton" PopupControlID="ModalPopUpPanel" BackgroundCssClass="modalBackground"
        Drag="True" PopupDragHandleControlID="dragPanel" Enabled="True" />
    <asp:LinkButton runat="server" ID="HidenButton" meta:resourcekey="HidenButtonResource1" />

    <asp:Panel ID="ModalPopUpPanel" runat="server" CssClass="dragControl" Width="700px" DefaultButton="HidenButton" meta:resourcekey="ModalPopUpPanelResource1">
        <div class="messagebox card card-box">
            <asp:Panel ID="dragPanel" runat="server" CssClass="dragMePanel" Width="100%" meta:resourcekey="dragPanelResource1">
                <div id="dragMe1" class="dragMe card-head" style="cursor: move">
                    <div class="himsPopupWireBox">
                        <div class="himsBoxHeadermain">
                            <div>
                            </div>
                        </div>
                        <div class="himsBoxTopper headerFont">
                            <div class="fLeft headerText">
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" RenderMode="Inline">
                                    <ContentTemplate>
                                        <header>
                                            <asp:Label ID="DialogHeaderLabel" runat="server" meta:resourcekey="DialogHeaderLabelResource1" Text="WhatsApp History"></asp:Label>
                                        </header>
                                        <span class="pull-right">
                                            <asp:ImageButton ID="ImageButtonClose" runat="server" Height="20PX" Width="20PX" ImageUrl="~/Images/closebox.png" OnClick="ImageButtonClose_Click" />
                                        </span>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
            <asp:UpdatePanel ID="EmployeeSearchUpdatePanel" runat="server"
                RenderMode="Inline">
                <ContentTemplate>

                    <div id="bodyContainer" class="card-body" style="max-height: none">
                        <div class="himsPopupWireBox">
                            <div class="himsBoxHeadermain">
                                <div>
                                </div>
                            </div>

                            <div class="himsBoxContentmain" style="overflow: hidden">
                                <div id="divContentPage1">
                                    <div class="spacer">
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/spacer.gif"
                                            meta:resourcekey="Image1Resource1" />
                                    </div>
                                    <div>
                                        <div class="himssuHeader5WireBox">
                                            <div class="himsBoxHeader">
                                                <asp:Panel ID="TopPanel" runat="server" meta:resourcekey="TopPanelResource1">
                                                    <div class="leftdiv">
                                                    </div>
                                                    <div class="himsBoxTitle">
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                            <div>
                                                <asp:Panel ID="Panel2" runat="server" meta:resourcekey="DetailPanelResource1">
                                                    <div class="contentHolder table-responsive">
                                                        <asp:Panel ID="Panel3" runat="server" meta:resourcekey="SearchCriteriaPanelResource1">
                                                            <div class="contentHolder">
                                                                <%--Here--%>
                                                                <div id="Sidebar" style="padding-left: 8px; padding-bottom: 3px;">
                                                                    <%--<div class="people-list" id="people-list" style="visibility:hidden;width:158px">
                                                                        <ul class="list" id="GroupList" runat="server">
                                                                        </ul>
                                                                    </div>--%>
                                                                    <div class="chat" style="width: 682px; border-bottom-left-radius: 5px; border-top-left-radius: 5px">
                                                                        <%--<img src="#" class="sidebar-img" id="ChatImage" runat="server">
                                                                        <span id="GroupName" style="margin-left: 270px; font-weight: bold;" runat="server"></span>--%>
                                                                        <div class="chat-history" id="chat-history">
                                                                            <ul id="ChatScreen" runat="server">
                                                                            </ul>
                                                                        </div>
                                                                        <!-- end chat-history -->
                                                                    </div>
                                                                    <!-- end chat -->

                                                                </div>
                                                            </div>
                                                        </asp:Panel>
                                                    </div>
                                                </asp:Panel>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="himsmainBoxBottom">
                            </div>
                            <div class="himsmainBoxFooter">
                                <div>
                                    <table>
                                        <tr>
                                            <td></td>
                                        </tr>

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

                    <asp:UpdateProgress ID="MainUpdateProgress" runat="server" DisplayAfter="200">
                        <ProgressTemplate>
                            <div style="position: absolute; top: 50%; left: 45%; font-size: 20px">
                                <asp:Image ID="LoadingImage4" runat="server" ImageUrl="~/Images/Loading.gif"
                                    meta:resourcekey="Image3Resource1" />
                            </div>
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </asp:Panel>

    <%--  <script data-main="../../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../../JavaScript/rjs/require.js"></script>--%>
    <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
 
</asp:Content>
