<?php /* Smarty version 2.6.25, created on 2021-11-20 06:50:51
         compiled from accountDetails.tpl */ ?>
        
        <!-- Title Section -->
        <div class="title-section module">
            <div class="row">
        
                <div class="small-12 columns">
                    <h1>Account Details</h1>
                </div><!-- Top Row /-->
        
                <div class="small-12 columns">
                    <ul class="breadcrumbs">
                        <li><a href="#">Home</a></li>
                        <!--<li><a href="#">Features</a></li>-->
                        <!--<li class="disabled">Gene Splicing</li>-->
                        <li><span class="show-for-sr">Current: </span> Account Details</li>
                    </ul><!-- Breadcrumbs /-->
                </div><!-- Bottom Row /-->
                
            </div><!-- Row /-->
        </div>
        <!-- Title Section Ends /-->
        
        <!-- Content section -->
        <div class="content-section module blog-page">
        	
            <div class="row">
            	<div class="medium-2 small-12 columns sidebar">
                    <div class="widget">
                        <h2>My Profile</h2>
                        
                        <ul class="menu vertical">
                            <li><a href="myOrders.php">My Orders</a></li>
							<li><a href="checkOut.php">Check Out</a></li>
                            <li><a href="checkIn.php">Check In</a></li>
						<!--	<li><a href="reservedList.php">Reserved List</a></li> -->
							<li class="active"><a href="#">Account Details</a></li>
                        </ul>
                    </div><!-- widget ends /-->
                    
                    <!-- widget ends /-->
                    
                    <!-- widget ends /-->
                    
                    <!-- widget ends /-->
                    
                </div><!-- left bar ends here /-->
                <div class="medium-10 small-12 columns posts-wrap">

                    <div class="blog-post">
                        <form name="date_form" method="post" id="date_form" class="form-horizontal">
						<h5 class="theme-color" align="justify">Your Personal Info</h5>
					<div align="center">
				<table class="table table-bordered table-hover  dataTables-example" style="font-size:14px;" border="1" bordercolor="#FFFFFF" cellspacing="3" cellpadding="2">
					<tr><td><strong>Member Name :</strong> </td><td><?php echo $this->_tpl_vars['SerDetail5']['0']['member_name']; ?>
</td></tr>
					<tr><td><strong>Member Type :</strong> </td><td><?php echo $this->_tpl_vars['SerDetail5']['0']['member_type']; ?>
</td></tr>
					<tr><td><strong>Membership Scheme :</strong></td><td><?php echo $this->_tpl_vars['SerDetail5']['0']['membership_scheme']; ?>
</td></tr>
					 <tr><td><strong>Deposit Amount :</strong></td><td><?php echo $this->_tpl_vars['SerDetail5']['0']['deposite_amount']; ?>
</td></tr>
					 <tr><td><strong>Address :</strong> </td><td><textarea  type="text" rows="2" name="address" id="address" class='form-control ' > <?php if ($this->_tpl_vars['SerDetail5']['0']['address'] != ''): ?><?php echo $this->_tpl_vars['SerDetail5']['0']['address']; ?>
<?php endif; ?></textarea><?php if ($this->_tpl_vars['SerDetail5']['0']['member_name'] != ''): ?><button  type="button"  style="margin:0px; "  class="button button-warning pull-right  " id="addresschange" name="addresschange">Update</button><?php endif; ?></td></td></tr>
                     
					<tr> <td><strong>Mobile Number :</strong></td><td><?php echo $this->_tpl_vars['SerDetail5']['0']['contact_number']; ?>
</td><tr>
					 <td><strong>Email-ID :</strong></td><td><?php echo $this->_tpl_vars['SerDetail5']['0']['emailid']; ?>
</td></tr>
					<tr><td><strong>Joined Date :</strong></td><td><?php echo $this->_tpl_vars['SerDetail5']['0']['date_of_join']; ?>
<br></td></tr>
						<tr><td><strong>Scheme Expiry Date :</strong></td><td><?php echo $this->_tpl_vars['SerDetail5']['0']['subscription_end_date']; ?>
<br></td></tr>

				
			        </table>
					<textarea id="address" name="address" style="display:none;" class="form-control" ><?php echo $this->_tpl_vars['SerDetail5']['0']['address']; ?>
&nbsp;&nbsp;<?php echo $this->_tpl_vars['SerDetail5']['0']['pincode']; ?>
</textarea>
			    	<a onClick="select_book_add();" style="margin-left:100%; display:none;" id="tick" title="Update"><i class="fa fa-check" aria-hidden="true"></i></a>
					  </form>
					  <!-- post content ends /-->
                    </div><!-- post Ends here /-->
                    
                    <!-- post Ends here /-->
                    
                    <!-- post Ends here /-->
                    
                </div><!-- Posts wrap /-->
                
                
                
            </div><!-- Row Ends /-->
            
        </div>
        <!-- Content Section Ends /-->
        
        
        <!-- Call to Action box -->
        
        <!-- Call to Action End /-->
        
        <!-- Footer -->
        
        <!-- Footer Ends here /-->
        
    </div>
    <!-- Main Container /-->
	
    <a href="#top" id="top" class="animated fadeInUp start-anim"><i class="fa fa-angle-up"></i></a>

   <?php echo '
    <!-- Including Jquery so All js Can run -->
    <script type="text/javascript" src="js/jquery.js"></script>
    
    <!-- Including Foundation JS so Foundation function can work. -->
    <script type="text/javascript" src="js/foundation.min.js"></script>
    
    <!-- Including Owl Carousel File -->
    <script type="text/javascript" src="js/owl.carousel.min.js"></script>
    
    <!-- Webful JS -->
    <script src="js/webful.js"></script>
	<script type="text/javascript">
function select_book_add(str)
{

	 var str=document.getElementById("address").value;
	 var str2=document.getElementById("mid").value;
	   //alert(str);
if (str=="")
  {
  alert(str);
  document.getElementById("testv").value="";
  return;
  }
if (window.XMLHttpRequest)
  {
  xmlhttp=new XMLHttpRequest();
  }
else
  {
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	var x;
	//if(xmlhttp.responseText.indexOf("|$|")!=-1)
        if(xmlhttp.responseText)
	   {
           //  alert(xmlhttp.responseText);  
  
	x=xmlhttp.responseText;
	document.getElementById("testv").innerHTML=x;
       //var name_of_site_index =  document.getElementById("site_name").selectedIndex;
//       var  name_of_site=   document.getElementById("site_name").options;
//        showGroup(name_of_site[name_of_site_index].text);
	   }
	 else 
	   {
	   document.getElementById("testv").innerHTML="<option value=\'0\'>Please select Site</option>";

	   }  
       
    }
  }
xmlhttp.open("GET","edit_address.php?ads="+str+"&id="+str2,true);
xmlhttp.send();
}

$("#addresschange").click(function(event) {
            
            event.preventDefault()
            
            var address = document.getElementById("address").value
//alert(address);
            $.post("ajax_updateaddress.php",{address:address},function(data){
            console.log(data)
            alert("Your address has been updated");


        })

        });
</script>
	
	<style>
.table tr:nth-child(even){background-color: #FFFFFF;}
.isa_success

{

color: #FFFFFF;

background-color: #174873;

}

.error

{

color:#D8000C;

/*background-color:#FFBABA;*/

}

.isa_error

{

color:#D8000C;

background-color:#FFBABA;

}

.isa_success i,.isa_error i

{

margin:10px 22px;

font-size:2em;

/*vertical-align:middle;*/

}

.required

{

color:#FF0000;
float:right;

}

</style>
	'; ?>


</body>
</html>
