?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Settings/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/sibs_draft/system/application/views/Settings/changepassword.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> function ValidatePassword() { var pass1=document.getElementById('newpassword').value; var pass2=document.getElementById('retypepassword').value; if(pass1!=pass2) { document.getElementById('retypepassword').className="error"; } else { document.getElementById('retypepassword').className=""; } } function savepassword() { if(validateform('newpassword','oldpassword','retypepassword')) { var uid=document.getElementById('userid').value; var pass1=document.getElementById('newpassword').value; var oldpass=document.getElementById('oldpassword').value; var pass2=document.getElementById('retypepassword').value; if(pass1==pass2) { $('#passresult').load("<?php echo site_url('settings/change_pass_controler/'); ?>/" + uid + "/" + oldpass + "/" + pass1, function(data) { if(data!="Invalide Password") { $.fn.colorbox.close(); } }); } else { document.getElementById('passresult').value="Password Not Match"; } } } </script> <form id="customForm"> <fieldset><legend>Change User Passsword</legend> <input type="hidden" value="<?php echo $_SESSION['userid']; ?>" id="userid"/> <?php $user_id = $_SESSION['userid']; ?> <ul> <li> <label>Old Password</label> <input type="password" id="oldpassword" name="oldpassword" onblur="validateform('oldpassword')"/> </li> <li> <label>New Password</label> <input type="password" id="newpassword" name="newpassword" onblur="validateform('newpassword')" /> </li> <li> <label>Retype Password</label> <input type="password" id="retypepassword" name="retypepassword" onblur="ValidatePassword()"/> </li> <li> <input type="button" id="submit" value="Change" onclick="savepassword()"/> <span id="passresult"></span> </li> </ul> </fieldset> </form>