<%@ Page Title="" Language="C#" MasterPageFile="~/module/dashboardPage.master" AutoEventWireup="true" CodeFile="Getintouch.aspx.cs" Inherits="module_Getintouch" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

     <script src="../assets/js/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {


        });

        function getdata12() {

            $.ajax({
                url: "Getintouch.aspx/Getdata12",
                method: "post",
                contentType: "application/json; charset=utf-8",
                data: "{srchyear:'" + $("select[id$=ddlyears]").val() + "'}",
                dataType: "json",
                success: function (data) {
                    console.log(JSON.stringify(data));
                    data = JSON.parse(data.d);

                    $("#dataemp").show();
                    $("#itembody1").empty();

                    for (var i = 0; i < data.length ; i++, count++) {
                        {
                            var fullname = data[i].fname + " " + data[i].mname + " " + data[i].lname;
                            var markup = '<tr ><td >' + data[i].id + '</td><td >' + data[i].uhid + '</td><td >' + fullname + '</td><td>' + data[i].email + '</td><td> ' + data[i].mobile1 + '</td><td> ' + data[i].mobile2 + '</td><td> '

                            $("#itembody1").append(markup);
                        }
                    }
                },
                error: function () {
                    //alert("Error in display");
                    noty({ text: 'Get Error', layout: 'topRight', type: 'error' });
                    setTimeout(function () { $.noty.closeAll(); }, 3000);
                }

            });
        }

    </script>


    <!--start page wrapper -->
    	<div class="page-wrapper">
			<div class="page-content">
				<div class="row">
					<div class="col-md-12 mx-auto" >
					
				<div class="card">
					<div class="card-body">
						<div class="card-title d-flex align-items-center">

							<h6>Get In Touch</h6>
						</div>
						<hr>
						
						
						<form class="row g-2">
							<div class="col-md-2">
								<label>Year</label>
								<select id="ddlyears" class="form-select mb-3" aria-label="Default select example">
									<option selected>Select</option>
									<option>2020-2021</option>
									<option>2021-2022</option>
									<option>2022-2023</option>
									
							
								</select>
							</div>
														
					       <div class="col-md-3" style="margin-top: 4.7vh;">
							<button type="button" onclick="getdata12()" class="btn btn-primary"><i class='bx bx-search'></i>Search</button>																		
						   </div>
						   
                           </form>
                       </div>
                   </div>
				   
				   <div class="overlay toggle-icon"></div>
				   <hr/>
				   <div class="col-md-12 mx-auto">
				   <div class="card">
					   <div class="card-body">
						   <div class="table-responsive">
							<table id="dataemp" class="table table-striped table-bordered">
								   <thead>
									   <tr>
										   <th>Sr.no</th>	
										   <th>Ref.ID</th>
										   <th>Name</th>  
										   <th>Email</th>
										   <th>Mobile</th>	
										   <th>Enquiry</th> 
										 <%--  <th style="background-color: #fff;">Action</th>  
										   --%>
									   </tr>
								   </thead>
								   <tbody id="itembody1">
									  <tr>

									  </tr>
										 <%--  <tr>
                                           <td>1</td>
										   <td>78780</td>
										   <td>Rajesh Meheta</td>
										   <td>Raju12@gmail.com</td>
										   <td>987868890</td>
										   <td>---</td>
										   <td style="background-color: #fff;"><button  style="height:35px; width: 35px; padding-left:7px;" type="button" class="btn btn-success"><i class='bx bx-message-square-edit'></i>
										   </button>
										   <button  style="height:35px; width: 35px; padding-left:7px;" type="button" class="btn btn-danger"><i class="fadeIn animated bx bx-trash-alt"></i>
										   </button>
										   </td>

										   </tr>--%>
									   </tbody>
							   </table>
						   </div>
					   </div>
				   </div>
			   </div>
			   </div>
		    </div>	
                </div>
            </div>		
   
			
</asp:Content>

