Skip to content
Snippets Groups Projects
Commit 43783dd2 authored by gerrykastogi's avatar gerrykastogi
Browse files

log database

parent 355607ad
No related merge requests found
Pipeline #2841 skipped
......@@ -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
......@@ -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;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment