<?php /* Smarty version 2.6.25, created on 2021-10-30 18:17:06
         compiled from login.tpl */ ?>
        <!-- Title Section -->
        <div class="title-section module">
            <div class="row">
        
                <div class="small-12 columns">
                    <h1>Login</h1>
                </div><!-- Top Row /-->
        
                <div class="small-12 columns">
                    <ul class="breadcrumbs">
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Login</a></li>
                    </ul><!-- Breadcrumbs /-->
                </div><!-- Bottom Row /-->
                
            </div><!-- Row /-->
        </div>
        <!-- Title Section Ends /-->
        
        <!-- Content section -->
        <div class="content-area module faq">
	    	<div class="row">
            
        		<div class="medium-12 small-12 columns">
				<div class="row">
				<div class="medium-4 small-12 columns"> 
						&nbsp; 
                        </div>
				<?php if ($this->_tpl_vars['ErrorMessage'] != ""): ?>

                    <div class="card-body medium-4 small-12 columns">

					<div class="isa_success">

					<!--<i class="fa fa-check"></i>-->

					<?php echo $this->_tpl_vars['ErrorMessage']; ?>
		 

					</div>

                    </div>

					<?php endif; ?>
					<div class="medium-4 small-12 columns"> 
                        </div>
						</div>
                	<h2 align="center">Login</h2>
                    <!--<p>Once we receive your information our representative will get back to you within 24 hours.</p>-->
					<div class="contact-form">
                     <form name="loginForm" id="loginForm" method="post" role="form" onSubmit="return validateFields()">
                     <input type="hidden" name="hdAction" id="hdAction">
                    <div class="row">
                        <div class="medium-4 small-12 columns"> 
						&nbsp; 
                        </div>
                        <div class="medium-4 small-12 columns">
                            <label><span class="required"><b>*</b></span>
                                <input type="text" id="mobileNo" name="mobileNo"  placeholder="Your Mobile Number here..."  tabindex="1">
                            </label>
                        </div>
						<div class="medium-4 small-12 columns">
                        </div>
                    </div><!-- Row Ends /-->
                        <div class="row">
                        <div class="medium-4 small-12 columns"> 
						&nbsp; 
                        </div>
                        <div class="medium-4 small-12 columns">
                            <label><span class="required"><b>*</b></span>
                                <input type="password" id="password" name="password" placeholder="Your Password here..." maxlength="15" tabindex="2" />
                            </label>
                        </div>
						<div class="medium-4 small-12 columns">
                        </div>
                    </div><!-- Row Ends /-->
                    <!-- Row Ends /-->
                        
                    
                    <!-- Row Ends /-->
                        
                    <div class="row" align="center">
					
                        <div class="medium-12 small-12 columns">  
                            <input type="submit" class="button primary" value="Login"   tabindex="3"/>
							<p>New Member ? <a href="register.php" style="color:#0033FF;"> click here</a> <br>or<br>
                            Already a Member ? <a href="member.php"  style="color:#0033FF;"> click here</a></p>
                        </div>
						 
                    </div><!-- Row Ends /-->
                 </form>
                </div><!-- Contact form /-->
           		</div> <!-- right sidebar ends -->

           	    <!-- icon-box ends -->
            
    	    </div><!-- row / -->
		</div>
        <!-- Content Section Ends /-->
<?php echo '
<script type="text/javascript">
    function validateFields() {
	var mobileNo=$(\'#mobileNo\').val();
	var password=$(\'#password\').val();
   
	$(".error").remove();
	if(mobileNo=="")
	{
	$(\'#mobileNo\').after(\'<span class="error">This field is required</span>\');
	
	$(\'#mobileNo\').focus();
	
	return false;	
	}
	if(password =="")
	{
	$(\'#password\').after(\'<span class="error">This field is required</span>\');
	
	$(\'#password\').focus();
	
	return false;	
	}	
	
	
}
   function checkLogin()
   {
       var mobileNo=document.getElementById(\'mobileNo\').value;
       var password=document.getElementById(\'password\').value;
        $.ajax({
        type: "POST",
        url: "ajax_checkLogin.php",
        data:{password:password,mobileNo:mobileNo},
      //  dataType: "JSON",
        cache: false,
        success: function(json){
                
           if(json==1)
           {
         window.location = "profile.php";
              
           }
           else
               {
                   alert(\'Please Enter Credentials Correctly\');
                   return false;
               }
        }
       
        });
   }
function numericFilter(data)

{

   data.value = data.value.replace(/[^.0-9^.+,-]/ig,"");

}

function text_filter(data)

{

   data.value = data.value.replace(/[^ .a-z]/ig,"");

}
 
</script>

<style>

.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>

'; ?>