From 4df2e4d750e4789b543b9e17b6d4087b68fa7c76 Mon Sep 17 00:00:00 2001 From: Basoro Date: Sun, 1 Dec 2024 12:49:43 +0800 Subject: [PATCH 1/4] Bugfixed surat-surat dan Triase IGD --- plugins/igd/Admin.php | 11 +- plugins/igd/view/admin/display.html | 1 + plugins/igd/view/admin/persetujuan.umum.html | 325 ++++++++ .../penilaian_ulang_nyeri/js/admin/scripts.js | 1 - plugins/rawat_jalan/Admin.php | 10 + plugins/rawat_jalan/view/admin/display.html | 1 + .../view/admin/persetujuan.umum.html | 325 ++++++++ plugins/surat_rujukan/Admin.php | 23 + plugins/surat_rujukan/js/admin/scripts.js | 2 +- .../view/admin/surat.rujukan.html | 232 ++++++ plugins/surat_sakit/Admin.php | 23 + plugins/surat_sakit/js/admin/scripts.js | 2 +- .../surat_sakit/view/admin/surat.sakit.html | 175 ++++ plugins/surat_sehat/Admin.php | 23 + plugins/surat_sehat/js/admin/scripts.js | 2 +- .../surat_sehat/view/admin/surat.sehat.html | 209 +++++ plugins/triase/Admin.php | 55 +- plugins/triase/view/admin/manage.html | 759 +++++++++--------- 18 files changed, 1804 insertions(+), 375 deletions(-) create mode 100644 plugins/igd/view/admin/persetujuan.umum.html create mode 100644 plugins/rawat_jalan/view/admin/persetujuan.umum.html create mode 100644 plugins/surat_rujukan/view/admin/surat.rujukan.html create mode 100644 plugins/surat_sakit/view/admin/surat.sakit.html create mode 100644 plugins/surat_sehat/view/admin/surat.sehat.html diff --git a/plugins/igd/Admin.php b/plugins/igd/Admin.php index 333c04ae..9c3371f0 100644 --- a/plugins/igd/Admin.php +++ b/plugins/igd/Admin.php @@ -1078,7 +1078,16 @@ public function getLokalis() echo $this->draw('lokalis.html'); exit(); } - + + public function getPersetujuanUmum($no_rkm_medis) + { + $settings = $this->settings('settings'); + $this->tpl->set('settings', $this->tpl->noParse_array(htmlspecialchars_array($settings))); + $pasien = $this->db('pasien')->where('no_rkm_medis', $no_rkm_medis)->oneArray(); + echo $this->draw('persetujuan.umum.html', ['pasien' => $pasien]); + exit(); + } + public function getJavascript() { header('Content-type: text/javascript'); diff --git a/plugins/igd/view/admin/display.html b/plugins/igd/view/admin/display.html index a588f8ec..a417ea7e 100644 --- a/plugins/igd/view/admin/display.html +++ b/plugins/igd/view/admin/display.html @@ -45,6 +45,7 @@