<?php 
include_once("header-footer/header.php")
?>

<script>
        $(document).ready(function()
        {   
              //if( ($(window).width()) > 599) 
             //window.location.href  = URL+'/error/default.php';
          
        	$("#_frm").validate({
        		
        		errorElement:'div',
        		rules:{ 
        		 
        			email:{
        				required:true, 
        				email:true
        			}   
        		},
        		messages:{
                   
        			email:{
        				required:"Enter your email", 
        				email: "Enter correct email id"
        			} 
        		}
        	}); 
        }); 
        </script>

        
    	<link href="<?php echo ROOTPATH;?>/view/css/screen-600.css" rel="stylesheet" type="text/css">
               <?php 
	    include_once(ABS_PATH."/menu.php");
	?> 
               
                <div class="container mt-35">
                    <div class="row justify-content-center FormRegister">
                            <div class="col-12 p-3 text-center"> 
                                    <h3 class="card-title"> Verify   Email </h3>
                            </div>    
                                  <form method="post" autocomplete="off" id="_frm">   
                                            <div class="row"> 
                                                    
                                                    <?php 
                                                        if($set==1)
                                                        {
                                                    ?>
                                                    <div class="col-md-12 mb-2"> 
                                                        <input class="form-control" value="<?php echo "Your email has been verified successfully";?>" disabled>
                                                    </div>
                                                    <?php } else { ?>
                                                    <div class="col-md-12 mb-2"> 
                                                        <input class="form-control" value="<?php echo "Sorry verification failed";?>" disabled>
                                                    </div>
                                                    
                                                    <?php }  ?>
                                                     
                                                    
        										    <div class="col-md-6 text-left">
        										      <a href="<?php echo ROOTPATH;?>/login.php" class="btn btn-danger">Login</a>  
        										    </div>
                                            </div>  
                            </form>  
                    </div>
                </div>
                
 
              
       
<?php 
include_once("header-footer/footer.php");
unset($_SESSION['thanksforemail']);
?> 