<%@ Page Title="" Language="C#" MasterPageFile="~/Application.Master" AutoEventWireup="true" CodeBehind="ReportBuilder.aspx.cs" Inherits="ICDAS_3_0_Web_App.ICDAS_3_0.App_Reports.ReportBuilder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <%@ Register Src="~/User_Controls/ucDropDown.ascx" TagPrefix="ucDropDown" TagName="ucDropDown" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

    <script type="text/javascript">
        function checkDate(sender, args) {
            if (sender._selectedDate > new Date()) {
                alert("YOU CAN NOT SELECT A FUTURE DATE THAN TODAY");
                sender._selectedDate = new Date();
                // set the date back to the current date
                sender._textbox.set_Value(sender._selectedDate.format(sender._format))
            }
        }
    </script>

    <style type="text/css">
        body {
            margin: 0;
            padding: 0;
            font-family: Arial;
        }

        .loadingmodal {
            position: fixed;
            z-index: 999 !important;
            height: 100%;
            width: 100%;
            top: 0;
            background-color: white;
            filter: alpha(opacity=60);
            opacity: 0.8;
            -moz-opacity: 1;
        }

        .loadingcenter {
            z-index: 1000 !important;
            width: 200px;
            height: 100px;
            position: absolute;
            left: 45%;
            top: 60%;
            margin-left: -150px;
            margin-top: -150px;
            opacity: 1;
            /*-moz-opacity: 1;*/
            background: url("Images/loading.gif") no-repeat;
        }
    </style>

