| 12694 |
anikendra |
1 |
|
|
|
2 |
<?php
|
|
|
3 |
$authorized = $this->session->userdata('authorized');
|
|
|
4 |
if(isset($authorized['email']) && !empty($authorized['email'])){
|
|
|
5 |
if(strpos($authorized['email'], 'anonymous') == false){
|
|
|
6 |
$email = $authorized['email'];
|
|
|
7 |
}
|
|
|
8 |
}
|
|
|
9 |
//print_r($changePassword);
|
|
|
10 |
?>
|
|
|
11 |
<div class="change-password">
|
|
|
12 |
<div class="head">Change Password</div>
|
|
|
13 |
|
|
|
14 |
<form method="post" name="change_password" id="changePassword" action="">
|
|
|
15 |
<fieldset>
|
|
|
16 |
<!-- <div id="error-message" class="error_msg" style="display:none;"></div> -->
|
|
|
17 |
<?php if(isset($changePassword['success']) && $changePassword['success'] == "true"){ ?>
|
|
|
18 |
<div class="success_msg"><?php echo $changePassword['msg'];?></div>
|
|
|
19 |
<?php } ?>
|
|
|
20 |
<div id="error-message" class="error_msg" <?php if(isset($changePassword['success']) && $changePassword['success'] == "false"){ ?>style="display:block" <?php } else {?> style="display:none" <?php }?>>
|
|
|
21 |
<?php if(isset($changePassword['msg']) && !empty($changePassword['msg'])){
|
|
|
22 |
echo $changePassword['msg'];
|
|
|
23 |
} ?>
|
|
|
24 |
</div>
|
|
|
25 |
<label for="login-id">Login Id(Email):</label>
|
|
|
26 |
<input type="email" id="login-id" name="email" value ="<?php echo $email;?>" readonly="readonly" spellcheck="false"/>
|
|
|
27 |
|
|
|
28 |
<label for="old-pass">Old Password:</label>
|
|
|
29 |
<input type="password" id="old-pass" name="oldPassword" value ="" spellcheck="false" class="pass"/>
|
|
|
30 |
|
|
|
31 |
<label for="new-pass">New Password:</label>
|
|
|
32 |
<input type="password" id="new-pass" name="newPassword" value ="" spellcheck="false" class="pass"/>
|
|
|
33 |
|
|
|
34 |
<label for="confirm-pass">Confirm Password:</label>
|
|
|
35 |
<input type="password" id="confirm-pass" value ="" class="pass"/>
|
|
|
36 |
|
|
|
37 |
<input type="button" value="Save" class="save-btn" id="save_btn"/>
|
|
|
38 |
<input type="button" value="Cancel" class="cancel-btn" id="cancel_btn"/>
|
|
|
39 |
</fieldset>
|
|
|
40 |
</form>
|
|
|
41 |
</div><!--chage-password-->
|
|
|
42 |
|
|
|
43 |
<script src="<?=base_url().$this->config->item('current_client')?>/js/login.js?version=<?=$this->config->item('cdn_version');?>" type="text/javascript"></script>
|