chess/application/views/pages/forgot_password.php

178 lines
7.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="en" data-layout="vertical" data-topbar="light" data-sidebar="dark" data-sidebar-size="lg"
data-sidebar-image="none" data-preloader="disable">
<!-- Mirrored from themesbrand.com/velzon/html/default/auth-pass-reset-basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 23 Mar 2023 12:54:57 GMT -->
<head>
<?php include 'link/links.php'?>
</head>
<body>
<div class="auth-page-wrapper pt-5">
<!-- auth page bg -->
<div class="auth-one-bg-position auth-one-bg" id="auth-particles">
<div class="bg-overlay"></div>
<div class="shape">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 1440 120">
<path d="M 0,36 C 144,53.6 432,123.2 720,124 C 1008,124.8 1296,56.8 1440,40L1440 140L0 140z"></path>
</svg>
</div>
</div>
<!-- auth page content -->
<div class="auth-page-content">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="text-center mt-sm-5 mb-4 text-white-50">
<div>
<a href="index-2.html" class="d-inline-block auth-logo">
<img src="assets/images/logo-light.png" alt="" height="20">
</a>
</div>
<!-- <p class="mt-3 fs-15 fw-medium">Premium Admin & Dashboard Template</p> -->
</div>
</div>
</div>
<!-- end row -->
<div class="row justify-content-center">
<div class="col-md-8 col-lg-6 col-xl-5">
<div class="card mt-4 bg-black">
<div class="card-body p-4">
<div class="text-center mt-2 mb-4">
<a href="index-2.html" class="d-inline-block auth-logo">
<img src="assets/images/chess_logo1.png" alt="" height="70">
</a> <!-- <p class="text-muted">Reset password with velzon</p> -->
<!-- <lord-icon src="https://cdn.lordicon.com/rhvddzym.json" trigger="loop"
colors="primary:#0ab39c" class="avatar-xl"></lord-icon> -->
</div>
<div class="alert alert-borderless alert-warning text-center mb-2 mx-2" role="alert">
Enter your email and instructions will be sent to you!
</div>
<div class="alert alert-success alert-dismissible" id="success" style="display:none;">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
</div>
<div class="alert alert-danger alert-dismissible" id="error" style="display:none;">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
</div>
<div class="p-2">
<form>
<div class="mb-4">
<label class="form-label text-white">Email ID :</label>
<input type="email" class="form-control" id="email"
placeholder="Enter Email">
</div>
<div class="text-center mt-4">
<button id="btnRpass" class="btn btn-success w-100" type="button">Send Reset Link</button>
</div>
<div class="mt-4 text-center">
<a href="<?php echo base_url('/')?>"
class="fw-semibold text-warning text-decoration-underline"> Back to
Login
</a>
</div>
</form><!-- end form -->
</div>
</div>
<!-- end card body -->
</div>
<!-- end card -->
<!-- <div class="mt-4 text-center">
<p class="mb-0">Wait, I remember my password... <a href="auth-signin-basic.html"
class="fw-semibold text-primary text-decoration-underline"> Click here </a> </p>
</div> -->
</div>
</div>
<!-- end row -->
</div>
<!-- end container -->
</div>
<!-- end auth page content -->
<!-- footer -->
<!-- end Footer -->
</div>
<!-- end auth-page-wrapper -->
<!-- JAVASCRIPT -->
<?php include 'link/script.php'?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('#btnRpass').on('click', function() {
var email = $('#email').val();
// alert(email);
if(email!=""){
$.ajax({
url: "<?php echo base_url();?>Common_controller/forgot_password",
type: "POST",
data: {
type:2,
email: email,
},
cache: false,
success: function(dataResult){
var dataResult = JSON.parse(dataResult);
if(dataResult.statusCode==201){
$("#error").show();
$('#error').html('This email not present in our database !');
}
else if(dataResult.statusCode==200){
$("#success").show();
$('#success').html('Please Check Email we have sent email !');
$("#error").hide();
}
else if(dataResult.statusCode==204){
$("#error").show();
$('#error').html('Something went wrong try again later.');
}
}
});
}
else{
$("#error").show();
$('#error').html('Please Enter Email Id !');
}
});
});
</script>
</body>
<!-- Mirrored from themesbrand.com/velzon/html/default/auth-pass-reset-basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 23 Mar 2023 12:54:57 GMT -->
</html>