| Server IP : 216.106.184.20 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux asmodeus.in-hell.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64 User : sekoaid1 ( 1891) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/sekoaid1/spp.raudhatulfalah.sch.id/admin/com_nasabah/ |
Upload File : |
<?php
error_reporting(0);
include '../../config/conn.php';
$view = $_GET['view'];
$act = $_GET['act'];
if ( $view = 'nasabah' AND $act =='simpan') {
mysql_query("INSERT INTO nasabah(id_nasabah,
no_rekening,
nama,
alamat,
id_kelas,
password,
tempat_lahir,
tanggal_lahir,
orang_tua,
status) VALUES('$_POST[id]',
'$_POST[no_rekening]',
'$_POST[nama]',
'$_POST[alamat]',
'$_POST[password]',
'$_POST[kelas]',
'$_POST[tempat_lahir]',
'$_POST[tanggal_lahir]',
'$_POST[orang_tua]',
'$_POST[status]')");
echo "<script language='javascript'>document.location='../../?view=".$view."';</script>";
}elseif ($view = 'nasabah' AND $act =='edit') {
$password = md5($_POST[password]);
if (empty($_POST['password'])) {
mysql_query("UPDATE pegawai SET nama = '$_POST[nama]',
alamat = '$_POST[alamat]',
no_telp = '$_POST[telephone]',
username = '$_POST[username]',
password = '$_POST[password]',
level = '$_POST[level]',
status = '$_POST[status]'
WHERE id_pegawai = '$_POST[id]'");
}else{
mysql_query("UPDATE pegawai SET nama = '$_POST[nama]',
alamat = '$_POST[alamat]',
no_telp = '$_POST[telephone]',
username = '$_POST[username]',
password = '$_POST[password]',
level = '$_POST[level]',
status = '$_POST[status]'
WHERE id_pegawai = '$_POST[id]'");
}
echo "<script language='javascript'>
document.location='../../?view=".$view."';
</script>";
}
?>