diff --git a/bdgwebkit/log.txt b/bdgwebkit/log.txt index 1b62edb2c34602e73c05de571f2d8766fd269efb..05b9d2ec875c18099dfa81e23c4ef7ac1d9502bf 100644 --- a/bdgwebkit/log.txt +++ b/bdgwebkit/log.txt @@ -26,3 +26,4 @@ CURRENT_TIMESTAMP Ditolak 1 : 2016-05-16 16:56:46 Ditolak 1 : Ditolak 1 : Dito 17-05-2016 03:30:46 Insert Permohonan sukono : alexsukono 17-05-2016 03:33:07 Insert Permohonan sukono : alexsukono 17-05-2016 03:33:57 Insert Permohonan sukono : alexsukono +17-05-2016 03:46:02 Verify Staf Disdukcapil 1 : gerrykastogi diff --git a/bdgwebkit/permohonanClass.php b/bdgwebkit/permohonanClass.php index 22f07b2dc10a742d1fb827dfc05abd47f19b856e..534d5dfcd969267b89f550958d0df275d9e3f14e 100644 --- a/bdgwebkit/permohonanClass.php +++ b/bdgwebkit/permohonanClass.php @@ -52,6 +52,9 @@ class Permohonan{ $activity = $t->format("d-m-Y H:i:s") . ' Update Permohonan ' . $data['NamaAnak'] . ' : '; fwrite($myfile, $activity); fclose($myfile); + $aktivitas = "Update Permohonan"; + $permohonanLog = "INSERT INTO log (aktivitas) VALUES ($aktivitas)"; + $result = mysql_query($permohonanLog); } $q = mysql_query($permohonan); @@ -104,7 +107,10 @@ class Permohonan{ $activity = $t->format("d-m-Y H:i:s") . ' Verify Rumah Sakit ' . $id . ' : '; fwrite($myfile, $activity); fclose($myfile); - + $aktivitas = "Verify Rumah Sakit"; + $permohonanLog = "INSERT INTO log (aktivitas) VALUES ($aktivitas)"; + $result = mysql_query($permohonanLog); + return $q; } @@ -124,6 +130,9 @@ class Permohonan{ $activity = $t->format("d-m-Y H:i:s"). ' Verify Staf Disdukcapil ' . $id . ' : '; fwrite($myfile, $activity); fclose($myfile); + $aktivitas = "Verify Staf Disdukcapil"; + $permohonanLog = "INSERT INTO log (aktivitas) VALUES ($aktivitas)"; + $result = mysql_query($permohonanLog); return $q; } @@ -144,6 +153,10 @@ class Permohonan{ $activity = $t->format("d-m-Y H:i:s") . ' Cetak ' . $id . ' : '; fwrite($myfile, $activity); fclose($myfile); + $aktivitas = "Mencetak Akte Kelahiran"; + $permohonanLog = "INSERT INTO log (aktivitas) VALUES ($aktivitas)"; + $result = mysql_query($permohonanLog); + return $q; } @@ -163,6 +176,10 @@ class Permohonan{ $activity = $t->format("d-m-Y H:i:s") . ' Ditolak ' . $id . ' : '; fwrite($myfile, $activity); fclose($myfile); + $aktivitas = "Menolak Permohonan"; + $permohonanLog = "INSERT INTO log (aktivitas) VALUES ($aktivitas)"; + $result = mysql_query($permohonanLog); + return $q; } }