</asp:Content>
<asp:Content ID="cotMain" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="upnlwzReportBuilder">
        <ProgressTemplate>
            <div class="loadingmodal">
                <div class="loadingcenter">
                </div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="upnlwzReportBuilder" UpdateMode="Always" runat="server">
        <ContentTemplate>
            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_content">
                            <asp:HiddenField ID="hdnSelectedUserList" runat="server" Value="" />
                            <div class="x_title">
                                <h4>
                                    <asp:Label ID="lblFormTitle" runat="server"></asp:Label></h4>
                                <div class="clearfix"></div>
                            </div>
                            <div class="col-xs-12 col-sm-12 col-lg-12">

                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">Formats*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList runat="server" ID="ddlFormats" AutoPostBack="true" CssClass="form-control" OnSelectedIndexChanged="ddlFormats_SelectedIndexChanged">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-3">
                                        <div class="input-group ">
                                            <span class="input-group-addon">From Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox runat="server" ID="txtFromDate" CssClass="form-control"></asp:TextBox>
                                            <ajaxToolkit:CalendarExtender ID="calFromDate" runat="server" Format="dd-MM-yyyy" OnClientDateSelectionChanged="checkDate" TargetControlID="txtFromDate" />
                                        </div>
                                    </div>
                                    <div class="col-xs-7 col-sm-6 col-lg-2">
                                        <div class="input-group ">
                                            <span class="input-group-addon">Time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList runat="server" CssClass="form-control" ID="ddlFromHours">
                                                <asp:ListItem Value="00" Selected="True">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23">23</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-xs-5 col-sm-6 col-lg-1">
                                        <asp:DropDownList runat="server" CssClass="form-control" ID="ddlFromMins">
                                            <asp:ListItem Value="00" Selected="True">00</asp:ListItem>
                                            <asp:ListItem Value="01">01</asp:ListItem>
                                            <asp:ListItem Value="02">02</asp:ListItem>
                                            <asp:ListItem Value="03">03</asp:ListItem>
                                            <asp:ListItem Value="04">04</asp:ListItem>
                                            <asp:ListItem Value="05">05</asp:ListItem>
                                            <asp:ListItem Value="06">06</asp:ListItem>
                                            <asp:ListItem Value="07">07</asp:ListItem>
                                            <asp:ListItem Value="08">08</asp:ListItem>
                                            <asp:ListItem Value="09">09</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                            <asp:ListItem Value="11">11</asp:ListItem>
                                            <asp:ListItem Value="12">12</asp:ListItem>
                                            <asp:ListItem Value="13">13</asp:ListItem>
                                            <asp:ListItem Value="14">14</asp:ListItem>
                                            <asp:ListItem Value="15">15</asp:ListItem>
                                            <asp:ListItem Value="16">16</asp:ListItem>
                                            <asp:ListItem Value="17">17</asp:ListItem>
                                            <asp:ListItem Value="18">18</asp:ListItem>
                                            <asp:ListItem Value="19">19</asp:ListItem>
                                            <asp:ListItem Value="20">20</asp:ListItem>
                                            <asp:ListItem Value="21">21</asp:ListItem>
                                            <asp:ListItem Value="22">22</asp:ListItem>
                                            <asp:ListItem Value="23">23</asp:ListItem>
                                            <asp:ListItem Value="24">24</asp:ListItem>
                                            <asp:ListItem Value="25">25</asp:ListItem>
                                            <asp:ListItem Value="26">26</asp:ListItem>
                                            <asp:ListItem Value="27">27</asp:ListItem>
                                            <asp:ListItem Value="28">28</asp:ListItem>
                                            <asp:ListItem Value="29">29</asp:ListItem>
                                            <asp:ListItem Value="30">30</asp:ListItem>
                                            <asp:ListItem Value="31">31</asp:ListItem>
                                            <asp:ListItem Value="32">32</asp:ListItem>
                                            <asp:ListItem Value="33">33</asp:ListItem>
                                            <asp:ListItem Value="34">34</asp:ListItem>
                                            <asp:ListItem Value="35">35</asp:ListItem>
                                            <asp:ListItem Value="36">36</asp:ListItem>
                                            <asp:ListItem Value="37">37</asp:ListItem>
                                            <asp:ListItem Value="38">38</asp:ListItem>
                                            <asp:ListItem Value="39">39</asp:ListItem>
                                            <asp:ListItem Value="40">40</asp:ListItem>
                                            <asp:ListItem Value="41">41</asp:ListItem>
                                            <asp:ListItem Value="42">42</asp:ListItem>
                                            <asp:ListItem Value="43">43</asp:ListItem>
                                            <asp:ListItem Value="44">44</asp:ListItem>
                                            <asp:ListItem Value="45">45</asp:ListItem>
                                            <asp:ListItem Value="46">46</asp:ListItem>
                                            <asp:ListItem Value="47">47</asp:ListItem>
                                            <asp:ListItem Value="48">48</asp:ListItem>
                                            <asp:ListItem Value="49">49</asp:ListItem>
                                            <asp:ListItem Value="50">50</asp:ListItem>
                                            <asp:ListItem Value="51">51</asp:ListItem>
                                            <asp:ListItem Value="52">52</asp:ListItem>
                                            <asp:ListItem Value="53">53</asp:ListItem>
                                            <asp:ListItem Value="54">54</asp:ListItem>
                                            <asp:ListItem Value="55">55</asp:ListItem>
                                            <asp:ListItem Value="56">56</asp:ListItem>
                                            <asp:ListItem Value="57">57</asp:ListItem>
                                            <asp:ListItem Value="58">58</asp:ListItem>
                                            <asp:ListItem Value="59">59</asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                    <div class="col-xs-12 col-sm-12 col-lg-3">
                                        <div class="input-group">
                                            <span class="input-group-addon">To Date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox runat="server" ID="txtTodate" CssClass="form-control"></asp:TextBox>
                                            <ajaxToolkit:CalendarExtender ID="calToDate" runat="server" Format="dd-MM-yyyy" OnClientDateSelectionChanged="checkDate" TargetControlID="txtTodate" />
                                        </div>
                                    </div>
                                    <div class="col-xs-7 col-sm-6 col-lg-2">
                                        <div class="input-group">
                                            <span class="input-group-addon">Time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList runat="server" CssClass="form-control" ID="ddlToHrs">
                                                <asp:ListItem Value="00">00</asp:ListItem>
                                                <asp:ListItem Value="01">01</asp:ListItem>
                                                <asp:ListItem Value="02">02</asp:ListItem>
                                                <asp:ListItem Value="03">03</asp:ListItem>
                                                <asp:ListItem Value="04">04</asp:ListItem>
                                                <asp:ListItem Value="05">05</asp:ListItem>
                                                <asp:ListItem Value="06">06</asp:ListItem>
                                                <asp:ListItem Value="07">07</asp:ListItem>
                                                <asp:ListItem Value="08">08</asp:ListItem>
                                                <asp:ListItem Value="09">09</asp:ListItem>
                                                <asp:ListItem Value="10">10</asp:ListItem>
                                                <asp:ListItem Value="11">11</asp:ListItem>
                                                <asp:ListItem Value="12">12</asp:ListItem>
                                                <asp:ListItem Value="13">13</asp:ListItem>
                                                <asp:ListItem Value="14">14</asp:ListItem>
                                                <asp:ListItem Value="15">15</asp:ListItem>
                                                <asp:ListItem Value="16">16</asp:ListItem>
                                                <asp:ListItem Value="17">17</asp:ListItem>
                                                <asp:ListItem Value="18">18</asp:ListItem>
                                                <asp:ListItem Value="19">19</asp:ListItem>
                                                <asp:ListItem Value="20">20</asp:ListItem>
                                                <asp:ListItem Value="21">21</asp:ListItem>
                                                <asp:ListItem Value="22">22</asp:ListItem>
                                                <asp:ListItem Value="23" Selected="True">23</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                    <div class="col-xs-5 col-sm-6 col-lg-1">
                                        <asp:DropDownList runat="server" CssClass="form-control" ID="ddlToMins">
                                            <asp:ListItem Value="00">00</asp:ListItem>
                                            <asp:ListItem Value="01">01</asp:ListItem>
                                            <asp:ListItem Value="02">02</asp:ListItem>
                                            <asp:ListItem Value="03">03</asp:ListItem>
                                            <asp:ListItem Value="04">04</asp:ListItem>
                                            <asp:ListItem Value="05">05</asp:ListItem>
                                            <asp:ListItem Value="06">06</asp:ListItem>
                                            <asp:ListItem Value="07">07</asp:ListItem>
                                            <asp:ListItem Value="08">08</asp:ListItem>
                                            <asp:ListItem Value="09">09</asp:ListItem>
                                            <asp:ListItem Value="10">10</asp:ListItem>
                                            <asp:ListItem Value="11">11</asp:ListItem>
                                            <asp:ListItem Value="12">12</asp:ListItem>
                                            <asp:ListItem Value="13">13</asp:ListItem>
                                            <asp:ListItem Value="14">14</asp:ListItem>
                                            <asp:ListItem Value="15">15</asp:ListItem>
                                            <asp:ListItem Value="16">16</asp:ListItem>
                                            <asp:ListItem Value="17">17</asp:ListItem>
                                            <asp:ListItem Value="18">18</asp:ListItem>
                                            <asp:ListItem Value="19">19</asp:ListItem>
                                            <asp:ListItem Value="20">20</asp:ListItem>
                                            <asp:ListItem Value="21">21</asp:ListItem>
                                            <asp:ListItem Value="22">22</asp:ListItem>
                                            <asp:ListItem Value="23">23</asp:ListItem>
                                            <asp:ListItem Value="24">24</asp:ListItem>
                                            <asp:ListItem Value="25">25</asp:ListItem>
                                            <asp:ListItem Value="26">26</asp:ListItem>
                                            <asp:ListItem Value="27">27</asp:ListItem>
                                            <asp:ListItem Value="28">28</asp:ListItem>
                                            <asp:ListItem Value="29">29</asp:ListItem>
                                            <asp:ListItem Value="30">30</asp:ListItem>
                                            <asp:ListItem Value="31">31</asp:ListItem>
                                            <asp:ListItem Value="32">32</asp:ListItem>
                                            <asp:ListItem Value="33">33</asp:ListItem>
                                            <asp:ListItem Value="34">34</asp:ListItem>
                                            <asp:ListItem Value="35">35</asp:ListItem>
                                            <asp:ListItem Value="36">36</asp:ListItem>
                                            <asp:ListItem Value="37">37</asp:ListItem>
                                            <asp:ListItem Value="38">38</asp:ListItem>
                                            <asp:ListItem Value="39">39</asp:ListItem>
                                            <asp:ListItem Value="40">40</asp:ListItem>
                                            <asp:ListItem Value="41">41</asp:ListItem>
                                            <asp:ListItem Value="42">42</asp:ListItem>
                                            <asp:ListItem Value="43">43</asp:ListItem>
                                            <asp:ListItem Value="44">44</asp:ListItem>
                                            <asp:ListItem Value="45">45</asp:ListItem>
                                            <asp:ListItem Value="46">46</asp:ListItem>
                                            <asp:ListItem Value="47">47</asp:ListItem>
                                            <asp:ListItem Value="48">48</asp:ListItem>
                                            <asp:ListItem Value="49">49</asp:ListItem>
                                            <asp:ListItem Value="50">50</asp:ListItem>
                                            <asp:ListItem Value="51">51</asp:ListItem>
                                            <asp:ListItem Value="52">52</asp:ListItem>
                                            <asp:ListItem Value="53">53</asp:ListItem>
                                            <asp:ListItem Value="54">54</asp:ListItem>
                                            <asp:ListItem Value="55">55</asp:ListItem>
                                            <asp:ListItem Value="56">56</asp:ListItem>
                                            <asp:ListItem Value="57">57</asp:ListItem>
                                            <asp:ListItem Value="58">58</asp:ListItem>
                                            <asp:ListItem Value="59" Selected="True">59</asp:ListItem>
                                        </asp:DropDownList>
                                        <%--</div>--%>
                                    </div>
                                </div>
                                <div id="divDepartment" runat="server" class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">Department*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList runat="server" ID="ddlDepartmentList" AutoPostBack="true" OnSelectedIndexChanged="ddlDepartmentList_SelectedIndexChanged" CssClass="form-control">
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div id="dvParameterList" runat="server" class="col-xs-12 col-sm-12 col-lg-6" style="overflow: auto;">
                                        <div class="input-group" style="border: 0px solid #ccc;">
                                            <span class="input-group-addon">
                                                <asp:CheckBox ID="cbxSelectParameterList" runat="server" Text="Select All" AutoPostBack="true" OnCheckedChanged="cbxSelectParameterList_CheckedChanged" />
                                                <br />
                                                <br />
                                                Parameter List&nbsp;&nbsp;
                                                 <br />
                                                <br />
                                                <asp:LinkButton runat="server" CssClass="btn btn-info" ID="btnlstParameterListRefresh" OnClick="btnlstParameterListRefresh_Click" ToolTip="CLICK TO CLEAR SELECTION"><i class="fa fa-refresh"></i></asp:LinkButton>
                                            </span>
                                            <div style="overflow: auto; border-bottom: 1px solid #f3f3f3">
                                                <asp:CheckBoxList CssClass="form-control" ID="lstParameterList" runat="server" SelectionMode="Multiple" Height="200px" Style="overflow: auto;">
                                                </asp:CheckBoxList>
                                            </div>
                                        </div>
                                    </div>
                                    <div id="dvEquipmentList" runat="server" class="col-xs-12 col-sm-12 col-lg-6"  style="overflow: auto;">
                                        <div class="input-group" style="border: 0px solid #ccc;">
                                            <span class="input-group-addon">
                                                <asp:CheckBox ID="cbxlstEquipmentList" runat="server" Text="Select All" AutoPostBack="true" OnCheckedChanged="cbxlstEquipmentList_CheckedChanged"  />
                                                <br />
                                                <br />
                                                Equipment List&nbsp;&nbsp;
                                                 <br />
                                                <br />
                                                <asp:LinkButton runat="server" CssClass="btn btn-info" ID="btnlstEquipmentList" OnClick="btnlstEquipmentList_Click" ToolTip="CLICK TO CLEAR SELECTION"><i class="fa fa-refresh"></i></asp:LinkButton>
                                            </span>
                                            <%--<asp:ListBox runat="server" ID="lstEquipmentList" CssClass="form-control" SelectionMode="Multiple" Rows="10"></asp:ListBox>--%>

                                            <div style="overflow: auto; border-bottom: 1px solid #f3f3f3">
                                                <asp:CheckBoxList CssClass="form-control" ID="lstEquipmentList" runat="server" SelectionMode="Multiple" Height="200px" Style="overflow: auto;">
                                                </asp:CheckBoxList>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div id="divUserName" runat="server" class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">Login Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:TextBox runat="server" ID="txtUserName" CssClass="form-control" placeholder="ALL" onkeypress="return blockSpecialChar(event)"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="col-xs-12 col-sm-12 col-lg-6">
                                        <asp:LinkButton runat="server" CssClass="btn btn-info" ID="lbtUserList" OnClick="lbtUserList_Click1" ToolTip="VIEW USER LIST"><i class="fa fa-list"></i></asp:LinkButton>
                                        (E.g  John,Martin)
                                    </div>
                                </div>
                                <div class="row">
                                    <div id="dvStatus" runat="server" class="col-xs-12 col-sm-12 col-lg-6">
                                        <div class="input-group">
                                            <span class="input-group-addon">Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:RadioButtonList ID="rdbtnStatus" runat="server" CssClass="form-control" RepeatDirection="Horizontal">
                                                <asp:ListItem Value="0" Selected="True" style="margin-right: 20px">Reviewed</asp:ListItem>
                                                <asp:ListItem Value="1" style="margin-right: 30px">Approved</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div id="dvdropdwnAlarmEvent" runat="server" class="col-xs-4 col-sm-4 col-lg-4">
                                        <div class="input-group">
                                            <span class="input-group-addon">Alarm Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                            <asp:DropDownList class="form-control" runat="server" ID="ddlAlarmType">
                                                <asp:ListItem Value="" Text="Select Alarm Type" />
                                                <asp:ListItem Value="A" Text="Alarm" />
                                                <asp:ListItem Value="E" Text="Event" />
                                                <asp:ListItem Value="N" Text="Notifications" />
                                            </asp:DropDownList>
                                        </div>
                                    </div>
                                </div>
                                <asp:Panel ID="pnlEmail" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 col-sm-12 col-lg-6 ">
                                            <div class="input-group">
                                                <span class="input-group-addon">Email Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                <asp:RadioButtonList ID="rdbtnEmailStatus" runat="server" CssClass="form-control" RepeatDirection="Horizontal">
                                                    <asp:ListItem Value="-1" Selected="True" style="margin-right: 20px">All</asp:ListItem>
                                                    <asp:ListItem Value="0" style="margin-right: 30px">Pending</asp:ListItem>
                                                    <asp:ListItem Value="1" style="margin-right: 20px">Sent</asp:ListItem>
                                                    <asp:ListItem Value="2" style="margin-right: 30px">Failed</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row" id="dvEmailMsg" runat="server">
                                        <div class="col-xs-12 col-sm-12 col-lg-6">
                                            <div class="input-group">
                                                <span class="input-group-addon">Email Message&nbsp;&nbsp;&nbsp;</span>
                                                <asp:TextBox runat="server" ID="txtEmailMsg" CssClass="form-control" onkeypress="return blockSpecialChar(event)"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12 col-sm-12 col-lg-6 ">
                                            <div class="input-group">
                                                <span class="input-group-addon">Email Subject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                <asp:TextBox runat="server" ID="txtEmailSubject" CssClass="form-control" onkeypress="return blockSpecialChar(event)"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12 col-sm-12 col-lg-6">
                                            <div class="input-group">
                                                <span class="input-group-addon">To Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                <asp:TextBox runat="server" ID="txtEmailAddress" CssClass="form-control" onkeypress="return blockSpecialChar(event)"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="pnlSMS" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 col-sm-12 col-lg-6 ">
                                            <div class="input-group">
                                                <span class="input-group-addon">SMS Status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                <asp:RadioButtonList ID="rdbtnSMSStatus" runat="server" CssClass="form-control" RepeatDirection="Horizontal">
                                                    <asp:ListItem Value="-1" Selected="True" style="margin-right: 20px">All</asp:ListItem>
                                                    <asp:ListItem Value="0" style="margin-right: 30px">Pending</asp:ListItem>
                                                    <asp:ListItem Value="1" style="margin-right: 20px">Sent</asp:ListItem>
                                                    <asp:ListItem Value="2" style="margin-right: 30px">Failed</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12 col-sm-12 col-lg-6">
                                            <div class="input-group">
                                                <span class="input-group-addon">SMS Message&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                <asp:TextBox runat="server" ID="txtSMSMsg" CssClass="form-control" onkeypress="return blockSpecialChar(event)"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <asp:Panel ID="pnlOrderBy" runat="server">
                                    <div class="row">
                                        <div class="col-xs-12 col-sm-12 col-lg-6">
                                            <div class="input-group">
                                                <span class="input-group-addon">Order By&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                                <asp:RadioButtonList ID="rdBtnOrderBy" runat="server" CssClass="form-control" RepeatDirection="Horizontal">
                                                    <asp:ListItem Value="0" Selected="True" style="margin-right: 20px">Log Date</asp:ListItem>
                                                    <asp:ListItem Value="1" style="margin-right: 30px">UnSorted</asp:ListItem>
                                                </asp:RadioButtonList>
                                            </div>
                                        </div>
                                    </div>
                                </asp:Panel>
                                <div class="row">
                                    <div class="col-xs-12 col-sm-12 col-lg-12 text-center">
                                        <asp:Button ID="btnPrint" class="btn btn-success " ToolTip="Print Reports" runat="server" OnClick="btnPrint_Click" Text="View Report" />
                                    </div>
                                </div>
                            </div>
                            <asp:LinkButton ID="lnkFake" runat="server"></asp:LinkButton>
                            <asp:Panel ID="pnlUserList" runat="server" Width="50%" CssClass="modalPopup" Style="display: none;">
                                <div class="modal-header">
                                    <h4 class="modal-title" id="UserList" runat="server">User List</h4>
                                </div>
                                <div style="overflow-y: auto; overflow-x: hidden; max-height: 450px;">
                                    <div class="modal-body">
                                        <div id="dvScroll" runat="server" style="height: 250px; overflow: auto; overflow-x: hidden;">
                                            <asp:GridView runat="server" Width="100%" ID="grdUserList"
                                                AllowPaging="false" AllowSorting="false" AutoGenerateColumns="False" BackColor="#e3f9df"
                                                CssClass="table table-bordered dt-responsive nowrap"
                                                ShowHeader="true" OnRowDataBound="grdUserList_RowDataBound">
                                                <Columns>
                                                    <asp:TemplateField ControlStyle-CssClass="widthchk">
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkRecordId" runat="server"></asp:CheckBox>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="3%" />
                                                        <HeaderStyle CssClass="active" />
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="LoginName" HeaderText="Login Name" HeaderStyle-CssClass="active">
                                                        <ItemStyle Width="20%"></ItemStyle>
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="UserName" HeaderText="User Name" HeaderStyle-CssClass="active">
                                                        <ItemStyle Width="20%"></ItemStyle>
                                                    </asp:BoundField>
                                                </Columns>
                                            </asp:GridView>
                                        </div>

                                    </div>
                                </div>
                                <div align="right" class="modal-footer">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <asp:Button ID="btnSave" runat="server" Text="Select" OnClick="btnSave_Click" class="btn btn-success"></asp:Button>
                                            <button id="btnClose" runat="server" class="btn btn-default">
                                                Cancel
                                            </button>
                                        </div>
                                    </div>
                                </div>
                            </asp:Panel>
                            <asp:ModalPopupExtender ID="modUserList" runat="server" PopupControlID="pnlUserList"
                                TargetControlID="lnkFake" BehaviorID="modUserList" CancelControlID="btnClose"
                                BackgroundCssClass="modalBackground">
                            </asp:ModalPopupExtender>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
