escape($norm) . "' "; } $nama = ""; if (!empty($_GET['nama'])) { $nama = $_GET['nama']; } if ($nama != "") { $search = $search . " AND A.NAMA LIKE '%" . $db->escape($nama) . "%' "; } $poly = ""; if (!empty($_GET['poly'])) { $poly = $_GET['poly']; } if ($poly != "") { $search = $search . " AND E.KDPOLY = '" . $poly . "' "; } $kunjungan = ""; if (!empty($_GET['kunjungan'])) { $kunjungan = $_GET['kunjungan']; } if ($kunjungan != "") { if ($kunjungan == 2) $kunjungan = 0; $search = $search . " AND E.PASIENBARU = '" . $kunjungan . "' "; if ($kunjungan == 0) $kunjungan = 2; } $shift = ""; if (!empty($_GET['shift'])) { $shift = $_GET['shift']; } if ($shift != "") { $search = $search . " AND E.SHIFT = '" . $shift . "' "; } $carabayar = ''; if (!empty($_REQUEST['carabayar']) && $_REQUEST['carabayar'] != '') { $carabayar = $_REQUEST['carabayar']; $search = $search . " AND c.KODE = '" . $carabayar . "' "; } $ss = $db->query('SELECT * from m_shift order by idshift ASC'); $opsi_shift = array('' => '-'); foreach ($ss->fetchAll() as $ds) { $opsi_shift[$ds['idshift']] = $ds['nama_shift']; } $get_shift = (array_key_exists('SHIFT', $_GET) && $_GET['SHIFT']) ? $_GET['SHIFT'] : ''; $dropdown_shift = form_dropdown('shift', $opsi_shift, $get_shift, 'class="form-control"'); array_push($form_plugin['ui_plugins_js'], $jspm_js); array_push($form_plugin['ui_plugins_js'], $sweetalert_js); $js_init .= $jspm_rawprint; $js_init .= $jspm_init; $js_init .= ' $(".print_tracer").click(function(){ var idx = $(this).data("idx"); var poly = $(this).data("poly"); /*jspm_print("' . _BASE_ . 'print_tracer.php?idx="+idx+"&poly="+poly,"modal-preview","Tracer "+idx+".pdf",0);*/ $.post("' . _BASE_ . 'print_tracer.php",{idx,poly},function(data){ jspm_print_tracer(data); }); }); $(".print_nota").click(function(){ var idx = $(this).data("idx"); var nonota = $(this).data("nonota"); var nomr = $(this).data("nomr"); jspm_print_with_toolbar("' . _BASE_ . 'print_etiket.php?rajal_status=1&aps=0&idxdaftar="+idx+"&nonota="+nonota,"modal-preview","Nota Pendaftaran "+nomr+".pdf",0); }); const Toast = Swal.mixin({ toast: true, position: "top-end", showConfirmButton: false, timer: 3000 }); const JobToast = Swal.mixin({ toast: true, position: "top-end", showConfirmButton: false, }); jml_notif(); function jml_notif() { $.post("' . _BASE_ . 'include/master.php",{notif_nobill:1,is_counter:1},function(data){ if(data.type == "error") { Toast.fire({title:data.message,type:data.type}); $("#jml_notif").text("0"); $("#btn_notif").removeClass("btn-notifikasi"); } else { $("#jml_notif").text(data.jumlah_notif); if(data.jumlah_notif > 0) { $("#btn_notif").addClass("btn-notifikasi"); } else { $("#btn_notif").removeClass("btn-notifikasi"); } } },"json"); } function notif() { $.post("' . _BASE_ . 'include/master.php",{notif_nobill:1,is_counter:0},function(data){ if(data.type == "success") { Swal.fire({ html: data.data, width:"80%" }); $(".reregistrasi").click(function(){ idx = $(this).data("idx"); nomr = $(this).data("nomr"); nobill = $(this).data("nobill"); $.post("' . _BASE_ . 'include/master.php",{reregistrasi:1,idx,nomr,nobill},function(data){ Toast.fire({title:data.message,type:data.type,onClose : function(){ window.location.reload(); }}); },"json"); }); } else { Toast.fire({title:data.message,type:data.type}); } },"json"); } '; ?>
| NO | Tanggal | NO RM | NO Bill | Nama Pasien | L/P | Alamat | Klinik | Nama Dokter | Cara Bayar | Rujukan | Ket.Rujukan | B/L | Shift | Asal | Aksi | SEP | Cetak |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Edit/Batal | Upload SIPP'; } else { echo 'EDIT SIPP'; } if (empty($data['sep_file'])) { echo ' Upload SEP'; } else { echo 'EDIT SEP'; } ?> |
|