130 lines
6.1 KiB
PHP
Executable File
130 lines
6.1 KiB
PHP
Executable File
<!--sidebar end-->
|
|
<!--main content start-->
|
|
<?php if($this->session->flashdata('feedback_error')){ ?>
|
|
<script>
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'error',
|
|
title: '<?php echo $this->session->flashdata('feedback_error'); ?>',
|
|
showConfirmButton: false,
|
|
timer: 3500
|
|
})
|
|
</script>
|
|
<?php unset($_SESSION['feedback_error']);} ?>
|
|
<?php if($this->session->flashdata('feedback_success')){ ?>
|
|
<script>
|
|
Swal.fire({
|
|
position: 'center',
|
|
icon: 'success',
|
|
title: '<?php echo $this->session->flashdata('feedback_success'); ?>',
|
|
showConfirmButton: false,
|
|
timer: 3500
|
|
})
|
|
</script>
|
|
<?php unset($_SESSION['feedback_success']);} ?>
|
|
|
|
<style type="text/css">
|
|
.newpassword-eye-icon,.newpassword-eye-icon-close{position: absolute;top:28px;right:30px;z-index:99;cursor: pointer;}
|
|
.conpassword-eye-icon,.conpassword-eye-icon-close{position: absolute;top:82px;right:30px;z-index:99;cursor: pointer;}
|
|
.newpassword-eye-icon-close,.conpassword-eye-icon-close{display:none;}
|
|
input[type="password"]{padding-right:50px;}
|
|
</style>
|
|
|
|
|
|
<div class="app-content content">
|
|
<section class="content-wrapper">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h3 class="font-weight-bold"><?php echo lang('Change Patients Password'); ?></h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr class="mt-0 mb-0" />
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<form role="form" action="<?php echo base_url();?>referral/UpdatePassword" class="clearfix" method="post" enctype="multipart/form-data">
|
|
<input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1"><?php echo lang('New password'); ?></label>
|
|
<i class="fa fa-eye newpassword-eye-icon" aria-hidden="true"></i>
|
|
<i class="fa fa-eye-slash newpassword-eye-icon-close" aria-hidden="true"></i>
|
|
<input type="password" class="form-control" name="password" id="exampleInputEmail1" placeholder="********">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1"><?php echo lang('Confirm password'); ?></label>
|
|
<i class="fa fa-eye conpassword-eye-icon" aria-hidden="true"></i>
|
|
<i class="fa fa-eye-slash conpassword-eye-icon-close" aria-hidden="true"></i>
|
|
<input type="password" class="form-control" name="repassword" id="exampleInputEmail1" placeholder="********">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="exampleInputEmail1"><?php echo lang('Email'); ?></label>
|
|
<input type="email" class="form-control" name="email" id="exampleInputEmail1" value="
|
|
<?php
|
|
if (!empty($patient->patient_email)) {
|
|
echo $patient->patient_email;
|
|
}
|
|
?>
|
|
" readonly>
|
|
</div>
|
|
<input type="hidden" name="id" value='<?php
|
|
if (!empty($patient->id)) {
|
|
echo $patient->id;
|
|
}
|
|
?>'>
|
|
<input type="hidden" name="ionid" value='<?php
|
|
if (!empty($patient->ion_user_id)) {
|
|
echo $patient->ion_user_id;
|
|
}
|
|
?>'>
|
|
<div class="form-group">
|
|
<button type="submit" name="submit" class="btn btn-info pull-right"><?php echo lang('submit'); ?></button>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<!--main content end-->
|
|
<!--footer start-->
|
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$(".newpassword-eye-icon").click(function(){
|
|
$(this).hide();
|
|
$(".newpassword-eye-icon-close").show();
|
|
$(this).siblings("input").attr("type","text");
|
|
});
|
|
$(".newpassword-eye-icon-close").click(function(){
|
|
$(this).hide();
|
|
$(".newpassword-eye-icon").show();
|
|
$(this).siblings("input").attr("type","password");
|
|
});
|
|
$(".conpassword-eye-icon").click(function(){
|
|
$(this).hide();
|
|
$(".conpassword-eye-icon-close").show();
|
|
$(this).siblings("input").attr("type","text");
|
|
});
|
|
$(".conpassword-eye-icon-close").click(function(){
|
|
$(this).hide();
|
|
$(".conpassword-eye-icon").show();
|
|
$(this).siblings("input").attr("type","password");
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|