first commit

This commit is contained in:
2026-10-29 13:34:31 +07:00
commit 45e4595c57
255 changed files with 35457 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
/*******************************************************************
PHP Class : /Controller/System/ChpasswdController
Description : Data Ubah Password
Created By : Siau Pheng ([email protected]).
Created Date : December 7th, 2008.
Last Modified : August 9th, 2026.
(c) 3FONIA Software; WWW.3FONIA.COM.
*******************************************************************/
var SYSChpasswdJS = {
PHP: '',
KODE: '',
index: function(){
$('#butSave').click(() => this.proses_save());
FoniaJS.setFocus('#LPass');
},
proses_save: function(){
if ($("#LPass").val()=="") {
FoniaJS.showInfo("Silakan masukkan password lama Anda!");
FoniaJS.setFocus("#LPass");
return false;
} else if ($("#BPass1").val()=="") {
FoniaJS.showInfo("Silakan masukkan password baru 1 Anda!");
FoniaJS.setFocus("#BPass1");
return false;
} else if ($("#BPass2").val()=="") {
FoniaJS.showInfo("Silakan masukkan password baru 2 Anda!");
FoniaJS.setFocus("#BPass2");
return false;
} else if ($("#BPass1").val()!=$("#BPass2").val()) {
FoniaJS.showInfo("Password baru 1 dan 2 Anda tidak sama!");
FoniaJS.setFocus("#BPass1");
return false;
}
new Request({
url: this.PHP + '/simpan',
sendParam: ['LPass','BPass1'],
onSuccess: (ajson) => {
if (ajson.status == true) {
FoniaJS.showInfo(ajson.message);
FoniaJS.closeWindow('#win'+this.KODE);
} else {
FoniaJS.showError(ajson.message);
}
}
}).send();
}
};