first commit
@@ -0,0 +1,194 @@
|
||||
<?php
|
||||
include 'core/main.php';
|
||||
|
||||
|
||||
$query_rse = "SELECT a.nomr, a.kirimdari, a.kd_rujuk, a.dokterpengirim,a.dokter_penanggungjawab, a.masukrs, a.noruang, a.nott, b.nama, b.alamat, b.jeniskelamin, b.tgllahir, c.nama as carabayar, a.id_admission, a.noruang, d.nama as poly, e.namadokter as namadokter_pengirim, md.namadokter as namadokter_dpjp, f.kelas,k.kokel as id_kelas, f.nama as nm_ruang, tgllahir as tgllahir1, a.statusbayar, a.masukrs as tglreg,a.nosep,(select nobill from t_billranap where idxdaftar = a.id_admission and nomr = a.nomr limit 1) as nobill
|
||||
FROM t_admission a
|
||||
JOIN m_pasien b ON a.nomr=b.nomr
|
||||
JOIN m_carabayar c ON a.statusbayar=c.kode
|
||||
JOIN m_ruang d ON d.no=a.kd_rujuk
|
||||
JOIN m_ruang f ON f.no=a.noruang
|
||||
JOIN m_dokter e ON a.dokterpengirim=e.kddokter
|
||||
LEFT JOIN m_dokter md ON a.dokter_penanggungjawab=md.kddokter
|
||||
JOIN m_tarifkelas k on f.idx_ruang = k.kelas
|
||||
WHERE a.id_admission='".$_GET['id_admission']."'";
|
||||
$rse = $db->query($query_rse);
|
||||
$userdata = $rse->fetchFirst();
|
||||
?>
|
||||
<script language="javascript">
|
||||
function printIt()
|
||||
{
|
||||
content=document.getElementById('valid');
|
||||
head=document.getElementById('head_report');
|
||||
w=window.open('about:blank');
|
||||
w.document.writeln("<link href='dq_sirs.css' type='text/css' rel='stylesheet' />");
|
||||
w.document.write( head.innerHTML );
|
||||
w.document.write( content.innerHTML );
|
||||
w.document.writeln("<script>");
|
||||
w.document.writeln("window.print()");
|
||||
w.document.writeln("</"+"script>");
|
||||
}
|
||||
|
||||
async function load_obat() {
|
||||
const menu_diet = await new Bloodhound({
|
||||
datumTokenizer: Bloodhound.tokenizers.obj.whitespace("text"),
|
||||
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
||||
remote: {
|
||||
url : "<?php echo _BASE_.'include/master.php?order_obat=true&nama=%QUERY'; ?>",
|
||||
wildcard: "%QUERY"
|
||||
}
|
||||
});
|
||||
$("#menu_diet").typeahead({hint: true, highlight: true, minLength: 1 },{
|
||||
name: "menu_diet",
|
||||
display: "text",
|
||||
source: menu_diet,
|
||||
limit: 10
|
||||
}).on("typeahead:selected typeahead:autocompleted typeahead:matched", function (ev, datum) {
|
||||
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title"><h5>Form Tambah Permintaan</h5></div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Identitas Pasien</h5>
|
||||
<div class="card-body">
|
||||
<div class="card-body">
|
||||
<?php
|
||||
$a = datediff($userdata['tgllahir'], date("Y-m-d"));
|
||||
echo '<div class="row text-left">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>No RM</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['nomr'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Nama Pasien</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['nama'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Alamat</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['alamat'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Tanggal Lahir</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.date_to_id($userdata['tgllahir']).'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>Umur</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$a['years'].' tahun '.$a['months'].' bulan '.$a['days'].' hari" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Jenis Kelamin</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.jeniskelamin($userdata['jeniskelamin']).'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Jenis Pembayaran</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['carabayar'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Dokter Pengirim</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['namadokter_pengirim'].'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>Dokter Penanggung Jawab</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['namadokter_dpjp'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Nama Ruang</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['nm_ruang'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>No Billing</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$userdata['nobill'].'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-2">
|
||||
<?php include 'additem_diet.php'; ?>
|
||||
</div>
|
||||
<div id="valid">
|
||||
<div id="head_report" style="display:none" align="center">
|
||||
<div align="center" style="clear:both; padding:20px">
|
||||
<div style="letter-spacing:-1px; font-size:16px; font:bold;"><?=strtoupper($header1)?></div>
|
||||
<div style="letter-spacing:-2px; font-size:24px; color:#666; font:bold;"><?=strtoupper($header2)?></div>
|
||||
<div><?=$header3?><br /><?=$header4?></div>
|
||||
<hr style="margin:5px;" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table width="95%" style="margin:10px;" border="0" class="table table-hover table-bordered table-striped table-sm" cellspacing="1" cellspading="1">
|
||||
<tr align="center" class="bg-success text-light">
|
||||
<th width="5%"> NOMR</th>
|
||||
<th width="10%">NAMA</th>
|
||||
<th width="5%">KELAS</th>
|
||||
<th width="5%">RUANG</th>
|
||||
<th width="5%">TYPEMAKANAN</th>
|
||||
<th width="5%">KETERANGAN</th>
|
||||
<th width="10%">JENISMAKANAN</th>
|
||||
<th width="5%" align="left">SHIFT</th>
|
||||
<th width="5%" align="left">SNACK</th>
|
||||
<th width="5%">REQUEST</th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
$sql = "SELECT a.id_admission, b.nama as namapasien, a.tgl_pindah, a.nomr, b.alamat, a.statusbayar, c.nama as jenisbayar, a.masukrs, a.noruang, e.nama,e.kelas, a.nott, a.icd_masuk, a.NIP, d.jenis_penyakit, g.*, h.*, i.*, j.*
|
||||
FROM t_admission a inner join m_pasien b on a.nomr=b.nomr
|
||||
left join t_dpmp g on a.id_admission = g.IDXDAFTAR
|
||||
left join m_typemakanan h on g.TYPEMAKANAN = h.id_typemakanan
|
||||
left join m_jenismakanan i on g.JENISMAKANAN = i.id_jenismakanan
|
||||
left join m_keteranganmakanan j on g.KETERANGAN = j.id_keteranganmakanan
|
||||
inner join m_carabayar c on a.statusbayar=c.kode
|
||||
left join icd d on a.icd_masuk=d.icd_code
|
||||
inner join m_ruang e on a.noruang=e.no
|
||||
WHERE g.IDXDAFTAR ='".$_GET['id_admission']."'";
|
||||
$NO=0;
|
||||
$rs = $db->query($sql);
|
||||
$count = 0;
|
||||
foreach($pager['list'] as $data) {?>
|
||||
<tr <?php echo "class =";
|
||||
$count++;
|
||||
if ($count % 2) {
|
||||
echo "tr1";
|
||||
}
|
||||
else {
|
||||
echo "tr2";
|
||||
}
|
||||
?> valign="top" align="center">
|
||||
<td><?php echo $data['NOMR'];?></td>
|
||||
<td align="left"><?php echo $data['namapasien']; ?></td>
|
||||
<td><?php echo $data['kelas']; ?></td>
|
||||
<td><?php echo $data['nama']; ?></td>
|
||||
<td><?php echo $data['nama_typemakanan']; ?></td>
|
||||
<td><?php echo $data['nama_keteranganmakanan']; ?></td>
|
||||
<td><?php echo $data['nama_jenismakanan'];?></td>
|
||||
<td><?php echo $data['SHIFT'];?></td>
|
||||
<td><?php echo $data['SNACK'];?></td>
|
||||
<td><?php echo $data['KETERANGANTAMBAHAN'];?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</table>
|
||||
<input type="button" class="btn btn-success text" value="PRINT" onclick="printIt()" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,322 @@
|
||||
<?php
|
||||
include 'core/main.php';
|
||||
include 'include/function.php';
|
||||
|
||||
$editFormAction = $_SERVER['PHP_SELF'];
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
|
||||
}
|
||||
|
||||
|
||||
if ((isset($_POST["DPMP_add"])) && ($_POST["DPMP_add"] == "form1")) {
|
||||
|
||||
$updateSQL = "INSERT INTO t_dpmp (IDXDAFTAR,NOMR,RUANG,TYPEMAKANAN,KETERANGAN,JENISMAKANAN,SHIFT,KETERANGANTAMBAHAN,TANGGAL,SNACK, IDXTGL) VALUES ('{$_POST['id_admission']}','{$_POST['nomr']}','{$_POST['RUANG']}','{$_POST['TYPEMAKANAN']}','{$_POST['KETERANGAN']}','{$_POST['JENISMAKANAN']}','{$_POST['SHIFT']}','{$_POST['KETERANGANTAMBAHAN']}', '".date('Y-m-d H:i:s')."','{$_POST['SNACK']}', '".date('Y-m-d')."')";
|
||||
|
||||
// $addnotif = "INSERT INTO t_notification VALUES('','<strong>No RM : $_POST[nomr]<br>Ruang : $_POST[namaruang]<br> Request :<br> $_POST[KETERANGAN]</strong>',NULL,'15')";
|
||||
|
||||
// $Result1 = $db->query($updateSQL);
|
||||
// $Result2 = $db->query($addnotif);
|
||||
// $error = mysqli_error($connect);
|
||||
|
||||
if($db->query($updateSQL)) {
|
||||
$db->query("INSERT INTO t_notification VALUES('','<strong>No RM : $_POST[nomr]<br>Ruang : $_POST[namaruang]<br> Request :<br> $_POST[KETERANGAN]</strong>',NULL,'15')");
|
||||
$Result1 = "<div class='alert alert-success' role='alert'><strong>Input Data Sukses!</strong></div>";
|
||||
}else {
|
||||
$Result2 = "<div class='alert alert-danger' role='alert'><strong>Input Data Gagal!</strong></div>";
|
||||
}
|
||||
// $updateGoTo = "index.php?p=list";
|
||||
// if (isset($_SERVER['QUERY_STRING'])) {
|
||||
// $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
|
||||
// $updateGoTo .= $_SERVER['QUERY_STRING'];
|
||||
// }
|
||||
|
||||
// $historyback = '121p2';
|
||||
// if($_REQUEST['historyback'] !=''){
|
||||
// $historyback = $_REQUEST['historyback'];
|
||||
// }
|
||||
if(!empty($_POST['id_admission'])) {
|
||||
$IDX = $_POST['id_admission'];
|
||||
}else if(!empty($_POST['id_admission'])) {
|
||||
$IDX = $_POST['id_admission'];
|
||||
}else if(!empty($_GET['id_admission'])) {
|
||||
$IDX = $_GET['id_admission'];
|
||||
}else {
|
||||
$IDX = $id_admission;
|
||||
}
|
||||
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
|
||||
$query_rse = "select a.*, b.NAMA,a.NOMR as a_nomr, c.*, e.nama
|
||||
from t_admission a
|
||||
join m_pasien b on b.nomr = a.nomr
|
||||
left join t_dpmp c on a.id_admission = c.IDXDAFTAR
|
||||
inner join m_ruang e on a.noruang=e.no
|
||||
where a.id_admission='".$_GET['id_admission']."'";
|
||||
$rse = $db->query($query_rse);
|
||||
$row_rse = $rse->fetchAll()[0];
|
||||
$totalRows_rse = $rse->numRows();
|
||||
|
||||
?>
|
||||
<script language="javascript">
|
||||
function printIt()
|
||||
{
|
||||
content=document.getElementById('valid');
|
||||
head=document.getElementById('head_report');
|
||||
w=window.open('about:blank');
|
||||
w.document.writeln("<link href='dq_sirs.css' type='text/css' rel='stylesheet' />");
|
||||
w.document.write( head.innerHTML );
|
||||
w.document.write( content.innerHTML );
|
||||
w.document.writeln("<script>");
|
||||
w.document.writeln("window.print()");
|
||||
w.document.writeln("</"+"script>");
|
||||
}
|
||||
</script>
|
||||
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title"><h5>Form Edit</h5></div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Tambah Permintaan Makan</h5>
|
||||
<div class="card-body">
|
||||
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nomor MR</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="hidden" name="nomr" id="nomr" class="form-control text" value="<?php echo $row_rse['a_nomr'];?>" />
|
||||
<?php echo $row_rse['a_nomr'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Masuk Rumah Sakit</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="text" name="masukrs" id="tgl_masuk" readonly="readonly" class="form-control text" value="<?php echo htmlentities($row_rse['masukrs'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nama Ruang / Tempat Tidur</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="hidden" name="namaruang" value="<?php echo $row_rse['nama']; ?>" />
|
||||
<input type="hidden" name="RUANG" value="<?php echo $row_rse['noruang']; ?>" />
|
||||
<?php echo $row_rse['nama'];?> / <?php echo $row_rse['nott'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Type Makanan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<select name="TYPEMAKANAN" class="form-control text">
|
||||
<option value=""> -Pilih- </option>
|
||||
<?php
|
||||
$qrytype = $db->query("SELECT * FROM m_typemakanan");
|
||||
foreach($qrytype->fetchAll() as $listype) {
|
||||
?>
|
||||
<option value="<?php echo $listype['id_typemakanan'];?>" <?php if($listype['id_typemakanan']==$row_rse['TYPEMAKANAN']) echo "selected=selected"; ?>><?php echo $listype['nama_typemakanan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Keterangan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<select name="KETERANGAN" class="form-control text">
|
||||
<option value=""> -Pilih- </option>
|
||||
<?php
|
||||
$qryket = $db->query("SELECT * FROM m_keteranganmakanan");
|
||||
foreach($qryket->fetchAll() as $listket) {
|
||||
?>
|
||||
<option value="<?php echo $listket['id_keteranganmakanan'];?>" <?php if($listket['id_keteranganmakanan']==$row_rse['KETERANGAN']) echo "selected=selected"; ?>><?php echo $listket['nama_keteranganmakanan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Keterangan Tambahan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<textarea name="KETERANGANTAMBAHAN" class="form-control text" cols="50" rows="6"><?php echo $row_rse['KETERANGANTAMBAHAN'];?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nama Pasien</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<?php echo $row_rse['NAMA'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Dokter Pengirim</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<?php
|
||||
$dktr = getNamaDokter($row_rse['dokterpengirim']);
|
||||
echo $dktr['NAMADOKTER'];
|
||||
?>
|
||||
<input type="hidden" class="form-control form-control-sm text" name="dokterpengirim" value="<?php echo htmlentities($row_rse['dokterpengirim'], ENT_COMPAT, 'utf-8'); ?>" size="32" />
|
||||
<input type="hidden" name="kirimdari" value="<?php echo htmlentities($row_rse['kirimdari'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="noruang_asal" value="<?php echo htmlentities($row_rse['noruang'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="nott_asal" value="<?php echo htmlentities($row_rse['nott'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="kd_rujuk" value="<?php echo htmlentities($row_rse['kd_rujuk'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">DIIT (Shift)</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="radio" name="SHIFT" value="1" <?php if($row_rse['SHIFT']=="1")echo "Checked";?> /> Pagi
|
||||
<input type="radio" name="SHIFT" value="2" <?php if($row_rse['SHIFT']=="2")echo "Checked";?>/> Siang
|
||||
<input type="radio" name="SHIFT" value="3" <?php if($row_rse['SHIFT']=="3")echo "Checked";?>/> Sore
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Snack</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="radio" name="SNACK" value="1" <?php if($row_rse['SNACK']=="1")echo "Checked";?> /> Pagi
|
||||
<input type="radio" name="SNACK" value="2" <?php if($row_rse['SNACK']=="2")echo "Checked";?>/> Sore</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Jenis Makanan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<select name="JENISMAKANAN" class="form-control text">
|
||||
<option value=""> -Pilih- </option>
|
||||
<?php
|
||||
$qryjns = $db->query("SELECT * FROM m_jenismakanan");
|
||||
foreach($qryjns->fetchAll() as $listype) {
|
||||
?>
|
||||
<option value="<?php echo $listype['id_jenismakanan'];?>" <?php if($listype['id_jenismakanan']==$row_rse['JENISMAKANAN']) echo "selected=selected"; ?>><?php echo $listype['nama_jenismakanan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left"> </label>
|
||||
<div class="col-sm-4" style="text-align:left">
|
||||
|
||||
<input type="submit" class="btn btn-primary" value="Simpan">
|
||||
<!-- <input type="submit" name="Submit" value="Simpan" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('form1'),'valid_save_dpmp',validatetask); return false;"/> -->
|
||||
<input class="btn btn-secondary" name="kembali" type="button" value="Kembali" onclick=window.location.href='?link=129x' />
|
||||
|
||||
<input type="hidden" name="DPMP_add" value="form1" />
|
||||
<input type="hidden" name="id_admission" value="<?php echo $row_rse['id_admission']; ?>" />
|
||||
<input type="hidden" name="IDX" value="<?php echo $row_rse['IDX']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="valid_save_dpmp">
|
||||
<?php
|
||||
if(!empty($Result1)) {
|
||||
echo $Result1;
|
||||
}elseif(!empty($Result2)){
|
||||
echo $Result2;
|
||||
}
|
||||
else{
|
||||
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div id="valid">
|
||||
<div id="head_report" style="display:none" align="center">
|
||||
<div align="center" style="clear:both; padding:20px">
|
||||
<div style="letter-spacing:-1px; font-size:16px; font:bold;"><?=strtoupper($header1)?></div>
|
||||
<div style="letter-spacing:-2px; font-size:24px; color:#666; font:bold;"><?=strtoupper($header2)?></div>
|
||||
<div><?=$header3?><br /><?=$header4?></div>
|
||||
<hr style="margin:5px;" />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table width="95%" style="margin:10px;" border="0" class="table table-hover table-bordered table-striped table-sm" cellspacing="1" cellspading="1">
|
||||
<tr align="center" class="bg-success text-light">
|
||||
<th width="5%"> NOMR</th>
|
||||
<th width="10%">NAMA</th>
|
||||
<th width="5%">KELAS</th>
|
||||
<th width="5%">RUANG</th>
|
||||
<th width="5%">TYPEMAKANAN</th>
|
||||
<th width="5%">KETERANGAN</th>
|
||||
<th width="10%">JENISMAKANAN</th>
|
||||
<th width="5%" align="left">SHIFT</th>
|
||||
<th width="5%" align="left">SNACK</th>
|
||||
<th width="5%">REQUEST</th>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
$sql = "SELECT a.id_admission, b.nama as namapasien, a.tgl_pindah, a.nomr, b.alamat, a.statusbayar, c.nama as jenisbayar, a.masukrs, a.noruang, e.nama,e.kelas, a.nott, a.icd_masuk, a.NIP, d.jenis_penyakit, g.*, h.*, i.*, j.*
|
||||
FROM t_admission a inner join m_pasien b on a.nomr=b.nomr
|
||||
left join t_dpmp g on a.id_admission = g.IDXDAFTAR
|
||||
left join m_typemakanan h on g.TYPEMAKANAN = h.id_typemakanan
|
||||
left join m_jenismakanan i on g.JENISMAKANAN = i.id_jenismakanan
|
||||
left join m_keteranganmakanan j on g.KETERANGAN = j.id_keteranganmakanan
|
||||
inner join m_carabayar c on a.statusbayar=c.kode
|
||||
left join icd d on a.icd_masuk=d.icd_code
|
||||
inner join m_ruang e on a.noruang=e.no
|
||||
WHERE g.IDXDAFTAR ='".$_GET['id_admission']."'";
|
||||
$NO=0;
|
||||
$rs = $db->query($sql);
|
||||
$count = 0;
|
||||
foreach($pager['list'] as $data) {?>
|
||||
<tr <?php echo "class =";
|
||||
$count++;
|
||||
if ($count % 2) {
|
||||
echo "tr1";
|
||||
}
|
||||
else {
|
||||
echo "tr2";
|
||||
}
|
||||
?> valign="top" align="center">
|
||||
<td><?php echo $data['NOMR'];?></td>
|
||||
<td align="left"><?php echo $data['namapasien']; ?></td>
|
||||
<td><?php echo $data['kelas']; ?></td>
|
||||
<td><?php echo $data['nama']; ?></td>
|
||||
<td><?php echo $data['nama_typemakanan']; ?></td>
|
||||
<td><?php echo $data['nama_keteranganmakanan']; ?></td>
|
||||
<td><?php echo $data['nama_jenismakanan'];?></td>
|
||||
<td><?php echo $data['SHIFT'];?></td>
|
||||
<td><?php echo $data['SNACK'];?></td>
|
||||
<td><?php echo $data['KETERANGANTAMBAHAN'];?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
</table>
|
||||
<input type="button" class="btn btn-success text" value="PRINT" onclick="printIt()" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
mysqli_free_result($rse);
|
||||
?>
|
||||
@@ -0,0 +1,142 @@
|
||||
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nomor MR</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="hidden" name="nomr" id="nomr" class="form-control text" value="<?php echo $row_rse['a_nomr'];?>" />
|
||||
<?php echo $row_rse['a_nomr'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Masuk Rumah Sakit</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="text" name="masukrs" id="tgl_masuk" readonly="readonly" class="form-control text" value="<?php echo htmlentities($row_rse['masukrs'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nama Ruang / Tempat Tidur</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="hidden" name="namaruang" value="<?php echo $row_rse['nama']; ?>" />
|
||||
<input type="hidden" name="RUANG" value="<?php echo $row_rse['noruang']; ?>" />
|
||||
<?php echo $row_rse['nama'];?> / <?php echo $row_rse['nott'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Menu Makanan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="text" name="menu_diet" id="menu_diet">
|
||||
<input type="hidden" name="idx_diet" value="">
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Keterangan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<select name="KETERANGAN" class="form-control text">
|
||||
<option value=""> -Pilih- </option>
|
||||
<?php
|
||||
$qryket = $db->query("SELECT * FROM m_keteranganmakanan");
|
||||
foreach($qryket->fetchAll() as $listket) {
|
||||
?>
|
||||
<option value="<?php echo $listket['id_keteranganmakanan'];?>" <?php if($listket['id_keteranganmakanan']==$row_rse['KETERANGAN']) echo "selected=selected"; ?>><?php echo $listket['nama_keteranganmakanan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Keterangan Tambahan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<textarea name="KETERANGANTAMBAHAN" class="form-control text" cols="50" rows="6"><?php echo $row_rse['KETERANGANTAMBAHAN'];?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nama Pasien</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<?php echo $row_rse['nama'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Dokter Pengirim</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<?php
|
||||
$dktr = getNamaDokter($row_rse['dokterpengirim']);
|
||||
echo $dktr['NAMADOKTER'];
|
||||
?>
|
||||
<input type="hidden" class="form-control form-control-sm text" name="dokterpengirim" value="<?php echo htmlentities($row_rse['dokterpengirim'], ENT_COMPAT, 'utf-8'); ?>" size="32" />
|
||||
<input type="hidden" name="kirimdari" value="<?php echo htmlentities($row_rse['kirimdari'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="noruang_asal" value="<?php echo htmlentities($row_rse['noruang'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="nott_asal" value="<?php echo htmlentities($row_rse['nott'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="kd_rujuk" value="<?php echo htmlentities($row_rse['kd_rujuk'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">DIIT (Shift)</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="radio" name="SHIFT" value="1" <?php if($row_rse['SHIFT']=="1")echo "Checked";?> /> Pagi
|
||||
<input type="radio" name="SHIFT" value="2" <?php if($row_rse['SHIFT']=="2")echo "Checked";?>/> Siang
|
||||
<input type="radio" name="SHIFT" value="3" <?php if($row_rse['SHIFT']=="3")echo "Checked";?>/> Sore
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Snack</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="radio" name="SNACK" value="1" <?php if($row_rse['SNACK']=="1")echo "Checked";?> /> Pagi
|
||||
<input type="radio" name="SNACK" value="2" <?php if($row_rse['SNACK']=="2")echo "Checked";?>/> Sore</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Jenis Makanan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<select name="JENISMAKANAN" class="form-control text">
|
||||
<option value=""> -Pilih- </option>
|
||||
<?php
|
||||
$qryjns = $db->query("SELECT * FROM m_jenismakanan");
|
||||
foreach($qryjns->fetchAll() as $listype) {
|
||||
?>
|
||||
<option value="<?php echo $listype['id_jenismakanan'];?>" <?php if($listype['id_jenismakanan']==$row_rse['JENISMAKANAN']) echo "selected=selected"; ?>><?php echo $listype['nama_jenismakanan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left"> </label>
|
||||
<div class="col-sm-4" style="text-align:left">
|
||||
|
||||
<input type="submit" class="btn btn-primary" value="Simpan">
|
||||
<!-- <input type="submit" name="Submit" value="Simpan" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('form1'),'valid_save_dpmp',validatetask); return false;"/> -->
|
||||
<input class="btn btn-secondary" name="kembali" type="button" value="Kembali" onclick=window.location.href='?link=129x' />
|
||||
|
||||
<input type="hidden" name="DPMP_add" value="form1" />
|
||||
<input type="hidden" name="id_admission" value="<?php echo $row_rse['id_admission']; ?>" />
|
||||
<input type="hidden" name="IDX" value="<?php echo $row_rse['IDX']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
$m_tarif_akomodasi = $db->query("SELECT *,(select nilai from m_tarifdetil where komponen like '%SARANA%' and kode_tarif = m_tarif_rs.kode_tarif) as jasa_sarana, (select nilai from m_tarifdetil where komponen like '%LAYANAN%' and kode_tarif = m_tarif_rs.kode_tarif) as jasa_pelayanan,pengguna from m_tarif_rs join m_tarifpengguna on m_tarif_rs.kode_tarif = m_tarifpengguna.kode_tarif join m_tarifkelas on m_tarif_rs.kelas_tarif = m_tarifkelas.kelas where kelompok_tarif in('PERAWATAN') and m_tarif_rs.aktif = 1");
|
||||
if($m_tarif_akomodasi->numRows() > 0)
|
||||
{
|
||||
$arr_tarif = array();
|
||||
$js_tarif_data = array();
|
||||
foreach($m_tarif_akomodasi->fetchAll() as $ds) {
|
||||
$arr_tarif[$ds['kode_tarif']] = $ds['uraian_tarif'].' - '.$ds['kelas'].' - '.$ds['pengguna'].'(Rp. '.format_uang($ds['jumlah']).')';
|
||||
$js_tarif_data[$ds['kode_tarif']] = $ds['jumlah'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form action="ranap/save_akomodasi.php" name="akomodasi" method="post" id="akomodasi">
|
||||
<input type="hidden" name="IDXDAFTAR" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="NOMR" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="RUANG" value="<?php echo $noruang;?>" />
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Tarif Akomodasi</label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left">
|
||||
<?php
|
||||
echo form_dropdown('kode_tarif',$arr_tarif,'','class="form-control" id="tarif_ako" style="width:100%"');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Jumlah Hari Rawat</label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left">
|
||||
<?php
|
||||
$tgl_masuk = new DateTime($masukrs);
|
||||
$tgl_pulang = new DateTime(date('Y-m-d'));
|
||||
$tgl_pulang->add(new DateInterval('P1D'));
|
||||
|
||||
$selisih = $tgl_pulang->diff($tgl_masuk);
|
||||
echo $selisih->format("%a hari");
|
||||
?>
|
||||
<input type="hidden" name="qty" id="jml_hari_rawat" value="<?php echo $selisih->format("%a"); ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Total Biaya Akomodasi</label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left" id="total_biaya">
|
||||
<input type="text" name="totaltarif" id="total_tarif" readonly="true" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left">
|
||||
<button type="button" id="hitungAkomodasi" class="btn btn-secondary"><i class="fa fa-calculator"></i> Hitung Akomodasi</button>
|
||||
<!-- <input type="submit" name="Submit" value="Simpan" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('akomodasi'),'ranap/save_akomodasi.php','valid_save_akomodasi',validatetask); return false;"/> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="valid_save_akomodasi">
|
||||
<?php
|
||||
// include("save_akomodasi.php");
|
||||
$js_init .= '
|
||||
var dt_tarif = '.json_encode($js_tarif_data).';
|
||||
$("#hitungAkomodasi").on("click",function(){
|
||||
var tarif = $("#tarif_ako").find(":selected").val();
|
||||
var qty = $("#jml_hari_rawat").val();
|
||||
var jumlah = parseInt(qty) * parseInt(dt_tarif[tarif]);
|
||||
$("#total_tarif").val(accounting.formatMoney(jumlah));
|
||||
});';
|
||||
?>
|
||||
</div>
|
||||
@@ -0,0 +1,498 @@
|
||||
<?php
|
||||
$path = realpath(dirname(__FILE__));
|
||||
require_once $path . '/../core/main.php';
|
||||
|
||||
$id_admission = $_REQUEST['id_admission'];
|
||||
$idx_daftar = $_REQUEST['idx_daftar'];
|
||||
$nobill = $_REQUEST['nobill'];
|
||||
$tgl_request_krs = (array_key_exists('tgl_request_krs', $_REQUEST)) ? $_REQUEST['tgl_request_krs'] : date('Y-m-d');
|
||||
$query_ruang = "SELECT *,r.nama||' '||r.kelas as nama_ruang,r.idx_ruang,r.kelas,rh.tgl_pindah as tanggal_pindah from t_admission_ruanghist rh join m_ruang r on r.no = rh.no_ruang_asal
|
||||
WHERE rh.tgl_batal is null and idx_admission = '" . $id_admission . "' ORDER BY id_ruanghist";
|
||||
|
||||
$data_ruang = $db->query($query_ruang)->fetchAll();
|
||||
|
||||
$myquery = "SELECT distinct a.nomr, b.nama, b.alamat, b.jeniskelamin, b.tgllahir, b.parent_nomr, c.statusbayar, e.nama as carabayar, c.noruang, d.nama as ruang, c.nott, a.nobill, (select sum(tarifrs * qty) from t_billranap where nobill = a.nobill and t_billranap.status <> 'BATAL') as tottarifrs, (select sum(discount) from t_bayarranap where nobill = a.nobill) as discount, (select sum(coalesce(costsharing_pelayanan,0)+coalesce(costsharing_anastesi,0)+coalesce(costsharing_sarana,0)) as total from t_billranap where nobill = a.nobill and t_billranap.status <> 'BATAL') as totcostsharing, (select sum(deposit) from t_deposit where t_deposit.nobill::integer = a.nobill and t_deposit.st_batal is null group by nobill) as deposit, c.masukrs, d.kelas, c.keluarrs, c.tgl_pindah, d.idx_ruang,t.uraian_tarif
|
||||
FROM t_billranap a
|
||||
JOIN m_pasien b ON a.nomr = b.nomr
|
||||
JOIN t_admission c ON a.IDXDAFTAR = c.id_admission
|
||||
JOIN m_ruang d ON c.noruang = d.no
|
||||
JOIN m_carabayar e ON c.statusbayar = e.KODE
|
||||
JOIN t_bayarranap f ON a.idxbill = f.idxbill
|
||||
LEFT JOIN m_tarif_rs t on a.kodetarif = t.kode_tarif
|
||||
WHERE a.IDXDAFTAR = '" . $idx_daftar . "' and a.NOBILL = '" . $nobill . "' and a.STATUS != 'BATAL'";
|
||||
|
||||
$get = $db->query($myquery);
|
||||
$all_userdata = $get->fetchAll();
|
||||
$userdata = $all_userdata[0];
|
||||
|
||||
|
||||
?>
|
||||
<form id="akomodasi-form">
|
||||
|
||||
<table class="table table-bordered table-striped table-sm">
|
||||
<thead>
|
||||
<tr class="bg-success text-white">
|
||||
<th width="5%">No</th>
|
||||
<th width="10%">Nama Ruang</th>
|
||||
<th width="10%">Tanggal Masuk</th>
|
||||
<th width="10%">Tanggal Keluar</th>
|
||||
<th width="10%">Jumlah Hari</th>
|
||||
<th width="10%">Jumlah Hari Split</th>
|
||||
<th width="40%">Tarif</th>
|
||||
<th width="10%">Jumlah Akomodasi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$tgl_masuk = new DateTime($userdata['masukrs']);
|
||||
$tgl_pulang = new DateTime($tgl_request_krs);
|
||||
$tgl_pulang->add(new DateInterval('P2D'));
|
||||
|
||||
$selisih = $tgl_pulang->diff($tgl_masuk);
|
||||
$jumlah_hari_rawat = $selisih->format("%a");
|
||||
if ($jumlah_hari_rawat == 0) {
|
||||
$jumlah_hari_rawat = 1;
|
||||
}
|
||||
|
||||
$total_hari_rawat = 0;
|
||||
if ($userdata['tgl_pindah'] != '') {
|
||||
|
||||
$query_ruang = "SELECT *,r.nama||' '||r.kelas as nama_ruang,r.idx_ruang,r.kelas,rh.tgl_pindah as tanggal_pindah from t_admission_ruanghist rh join m_ruang r on r.no = rh.no_ruang_asal
|
||||
WHERE rh.tgl_batal is null and idx_admission = " . $id_admission . " ORDER BY id_ruanghist";
|
||||
|
||||
$tmp_ruang = $db->query($query_ruang);
|
||||
$sudah_plus_satu = false;
|
||||
$jml_ruang = $tmp_ruang->numRows();
|
||||
|
||||
if ($tmp_ruang->numRows() > 0) {
|
||||
$i = 1;
|
||||
$js_tarif_data = array();
|
||||
$arr_lama_ruang_pindah = [];
|
||||
foreach ($tmp_ruang->fetchAll() as $row) {
|
||||
$cut_off = '2023-01-31';
|
||||
$tarif_akomodasi = "SELECT *,(select nilai from m_tarifdetil where komponen like '%SARANA%' and kode_tarif = m_tarif_rs.kode_tarif) as jasa_sarana, (select nilai from m_tarifdetil where komponen like '%LAYANAN%' and kode_tarif = m_tarif_rs.kode_tarif) as jasa_pelayanan,pengguna from m_tarif_rs join m_tarifpengguna on m_tarif_rs.kode_tarif = m_tarifpengguna.kode_tarif join m_tarifkelas on m_tarif_rs.kelas_tarif = m_tarifkelas.kelas where (kelompok_tarif in('PERAWATAN') or kelompok_tarif in('AKOMODASI')) and (m_tarif_rs.kelas_tarif like '" . trim($row['idx_ruang']) . "%' or m_tarif_rs.kelas_tarif like 'REGULER%') and m_tarif_rs.aktif = 1";
|
||||
$tmp_tarif = $db->query($tarif_akomodasi);
|
||||
if ($tmp_tarif->numRows() > 0) {
|
||||
$arr_tarif = array();
|
||||
foreach ($tmp_tarif->fetchAll() as $ds) {
|
||||
$arr_tarif[$ds['kode_tarif'] . '|' . $ds['id_tarif']] = $ds['kode_tarif'] . ' - ' . $ds['uraian_tarif'] . ' - ' . $ds['kelas'] . ' (Rp. ' . format_uang($ds['jumlah']) . ')';
|
||||
$js_tarif_data[$ds['kode_tarif']] = $ds['jumlah'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($row['tanggal_pindah'] != NULL && datetime_to_date_en($row['tanggal_pindah']) != '0000-00-00') {
|
||||
$d1 = new DateTime($row['tgl_awal']);
|
||||
$d2 = new DateTime($row['tanggal_pindah']);
|
||||
$jam = explode(':', datetime_to_time($row['tanggal_pindah']));
|
||||
$diff = $d2->diff($d1);
|
||||
$jml_hari = (datetime_to_date_en($row['tgl_awal']) != datetime_to_date_en($row['tanggal_pindah'])) ? 1 : $diff->format('%a');
|
||||
$jml_hari2 = ($diff->format('%a') == 0) ? 1 : $diff->format('%a');
|
||||
$lama = 0;
|
||||
|
||||
if ($d1->format('Y-m-d') == $d2->format('Y-m-d')) {
|
||||
// jika tanggal pindah sama dengan tanggal masuk dan tidak ada ruang pindah
|
||||
$lama += ($tmp_ruang->numRows() <= 1 || $diff->format('%h') >= 6) ? 1 : 0;
|
||||
|
||||
// jika vip maka tanggal pindah pada hari yang sama plus satu
|
||||
if (preg_match("/VIP/", $row['kelas']) && $lama == 0) {
|
||||
$lama += 1;
|
||||
$sudah_plus_satu = true;
|
||||
}
|
||||
$arr_lama_ruang_pindah[$i] = $diff->format('%h');
|
||||
} elseif ($d1->format('Y-m-d') != $d2->format('Y-m-d')) {
|
||||
if ($i == 1) {
|
||||
// jika record pertama
|
||||
$lama = round(abs(strtotime($d2->format('Y-m-d')) - strtotime($d1->format('Y-m-d'))) / 86400);
|
||||
|
||||
// cek jam pindah
|
||||
if ($jam[0] >= 12) {
|
||||
$lama += 1;
|
||||
$sudah_plus_satu = true;
|
||||
}
|
||||
$arr_lama_ruang_pindah[$i] = $jam[0];
|
||||
} else {
|
||||
// record selanjutnya
|
||||
if ($sudah_plus_satu == true) {
|
||||
$lama = round(abs(strtotime($d2->format('Y-m-d')) - strtotime($d1->format('Y-m-d'))) / 86400);
|
||||
$arr_lama_ruang_pindah[$i] = $jam[0];
|
||||
} else {
|
||||
// $jam_awal = explode(":", datetime_to_time($row['tgl_awal']));
|
||||
// if($diff->format('%h') > 6){
|
||||
// $lama += 1;
|
||||
// }
|
||||
// var_dump($lama);
|
||||
// if($jml_hari2 + $lama > ($jml_hari2+1)) {
|
||||
// $lama = $jml_hari2 + 1;
|
||||
// }
|
||||
// else {
|
||||
$lama = $jml_hari2 + $lama;
|
||||
// }
|
||||
// var_dump($lama);
|
||||
|
||||
if ($sudah_plus_satu == false && $arr_lama_ruang_pindah[$i - 1] != 0 && $arr_lama_ruang_pindah[$i - 1] > 6 && $d1->format('H') < 12) {
|
||||
$lama += 1;
|
||||
$sudah_plus_satu = true;
|
||||
}
|
||||
$arr_lama_ruang_pindah[$i] = $jam[0];
|
||||
}
|
||||
// log_message('error','sudah_plus_satu = '.$sudah_plus_satu.' | Lama dirawat sejak tgl '.$row['tgl_awal'].' s/d '.$row['tanggal_pindah'].' = '.$lama.' / '.$jml_hari2);
|
||||
|
||||
}
|
||||
}
|
||||
// jika tidak terjadi perpindahan, set tanggal pulang = hari ini
|
||||
if ($row['no_ruang_asal'] == $row['no_ruang_pindah']) {
|
||||
$d3 = new DateTime($tgl_request_krs);
|
||||
$diff2 = $d3->diff($d1);
|
||||
$lama2 = $diff2->format('%a');
|
||||
if ($d1->format('Y-m-d') == $d3->format('Y-m-d')) {
|
||||
$lama2 += 1;
|
||||
}
|
||||
$lama_split = '';
|
||||
echo '<tr><td>111' . $i . '</td>
|
||||
<td>' . $row['nama_ruang'] . '<input type="hidden" id="ruang-' . $i . '" value="' . $row['no_ruang_asal'] . '"><input type="hidden" id="nott-' . $i . '" value="' . $row['no_tt_asal'] . '"></td>
|
||||
<td>' . $d1->format('d-m-Y') . '</td>
|
||||
<td>' . $d3->format('d-m-Y H:i:s') . '</td>
|
||||
<td>' . $lama2 . '<input type="hidden" id="jml_hari-' . $i . '" value="' . (!empty($lama_split) ? $lama_split : $lama2) . '"></td>
|
||||
<td>' . $lama_split . '</td>
|
||||
<td>' . form_dropdown('kode_tarif[' . $i . ']', $arr_tarif, '', 'class="form-control tarif_ako" id="tarif_ako-' . $i . '" style="width:100%"') . '</td>
|
||||
<td class="text-right"><span id="jml_total-' . $i . '"></td></tr>';
|
||||
} else {
|
||||
if ($diff->format('%h') <= 3 && $i == 1 && $jml_hari2 == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$lama_split = '';
|
||||
if (empty($row['tanggal_pindah']) || $row['tanggal_pindah'] >= $cut_off) {
|
||||
$d1 = new DateTime($row['tgl_awal']);
|
||||
$d2 = new DateTime($cut_off);
|
||||
|
||||
$diff = $d2->diff($d1);
|
||||
$lama_split = $diff->days + 1;
|
||||
|
||||
}
|
||||
|
||||
echo '<tr><td>2222' . $i . '</td>
|
||||
<td>' . $row['nama_ruang'] . '<input type="hidden" id="ruang-' . $i . '" value="' . $row['no_ruang_asal'] . '"><input type="hidden" id="nott-' . $i . '" value="' . $row['no_tt_asal'] . '"></td>
|
||||
<td>' . $d1->format('d-m-Y') . '</td>
|
||||
<td>' . $d2->format('d-m-Y H:i:s') . '</td>
|
||||
<td>' . $lama . '<input type="hidden" id="jml_hari-' . $i . '" value="' . (!empty($lama_split) ? $lama_split : $lama) . '"></td>
|
||||
<td>' . (!empty($lama_split) ? $lama_split : $lama) . '</td>
|
||||
<td>' . form_dropdown('kode_tarif[' . $i . ']', $arr_tarif, '', 'class="form-control tarif_ako" id="tarif_ako-' . $i . '" style="width:100%"') . '</td>
|
||||
<td class="text-right"><span id="jml_total-' . $i . '"></td></tr>';
|
||||
|
||||
|
||||
if (empty($row['tanggal_pindah']) || $row['tanggal_pindah'] >= '2023-01-31') {
|
||||
$d1 = new DateTime($cut_off);
|
||||
$d2 = new DateTime($row['tanggal_pindah']);
|
||||
|
||||
$diff = $d2->diff($d1);
|
||||
$lama_split = $diff->days + 1;
|
||||
$i = $i + 1;
|
||||
echo '<tr><td>2222 2222' . $i . '</td>
|
||||
<td>' . $row['nama_ruang'] . '<input type="hidden" id="ruang-' . $i . '" value="' . $row['no_ruang_asal'] . '"><input type="hidden" id="nott-' . $i . '" value="' . $row['no_tt_asal'] . '"></td>
|
||||
<td>' . $d1->format('d-m-Y') . '</td>
|
||||
<td>' . $d2->format('d-m-Y H:i:s') . '</td>
|
||||
<td>' . $lama . '<input type="hidden" id="jml_hari-' . $i . '" value="' . (!empty($lama_split) ? $lama_split : $lama) . '"></td>
|
||||
<td>' . (!empty($lama_split) ? $lama_split : $lama) . '</td>
|
||||
<td>' . form_dropdown('kode_tarif[' . $i . ']', $arr_tarif, '', 'class="form-control tarif_ako" id="tarif_ako-' . $i . '" style="width:100%"') . '</td>
|
||||
<td class="text-right"><span id="jml_total-' . $i . '"></td></tr>';
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
$d1 = new DateTime(datetime_to_date_en($row['tgl_awal']));
|
||||
$currdate = new DateTime($tgl_request_krs . " " . date('H:i:s'));
|
||||
$diff = $currdate->diff($d1);
|
||||
|
||||
$jam = explode(':', datetime_to_time($row['tgl_awal']));
|
||||
|
||||
$jam_pulang = explode(":", datetime_to_time($tgl_request_krs . " " . date('H:i:s')));
|
||||
if ($jam_pulang[0] != 0 && $jam_pulang[0] < 12) {
|
||||
$lama = $diff->format('%a');
|
||||
} else {
|
||||
$lama = $diff->format('%a');
|
||||
}
|
||||
if (($sudah_plus_satu == false && ($i < $jml_ruang)) || ($sudah_plus_satu == false && $i == $jml_ruang && $jml_ruang == 2)) {
|
||||
$lama += 1;
|
||||
$sudah_plus_satu = true;
|
||||
if (($total_hari_rawat + $lama) > $jumlah_hari_rawat) {
|
||||
$lama--;
|
||||
}
|
||||
}
|
||||
|
||||
$lama_split = '';
|
||||
if (empty($row['tanggal_pindah']) || $row['tanggal_pindah'] >= $cut_off) {
|
||||
if ($row['tgl_awal'] <= $cut_off && empty($row['tanggal_pindah'])) {
|
||||
$d11 = $d1;
|
||||
$d22 = new DateTime($cut_off);
|
||||
$currdate = new DateTime($tgl_request_krs . " " . date('H:i:s'));
|
||||
|
||||
$diff_split = $d22->diff($d11);
|
||||
$lama_split = $diff_split->days + 1;
|
||||
}
|
||||
}
|
||||
|
||||
echo '<tr><td>3333333' . $i . '</td>
|
||||
<td>' . $row['nama_ruang'] . '<input type="hidden" id="ruang-' . $i . '" value="' . $row['no_ruang_asal'] . '"><input type="hidden" id="nott-' . $i . '" value="' . $row['no_tt_asal'] . '"></td>
|
||||
<td>' . $d1->format('d-m-Y') . '</td>
|
||||
<td>' . $currdate->format('d-m-Y') . '</td>
|
||||
<td>' . $lama . '<input type="hidden" id="jml_hari-' . $i . '" value="' . (!empty($lama_split) ? $lama_split : $lama) . '"></td>
|
||||
<td>' . (!empty($lama_split) ? $lama_split : $lama) . '</td>
|
||||
<td>' . form_dropdown('kode_tarif[' . $i . ']', $arr_tarif, '', 'class="form-control tarif_ako" id="tarif_ako-' . $i . '" style="width:100%"') . '</td>
|
||||
<td class="text-right"><span id="jml_total-' . $i . '"></td></tr>';
|
||||
|
||||
|
||||
if (empty($row['tanggal_pindah']) || $row['tanggal_pindah'] >= $cut_off) {
|
||||
if ($row['tgl_awal'] <= $cut_off && empty($row['tanggal_pindah'])) {
|
||||
$d11 = new DateTime($cut_off);
|
||||
// $d22 =
|
||||
$currdate = new DateTime($tgl_request_krs . " " . date('H:i:s'));
|
||||
|
||||
$diff_split = $currdate->diff($d11);
|
||||
$lama_split = $diff_split->days;
|
||||
echo '<tr><td>3333333' . $i . '</td>
|
||||
<td>' . $row['nama_ruang'] . '<input type="hidden" id="ruang-' . $i . '" value="' . $row['no_ruang_asal'] . '"><input type="hidden" id="nott-' . $i . '" value="' . $row['no_tt_asal'] . '"></td>
|
||||
<td>' . $d1->format('d-m-Y') . '</td>
|
||||
<td>' . $currdate->format('d-m-Y') . '</td>
|
||||
<td>' . $lama . '<input type="hidden" id="jml_hari-' . $i . '" value="' . (!empty($lama_split) ? $lama_split : $lama) . '"></td>
|
||||
<td>' . (!empty($lama_split) ? $lama_split : $lama) . '</td>
|
||||
<td>' . form_dropdown('kode_tarif[' . $i . ']', $arr_tarif, '', 'class="form-control tarif_ako" id="tarif_ako-' . $i . '" style="width:100%"') . '</td>
|
||||
<td class="text-right"><span id="jml_total-' . $i . '"></td></tr>';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
$total_hari_rawat += $lama;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$d1 = new DateTime($userdata['masukrs']);
|
||||
$currdate = new DateTime($tgl_request_krs);
|
||||
$d2 = new DateTime($tgl_request_krs);
|
||||
$d2->add(new DateInterval('P1D'));
|
||||
$diff = $d2->diff($d1);
|
||||
$lama = $diff->format('%a');
|
||||
// if($d1->format('Y-m-d') == $currdate->format('Y-m-d'))
|
||||
// {
|
||||
$lama += 1;
|
||||
// }
|
||||
|
||||
$tarif_akomodasi = "SELECT *,(select nilai from m_tarifdetil where komponen like '%SARANA%' and kode_tarif = m_tarif_rs.kode_tarif) as jasa_sarana, (select nilai from m_tarifdetil where komponen like '%LAYANAN%' and kode_tarif = m_tarif_rs.kode_tarif) as jasa_pelayanan,pengguna from m_tarif_rs join m_tarifpengguna on m_tarif_rs.kode_tarif = m_tarifpengguna.kode_tarif join m_tarifkelas on m_tarif_rs.kelas_tarif = m_tarifkelas.kelas where (kelompok_tarif in('PERAWATAN') or kelompok_tarif in('AKOMODASI')) and (m_tarif_rs.kelas_tarif like '" . trim($userdata['idx_ruang']) . "%' or m_tarif_rs.kelas_tarif like 'REGULER%') and m_tarif_rs.aktif = 1";
|
||||
$tmp_tarif = $db->query($tarif_akomodasi);
|
||||
if ($tmp_tarif->numRows() > 0) {
|
||||
$arr_tarif = array();
|
||||
foreach ($tmp_tarif->fetchAll() as $ds) {
|
||||
$arr_tarif[$ds['kode_tarif'] . '|' . $ds['id_tarif']] = $ds['kode_tarif'] . ' - ' . $ds['uraian_tarif'] . ' - ' . $ds['kelas'] . ' (Rp. ' . format_uang($ds['jumlah']) . ')';
|
||||
$js_tarif_data[$ds['kode_tarif']] = $ds['jumlah'];
|
||||
}
|
||||
}
|
||||
|
||||
$tgl_masuk = date('Y-m-d', strtotime($userdata['masukrs']));
|
||||
$tgl_pindah = '';
|
||||
$lama_split = '';
|
||||
$cut_off = '2023-01-31';
|
||||
if ($tgl_masuk <= '2023-01-31' && empty($tgl_pindah)) {
|
||||
$d11 = $d1;
|
||||
$d22 = new DateTime($cut_off);
|
||||
$currdate = new DateTime($tgl_request_krs . " " . date('H:i:s'));
|
||||
|
||||
$diff_split = $d22->diff($d11);
|
||||
$lama_split = $diff_split->days + 1;
|
||||
}
|
||||
$i = 1;
|
||||
echo '<tr><td>444444' . $i . '</td>
|
||||
<td>' . $userdata['ruang'] . '<input type="hidden" id="ruang-' . $i . '" value="' . $userdata['noruang'] . '"><input type="hidden" id="nott-' . $i . '" value="' . $row['nott'] . '"></td>
|
||||
<td>' . $d1->format('d-m-Y') . '</td>
|
||||
<td>' . $currdate->format('d-m-Y') . '</td>
|
||||
<td>' . $lama . '<input type="hidden" id="jml_hari-' . $i . '" value="' . (!empty($lama_split) ? $lama_split : $lama) . '"></td>
|
||||
<td>' . (!empty($lama_split) ? $lama_split : $lama) . '</td>
|
||||
<td>' . form_dropdown('kode_tarif[' . $i . ']', $arr_tarif, '', 'class="form-control tarif_ako" id="tarif_ako-' . $i . '" style="width:100%"') . '</td>
|
||||
<td class="text-right"><span id="jml_total-' . $i . '"></td></tr>';
|
||||
|
||||
|
||||
if ($tgl_masuk <= '2023-01-31' && empty($tgl_pindah)) {
|
||||
$d11 = new DateTime($cut_off);
|
||||
// $d22 = ;
|
||||
$currdate = new DateTime($tgl_request_krs . " " . date('H:i:s'));
|
||||
|
||||
$diff_split = $currdate->diff($d11);
|
||||
$lama_split = $diff_split->days + 1;
|
||||
$i = $i + 1;
|
||||
echo '<tr><td>444444 xxxx' . $i . '</td>
|
||||
<td>' . $userdata['ruang'] . '<input type="hidden" id="ruang-' . $i . '" value="' . $userdata['noruang'] . '"><input type="hidden" id="nott-' . $i . '" value="' . $row['nott'] . '"></td>
|
||||
<td>' . $d1->format('d-m-Y') . '</td>
|
||||
<td>' . $currdate->format('d-m-Y') . '</td>
|
||||
<td>' . $lama . '<input type="hidden" id="jml_hari-' . $i . '" value="' . (!empty($lama_split) ? $lama_split : $lama) . '"></td>
|
||||
<td>' . (!empty($lama_split) ? $lama_split : $lama) . '</td>
|
||||
<td>' . form_dropdown('kode_tarif[' . $i . ']', $arr_tarif, '', 'class="form-control tarif_ako" id="tarif_ako-' . $i . '" style="width:100%"') . '</td>
|
||||
<td class="text-right"><span id="jml_total-' . $i . '"></td></tr>';
|
||||
|
||||
}
|
||||
|
||||
$total_hari_rawat += $lama;
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label col-sm-4 text-right">Tanggal KRS</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" name="tgl_krs" id="tgl_krs" value="<?php echo $tgl_request_krs . " " . date('H:i:s'); ?>"
|
||||
class="mask-date-default datepicker-default form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Jumlah Hari Rawat</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<?php
|
||||
echo $jumlah_hari_rawat . " hari";
|
||||
?>
|
||||
<input type="hidden" name="qty" id="jml_hari_rawat" value="<?php echo $jumlah_hari_rawat; ?>">
|
||||
<?php
|
||||
if ($total_hari_rawat != $jumlah_hari_rawat) {
|
||||
// echo '<div class="pull-right">
|
||||
// <button type="button" class="btn btn-sm btn-outline-warning" id="btn_fix_hari_rawat" title="Jika jumlah hari rawat tidak sama dengan total, maka klik tombol ini">Perbaikan</button>
|
||||
// </div>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Total Biaya Akomodasi</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left" id="total_biaya">
|
||||
<input type="text" name="totaltarif" id="total_tarif" readonly="true" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
var akomodasi = []
|
||||
|
||||
function hitungAkomodasiNew() {
|
||||
total_tarif = 0;
|
||||
akomodasi = [];
|
||||
console.log($(".tarif_ako_new").val())
|
||||
$(".tarif_ako_new").each(function (e) {
|
||||
var tarif = $(this).find(":selected").val();
|
||||
var split_tarif = tarif.split("|");
|
||||
var split_id = $(this).prop("id").split("-");
|
||||
var jml = $("#jml_hari_new-" + split_id[1]).val();
|
||||
var ruang = $("#ruang_new-" + split_id[1]).val();
|
||||
var nott = $("#nott_new-" + split_id[1]).val();
|
||||
var jumlah = parseFloat(jml) * parseFloat(dt_tarif[split_tarif[0]]);
|
||||
console.log("split :" + parseFloat(dt_tarif[split_tarif[0]]));
|
||||
console.log("jml :" + jml)
|
||||
console.log("jumlah :" + jumlah)
|
||||
console.log("tarif :" + split_tarif)
|
||||
$("#jml_total_new-" + split_id[1]).text(accounting.formatMoney(jumlah));
|
||||
total_tarif += jumlah;
|
||||
console.log("-------------------")
|
||||
console.log(akomodasi.length)
|
||||
if (akomodasi.length > 0) {
|
||||
/*for(i = 0; i < akomodasi.length; i++) {
|
||||
if(split_tarif[0] == akomodasi[i][0]) {
|
||||
break;
|
||||
}
|
||||
else {*/
|
||||
akomodasi.push([split_tarif[0], jml, ruang, nott, dt_tarif[split_tarif[0]], split_tarif[1], parseFloat(jml)]);
|
||||
/* }
|
||||
}*/
|
||||
} else {
|
||||
akomodasi.push([split_tarif[0], jml, ruang, nott, dt_tarif[split_tarif[0]], split_tarif[1], parseFloat(jml)]);
|
||||
}
|
||||
});
|
||||
console.log(accounting.formatMoney(total_tarif));
|
||||
$("#total_tarif_new").val(accounting.formatMoney(total_tarif));
|
||||
$("#btnSimpanAkomodasiNew").prop("disabled", false);
|
||||
}
|
||||
|
||||
function simpanAkomodasiNew(elm) {
|
||||
|
||||
var idx = $(elm).data("ix");
|
||||
var dokter = null;
|
||||
var kriteria = null;
|
||||
var kompleksitas = null;
|
||||
var disc = $(elm).data("disc");
|
||||
var adm = $(elm).data("adm");
|
||||
var nomr = $(elm).data("nomr");
|
||||
var carabayar = $(elm).data("carabayar");
|
||||
|
||||
//update tanggal keluarrs
|
||||
tgl_krs = $("#tgl_krs").val();
|
||||
$.post("<?php echo _BASE_;?>include/master.php?keluar_rs=1", {tgl_krs, idx}, function (data) {
|
||||
console.log(data.message, data.type);
|
||||
}, "json");
|
||||
|
||||
var i = 0;
|
||||
akomodasi.forEach(async function (v) {
|
||||
kode = v[0];
|
||||
qty = v[1];
|
||||
poly = v[2];
|
||||
nott = v[3];
|
||||
tarif = v[4];
|
||||
id = v[5];
|
||||
faktor = v[6];
|
||||
|
||||
const p1 = await $.post("<?php echo _BASE_;?>save_tmp_cartbayar.php", {
|
||||
kode,
|
||||
dokter,
|
||||
poly,
|
||||
id,
|
||||
faktor
|
||||
}, function (data) {
|
||||
});
|
||||
|
||||
handleSubmitNew(p1, null, i, idx, nomr, carabayar, nott, poly);
|
||||
i++;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function handleSubmitNew(proses1, proses2, index, id_admission, nomr, carabayar, nott, poly) {
|
||||
if (index == (akomodasi.length - 1)) {
|
||||
/*window.location= "'._BASE_.'index.php?link=34a&idxb="+id_admission+"&nobill='.$userdata['nobill'].'";*/
|
||||
tgl_request_krs = "'.$tgl_request_krs.'";
|
||||
|
||||
const p2 = $.post("<?php echo _BASE_;?>cartbill_save_bayar_ranap.php", {
|
||||
nomr: nomr,
|
||||
noruang: poly,
|
||||
idxdaftar: id_admission,
|
||||
carabayar,
|
||||
nott,
|
||||
tgl_request_krs
|
||||
}, function (data) {
|
||||
print_akomodasiNew(data.nonota);
|
||||
}, "json");
|
||||
}
|
||||
}
|
||||
|
||||
function print_akomodasiNew(nonota) {
|
||||
var nomr = $("#nomr").val();
|
||||
var nobill = $("#nobill_bayar").val();
|
||||
var idxdaftar = $("#id_admission").val();
|
||||
|
||||
jspm_print('<?php echo _BASE_; ?>print_nota_tindakan.php?rajal_status=0&nomr=' + nomr + '&idxdaftar=' + idxdaftar + '&nobill=' + nobill + '&nonota=' + nonota, 'modal-cartbill', 'Nota Tindakan ' + nomr + '.pdf', 0);
|
||||
|
||||
cek_tombol_cetak = $("#cetak_raw").length;
|
||||
if (cek_tombol_cetak > 0) {
|
||||
$("#cetak_raw").remove();
|
||||
}
|
||||
$("#modal-cartbill .modal-footer").append("<button type=\"button\" id=\"cetak_raw\" class=\"btn btn-primary\" onclick=\"printRawAkomodasiNew(0," + nomr + "," + idxdaftar + "," + nobill + ",'" + nonota + "',0)\"><i class=\"fa fa-print\"></i> Cetak</button>");
|
||||
}
|
||||
|
||||
function printRawAkomodasiNew(rajal_status, nomr, idxdaftar, nobill, nonota, aps) {
|
||||
$.post("<?php echo _BASE_;?>print_nota_tindakan.php", {
|
||||
rajal_status,
|
||||
nomr,
|
||||
idxdaftar,
|
||||
nobill,
|
||||
nonota,
|
||||
aps,
|
||||
raw: 1
|
||||
}, function (print_command) {
|
||||
jspm_print_raw(print_command);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,293 @@
|
||||
<?php
|
||||
$kd_rambulance = $_SESSION['kd_unit_kendaraan'];
|
||||
$kel_smf_tarif = $_SESSION['kel_tarif_kendaraan'];
|
||||
|
||||
$sql = $db->query('SELECT * from m_form_lab where unit_form= \''.$kd_rambulance.'\' and aktif=1');
|
||||
$arr_form = array();
|
||||
if($sql->numRows() > 0) {
|
||||
foreach($sql->fetchAll() as $data_form)
|
||||
{
|
||||
$arr_form[$data_form['group_form']][$data_form['jenis_kelompok']][$data_form['form_id']] = $data_form['nama_field'];
|
||||
}
|
||||
}
|
||||
$query_hist = "SELECT * from t_orderambulance_main WHERE NOMR = '{$userdata['nomr']}' and IDXDAFTAR = '$id_admission' and st_aktif = 1 and rajal = 0";
|
||||
|
||||
$tmp_hist = $db->query($query_hist);
|
||||
|
||||
$script_hist = '';
|
||||
if($tmp_hist)
|
||||
{
|
||||
$jml_hist = $tmp_hist->numRows();
|
||||
$script_hist = '<script>$(document).ready(function(){
|
||||
var count_ambulance = '.$jml_hist.';
|
||||
$("button.cart_ambulance > span").addClass("counter");
|
||||
$("button.cart_ambulance > span.counter").text(count_ambulance);
|
||||
});</script>';
|
||||
}
|
||||
echo $script_hist;
|
||||
?>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var count_ambulance = 0;
|
||||
$('#simpan_orderambulance').click(function(){
|
||||
$('#simpan_orderambulance').prop("disabled",true);
|
||||
$.post('<?php echo _BASE_;?>ambulance/save_form_orderambulance.php',$('#order_ambulance').serialize(),function(data){
|
||||
if(parseInt(data) != 0){
|
||||
$msg = 'Order Pemeriksaan Ruang ambulance Sudah di Prosess.';
|
||||
$type = 'success';
|
||||
|
||||
count_ambulance++;
|
||||
$("a.add-ambulance").addClass("size");
|
||||
setTimeout(function() {
|
||||
$("a.add-ambulance").addClass("hover");
|
||||
}, 200);
|
||||
setTimeout(function() {
|
||||
$("button.cart_ambulance > span").addClass("counter");
|
||||
$("button.cart_ambulance > span.counter").text(count_ambulance);
|
||||
}, 400);
|
||||
setTimeout(function() {
|
||||
$("a.add-ambulance").removeClass("hover");
|
||||
$("a.add-ambulance").removeClass("size");
|
||||
}, 600);
|
||||
}else{
|
||||
$msg = 'Prosess Order Pemeriksaan Ruang ambulance Gagal.';
|
||||
$type = 'error';
|
||||
}
|
||||
Toast.fire({title:$msg,type:$type,onClose : function(){
|
||||
$("#order_ambulance").trigger("reset");
|
||||
$("#order_ambulance_select").val("").trigger("change");
|
||||
$('#simpan_orderambulance').prop("disabled",false);
|
||||
}});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$("#order_ambulance_select").select2({multiple:true,tags:true})
|
||||
.on("select2:select",function(e){
|
||||
var data = e.params.data;
|
||||
cb_ambulance(data);
|
||||
$(this).select2('open');
|
||||
})
|
||||
.on("select2:unselect",function(e){
|
||||
var data = e.params.data;
|
||||
cb_ambulance(data);
|
||||
$(this).select2('open');
|
||||
});
|
||||
|
||||
$arr_ordeambulance = [];
|
||||
$(".checkbox_rambulance").on("click",function(){
|
||||
$var_check = $(this).prop("checked");
|
||||
$var_id = $(this).val();
|
||||
if($var_check == true)
|
||||
{
|
||||
$arr_ordeambulance.push($var_id);
|
||||
$("#order_ambulance_select").val($arr_ordeambulance).trigger('change');
|
||||
}
|
||||
else {
|
||||
var pos = $.inArray($var_id,$arr_ordeambulance);
|
||||
$arr_ordeambulance.splice(pos,1);
|
||||
$("#order_ambulance_select").val($arr_ordeambulance).trigger('change');
|
||||
}
|
||||
});
|
||||
|
||||
$('#btn_hist_ambulance').click(function(){
|
||||
var idx = $('#idxdaftar').val();
|
||||
var nomr = $('#nomr').val();
|
||||
var rajal_status = $('#rajal_status').val();
|
||||
$.post('<?php echo _BASE_;?>ambulance/history_ambulance.php',{idxdaftar:idx,nomr:nomr,rajal:rajal_status},function(data) {
|
||||
$("#hist_ambulance-modal .modal-body").html(data);
|
||||
$("#hist_ambulance-modal").modal("show");
|
||||
|
||||
jQuery('#history_ambulance_item').delegate('.batalorder','click',function(){
|
||||
nolab = jQuery(this).data('nolab');
|
||||
kdlab = jQuery(this).data('kdlab');
|
||||
Swal.fire({
|
||||
title: 'Anda Yakin?',
|
||||
text: "Anda akan membatalkan order ambulance dengan Nomor Order "+nolab,
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Ya, Batalkan!'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
$.post("<?php echo _BASE_.'lab/batal_order_lab.php'; ?>",{nolab:nolab,lab:kdlab},function(hasil){
|
||||
Toast.fire({title:hasil.message,type:hasil.type});
|
||||
$("#hist_ambulance-modal").modal("hide");
|
||||
},"json");
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$("body").append($("#hist_ambulance-template").html());
|
||||
});
|
||||
function cb_ambulance(elem)
|
||||
{
|
||||
if(elem.selected == false){
|
||||
id=elem.id.replace(/\./g,'');
|
||||
$("#c"+id).prop("checked",false);
|
||||
$("#c"+id).removeAttr("checked");
|
||||
}
|
||||
else {
|
||||
id=elem.id.replace(/\./g,'');
|
||||
$("#c"+id).prop("checked",true);
|
||||
}
|
||||
}
|
||||
function cb_visible(elem)
|
||||
{
|
||||
id = $(elem).data("id");
|
||||
if($("#ket"+id).css("visibility") == 'hidden')
|
||||
{
|
||||
$("#ket"+id).css("visibility",'visible');
|
||||
}
|
||||
else {
|
||||
$("#ket"+id).css("visibility",'hidden');
|
||||
}
|
||||
}
|
||||
function cbtind_visible(elem)
|
||||
{
|
||||
id = $(elem).data("id");
|
||||
if($("#ketc"+id).css("visibility") == 'hidden')
|
||||
{
|
||||
$("#ketc"+id).css("visibility",'visible');
|
||||
}
|
||||
else {
|
||||
$("#ketc"+id).css("visibility",'hidden');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="row bg-light pt-2 pb-2 text-left">
|
||||
<div class="col-sm-6">
|
||||
<button type="button" class="btn btn-outline-success cart_ambulance" id="btn_hist_ambulance">History Order Ambulance<span></span></button>
|
||||
<a name="simpan" href="javascript:void(0);" id="simpan_orderambulance" class="btn btn-primary add-ambulance">S I M P A N</a>
|
||||
</div>
|
||||
</div>
|
||||
<template id="hist_ambulance-template">
|
||||
<div class="modal fade hist_ambulance-modal-lg" id="hist_ambulance-modal" tabindex="-1" role="dialog" aria-labelledby="HistLabModal" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" style="max-width: 80%">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">History Order ambulance</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body"></div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<div class="row">
|
||||
|
||||
</div>
|
||||
<form id="order_ambulance">
|
||||
<input type="hidden" id="countambulance_id" value="<?php echo $jml_hist; ?>" />
|
||||
<input type="hidden" name="ruang" value="<?php echo $noruang; ?>" />
|
||||
<input type="hidden" name="nott" value="<?php echo $userdata['nott']; ?>" />
|
||||
<input type="hidden" name="aps" value="0" />
|
||||
<input type="hidden" name="nomr" id="nomr" value="<?php echo $userdata['nomr']; ?>" />
|
||||
<input type="hidden" name="idxdaftar" id="idxdaftar"value="<?php echo $id_admission; ?>" />
|
||||
<input type="hidden" name="kddokter" id="dokter_rad" value="<?php echo $kddokter; ?>" />
|
||||
<input type="hidden" name="unit" value="<?php echo $kdpoly; ?>" />
|
||||
<input type="hidden" name="carabayar" value="<?php echo $userdata['statusbayar']; ?>" />
|
||||
<input type="hidden" name="rajal_status" id="rajal_status" value="0" />
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Keterangan Umum</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" name="pk[main][DIAGNOSA]" class="form-control" placeholder="Keterangan Umum">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-tabs">
|
||||
<?php
|
||||
$i = 1;
|
||||
foreach($arr_form['Pemeriksaan'] as $jenis => $arr_item)
|
||||
{
|
||||
$clean_nama = preg_replace("/( )|(\r\n)|(\n)/", "", trim($jenis));
|
||||
$active = ($i == 1) ? 'active' : '';
|
||||
$ariaselected = ($i == 1) ? 'true' : 'false';
|
||||
echo '<li class="nav-item"><a class="nav-link '.$active.'" data-toggle="tab" id="tabs-'.$clean_nama.'-tab" href="#'.$clean_nama.'" role="tab" aria-controls="tabs-'.$clean_nama.'" aria-selected="'.$ariaselected.'">'.$jenis.'</a></li>';
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<div class="row text-left">
|
||||
<div class="col-sm-12">
|
||||
<div class="tab-content">
|
||||
<?php
|
||||
$i = 1;
|
||||
$jml = count($arr_form['Pemeriksaan']);
|
||||
foreach($arr_form['Pemeriksaan'] as $jenis => $arr_item)
|
||||
{
|
||||
$active = ($i == 1) ? 'show active' : '';
|
||||
$clean_nama = preg_replace("/( )|(\r\n)|(\n)/", "", trim($jenis));
|
||||
|
||||
echo '<div class="tab-pane fade '.$active.'" id="'.$clean_nama.'" role="tabpanel" aria-labelledby="'.$clean_nama.'-tab" >';
|
||||
// asort($arr_item);
|
||||
$j=0;
|
||||
$key = array_keys($arr_item);
|
||||
// foreach($arr_item as $id => $nama_field){
|
||||
for($j = 0; $j < count($key); $j+=3){
|
||||
$id = $key[$j];
|
||||
$nama = $arr_item[$id];
|
||||
$id2 = $key[$j+1];
|
||||
$nama2 = $arr_item[$id2];
|
||||
$id3 = $key[$j+2];
|
||||
$nama3 = $arr_item[$id3];
|
||||
|
||||
echo '<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="pk[pemeriksaan][form_id]['.$id.']" value='.$id.' id="c'.$id.'" data-id="'.$i.$j.'" onclick="cbtind_visible(this)" class="form-check-input checkbox_rambulance">
|
||||
<label class="form-check-label" style="vertical-align:top" for="c'.$id.'"> '.$nama.'</label>
|
||||
</div>
|
||||
<div class="form-group row pl-4">
|
||||
<input type="text" class="form-control" name="pk[pemeriksaan][keterangan]['.$id.']" placeholder="Keterangan" style="width:50%">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">';
|
||||
if($id2 != '') {
|
||||
echo '
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="pk[pemeriksaan][form_id]['.$id2.']" value='.$id2.' id="c'.$id2.'" data-id="'.$i.($j+1).'" onclick="cbtind_visible(this)" class="form-check-input checkbox_rambulance">
|
||||
<label class="form-check-label" style="vertical-align:top" for="c'.$id2.'"> '.$nama2.'</label>
|
||||
</div>
|
||||
<div class="form-group row pl-4">
|
||||
<input type="text" class="form-control" name="pk[pemeriksaan][keterangan]['.$id2.']" placeholder="Keterangan" style="width:50%">
|
||||
</div>';
|
||||
}
|
||||
echo '</div>
|
||||
<div class="col-sm-4">';
|
||||
|
||||
if($id3 != '') {
|
||||
echo '<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="pk[pemeriksaan][form_id]['.$id3.']" value='.$id3.' id="c'.$id3.'" data-id="'.$i.($j+2).'" onclick="cbtind_visible(this)" class="form-check-input checkbox_rambulance">
|
||||
<label class="form-check-label" style="vertical-align:top" for="c'.$id3.'"> '.$nama3.'</label>
|
||||
</div>
|
||||
<div class="form-group row pl-4">
|
||||
<input type="text" class="form-control" name="pk[pemeriksaan][keterangan]['.$id3.']" placeholder="Keterangan" style="width:50%">
|
||||
</div>';
|
||||
}
|
||||
echo '</div>
|
||||
</div>'.PHP_EOL;
|
||||
}
|
||||
|
||||
echo '<input type="text" name="pk[main][ket_pemeriksaan]['.$jenis.']" class="form-control" placeholder="Catatan Pemeriksaan '.$jenis.'">
|
||||
</div>';
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,295 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."' and status_aktif = 1";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
|
||||
$sql_dokter_gizi = $db->query("SELECT * FROM public.m_dokter WHERE kdsmf LIKE '%GIZI%'");
|
||||
$arr_dokter_gizi = array();
|
||||
foreach($sql_dokter_gizi->fetchAll() as $ds)
|
||||
{
|
||||
$arr_dokter_gizi[$ds['kddokter']] = $ds['namadokter'];
|
||||
}
|
||||
?>
|
||||
|
||||
<h3 class="text-center">ASSESMEN ULANG NYERI</h3>
|
||||
<form method="post" id="dokumen_form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
<div class="row text-left">
|
||||
<div class="col-md-12 col-lg-12 mt-5">
|
||||
<div class="form-group">
|
||||
<label style="font-weight: bold;">Skor Nyeri</label>
|
||||
<div class="control">
|
||||
<?php
|
||||
$list_skor_nyeri = ['0 : Tidak Nyeri', '1-3 : Nyeri Ringan','4-6 : Nyeri Sedang','7-10 : Nyeri Berat'];
|
||||
$arr_skor_nyeri = array_combine(array_keys($list_skor_nyeri), array_values($list_skor_nyeri));
|
||||
echo form_input_radio('jenisoperasi', $arr_skor_nyeri, 'Kecil', 'jenisoperasi');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-3">
|
||||
<label style="font-weight: bold;">Paser-Mc Caffery Opioid-Induced Sedation Scale (POSS)</label>
|
||||
<div class="control">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="input[pasero_mc]" id="exampleRadios1" value="option1" checked>
|
||||
<label class="form-check-label" for="exampleRadios1">
|
||||
4: Somnolent, minimal / Tidak respons terhadap Rangsangan Fisik
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="input[pasero_mc]" id="exampleRadios3" value="option1" checked>
|
||||
<label class="form-check-label" for="exampleRadios3">
|
||||
2: Agak mengantuk, mudah dibangunkan
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="input[pasero_mc]" id="exampleRadios2" value="option1" checked>
|
||||
<label class="form-check-label" for="exampleRadios2">
|
||||
3: sering mengantuk, bisa dibangunkan, mudah tertidur saat sedang berbicara
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="input[pasero_mc]" id="exampleRadios4" value="option1" checked>
|
||||
<label class="form-check-label" for="exampleRadios4">
|
||||
1: Bangun dan sadar', 's: Tidur, mudah dibangunkan
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-3">
|
||||
<label style="font-weight: bold;">Intervensi Non-Farmakologi</label>
|
||||
<div class="control">
|
||||
<?php
|
||||
$list_jenis_operasi = ['1: Dingin', '2: Panas', '3: Posisi', '4: Pijat','5: Musik', '6: TENS', '7: Relaksasi dan Pernafasan'];
|
||||
$arr_jenis_operasi = array_combine(array_keys($list_jenis_operasi), array_values($list_jenis_operasi));
|
||||
echo form_input_radio('jenisoperasi', $arr_jenis_operasi, 'Kecil', 'jenisoperasi');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-3">
|
||||
<label style="font-weight: bold;">Pengkajian Ulang</label>
|
||||
<div class="control">
|
||||
<table >
|
||||
<tr>
|
||||
<td><?php
|
||||
$list_jenis_operasi = ['15 Menit setelah intervensi obat injeksi', '1 jam setelah intervensi obat oral/lainnya', '1x shift bila skor nyeri 1 -3', 'Setiap 3 jam bila skor nyeri 4-6','Setiap 1 jam bila skor nyeri 7 - 10', 'Dihentikan bila skor nyeri 0'];
|
||||
$arr_jenis_operasi = array_combine(array_keys($list_jenis_operasi), array_values($list_jenis_operasi));
|
||||
echo form_input_radio('jenisoperasi', $arr_jenis_operasi, 'Kecil', 'jenisoperasi');?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-9 col-lg-9 mt-5">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Tanggal</label>
|
||||
<div class="control">
|
||||
<input type="text" readonly class="datepicker-filter mask-date-filter form-control" name="input[tanggal]" value="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Skor Nyeri</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[skor_nyeri]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Skor Sedasi</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[skor_sedasi]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label >Tekanan Darah</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[tekanan_darah]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label >Nadi</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[nadi]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label >Suhu</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[suhu]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label >Pernafasan</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[pernafasan]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Perawatan/Bidan(Nama)</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[perawatan_nama]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Perawatan/Bidan(Paraf)</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[perawatan_paraf]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Intervensi Farmakologi(Nama Obat)</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[farmakologi_nama_obat]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Intervensi Farmakologi(Dosis dan Frekuensi)</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[farmakologi_dosis]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Intervensi Farmakologi(Rute)</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[farmakologi_rute]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label >Intervensi Non Farmakologi</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[farmakologi_rute]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Perawatan/Bidan(Nama)</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[perawatan_nama2]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<label >Perawatan/Bidan(Paraf)</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[perawatan_paraf2]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label >Waktu kaji</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[farmakologi_rute]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="control">
|
||||
<button class="btn btn-primary mt-5">S I M P A N</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$('.custom-file-input').on('change', function() {
|
||||
let fileName = $(this).val().split('\\').pop();
|
||||
$(this).next('.custom-file-label').addClass("selected").html(fileName);
|
||||
});
|
||||
$("#btn_simpan_dokumen").click(function(){
|
||||
var fd = new FormData($("#dokumen_form")[0]);
|
||||
|
||||
// if($("#file_dokumen").length > 0) { fd.append('file_dokumen', $('#file_dokumen')[0].files[0]) }
|
||||
|
||||
$.ajax({
|
||||
method:"post",
|
||||
url : "rajal/save_dokumen.php",
|
||||
data : fd,
|
||||
contentType:false,
|
||||
processData:false,
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
Toast.fire({title:result.message,type:result.type,onClose : function() {
|
||||
window.location.reload();
|
||||
}});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function preview_file(file)
|
||||
{
|
||||
$.post("<?php echo _BASE_.'include/master.php'; ?>",{viewer:1,filepath:file},function(data){
|
||||
$("#print_body").html("");
|
||||
$("#print_body").html("<iframe name=\"print_out\" src=\""+data+"\" frameborder=\"0\" style=\"width:100%;height:450px\" id=\"report-frame\"></iframe>");
|
||||
$("#modal-preview .btn-success").css("display","none");
|
||||
$("#modal-preview").modal("show");
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
$id_admission = $_REQUEST['indeks'];
|
||||
$no_ruang = $_REQUEST['no_ruang'];
|
||||
$nott = $_REQUEST['nott'];
|
||||
|
||||
$sql_kondisi = "SELECT * FROM t_admission WHERE noruang='$no_ruang' AND nott='$nott' AND keluarrs IS NULL";
|
||||
$kondisi = $db->query($sql_kondisi);
|
||||
$jmlh_data = $kondisi->numRows();
|
||||
|
||||
if($jmlh_data >= 1){
|
||||
echo '<script>alert("Kamar sebelumnya sudah terisi, pilih kamar kosong lainnya.")</script>';
|
||||
echo '<script>window.location = "'._BASE_.'index.php?link=129y&indeks='.$id_admission.'&historyback=12"</script>';
|
||||
}else{
|
||||
|
||||
$sql2 = "DELETE FROM t_resumepulang WHERE IDADMISSION='".$id_admission."'";
|
||||
$sql1 = "DELETE FROM t_resumemedis WHERE IDXRANAP ='".$id_admission."'";
|
||||
$sql = "UPDATE t_admission SET keluarrs=NULL, icd_keluar='' WHERE id_admission='".$id_admission."'";
|
||||
$db->query($sql2);
|
||||
$db->query($sql1);
|
||||
$db->query($sql);
|
||||
echo '<script>alert("Pasien kembali masuk sukses!");window.location = "'._BASE_.'index.php?link=12";</script>';
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,159 @@
|
||||
<?php
|
||||
// include '../core/main.php';
|
||||
// include '../include/function.php';
|
||||
|
||||
$editFormAction = $_SERVER['PHP_SELF'];
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
|
||||
}
|
||||
|
||||
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
|
||||
|
||||
$sql = "DELETE FROM t_resumepulang WHERE IDADMISSION='".$_GET['indeks']."'";
|
||||
$sql = "UPDATE t_admission SET keluarrs=NULL, icd_keluar='' WHERE id_admission='".$_GET['indeks']."'";
|
||||
$db->query($sql);
|
||||
|
||||
$updateSQL = sprintf("UPDATE t_admission SET nomr=%s, dokterpengirim=%s, statusbayar=%s, kirimdari=%s, keluargadekat=%s, panggungjawab=%s, masukrs=%s, noruang=%s, nott=%s, deposit=%s, noruang_asal=%s, nott_asal=%s, tgl_pindah=%s, kd_rujuk=%s WHERE id_admission=%s",
|
||||
GetSQLValueString($_POST['nomr'], "text"),
|
||||
GetSQLValueString($_POST['dokterpengirim'], "text"),
|
||||
GetSQLValueString($_POST['statusbayar'], "text"),
|
||||
GetSQLValueString($_POST['kirimdari'], "text"),
|
||||
GetSQLValueString($_POST['keluargadekat'], "text"),
|
||||
GetSQLValueString($_POST['panggungjawab'], "text"),
|
||||
GetSQLValueString($_POST['masukrs'], "date"),
|
||||
GetSQLValueString($_POST['noruang'], "int"),
|
||||
GetSQLValueString($_POST['nott'], "text"),
|
||||
GetSQLValueString($_POST['deposit'], "int"),
|
||||
GetSQLValueString($_POST['noruang_asal'], "int"),
|
||||
GetSQLValueString($_POST['nott_asal'], "int"),
|
||||
GetSQLValueString($_POST['tgl_pindah'], "date"),
|
||||
GetSQLValueString($_POST['kd_rujuk'], "int"),
|
||||
GetSQLValueString($_POST['id_admission'], "int"));
|
||||
$Result1 = $db->query($updateSQL);
|
||||
$updateGoTo = "index.php?p=list";
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
|
||||
$updateGoTo .= $_SERVER['QUERY_STRING'];
|
||||
}
|
||||
$historyback = 12;
|
||||
if($_REQUEST['historyback'] !=''){
|
||||
$historyback = $_REQUEST['historyback'];
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
alert("Pasien kembali masuk sukses!");
|
||||
window.location="?link=<?php echo $historyback; ?>";
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
||||
$query_rse = "select a.*, b.NAMA
|
||||
from t_admission a
|
||||
join m_pasien b on b.nomr = a.nomr
|
||||
where a.id_admission='".$_GET['indeks']."'";
|
||||
$rse = $db->query($query_rse);
|
||||
$row_rse = $rse->fetchAll()[0];
|
||||
$totalRows_rse = $rse->numRows();
|
||||
|
||||
?>
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title"><h5>Form Kembali Masuk Pindah Ruang</h5></div>
|
||||
|
||||
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
|
||||
<table align="center" class="tb">
|
||||
<!--
|
||||
<tr valign="baseline"><td width="99" align="left" nowrap="nowrap">ID Admission</td><td width="252"><?php echo $row_rse['id_admission']; ?></td>
|
||||
</tr>
|
||||
-->
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">NOMR</td>
|
||||
<td><input type="hidden" name="nomr" class="text" value="<?php echo htmlentities($row_rse['nomr'], ENT_COMPAT, 'utf-8'); ?>" size="32" /><?php echo htmlentities($row_rse['nomr'], ENT_COMPAT, 'utf-8'); ?></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">NAMA</td>
|
||||
<td><?php echo $row_rse['NAMA'];?></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Masuk Rumah Sakit</td>
|
||||
<td><input type="text" name="masukrs" id="tgl_masuk" readonly="readonly" class="text"
|
||||
value="<?php echo htmlentities($row_rse['masukrs'], ENT_COMPAT, 'utf-8'); ?>"/><a href="javascript:showCal('Calendary')"><img align="top" src="img/date.png" border="0" /></a></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Dokter Pengirim</td>
|
||||
<td>
|
||||
<?php
|
||||
$dktr = getNamaDokter($row_rse['dokterpengirim']);
|
||||
echo $dktr['NAMADOKTER'];
|
||||
?>
|
||||
<input type="hidden" class="text" name="dokterpengirim" value="<?php echo htmlentities($row_rse['dokterpengirim'], ENT_COMPAT, 'utf-8'); ?>" size="32" />
|
||||
<input type="hidden" name="kirimdari" value="<?php echo htmlentities($row_rse['kirimdari'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="noruang_asal" value="<?php echo htmlentities($row_rse['noruang'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="nott_asal" value="<?php echo htmlentities($row_rse['nott'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="kd_rujuk" value="<?php echo htmlentities($row_rse['kd_rujuk'], ENT_COMPAT, 'utf-8'); ?>"/></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Keluarga Dekat</td>
|
||||
<td><input type="text" class="text" name="keluargadekat" value="<?php echo htmlentities($row_rse['keluargadekat'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Penanggung Jawab</td>
|
||||
<td><input type="text" class="text" name="panggungjawab" value="<?php echo htmlentities($row_rse['panggungjawab'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Nomer Ruang
|
||||
<input type="hidden" name="masukrs" value="<?php echo htmlentities($row_rse['masukrs'], ENT_COMPAT, 'utf-8'); ?>" /></td>
|
||||
<td><input type="text" class="text" name="noruang" value="<?php if ($_GET['idruang']==''){echo htmlentities($row_rse['noruang'], ENT_COMPAT, 'utf-8');} else {echo $_GET['idruang'];} ?>" size="10" />
|
||||
<label>
|
||||
<a href="index.php?link=176&indek=<?=$row_rse['id_admission'];?>&historyback=<?php echo $_REQUEST['historyback'];?>&batal_pulang_penuh=ya"><input class="text" type="button" name="button" id="button" value="Pilih Ruang"/></a> </label></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Nomer Tempat Tidur</td>
|
||||
<td><input type="text" name="nott" class="text" value="<?php if ($_GET['no_tt']=='') {echo htmlentities($row_rse['nott'], ENT_COMPAT, 'utf-8');} else {echo $_GET['no_tt'];} ?>" size="32" /></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Tanggal Pindah Kamar</td>
|
||||
<td>
|
||||
<?php if($row_rse['tgl_pindah'] == '0000-00-00'){
|
||||
$tglpindah = date('Y/m/d');
|
||||
}else{
|
||||
$tglpindah = $row_rse['tgl_pindah'];
|
||||
}
|
||||
?>
|
||||
<input type="text" class="text" name="tgl_pindah" id="tgl_pindah" value="<?php echo $tglpindah;?>" size="20" />
|
||||
<a href="javascript:showCal('tgl_pindah')"><img src="img/date.png" alt="" border="0" align="top" /></a> ex : 1999/09/29 </td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Cara Bayar</td>
|
||||
<td><label>
|
||||
<select name="statusbayar" id="statusbayar" class="text" required="true">
|
||||
<option value=""> -- Pilih Pembayaran -- </option>
|
||||
<?php
|
||||
$sql = $db->query('SELECT * FROM m_carabayar order by ORDERS');
|
||||
while($dsql = mysqli_fetch_array($sql)){
|
||||
if($row_rse['statusbayar'] == $dsql['KODE']): $sel = 'selected="selected"'; else: $sel = ''; endif;
|
||||
echo '<option value="'.$dsql['KODE'].' '.$sel.'">'.$dsql['NAMA'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</label></td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="left">Deposit</td>
|
||||
<td>
|
||||
<?php echo format_uang($row_rse['deposit']); ?>
|
||||
<input type="hidden" readonly="readonly" class="text" name="deposit" value="<?php echo $row_rse['deposit']; ?>" size="32" /> </td>
|
||||
</tr>
|
||||
<tr valign="baseline">
|
||||
<td nowrap="nowrap" align="right"> </td>
|
||||
<td><input type="submit" value="Simpan" class="text"/> <input class="text" name="kembali" type="button" value="Batal" onClick="javascript:history.back(1)" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="MM_update" value="form1" />
|
||||
<input type="hidden" name="id_admission" value="<?php echo $row_rse['id_admission']; ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
mysqli_free_result($rse);
|
||||
?>
|
||||
@@ -0,0 +1,207 @@
|
||||
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title">
|
||||
<h5>Pembayaran Rawat Inap</h5></div>
|
||||
<fieldset class="fieldset">
|
||||
<div class="card card-primary">
|
||||
<div class="card-header"><h5>Data Pasien</h5></div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
$myquery = "SELECT a.nomr,a.kirimdari,a.dokterpengirim,a.masukrs,b.nama,b.alamat,b.jeniskelamin, b.tgllahir,c.nama as carabayar, a.id_admission, d.nama as poly, h.nama as ruang, a.nott, a.noruang
|
||||
FROM t_admission a, m_pasien b, m_carabayar c, m_ruang d, m_ruang h
|
||||
WHERE a.nomr=b.NOMR AND a.statusbayar=c.KODE AND d.no=a.kirimdari and h.no=a.noruang and a.id_admission='".$_GET['idx']."'";
|
||||
|
||||
$get = $db->query($myquery);
|
||||
$userdata = $get->fetchAll()[0];
|
||||
?>
|
||||
<form name="bayar" action="include/process.php" method="post" id="bayar">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" >NOMR</div>
|
||||
<div class="col-sm-8" style="text-align:left;">:
|
||||
<?php echo $userdata['nomr'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" >Alamat Pasien</div>
|
||||
<div class="col-sm-8" style="text-align:left;">:
|
||||
<?php echo $userdata['alamat'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" >Tanggal Lahir</div>
|
||||
<div class="col-sm-8" style="text-align:left;">:
|
||||
<?php echo $userdata['tgllahir'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" >Jenis Pembayaran</div>
|
||||
<div class="col-sm-8" style="text-align:left;">:
|
||||
<?php echo $userdata['carabayar'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" >Nama Lengkap Pasien</div>
|
||||
<div class="col-sm-8" style="text-align:left;">:
|
||||
<?php echo $userdata['nama'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" >Jenis Kelamin</div>
|
||||
<div class="col-sm-8" style="text-align:left;">:
|
||||
<?php echo jeniskelamin($userdata['jeniskelamin']); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" >Umur</div>
|
||||
<div class="col-sm-8" style="text-align:left;">:
|
||||
<?php
|
||||
$a = datediff($userdata['tgllahir'], date("Y-m-d"));
|
||||
echo "".$a['years']." tahun ".$a['months']." bulan ".$a['days']." hari"; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" >Ruang / No. Tempat Tidur</div>
|
||||
<div class="col-sm-8" style="text-align:left;">:
|
||||
<?php echo $userdata['ruang'];?> / <?php echo $userdata['nott'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4" style="text-align:left;" > </div>
|
||||
<div class="col-sm-8" style="text-align:left;">
|
||||
<input type="button" onclick="javascript:history.back();" class="btn btn-secondary text" value="K e m b a l i" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<!-- <div id="frame">
|
||||
<div id="frame_title"><h5>List Pembayaran</h5></div> -->
|
||||
<fieldset class="fieldset">
|
||||
<div class="card card-primary">
|
||||
<div class="card-header"><h5>Cart List Bayar</h5></div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table width="95%" style="margin:10px;" border="0" class="table table-hover table-bordered table-striped table-sm" cellspacing="1" cellspading="1">
|
||||
<tr align="center" class="bg-success text-light">
|
||||
<th style="width:30%;text-align:center;">Nama Tarif</th>
|
||||
<th style="width:20%;text-align:center;">DPJP</th>
|
||||
<th style="width:10%;text-align:center;">Tanggal </th>
|
||||
<th style="width:10%;text-align:center;">Tarif</th>
|
||||
<th style="width:10%;text-align:center;">Quantity</th>
|
||||
<th style="width:10%;text-align:center;">Subtotal</th>
|
||||
<th style="width:10%;text-align:center;">Cara Bayar</th>
|
||||
<th style="width:2%;">Batal</th>
|
||||
</tr>
|
||||
<?php
|
||||
$sql = "SELECT b.idxbill,a.uraian_tarif as nama_jasa, b.tanggal as tgl1, b.qty, b.tarifrs, c.nama as carabayar, md.namadokter ,b.status,b.status_verifikasi,b.status_tindakan
|
||||
FROM m_tarif_rs a
|
||||
join t_billranap b on a.kode_tarif = b.KODETARIF
|
||||
join m_carabayar c on c.KODE = b.CARABAYAR
|
||||
left join m_dokter as md on b.kddokter = md.kddokter
|
||||
WHERE b.idxdaftar='".$_REQUEST['idx']."'";
|
||||
|
||||
$total = 0;
|
||||
$qry = $db->query($sql);
|
||||
foreach($qry->fetchAll() as $data) {
|
||||
$total = $total + $data['tarifrs'] * $data['qty'] ;
|
||||
$st_orderbatal = ($data['status'] == 'BATAL' || $data['status_verifikasi'] == 1 || $data['status_tindakan'] == 'BATAL') ? '' : '<button type="button" class="btn btn-outline-danger btn-sm" onclick="batal_bill('.$data['idxbill'].',0)">Order Batal</button>';
|
||||
$st_prosesbatal = ($data['status'] == 'BATAL' && $data['status_tindakan'] == '') ? '<div class="bg-info text-white p-1 m-1">Proses Batal</div>' : ( ($data['status'] == 'BATAL' && $data['status_tindakan'] == 'BATAL') ? '<div class="bg-red p-1 m-1">Dibatalkan</div>' : '');
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $data['nama_jasa']; ?></td>
|
||||
<td><?php echo $data['namadokter']; ?></td>
|
||||
<td align="center"><?php echo $data['tgl1']; ?></td>
|
||||
<td align="right"><?php echo "Rp. ".format_uang($data['tarifrs']); ?></td>
|
||||
<td align="center"><?php echo $data['qty']; ?></td>
|
||||
<td align="right"><?php echo "Rp. ".format_uang($data['tarifrs'] * $data['qty']); ?></td>
|
||||
<td align="center"><?php echo $data['carabayar']; ?></td>
|
||||
<td align="center"><?php echo $st_prosesbatal.$st_orderbatal; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td colspan="3" style="background:#999; font-weight:bold; text-align:right; padding-right:10px;">TOTAL</td>
|
||||
<td align="right" style="background:#999; font-weight:bold;"></td>
|
||||
<td align="center" style="background:#999; font-weight:bold;"></td>
|
||||
<td align="center" style="background:#999; font-weight:bold; text-align:right;"><?php echo "Rp. ".format_uang($total); ?></td>
|
||||
<td align="center" style="background:#999; font-weight:bold;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
echo $sweetalert_js;
|
||||
array_push($list_plugin['ui_plugins_js'], $bootstrap_js);
|
||||
$m_alasan = $db->query("SELECT * from m_alasan_batal");
|
||||
$arr_alasan = [''=>'Pilih Alasan'];
|
||||
if($m_alasan->numRows() > 0) {
|
||||
foreach ($m_alasan->fetchAll() as $a) {
|
||||
$arr_alasan[$a['alasan_batal']] = $a['alasan_batal'];
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: "top-end",
|
||||
showConfirmButton: false,
|
||||
timer: 3000
|
||||
});
|
||||
function batal_bill(idxbill,rajal_status) {
|
||||
Swal.fire({
|
||||
title: 'Anda yakin?',
|
||||
html: 'Anda ingin membatalkan billing tersebut dengan alasan<br><?php echo preg_replace("/\n/",'',form_dropdown('alasan',$arr_alasan,'','class="form-control" id="alasan_batal"')); ?>',
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Ya, Batalkan!'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
alasan = $("#alasan_batal").find(":selected").val();
|
||||
$.post("<?php echo _BASE_.'include/master.php?unit='.$userdata['noruang']; ?>",{orderbatal:true,idxbill,rajal_status,alasan},function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function() {
|
||||
if(data.type == "success"){
|
||||
window.location.reload();
|
||||
}
|
||||
}});
|
||||
},"json");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,148 @@
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('.print').click(function(){
|
||||
var idxdaftar = jQuery(this).attr('rel');
|
||||
jQuery.get('<?php echo _BASE_; ?>print_rekapbill.php?idxdaftar='+idxdaftar+'&nomr=<?php echo $_REQUEST['nomr']; ?>',function(data){
|
||||
|
||||
jQuery('#tmp_print').html(data);
|
||||
w=window.open();
|
||||
//w.document.write(jQuery('#show_print').html());
|
||||
w.document.write(jQuery('#tmp_print').html());
|
||||
w.print();
|
||||
//jQuery('#show_print').empty();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div align="left">
|
||||
<style type="text/css" media="screen">
|
||||
#tmp_print{display:none;}
|
||||
</style>
|
||||
<style type="text/css" media="print">
|
||||
#tmp_print{display:block;}
|
||||
</style>
|
||||
|
||||
<div id="tmp_print"></div>
|
||||
<div id="frame">
|
||||
<div id="frame_title"><h5>Rekap Bill Rawat Inap</h5></div>
|
||||
<div class="container-fluid">
|
||||
<div class="text-right">
|
||||
<input type="button" name="back" onClick="javascript:history.back(1)" value="Kembali" class="btn btn-danger">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<dl class="row text-left">
|
||||
<dt class="col-sm-2">No RM</dt>
|
||||
<dd class="col-sm-10">: <?=$_GET['nomr']?></dd>
|
||||
|
||||
<dt class="col-sm-2">Nama</dt>
|
||||
<dd class="col-sm-10">: <?=$_GET['nama']?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table width="95%" style="margin:10px;" border="0" class="table table-hover table-bordered table-striped table-sm" cellspacing="1" cellspading="1">
|
||||
<tr align="center" class="bg-success text-light">
|
||||
<th style="width:30px;text-align:center;">No</th>
|
||||
<th style="width:30px;">Tanggal</th>
|
||||
<th style="width:30px;text-align:center;">Nobill</th>
|
||||
<th style="width:30px;text-align:center;">Nonota</th>
|
||||
<th style="width:50px;text-align:center;" >Kode Tarif</th>
|
||||
<th style="width:200px;text-align:center;" >Jenis Tindakan</th>
|
||||
<th style="width:100px;text-align:center;" >QTY</th>
|
||||
<th style="width:100px;text-align:center;" >Harga</th>
|
||||
<th style="width:100px;text-align:center;" >Jumlah Harga</th>
|
||||
<th style="width:30px;text-align:center;" >Ket</th>
|
||||
|
||||
</tr>
|
||||
<?php
|
||||
$sql_billrajal = "SELECT b.idxbill,b.tanggal,b.nobill,b.nonota,l.lunas, d.kode_tarif,d.uraian_tarif as nama_jasa, b.idxdaftar, b.tarifrs,b.qty
|
||||
FROM t_billrajal b
|
||||
left join t_pendaftaran c on c.idxdaftar=b.idxdaftar
|
||||
left join m_tarif_rs d on b.kodetarif = d.kode_tarif
|
||||
left join t_admission e on e.nomr=b.nomr
|
||||
left join m_statuskeluar k on c.status=k.status
|
||||
left join t_bayarrajal l on l.idxbill=b.idxbill
|
||||
WHERE c.status='2' and b.idxdaftar={$_REQUEST['idx']} and b.status <> 'BATAL'
|
||||
|
||||
UNION ALL
|
||||
";
|
||||
$sql_billanak = "
|
||||
SELECT l.lunas, d.uraian_tarif as nama_jasa, b.idxdaftar, b.tarifrs,b.qty
|
||||
FROM t_billrajal b
|
||||
left join t_pendaftaran c on c.idxdaftar=b.idxdaftar
|
||||
left join m_tarif_rs d on b.kodetarif = d.kode_tarif
|
||||
left join t_admission e on e.nomr=b.nomr
|
||||
left join m_statuskeluar k on c.status=k.status
|
||||
left join t_bayarrajal l on l.idxbill=b.idxbill
|
||||
left join m_pasien x on b.nomr = x.nomr
|
||||
WHERE x.PARENT_NOMR='{$_REQUEST['nomr']}'
|
||||
|
||||
UNION ALL";
|
||||
// sql get kunjungan poliklinik
|
||||
$sql = '';
|
||||
$tmp_sql = $db->query("SELECT kdpoly from t_pendaftaran where idxdaftar = {$_REQUEST['idx']}");
|
||||
$dt_kunjungan = $tmp_sql->fetchFirst();
|
||||
if($dt_kunjungan['kdpoly'] == $_SESSION['poli_igd']) {
|
||||
$sql .= $sql_billrajal;
|
||||
}
|
||||
|
||||
|
||||
$sql .= "SELECT distinct b.idxbill,b.tanggal,b.nobill,b.nonota,l.lunas ,d.kode_tarif,case when b.kodetarif in ('DEPOSIT','IURBEA') then b.kodetarif else d.uraian_tarif end as nama_jasa, b.idxdaftar, b.tarifrs,b.qty
|
||||
FROM t_billranap b
|
||||
left join m_tarif_rs d on b.kodetarif = d.kode_tarif
|
||||
left join t_admission e on e.nomr=b.nomr
|
||||
left join t_bayarranap l on l.idxbill=b.idxbill
|
||||
WHERE b.idxdaftar={$_REQUEST['idx']} and b.kodetarif not in ('DEPOSIT') and tarifrs > 0 and b.status <> 'BATAL'
|
||||
ORDER BY nonota
|
||||
";
|
||||
$total = 0;
|
||||
$no = 1;
|
||||
$tot = 0;
|
||||
$qry = $db->query($sql);
|
||||
|
||||
foreach($qry->fetchAll() as $data) {
|
||||
|
||||
$tot = $tot + ( $data['qty'] * $data['tarifrs']);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td align ="center"><?php echo $no++; ?></td>
|
||||
<td><?php echo date_to_id($data['tanggal']); ?></td>
|
||||
<td><?php echo $data['nobill']; ?></td>
|
||||
<td><?php echo $data['nonota']; ?></td>
|
||||
<td><?php echo $data['kode_tarif']; ?></td>
|
||||
<td><?php echo $data['nama_jasa']; ?></td>
|
||||
<td style="width:100px;text-align:center;"><?php echo $data['qty']; ?></td>
|
||||
<td style="text-align:right;"><?php echo "Rp. ".format_uang($data['tarifrs']); ?></td><?php
|
||||
$total = $data['qty'] * $data['tarifrs'];?>
|
||||
<td style="text-align:right;"><?php echo "Rp. ".format_uang($total); ?></td>
|
||||
<td style="text-align:center;">
|
||||
<?php if ($data['lunas'] == '1'){
|
||||
echo "LUNAS";
|
||||
}else{
|
||||
echo "BELUM LUNAS";
|
||||
}?>
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
<td colspan="6" style="background:#999; font-weight:bold; text-align:right; padding-right:10px;"><?php echo "TOTAL"; ?></td>
|
||||
|
||||
<td style="background:#999; font-weight:bold; text-align:right; padding-right:10px;"><?php echo "RP. ".format_uang($tot); ?></td>
|
||||
<td style="background:#999; font-weight:bold; text-align:right; padding-right:10px;"></td>
|
||||
</table>
|
||||
<table width="95%" >
|
||||
<tr >
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td >
|
||||
<input type="button" name="print" value="Print" class="btn btn-success text print" id="print_<?php echo $_REQUEST['nomr']; ?>" rel="<?php echo $_REQUEST['idx']; ?>" style="display:block; float:right;"/><div id="callback_<?php echo $_REQUEST['nomr']; ?>" style="float:right;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,111 @@
|
||||
<script>
|
||||
jQuery(document).ready(function(){
|
||||
jQuery('.print').click(function(){
|
||||
var idxdaftar = jQuery(this).attr('rel');
|
||||
jQuery.get('<?php echo _BASE_; ?>print_diagnosa.php?idxdaftar='+idxdaftar+'&nomr=<?php echo $_REQUEST['nomr']; ?>',function(data){
|
||||
jQuery('#tmp_print').empty().html(data);
|
||||
w=window.open();
|
||||
//w.document.write(jQuery('#show_print').html());
|
||||
w.document.write(jQuery('#tmp_print').html());
|
||||
w.print();
|
||||
//w.close();
|
||||
//jQuery('#show_print').empty();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div align="left">
|
||||
<style type="text/css" media="screen">
|
||||
#tmp_print{display:none;}
|
||||
</style>
|
||||
<style type="text/css" media="print">
|
||||
#tmp_print{display:block;}
|
||||
</style>
|
||||
|
||||
<div id="tmp_print"></div>
|
||||
|
||||
<div align="left">
|
||||
<div id="frame">
|
||||
<div id="frame_title"><h5>List Tindakan Pasien</h5>
|
||||
</div>
|
||||
<div class="container-fluid">
|
||||
<div class="text-right">
|
||||
<input type="button" name="back" onClick="javascript:history.back(1)" value="Kembali" class="btn btn-danger">
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-3 offest-sm-6">
|
||||
<dl class="row text-left">
|
||||
<dt class="col-sm-6">No RM</dt>
|
||||
<dd class="col-sm-6">: <?=$_GET['nomr']?></dd>
|
||||
|
||||
<dt class="col-sm-6">Nama</dt>
|
||||
<dd class="col-sm-6">: <?=$_GET['nama']?></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table width="95%" style="margin:10px;" border="0" class="table table-hover table-bordered table-striped table-sm" cellspacing="1" cellspading="1">
|
||||
<tr align="center" class="bg-success text-light">
|
||||
<th style="width:30px;text-align:center;">No</th>
|
||||
<th style="width:200px;text-align:center;" >Nama Tindakan</th>
|
||||
<th style="width:200px;text-align:center;" >Jenis Tindakan</th>
|
||||
</tr>
|
||||
<?php
|
||||
$sql_rajal = "SELECT d.uraian_tarif as nama_jasa, b.idxdaftar,d.kode_tarif,d.kelompok_tarif
|
||||
FROM t_billrajal b
|
||||
left join t_pendaftaran c on c.idxdaftar=b.idxdaftar
|
||||
left join m_tarif_rs d on b.kodetarif = d.kode_tarif
|
||||
left join t_admission e on e.nomr=b.nomr
|
||||
left join m_statuskeluar k on c.status=k.status
|
||||
WHERE c.status='2' and b.idxdaftar={$_REQUEST['idx']}
|
||||
UNION ALL
|
||||
";
|
||||
|
||||
$sql_anak = "SELECT d.uraian_tarif as nama_jasa, b.idxdaftar, d.kode_tarif,d.kelompok_tarif
|
||||
FROM t_billrajal b
|
||||
left join t_pendaftaran c on c.idxdaftar=b.idxdaftar
|
||||
left join m_tarif_rs d on b.kodetarif = d.kode_tarif
|
||||
left join t_admission e on e.nomr=b.nomr
|
||||
left join m_statuskeluar k on c.status=k.status
|
||||
left join m_pasien x on c.nomr = x.nomr
|
||||
WHERE x.PARENT_NOMR='{$_REQUEST['nomr']}'
|
||||
UNION ALL ";
|
||||
$sql = '';
|
||||
$tmp_sql = $db->query("SELECT kdpoly from t_pendaftaran where idxdaftar = {$_REQUEST['idx']}");
|
||||
$dt_kunjungan = $tmp_sql->fetchFirst();
|
||||
if($dt_kunjungan['kdpoly'] == $_SESSION['poli_igd']) {
|
||||
$sql .= $sql_rajal;
|
||||
}
|
||||
$sql .= "SELECT d.uraian_tarif as nama_jasa, b.idxdaftar, d.kode_tarif,d.kelompok_tarif
|
||||
FROM t_billranap b
|
||||
left join m_tarif_rs d on b.kodetarif = d.kode_tarif
|
||||
left join t_admission e on e.nomr=b.nomr
|
||||
WHERE b.idxdaftar={$_REQUEST['idx']} and b.kodetarif not in('DEPOSIT') and tarifrs > 0
|
||||
";
|
||||
$total = 0;
|
||||
$no = 1;
|
||||
$qry = $db->query($sql);
|
||||
foreach($qry->fetchAll() as $data) {
|
||||
?>
|
||||
<tr>
|
||||
<td align ="center"><?php echo $no++; ?></td>
|
||||
<td><?php echo $data['nama_jasa']; ?></td>
|
||||
<td><?php echo $data['kelompok_tarif']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
<table width="95%" >
|
||||
<tr >
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td >
|
||||
<input type="button" name="print" value="Print" class="btn btn-success text print" id="print_<?php echo $_REQUEST['nomr']; ?>" rel="<?php echo $_REQUEST['idx']; ?>" style="display:block; float:right;"/><div id="callback_<?php echo $_REQUEST['nomr']; ?>" style="float:right;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,139 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."' and status_aktif = 1";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
|
||||
$sql_dokter_gizi = $db->query("SELECT * FROM public.m_dokter WHERE kdsmf LIKE '%GIZI%'");
|
||||
$arr_dokter_gizi = array();
|
||||
foreach($sql_dokter_gizi->fetchAll() as $ds)
|
||||
{
|
||||
$arr_dokter_gizi[$ds['kddokter']] = $ds['namadokter'];
|
||||
}
|
||||
?>
|
||||
|
||||
<h3 class="text-center">CATATAN PERKEMBANGAN GIZI</h3>
|
||||
<form method="post" id="dokumen_form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
<div class="row text-left">
|
||||
<div class="col-md-9 col-lg-9 mt-5">
|
||||
<div class="form-group">
|
||||
<label >Tanggal</label>
|
||||
<div class="control">
|
||||
<input type="text" readonly class="datepicker-filter mask-date-filter form-control" name="input[tanggal]" id="tgl_operasi" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Antropometri (Status Gizi)</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[status_gizi]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Laboratorium</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[laboratorium]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Fisik / Klinis</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[fisik]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Diet</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[diet]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Asupan / Intake Makanan</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[makanan]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Lain-Lain</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[other]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Nama Ahli Gizi / Dietsien</label>
|
||||
<div class="control">
|
||||
<?php echo form_dropdown('dpjp_gizi',$arr_dokter_gizi,'','class="form-control" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="control">
|
||||
<button class="btn btn-primary mt-5">S I M P A N</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table class="table table-bordered table-striped table-sm mt-3" style="width:150% !important;">
|
||||
<tr class="bg-green">
|
||||
<th>NO</th>
|
||||
<th>ANTRLPOMETRI(STATUS GIZI)</th>
|
||||
<th>LABORATORIUM</th>
|
||||
<th>FISIK / KLINIS</th>
|
||||
<th>DIET</th>
|
||||
<th>ASUPAN MAKAN / INTAKE MAKANAN</th>
|
||||
<th>LAIN-LAIN</th>
|
||||
<th>NAMA AHLI GIZI</th>
|
||||
<th>NAMA DPJP</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$('.custom-file-input').on('change', function() {
|
||||
let fileName = $(this).val().split('\\').pop();
|
||||
$(this).next('.custom-file-label').addClass("selected").html(fileName);
|
||||
});
|
||||
$("#btn_simpan_dokumen").click(function(){
|
||||
var fd = new FormData($("#dokumen_form")[0]);
|
||||
|
||||
// if($("#file_dokumen").length > 0) { fd.append('file_dokumen', $('#file_dokumen')[0].files[0]) }
|
||||
|
||||
$.ajax({
|
||||
method:"post",
|
||||
url : "rajal/save_dokumen.php",
|
||||
data : fd,
|
||||
contentType:false,
|
||||
processData:false,
|
||||
dataType : "json",
|
||||
success : function(result){
|
||||
Toast.fire({title:result.message,type:result.type,onClose : function() {
|
||||
window.location.reload();
|
||||
}});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function preview_file(file)
|
||||
{
|
||||
$.post("<?php echo _BASE_.'include/master.php'; ?>",{viewer:1,filepath:file},function(data){
|
||||
$("#print_body").html("");
|
||||
$("#print_body").html("<iframe name=\"print_out\" src=\""+data+"\" frameborder=\"0\" style=\"width:100%;height:450px\" id=\"report-frame\"></iframe>");
|
||||
$("#modal-preview .btn-success").css("display","none");
|
||||
$("#modal-preview").modal("show");
|
||||
});
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,96 @@
|
||||
<?php
|
||||
$hook_select = '';
|
||||
$hook_select .= '$("#kode_obat_nr").val(datum.value); ';
|
||||
$hook_select .= '$("#harga_obat_nr").val(datum.HJual); ';
|
||||
$hook_select .= '$("#sediaan_text_nr").val(datum.satuan); ';
|
||||
$hook_select .= '$("#stock_obat_nr").val(datum.stok); ';
|
||||
$hook_select .= '$("#HPP_nr").val(datum.HPP); ';
|
||||
$hook_select .= '$("#frek_nr").focus(); ';
|
||||
$obat_nonracik = '<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
async function load_obat_dpo() {
|
||||
const nama_obat_dpo = await new Bloodhound({
|
||||
datumTokenizer: Bloodhound.tokenizers.obj.whitespace("text"),
|
||||
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
||||
remote: {
|
||||
url : "'._BASE_.'include/master.php?order_obat=true&nama=%QUERY",
|
||||
wildcard: "%QUERY"
|
||||
}
|
||||
});
|
||||
$("#nama_obat_dpo").typeahead({hint: true, highlight: false, minLength: 1 },{
|
||||
name: "nama_obat_dpo",
|
||||
display: "nama",
|
||||
source: nama_obat_dpo,
|
||||
limit: 10
|
||||
}).on("typeahead:selected typeahead:autocompleted typeahead:matched", function (ev, datum) {
|
||||
'.$hook_select.'
|
||||
});
|
||||
}
|
||||
load_obat_dpo();
|
||||
});
|
||||
</script>';
|
||||
echo $obat_nonracik;
|
||||
if(isset($_GET['edit'])){
|
||||
$sql_rsm_pulang="SELECT * FROM t_pemberianobat WHERE IDXBERIOBAT = '".$_GET['idxberiobat']."'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$_POST['id_admission'] = $dat_rp['IDXRANAP'];
|
||||
$_POST['nomr'] = $dat_rp['NOMR'];
|
||||
$_POST['kddokter'] = $dat_rp['DOKTER'];
|
||||
?>
|
||||
<form action="ranap/save_pemberian_obat1.php" name="pemberian_obat" method="post" id="pemberian_obat">
|
||||
<?php echo '<input type="hidden" name="idxberiobat" value="'.$dat_rp['IDXBERIOBAT'].'" />';
|
||||
echo '<input type="hidden" name="tanggal" value="'.$dat_rp['TANGGAL'].'" />';
|
||||
} else { ?>
|
||||
<form action="ranap/save_pemberian_obat1.php" name="pemberian_obat" method="post" id="pemberian_obat">
|
||||
<?php } ?>
|
||||
<!--<input type="text" name="id_admission" value="<?php echo $userdata['id_admission'];?>" />
|
||||
<input type="text" name="nomr" value="<?php echo $userdata['nomr'];?>" />
|
||||
<input type="text" name="noruang" value="<?php echo $userdata['noruang'];?>" />
|
||||
<input type="text" name="kddokter" value="<?php echo $userdata['kddokter'];?>" />-->
|
||||
<input type="hidden" name="id_admission" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="nomr" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="noruang" value="<?php echo $noruang;?>" />
|
||||
<input type="hidden" name="kelas" value="<?php echo $kelas;?>" />
|
||||
<input type="hidden" name="kddokter" value="<?php echo $kddokter;?>" />
|
||||
<input type="hidden" name="kdpoly" value="<?php echo $kdpoly;?>" />
|
||||
<input type="hidden" name="masukrs" value="<?php echo $masukrs;?>" />
|
||||
<input type="hidden" name="jk" value="<?php echo $jk;?>" />
|
||||
<div class="form-group row text-left">
|
||||
<label class="form-control-label col-sm-3">Nama Obat</label>
|
||||
<div class="col-sm-9">
|
||||
<div id="obatnonracik"><input class="form-control text" name="nama_obat" id="nama_obat_dpo" stlye="" placeholder="Nama Obat" type="text" required="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row text-left">
|
||||
<label class="form-control-label col-sm-3">Tanggal</label>
|
||||
<div class="col-sm-9">
|
||||
<input class="form-control text" name="tanggal" id="tanggal_po" stlye="" placeholder="Tanggal Obat" type="text" required="true" value="<?php echo date('Y-m-d'); ?>" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row text-left">
|
||||
<label class="form-control-label col-sm-3">Waktu</label>
|
||||
<div class="col-sm-9">
|
||||
<input type="radio" name="waktu" id="waktu1" value="1" <?php if($dat_rp['WAKTU']=="1")echo "Checked";?>/>
|
||||
<label for="waktu1">Pagi</label>
|
||||
<input type="radio" name="waktu" id="waktu2" value="2" <?php if($dat_rp['WAKTU']=="2")echo "Checked";?>/>
|
||||
<label for="waktu2">Siang</label>
|
||||
<input type="radio" name="waktu" id="waktu3" value="3" <?php if($dat_rp['WAKTU']=="3")echo "Checked";?>/>
|
||||
<label for="waktu3">Sore</label>
|
||||
<input type="radio" name="waktu" id="waktu4" value="4" <?php if($dat_rp['WAKTU']=="4")echo "Checked";?>/>
|
||||
<label for="waktu4">Malam</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row text-left">
|
||||
<label class="form-control-label col-sm-3">Keterangan</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea name="keterangan" id="keterangan" class="form-control" cols="45" rows="5" ><?=$dat_rp['KETERANGAN']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<input type="submit" size="50" name="simpan" value="Simpan" class="btn btn-primary" onclick="newsubmitform (document.getElementById('pemberian_obat'),'ranap/save_pemberian_obat1.php','valid_pemberian_obat',validatetask); return false;"/>
|
||||
</form>
|
||||
<div id="valid_pemberian_obat">
|
||||
<div id="autocompletedivobat" class="autocomp" align="left"></div>
|
||||
<?php include("save_pemberian_obat1.php"); ?>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
?>
|
||||
<h3 class="text-center">DAFTAR PENGGUNAAN DOKUMEN REKAM MEDIS <br> UNTUK PENDIDIK DAN PENELITIAN <br> DI SEKSI REKAM MEDIK</h3>
|
||||
<form method="post" id="dokumen_form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
<div class="row text-left">
|
||||
<div class="col-md-9 col-lg-9 mt-5">
|
||||
<div class="form-group">
|
||||
<label >Stempel</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[stempel]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Keperluan</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[keperluan]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Instalasi</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[instalasi]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Pengguna</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[pengguna]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="control">
|
||||
<button class="btn btn-primary mt-5">S I M P A N</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table class="table table-bordered table-striped table-sm mt-3" style="width:100% !important;">
|
||||
<tr class="bg-green">
|
||||
<th>NO</th>
|
||||
<th>STEMPEL</th>
|
||||
<th>KEPERLUAN</th>
|
||||
<th>INSTALASI</th>
|
||||
<th>PENGGUNA</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
session_start();
|
||||
include("../core/main.php");
|
||||
include("../include/function.php");
|
||||
?>
|
||||
|
||||
<form action="ranap/save_dpmp.php" name="dpmp" method="post" id="dpmp">
|
||||
<input type="hidden" name="IDXDAFTAR" value="<?php echo $_REQUEST['id_admission'];?>" />
|
||||
<input type="hidden" name="NOMR" value="<?php echo $_REQUEST['nomr'];?>" />
|
||||
<input type="hidden" name="RUANG" value="<?php echo $userdata['noruang'];?>" />
|
||||
<table width="95%" class="tb" border="0">
|
||||
<tr valign="top">
|
||||
|
||||
|
||||
<td width="17%">DIIT :</td>
|
||||
<td colspan="2">
|
||||
Shift :
|
||||
<input type="radio" name="SHIFT" value="1"/> Pagi
|
||||
<input type="radio" name="SHIFT" value="2"/> Siang
|
||||
<input type="radio" name="SHIFT" value="3"/> Sore
|
||||
<span style="padding-left:100px;">Snack :
|
||||
<input type="radio" name="SNA CK" value="1"/> Pagi
|
||||
<input type="radio" name="SNACK" value="2"/> Sore</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TYPE MAKANAN</td>
|
||||
<td width="30%">
|
||||
<select name="TYPEMAKANAN" class="text">
|
||||
<option selected="selected"> -Pilih- </option>
|
||||
<option value="1">MAKANAN BIASA</option>
|
||||
<option value="2">MAKANAN KHUSUS</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="53%">KETERANGAN TAMBAHAN</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>KETERANGAN</td>
|
||||
<td>
|
||||
<select name="KETERANGAN" class="text">
|
||||
<option selected="selected"> -Pilih- </option>
|
||||
<option value="1">TKTP</option>
|
||||
<option value="2">RG</option>
|
||||
<option value="3">DL</option>
|
||||
<option value="4">DH</option>
|
||||
<option value="5">DM</option>
|
||||
<option value="6">DJ</option>
|
||||
<option value="7">TP</option>
|
||||
<option value="8">RP.r</option>
|
||||
<option value="9">RP</option>
|
||||
<option value="10">LAIN-LAIN</option>
|
||||
</select>
|
||||
</td>
|
||||
<td rowspan="5" valign="top"><textarea name="KETERANGANTAMBAHAN" class="text" cols="50" rows="6"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>JENIS MAKANAN</td>
|
||||
<td>
|
||||
<select name="JENISMAKANAN" class="text">
|
||||
<option selected="selected"> -Pilih- </option>
|
||||
<option value="1">Nasi</option>
|
||||
<option value="2">Lauk</option>
|
||||
<option value="3">Bubur Sonde</option>
|
||||
<option value="4">Cair</option>
|
||||
<option value="5">Sonde</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" name="Submit" value="Simpan" class="text" onclick="newsubmitform (document.getElementById('dpmp'),'ranap/save_dpmp.php','valid_save_dpmp',validatetask); return false;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id="valid_save_dpmp">
|
||||
<?php include("save_dpmp.php"); ?>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
include("../core/main.php");
|
||||
// var_dump($_POST);
|
||||
$id_admission = $_POST['id_admission'];
|
||||
$get_datakamar = $db->query("SELECT *,r.nama as namaruang FROM t_admission_ruanghist a
|
||||
JOIN t_admission reg ON a.idx_admission = reg.id_admission
|
||||
JOIN m_ruang r ON a.no_ruang_asal = r.no
|
||||
WHERE idx_admission = $id_admission ORDER BY a.id_ruanghist DESC");
|
||||
$get_datakamar = !empty($get_datakamar->fetchAll()) ? $get_datakamar->fetchAll() : '';
|
||||
$data = array();
|
||||
$array_data = array();
|
||||
if (!empty($get_datakamar)) {
|
||||
foreach ($get_datakamar as $key => $value) {
|
||||
if ($key == 1) {
|
||||
$nama_ruang = $value['namaruang'];
|
||||
$ruang_asal = $value['no_ruang_asal'];
|
||||
$nobed_asal = $value['no_tt_asal'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$chek_datakamar = $db->query("SELECT * FROM t_admission
|
||||
WHERE keluarrs IS NULL AND noruang ={$ruang_asal} AND nott ='{$nobed_asal}' ");
|
||||
$chek_datakamar = $chek_datakamar->fetchFirst();
|
||||
|
||||
if (empty($chek_datakamar)) {
|
||||
$response_array = [
|
||||
'status' => FALSE,
|
||||
'response' => [
|
||||
'namaruang' => $nama_ruang,
|
||||
'ruang' => $ruang_asal,
|
||||
'bed' => $nobed_asal
|
||||
]
|
||||
];
|
||||
} else {
|
||||
$response_array = [
|
||||
'status' => TRUE,
|
||||
'response' => [
|
||||
'namaruang' => $nama_ruang,
|
||||
'ruang' => $ruang_asal,
|
||||
'bed' => $nobed_asal
|
||||
]
|
||||
];
|
||||
}
|
||||
echo json_encode($response_array);
|
||||
@@ -0,0 +1,294 @@
|
||||
<?php
|
||||
// include("core/main.php");\
|
||||
if($page_akses['verif'] == 0)
|
||||
{
|
||||
include ('error404.php');
|
||||
}
|
||||
else {
|
||||
|
||||
array_push($form_plugin['ui_plugins_js'], $sweetalert_js);
|
||||
array_push($form_plugin['ui_plugins_js'], $jspm_js);
|
||||
$js_init .= $jspm_rawprint;
|
||||
$js_init .= $jspm_init;
|
||||
?>
|
||||
<div id="tmp_print" style="display:none;"></div>
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title">
|
||||
<h5>DEPOSIT RAWAT INAP</h5></div>
|
||||
<form name="cari" id="cari" method="post" action="">
|
||||
<div class="row">
|
||||
<div class="col-md-4 offset-md-4" style="text-align: left">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label" style="text-align:left">Nobill</label>
|
||||
<div class="col-sm-9">
|
||||
<?php echo '<input type="text" name="nobill" value="'.$_REQUEST['nobill'].'" class="form-control">'; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label" style="text-align:left"> </label>
|
||||
<div class="col-sm-6">
|
||||
<input type="submit" value=" C a r i " class="btn btn-sm btn-primary btn-block text"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<h4 class="card-header">IDENTITAS</h4>
|
||||
<div class='card-body' id="list_deposit">
|
||||
<?php
|
||||
$nobill = (array_key_exists('nobill', $_REQUEST)) ? $_REQUEST['nobill'] : '';
|
||||
if($nobill != '') {
|
||||
|
||||
$sql="SELECT a.nomr,e.masukrs,a.nama,a.alamat,a.tgllahir,a.jeniskelamin,b.nama as ruang,e.masukrs,e.keluarrs,e.nott,c.nama as carabayar, sum(d.deposit) as deposit, e.id_admission, br.nobill, e.noruang
|
||||
FROM t_admission e
|
||||
JOIN m_pasien a ON e.nomr=a.nomr
|
||||
JOIN m_ruang b ON e.noruang=b.no
|
||||
JOIN m_carabayar c ON e.statusbayar=c.KODE
|
||||
join (select distinct nobill,idxdaftar,nomr from t_billranap where nobill = $nobill) br on br.idxdaftar = e.id_admission and br.nomr = e.nomr
|
||||
left JOIN t_deposit d ON e.id_admission = d.idadmission and d.st_batal is null
|
||||
WHERE (e.keluarrs IS NULL )
|
||||
group by a.nomr,e.masukrs,a.nama,a.alamat,a.tgllahir,a.jeniskelamin,b.nama,c.nama,e.id_admission,e.masukrs,e.keluarrs, br.nobill, e.noruang";
|
||||
|
||||
$tmp_bill = $db->query($sql);
|
||||
$no = 1;
|
||||
foreach($tmp_bill->fetchAll() as $data) {
|
||||
$a = datediff($data['tgllahir'], date("Y-m-d"));
|
||||
if($data['keluarrs'] != null) {
|
||||
$d1 = new Datetime($data['masukrs']);
|
||||
$d2 = new Datetime($data['keluarrs']);
|
||||
$jml_hari_rawat = ($d1->diff($d2)->format('%a')+1);
|
||||
}
|
||||
else {
|
||||
$jml_hari_rawat = 0;
|
||||
}
|
||||
echo '<div class="row text-left">
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>No RM</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$data['nomr'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Nama Pasien</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$data['nama'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Alamat</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$data['alamat'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Tanggal Lahir</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.date_to_id($data['tgllahir']).'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>Umur</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$a['years'].' tahun '.$a['months'].' bulan '.$a['days'].' hari" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Jenis Kelamin</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.jeniskelamin($data['jeniskelamin']).'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Jenis Pembayaran</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$data['carabayar'].'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Ruang / No TT</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.$data['ruang'].' / '.$data['nott'].'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="form-group">
|
||||
<label>No. Billing</label>
|
||||
<input type="text" class="form-control form-control-sm" style="font-weight:bold;font-size:16px" value="'.$nobill.'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Tanggal MRS</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.datetime_to_dateid($data['masukrs']).'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Tanggal KRS</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.(($data['keluarrs'] != null) ? datetime_to_dateid($data['keluarrs']) : '').'" disabled>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Jumlah Deposit</label>
|
||||
<input type="text" class="form-control form-control-sm" value="'.format_uang($data['deposit']).'" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
echo '<button type="button" class="btn btn-outline-success btn-sm isi_depo" data-id="'.$data['id_admission'].'" data-nomr="'.$data['nomr'].'" data-nama="'.$data['nama'].'" data-nobill="'.$data['nobill'].'" data-ruang="'.$data['noruang'].'" data-nott="'.$data['nott'].'">Isi Deposit</button>';
|
||||
$no++;
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function printRaw(rajal_status,nomr,idxdaftar,nobill,nobayar,aps,tanggal,petugas) {
|
||||
$.post("<?php echo _BASE_;?>keuangan/print_kuitansi.php",{rajal_status,nomr,idxdaftar,nobill,nobayar,aps,tanggal,petugas,raw:1,shift:<?php echo $_SESSION['SHIFT']; ?>},function(print_command){
|
||||
jspm_print_raw(print_command);
|
||||
});
|
||||
}
|
||||
function print_deposito(nonota,nomr,idxdaftar,nobill)
|
||||
{
|
||||
var rajal = 0;
|
||||
jspm_print('<?php echo _BASE_; ?>keuangan/print_kuitansi.php?nomr='+nomr+'&nobill='+nobill+'&nobayar='+nonota+'&idxdaftar='+idxdaftar+'&rajal_status=deposit&tanggal=<?php echo date("Y-m-d").'&petugas='.$_SESSION['NIP']; ?>&aps=0&shift=<?php echo $_SESSION['SHIFT']; ?>','modal-preview','Kuitansi Bayar '+nomr+'.pdf', 0);
|
||||
|
||||
cek_tombol_cetak = $("#cetak_raw").length;
|
||||
if(cek_tombol_cetak > 0) {
|
||||
$("#cetak_raw").remove();
|
||||
}
|
||||
|
||||
$("#modal-preview .modal-footer").append("<button type=\"button\" id=\"cetak_raw\" class=\"btn btn-primary\" onclick=\"printRaw('deposit',"+nomr+","+idxdaftar+","+nobill+",'"+nonota+"',0,'<?php echo date("Y-m-d"); ?>','<?php echo $_SESSION['NIP']; ?>')\"><i class=\"fa fa-print\"></i> Cetak</button>");
|
||||
/*
|
||||
jspm_print('<?php echo _BASE_; ?>print_kuitansi_uangmuka.php?nobill='+nobill+'&nonota='+nonota,'modal-preview','Kuitansi Deposito '+nomr+'.pdf',0);
|
||||
$("#modal-preview").on("hidden.bs.modal",function(e){
|
||||
window.location.reload();
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
function cetak_ulang(nonota,nomr) {
|
||||
jspm_print('<?php echo _BASE_; ?>print_kuitansi_uangmuka.php?nonota='+nonota,'modal-preview','Kuitansi Deposito '+nomr+'.pdf',0);
|
||||
}
|
||||
$(function(){
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: "top-end",
|
||||
showConfirmButton: false,
|
||||
timer: 3000
|
||||
});
|
||||
$('#list_deposit').delegate('.isi_depo','click',function(){
|
||||
var idx = $(this).data('id');
|
||||
var nomr = $(this).data('nomr');
|
||||
var nama = $(this).data('nama');
|
||||
var total = $(this).data('total');
|
||||
var ruang = $(this).data('ruang');
|
||||
var nott = $(this).data('nott');
|
||||
var nobill = $(this).data('nobill');
|
||||
$("#input_idx").val(idx);
|
||||
$("#input_nomr").val(nomr);
|
||||
$("#input_nobill").val(nobill);
|
||||
$("#input_nama").val(nama);
|
||||
$("#input_ruang").val(ruang);
|
||||
$("#input_nott").val(nott);
|
||||
$("#input_total").val(accounting.formatMoney(total));
|
||||
|
||||
jQuery("#data_deposit").load('<?php echo _BASE_;?>ranap/save_deposito.php?page=list&nomr='+nomr+'&idxdaftar='+idx);
|
||||
|
||||
$("#deposit-modal").modal("show");
|
||||
$(".mask-money").inputmask("numeric", {
|
||||
radixPoint: ",",
|
||||
groupSeparator: ".",
|
||||
digits: 0,
|
||||
autoGroup: true,
|
||||
prefix: '',
|
||||
rightAlign: false,
|
||||
oncleared: function (e) { $(e.currentTarget).val(''); }
|
||||
});
|
||||
jQuery("#btn_deposito").click(function(){
|
||||
var form_data = jQuery("#form_deposito").serialize();
|
||||
$.post('<?php echo _BASE_;?>ranap/save_deposito.php?page=isi',form_data,function(data) {
|
||||
$("#deposit-modal").modal("hide");
|
||||
Toast.fire({title:data.message,type:data.type,onClose: () => {
|
||||
if(data.type == 'success'){
|
||||
print_deposito(data.nonota, nomr, idx, nobill);
|
||||
}
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
function batal_deposit(idxdaftar,id_bill,nomr,nobill){
|
||||
idxbill = [];
|
||||
idxbill.push(id_bill);
|
||||
Swal.fire({
|
||||
title: 'Anda yakin?',
|
||||
html: "Anda ingin membatalkan billing tersebut dengan alasan<br><input type=text id=alasan_batal class=\"form-control\" placeholder=\"Alasan Batal\">",
|
||||
type: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#3085d6',
|
||||
cancelButtonColor: '#d33',
|
||||
confirmButtonText: 'Ya, Batalkan!'
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
alasan = $("#alasan_batal").val();
|
||||
jQuery.post("<?php echo _BASE_.'include/master.php';?>",{idxbill,nomr,batal_trx_ranap:true},function(data){
|
||||
print_notabatal(idxdaftar,nobill,data.nonota);
|
||||
},"json");
|
||||
}
|
||||
});
|
||||
}
|
||||
function print_notabatal(idxdaftar,nobill,nonota)
|
||||
{
|
||||
jspm_print('<?php echo _BASE_; ?>print_nota_batal.php?nonota='+nonota+'&rajal_status=0&idxdaftar='+idxdaftar+'&nobill='+nobill,'modal-preview','Nota Pembatalan '+nonota+'.pdf',0);
|
||||
$("#modal-preview").on("hidden.bs.modal",function(e){
|
||||
window.location.reload();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$deposit = $("#deposit-template").html();
|
||||
$("body").append($deposit);
|
||||
});
|
||||
</script>
|
||||
<template id="deposit-template">
|
||||
<div class="modal fade deposit-modal-lg" id="deposit-modal" role="dialog" aria-labelledby="RadiologiModal" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Pengisian Deposito</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="form_deposito">
|
||||
<input type="hidden" name="input[idxdaftar]" value="" id="input_idx">
|
||||
<input type="hidden" name="input[ruang]" value="" id="input_ruang">
|
||||
<input type="hidden" name="input[nott]" value="" id="input_nott">
|
||||
<input type="hidden" name="input[nomr]" value="" id="input_nomr">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4">No Bill</label>
|
||||
<div class="col-sm-8"><input type="text" name="input[nobill]" id="input_nobill" class="form-control" readonly="true"></div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4">Nama</label>
|
||||
<div class="col-sm-8"><input type="text" name="nama_px" id="input_nama" class="form-control" readonly="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div classs="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-4">Deposit</label>
|
||||
<div class="col-sm-8"><input type="text" name="input[deposit]" id="input_deposit" class="form-control mask-money"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="data_deposit">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary" id="btn_deposito" data-dismiss="modal">Simpan Deposito</button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<?php } ?>
|
||||
@@ -0,0 +1,235 @@
|
||||
<?php
|
||||
|
||||
if(empty($_REQUEST['PERID'])){
|
||||
$edit = "no";
|
||||
} else {
|
||||
$edit = "ok";
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<div id="all">
|
||||
<form name="myform" id="myform" action="./kep/add_edit_diagnosa_kep_detail.php?edit=<?php echo $edit;?>" method="post">
|
||||
<?php if(isset($_GET['iddetdiagkep'])) {
|
||||
$sql = $db->query("SELECT * FROM t_diagnosakep a left join t_detail_diagnosakep b on a.id_diagnosakep = b.id_diagnosakep WHERE a.NOMR ='".$_GET['NOMR']."' and a.idadmission = '".$_GET['idadmission']."' and a.id_diagnosakep = '".$_GET['iddiagkep']."' and b.id_detail_diagnosakep = '".$_GET['iddetdiagkep']."';");
|
||||
?>
|
||||
<input class="text" value="<?=$_GET['iddiagkep']?>" type="text" name="id_diagkep" id="id_diagkep" >
|
||||
<input class="text" value="<?=$_GET['iddetdiagkep']?>" type="text" name="id_detail_diagkep" id="id_detail_diagkep" >
|
||||
<?php } else if(isset($_GET['iddiagkep'])){
|
||||
$sql = $db->query("SELECT * FROM t_diagnosakep WHERE NOMR ='".$_GET['NOMR']."' and idadmission = '".$_GET['idadmission']."' and id_diagnosakep = '".$_GET['iddiagkep']."';"); ?>
|
||||
<input class="text" value="<?=$_GET['iddiagkep']?>" type="text" name="id_diagkep" id="id_diagkep" >
|
||||
<?php } $data = $sql->fetchAll()[0];?>
|
||||
<div id="list_data"></div>
|
||||
<br>
|
||||
|
||||
|
||||
<fieldset class="fieldset"><legend>Diagnosa Terapi</legend>
|
||||
<table width="50%" border="0" cellpadding="3" cellspacing="0" align="left">
|
||||
<tr>
|
||||
<td valign="top" colspan="2">Domain</td>
|
||||
<td colspan="2">
|
||||
<?php
|
||||
$ss = $db->query('select * from m_domain_diagnosa_kep order by id_domain ASC');
|
||||
foreach($ss->fetchAll() as $ds){
|
||||
if($data['id_domain'] == $ds['id_domain']): echo $ds['nama_domain']; endif;
|
||||
}
|
||||
?>
|
||||
<input class="text" value="" type="text" name="ID_DIAGNOSISHIDDEN" id="ID_DIAGNOSISHIDDEN" >
|
||||
<input class="text" value="" type="text" name="KECAMATANHIDDEN" id="KECAMATANHIDDEN" >
|
||||
<input class="text" value="" type="text" name="ID_SUB_VAR2HIDDEN" id="ID_SUB_VAR2HIDDEN" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" colspan="2">Diagnosis </td>
|
||||
<td colspan="2">
|
||||
<?php
|
||||
$ss = $db->query('select * from m_diagnosis_kep where id_domain = "'.$data['id_domain'].'" order by ID_DIAGNOSIS ASC');
|
||||
foreach($ss->fetchAll() as $ds){
|
||||
if($data['id_diagnosis'] == $ds['id_diagnosis']): echo $ds['nama_diagnosis']. ' ('.$ds['kode_diagnosis'].')'; endif;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" colspan="2">Daftar Implementasi</td>
|
||||
<td colspan="2"><textarea name="implementasi" cols="60" rows="5" class="text"><?=$data['implementasi']?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" rowspan="4">Daftar Evaluasi</td>
|
||||
<td valign="top">S</td>
|
||||
<td colspan="2"><textarea name="evaluasi_s" cols="60" rows="5" class="text"><?=$data['evaluasi_s']?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">O</td>
|
||||
<td colspan="2"><textarea name="evaluasi_o" cols="60" rows="5" class="text"><?=$data['evaluasi_o']?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">A</td>
|
||||
<td colspan="2"><textarea name="evaluasi_a" cols="60" rows="5" class="text"><?=$data['evaluasi_a']?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">P</td>
|
||||
<td colspan="2"><textarea name="evaluasi_p" cols="60" rows="5" class="text"><?=$data['evaluasi_p']?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5" align="right"><a href="?link=diagnosa_kep&NOMR=<?=$_GET['NOMR'];?>&nama=<?php echo $_GET['nama']?>&idadmission=<?php echo $_GET['idadmission']?>"></a> <input type="submit" name="daftar" class="text" value=" S i m p a n "/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<table width="50%" border="0" cellpadding="3" cellspacing="0" align="right">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title"><h5>DAFTAR INTERVENSI</h5></div>
|
||||
<div align="right" style="margin:5px; margin-right:10px;">
|
||||
|
||||
<div id="head_report" style="display:none" >
|
||||
<div align="left" style="clear:both; padding:20px">
|
||||
<div style="letter-spacing:-1px; font-size:16px; font:bold;"><?=strtoupper($header1)?></div>
|
||||
<div style="letter-spacing:-2px; font-size:24px; color:#666; font:bold;"><?=strtoupper($header2)?></div>
|
||||
<div><?=$header3?><br /><?=$header4?></div>
|
||||
<hr style="margin:5px;" />
|
||||
<h2>LIST DATA PASIEN</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="table_search">
|
||||
<form method="get" action="<?php $_SERVER['PHP_SELF']; ?>" name="formku" id="formku" onSubmit="return validasi()" >
|
||||
<table width="95%" style="margin:10px;" border="0" class="tb" cellspacing="1" cellspading="1" title="List Semua Data Pasien.">
|
||||
<tr><td colspan="5">Search: <input type="hidden" name="link" id="link" value="<?php echo"$_GET[link]";?>"><input type="hidden" name="NOMR" id="NOMR" value="<?php echo"$_GET[NOMR]";?>">
|
||||
<input type="hidden" name="idadmission" id="idadmission" value="<?php echo"$_GET[idadmission]";?>">
|
||||
<input type="hidden" name="nama" id="nama" value="<?php echo"$_GET[nama]";?>">
|
||||
<input type="hidden" name="kegiatan" id="kegiatan" width="200" maxlength="200"><input type="submit" value="search"></td></tr>
|
||||
<tr align="center">
|
||||
<th width="2%">No</th>
|
||||
<th width="53%">Kelompok Kegiatan</th>
|
||||
<th width="20%">Kode</th>
|
||||
<th width="20%">Aktivitas</th>
|
||||
<th width="5%">Keterangan</th>
|
||||
</tr>
|
||||
<?php
|
||||
if($_GET[kegiatan]==''){
|
||||
$sql="SELECT a.* FROM m_intervensi a order by a.id_intervensi";
|
||||
$sql1="SELECT count(*) FROM m_intervensi ";
|
||||
}
|
||||
else{
|
||||
$sql="SELECT a.* FROM m_intervensi a where a.kegiatan like '%$_GET[kegiatan]%' order by a.id_intervensi";
|
||||
$sql1="SELECT count(*) FROM m_intervensi ";
|
||||
}
|
||||
$pager = paginate( $sql, $sql1, 15, 5, "orderby=".$orderby."&searchkey=".$searchkey."&searchfield=".$searchfield, "index.php?link=nic_list&");
|
||||
|
||||
|
||||
$NO = 0;
|
||||
foreach($pager['list'] as $data) {?>
|
||||
<tr <?php echo "class =";
|
||||
$count++;
|
||||
if ($count % 2) {
|
||||
echo "tr1";
|
||||
}
|
||||
else {
|
||||
echo "tr2";
|
||||
}
|
||||
?>>
|
||||
<td align="center"><?php $NO=($NO+1);
|
||||
if (isset($_GET['page'])==0) {
|
||||
$hal=0;
|
||||
}else {
|
||||
$hal=isset($_GET['page'])-1;
|
||||
} echo
|
||||
($hal*15)+$NO;?></td>
|
||||
<td><?php echo $data['kegiatan']; ?></td>
|
||||
<td><?php echo $data['kode']; ?></td>
|
||||
<td><?php echo $data['aktivitas']; ?></td>
|
||||
<td align="center"><?php if($data['link'] != '') { ?><a href="implementasi/<?php echo $data['link']; ?>"><input type="button" value="dokumen" class="text" /></a><?php }?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
|
||||
//Display the full navigation in one go
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<?php
|
||||
|
||||
//Display the full navigation in one go
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</td>
|
||||
</tr></table>
|
||||
</fieldset>
|
||||
<?php
|
||||
$page=1;
|
||||
$pager = paginate( $sql, $sql1, 15, 5, "orderby=''&searchkey=''&searchfield=''", "index.php?link=diagnosa_kep&");
|
||||
?>
|
||||
<table class="tb" width="95%" style="margin:10px;" border="0" cellspacing="1" cellspading="1" title="List Kunjungan Data Pasien Per Hari Ini">
|
||||
<tr align="center">
|
||||
<th width="2%">NO</th>
|
||||
<!--<th width="20%">Domain</th>
|
||||
<th width="5%">Kode Diagnosis</th>-->
|
||||
<th width="19%">Dokter</th>
|
||||
<th width="19%">Tanggal Update</th>
|
||||
<th width="19%">Daftar Implementasi</th>
|
||||
<th width="19%">Daftar Evaluasi - S</th>
|
||||
<th width="19%">Daftar Evaluasi - O</th>
|
||||
<th width="19%">Daftar Evaluasi - A</th>
|
||||
<th width="19%">Daftar Evaluasi - P</th>
|
||||
<th width="3%">Aksi</th>
|
||||
</tr>
|
||||
<?php $sql = "SELECT a.* FROM t_detail_diagnosakep a WHERE a.id_diagnosakep = '".$_GET['iddiagkep']."'";
|
||||
$sqlcounter = "SELECT count(id_detail_diagnosakep) FROM t_detail_diagnosakep WHERE id_diagnosakep = '".$_GET['iddiagkep']."' ORDER BY id_detail_diagnosakep";
|
||||
|
||||
$pager->PS_Pagination($connect, $sql, $sqlcounter, 15, 5, "","index.php?link=diagnosa_kep_detail&");
|
||||
//The paginate() function returns a mysql result set
|
||||
|
||||
|
||||
$NO = 0;
|
||||
foreach($pager['list'] as $data) {?>
|
||||
<tr <?php echo "class =";
|
||||
$count++;
|
||||
if ($count % 2) {
|
||||
echo "tr1";
|
||||
}
|
||||
else {
|
||||
echo "tr2";
|
||||
}
|
||||
?>>
|
||||
<td valign="top"><?php $NO=($NO+1);
|
||||
if (isset($_GET['page'])==0) {
|
||||
$hal=0;
|
||||
}else {
|
||||
$hal=isset($_GET['page'])-1;
|
||||
} echo
|
||||
($hal*15)+$NO;?></td>
|
||||
<!--<td valign="top"><?php echo $data['nama_domain']; ?></td>
|
||||
<td align='center' valign="top"><?php echo $data['kode_diagnosis']; ?></td>-->
|
||||
<td valign="top"><?php
|
||||
$sql = $db->query('select NAMA from m_perawat where NIP = "'.$data['perawat'].'"');
|
||||
foreach($sql->fetchAll() as $ds){
|
||||
echo $ds['NAMA'];} ?></td>
|
||||
<td valign="top"><?php echo $data['tgl']; ?></td>
|
||||
<td valign="top"><?php echo $data['implementasi']; ?></td>
|
||||
<td valign="top"><?php echo $data['evaluasi_s']; ?></td>
|
||||
<td valign="top"><?php echo $data['evaluasi_o']; ?></td>
|
||||
<td valign="top"><?php echo $data['evaluasi_a']; ?></td>
|
||||
<td valign="top"><?php echo $data['evaluasi_p']; ?></td>
|
||||
<td valign="top"><a href="?link=det_diagnosa_kep&NOMR=<?=$_GET['NOMR'];?>&nama=<?php echo $_GET['nama']?>&idadmission=<?php echo $_GET['idadmission']?>&iddiagkep=<?php echo $data['id_diagnosakep']?>&iddetdiagkep=<?php echo $data['id_detail_diagnosakep']?>"><input type="button" value="edit" class="text" /></a></td>
|
||||
</tr>
|
||||
<?php }
|
||||
|
||||
//Display the full navigation in one go
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
|
||||
</table>
|
||||
|
||||
<?php
|
||||
|
||||
//Display the full navigation in one go
|
||||
echo $pager['nav'];
|
||||
?>
|
||||
@@ -0,0 +1,211 @@
|
||||
<?php
|
||||
// include '/core/main.php';
|
||||
// include '/include/function.php';
|
||||
|
||||
$editFormAction = $_SERVER['PHP_SELF'];
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
|
||||
}
|
||||
|
||||
if ((isset($_POST["DPMP_update"])) && ($_POST["DPMP_update"] == "form1")) {
|
||||
$updateSQL = sprintf("UPDATE t_dpmp SET RUANG=%s, TYPEMAKANAN=%s, KETERANGAN=%s, JENISMAKANAN=%s, SHIFT=%s, SNACK=%s, KETERANGANTAMBAHAN=%s WHERE IDX=%s",
|
||||
GetSQLValueString($_POST['RUANG'], "int"),
|
||||
GetSQLValueString($_POST['TYPEMAKANAN'], "int"),
|
||||
GetSQLValueString($_POST['KETERANGAN'], "int"),
|
||||
GetSQLValueString($_POST['JENISMAKANAN'], "int"),
|
||||
GetSQLValueString($_POST['SHIFT'], "int"),
|
||||
GetSQLValueString($_POST['SNACK'], "int"),
|
||||
GetSQLValueString($_POST['KETERANGANTAMBAHAN'], "text"),
|
||||
GetSQLValueString($_POST['IDX'], "int"));
|
||||
$Result1 = $db->query($updateSQL);
|
||||
$updateGoTo = "index.php?p=list";
|
||||
if (isset($_SERVER['QUERY_STRING'])) {
|
||||
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
|
||||
$updateGoTo .= $_SERVER['QUERY_STRING'];
|
||||
}
|
||||
$historyback = '129x';
|
||||
if($_REQUEST['historyback'] !=''){
|
||||
$historyback = $_REQUEST['historyback'];
|
||||
}
|
||||
?>
|
||||
<script language="javascript">
|
||||
alert("Simpan Data Sukses!");
|
||||
window.location="?link=<?php echo $historyback; ?>";
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
||||
$query_rse = "select a.*, b.NAMA, c.*, e.nama
|
||||
from t_admission a
|
||||
join m_pasien b on b.nomr = a.nomr
|
||||
join t_dpmp c on a.id_admission = c.IDXDAFTAR
|
||||
inner join m_ruang e on a.noruang=e.no
|
||||
where c.IDX='".$_GET['IDX']."'";
|
||||
$rse = $db->query($query_rse);
|
||||
$row_rse = $rse->fetchAll()[0];
|
||||
$totalRows_rse = $rse->numRows();
|
||||
|
||||
?>
|
||||
<div align="center">
|
||||
<div id="frame">
|
||||
<div id="frame_title"><h5>Form Edit</h5></div>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<h5 class="card-header">Edit Permintaan Makan</h5>
|
||||
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nomor MR</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="hidden" name="nomr" id="nomr" class="form-control text" value="<?php echo $row_rse['NOMR'];?>" />
|
||||
<?php echo $row_rse['NOMR'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Masuk Rumah Sakit</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="text" name="masukrs" id="tgl_masuk" readonly="readonly" class="form-control text" value="<?php echo htmlentities($row_rse['masukrs'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nama Ruang / Tempat Tidur</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="hidden" name="RUANG" value="<?php echo $row_rse['noruang']; ?>" />
|
||||
<?php echo $row_rse['nama'];?> / <?php echo $row_rse['nott'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Type Makanan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<select name="TYPEMAKANAN" class="form-control text">
|
||||
<option value=""> -Pilih- </option>
|
||||
<?php
|
||||
$qrytype = $db->query("SELECT * FROM m_typemakanan");
|
||||
foreach($qrytype->fetchAll() as $listype) {
|
||||
?>
|
||||
<option value="<?php echo $listype['id_typemakanan'];?>" <?php if($listype['id_typemakanan']==$row_rse['TYPEMAKANAN']) echo "selected=selected"; ?>><?php echo $listype['nama_typemakanan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Keterangan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<select name="KETERANGAN" class="form-control text">
|
||||
<option value=""> -Pilih- </option>
|
||||
<?php
|
||||
$qryket = $db->query("SELECT * FROM m_keteranganmakanan");
|
||||
foreach($qryket->fetchAll() as $listket) {
|
||||
?>
|
||||
<option value="<?php echo $listket['id_keteranganmakanan'];?>" <?php if($listket['id_keteranganmakanan']==$row_rse['KETERANGAN']) echo "selected=selected"; ?>><?php echo $listket['nama_keteranganmakanan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Keterangan Tambahan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<textarea name="KETERANGANTAMBAHAN" class="form-control text" cols="50" rows="6"><?php echo $row_rse['KETERANGANTAMBAHAN'];?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Nama Pasien</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<?php echo $row_rse['NAMA'];?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Dokter Pengirim</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<?php
|
||||
$dktr = getNamaDokter($row_rse['dokterpengirim']);
|
||||
echo $dktr['NAMADOKTER'];
|
||||
?>
|
||||
<input type="hidden" class="form-control form-control-sm text" name="dokterpengirim" value="<?php echo htmlentities($row_rse['dokterpengirim'], ENT_COMPAT, 'utf-8'); ?>" size="32" />
|
||||
<input type="hidden" name="kirimdari" value="<?php echo htmlentities($row_rse['kirimdari'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="noruang_asal" value="<?php echo htmlentities($row_rse['noruang'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="nott_asal" value="<?php echo htmlentities($row_rse['nott'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
<input type="hidden" name="kd_rujuk" value="<?php echo htmlentities($row_rse['kd_rujuk'], ENT_COMPAT, 'utf-8'); ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">DIIT (Shift)</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="radio" name="SHIFT" value="1" <?php if($row_rse['SHIFT']=="1")echo "Checked";?> /> Pagi
|
||||
<input type="radio" name="SHIFT" value="2" <?php if($row_rse['SHIFT']=="2")echo "Checked";?>/> Siang
|
||||
<input type="radio" name="SHIFT" value="3" <?php if($row_rse['SHIFT']=="3")echo "Checked";?>/> Sore
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Snack</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<input type="radio" name="SNACK" value="1" <?php if($row_rse['SNACK']=="1")echo "Checked";?> /> Pagi
|
||||
<input type="radio" name="SNACK" value="2" <?php if($row_rse['SNACK']=="2")echo "Checked";?>/> Sore</span>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left">Jenis Makanan</label>
|
||||
<div class="col-sm-8" style="text-align:left">
|
||||
<select name="JENISMAKANAN" class="form-control text">
|
||||
<?php
|
||||
$qryjns = $db->query("SELECT * FROM m_jenismakanan");
|
||||
foreach($qryjns->fetchAll() as $listype) {
|
||||
?>
|
||||
<option value="<?php echo $listype['id_jenismakanan'];?>" <?php if($listype['id_jenismakanan']==$row_rse['JENISMAKANAN']) echo "selected=selected"; ?>><?php echo $listype['nama_jenismakanan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left"> </label>
|
||||
<div class="col-sm-4" style="text-align:left">
|
||||
|
||||
<input type="submit" class="btn btn-primary" value="Simpan">
|
||||
<input class="btn btn-secondary" name="kembali" type="button" value="Kembali" onclick=window.location.href='?link=129x' />
|
||||
|
||||
<input type="hidden" name="DPMP_update" value="form1" />
|
||||
<input type="hidden" name="id_admission" value="<?php echo $row_rse['id_admission']; ?>" />
|
||||
<input type="hidden" name="IDX" value="<?php echo $row_rse['IDX']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
mysqli_free_result($rse);
|
||||
?>
|
||||
@@ -0,0 +1,231 @@
|
||||
<?php
|
||||
$tmp_dokumen = $db->query("SELECT dokumen_pendukung from t_pendaftaran where idxdaftar=" . $id_admission);
|
||||
$list_dokumen = $tmp_dokumen->fetchFirst();
|
||||
|
||||
if ($list_dokumen['dokumen_pendukung'] != '') {
|
||||
$arr_dokumen_rajal = unserialize($list_dokumen['dokumen_pendukung']);
|
||||
} else {
|
||||
$arr_dokumen_rajal = [];
|
||||
}
|
||||
$tmp_dokumen_ranap = $db->query("SELECT dokumen_pendukung from t_admission where id_admission=" . $id_admission);
|
||||
|
||||
$list_dokumen_ranap = $tmp_dokumen_ranap->fetchFirst();
|
||||
|
||||
// var_dump($list_dokumen_ranap);
|
||||
if ($list_dokumen_ranap['dokumen_pendukung'] != '') {
|
||||
$arr_dokumen_ranap = unserialize($list_dokumen_ranap['dokumen_pendukung']);
|
||||
} else {
|
||||
$arr_dokumen_ranap = [];
|
||||
}
|
||||
?>
|
||||
<p class="bg-info text-white p-2 mt-2">Form Dokumen Pendukung</p>
|
||||
<form method="post" id="dokumen_form" enctype="multipart/form-data">
|
||||
<?php
|
||||
echo '<input type="hidden" name="rajal_status" value="0">';
|
||||
echo '<input type="hidden" name="input[nobill]" value="' . $userdata['nobill'] . '">';
|
||||
echo '<input type="hidden" name="input[nomr]" value="' . $userdata['nomr'] . '">';
|
||||
echo '<input type="hidden" name="input[idxdaftar]" value="' . $id_admission . '">';
|
||||
echo '<input type="hidden" name="input[user]" value="' . $_SESSION['NIP'] . '">';
|
||||
?>
|
||||
<div class="row text-left">
|
||||
<div class="col-md-8 col-lg-8">
|
||||
<h3>Daftar Dokumen</h3>
|
||||
<table class="table table-sm table-striped table-bordered" id="tbl_dokumen">
|
||||
<thead>
|
||||
<tr class="table-primary">
|
||||
<th width="3%">No</th>
|
||||
<th width="20%">Nama Dokumen</th>
|
||||
<th width="5%">Type Dokumen</th>
|
||||
<th width="10%">Petugas Upload</th>
|
||||
<th width="5%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
// echo "<pre>" . var_dump($arr_dokumen_ranap) . "</pre>";
|
||||
|
||||
if (!empty($arr_dokumen_ranap)) {
|
||||
$no = 1;
|
||||
foreach ($arr_dokumen_rajal as $dok) {
|
||||
echo "RAJAL";
|
||||
$encrypt = base64_encode($dok['file']);
|
||||
$btn_hapus = (array_key_exists('user', $dok) && $dok['user'] != '' && $dok['user'] == $_SESSION['NIP']) ? '<button type="button" class="btn btn-sm btn-danger btn-rect btn_hapus_dokumen" data-idx="' . $userdata['id_admission'] . '" data-file="\'' . $encrypt . '\'">Hapus</button>' : '';
|
||||
echo '<tr><td>' . $no . '</td><td>';
|
||||
echo '<button type="button" onClick="preview_file(\'' . $encrypt . '\')" id="btn_dokumen' . $no . '" class="btn btn-warning btn-sm btn-block btn-rect text-left">' . $dok['nama_file'] . '</button>';
|
||||
echo '</td><td>'.(isset($dok['type_file']) ? $dok['type_file'] : "") .'</td></td>';
|
||||
echo '</td><td>'.(isset($dok['nama_pegawai']) ? $dok['nama_pegawai'] : "").'</td></td>';
|
||||
echo '</td><td>' . $btn_hapus . '</td></tr>';
|
||||
$no++;
|
||||
}
|
||||
//var_dump($arr_dokumen_ranap);
|
||||
if (!empty($arr_dokumen_ranap)) {
|
||||
echo "RANAP 1";
|
||||
foreach ($arr_dokumen_ranap as $dok) {
|
||||
$encrypt = base64_encode($dok['file']);
|
||||
$btn_hapus = (array_key_exists('user', $dok) && $dok['user'] != '' && $dok['user'] == $_SESSION['NIP']) ? '<button type="button" class="btn btn-sm btn-danger btn-rect btn_hapus_dokumen" data-idx="' . $userdata['id_admission'] . '" data-file="\'' . $encrypt . '\'">Hapus</button>' : '';
|
||||
echo '<tr><td>' . $no . '</td><td>';
|
||||
echo '<button type="button" onClick="preview_file(\'' . $encrypt . '\')" id="btn_dokumen' . $no . '" class="btn btn-warning btn-sm btn-block btn-rect text-left">' . $dok['nama_file'] . '</button>';
|
||||
echo '</td><td>'.(isset($dok['type_file']) ? $dok['type_file'] : "") .'</td></td>';
|
||||
echo '</td><td>'.(isset($dok['nama_pegawai']) ? $dok['nama_pegawai'] : "").'</td></td>';
|
||||
echo '</td><td>' . $btn_hapus . '</td></tr>';
|
||||
$no++;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!empty($arr_dokumen_ranap)) {
|
||||
$no = 1;
|
||||
echo "RANAP 2";
|
||||
foreach ($arr_dokumen_ranap as $dok) {
|
||||
$encrypt = base64_encode($dok['file']);
|
||||
$btn_hapus = (array_key_exists('user', $dok) && $dok['user'] != '' && $dok['user'] == $_SESSION['NIP']) ? '<button type="button" class="btn btn-sm btn-danger btn-rect btn_hapus_dokumen" data-idx="' . $userdata['id_admission'] . '" data-file="\'' . $encrypt . '\'">Hapus</button>' : '';
|
||||
echo '<tr><td>' . $no . '</td><td>';
|
||||
echo '<button type="button" onClick="preview_file(\'' . $encrypt . '\')" id="btn_dokumen' . $no . '" class="btn btn-warning btn-sm btn-block btn-rect text-left">' . $dok['nama_file'] . '</button>';
|
||||
echo '</td><td>'.(isset($dok['type_file']) ? $dok['type_file'] : "") .'</td></td>';
|
||||
echo '</td><td>'.(isset($dok['nama_pegawai']) ? $dok['nama_pegawai'] : "").'</td></td>';
|
||||
echo '</td><td>' . $btn_hapus . '</td></tr>';
|
||||
$no++;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-md-4 col-lg-4">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label >Nama Dokumen</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="control">
|
||||
<input type="text" name="input[nama_file]" class="form-control" id="nama_file" maxlength="50">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>Type Dokumen</label>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="control">
|
||||
<?php $arr_poly = [
|
||||
''=>'Silahkan Pilih Type',
|
||||
'Data Pasien'=>'Data Pasien',
|
||||
'Data Penunjang'=>'Data Penunjang',
|
||||
'Lain Lain'=>'Lain Lain'
|
||||
]; ?>
|
||||
<?php echo form_dropdown('input[type_file]',$arr_poly,'','class="form-control"'); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<div class="input-group">
|
||||
<div class="custom-file">
|
||||
<input type="file" name="file_dokumen" class="custom-file-input" id="file_dokumen">
|
||||
<label class="custom-file-label" for="file_dokumen">Choose file</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="button" id="btn_simpan_dokumen" class="btn btn-primary"><i class="fas fa-hdd-o"></i>
|
||||
Simpan</button>
|
||||
<button type="reset" class="btn btn-danger"><i class="fas fa-refresh"></i> Reset</button>
|
||||
</div>
|
||||
<div class="alert alert-success">
|
||||
<h>FILE FORMAT : *.JPG, *.PDF </h>
|
||||
<br>
|
||||
<h>MAXIMAL FILE UPLOAD : 2MB </h>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
$('.custom-file-input').on('change', function() {
|
||||
let fileName = $(this).val().split('\\').pop();
|
||||
$(this).next('.custom-file-label').addClass("selected").html(fileName);
|
||||
});
|
||||
$("#btn_simpan_dokumen").click(function() {
|
||||
var fd = new FormData($("#dokumen_form")[0]);
|
||||
|
||||
let nama = $("#nama_file").val();
|
||||
|
||||
if (nama == "") {
|
||||
Toast.fire({
|
||||
title: "Isikan Nama Dokumen!",
|
||||
type: "error"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
// if($("#file_dokumen").length > 0) { fd.append('file_dokumen', $('#file_dokumen')[0].files[0]) }
|
||||
|
||||
$.ajax({
|
||||
method: "post",
|
||||
url: "rajal/save_dokumen.php",
|
||||
data: fd,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
dataType: "json",
|
||||
success: function(result) {
|
||||
Toast.fire({
|
||||
title: result.message,
|
||||
type: result.type,
|
||||
onClose: function() {
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function preview_file(file) {
|
||||
$.post("<?php echo _BASE_ . 'include/master.php'; ?>", {
|
||||
viewer: 1,
|
||||
filepath: file
|
||||
}, function(data) {
|
||||
$("#print_body").html("");
|
||||
$("#print_body").html("<iframe name=\"print_out\" src=\"" + data +
|
||||
"\" frameborder=\"0\" style=\"width:100%;height:450px\" id=\"report-frame\"></iframe>");
|
||||
$("#modal-preview .btn-success").css("display", "none");
|
||||
$("#modal-preview").modal("show");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
$("#tbl_dokumen").delegate(".btn_hapus_dokumen", "click", function() {
|
||||
let file_path = $(this).data("file");
|
||||
|
||||
console.log(file_path);
|
||||
let idx = $(this).data("idx");
|
||||
Swal.fire({
|
||||
html: "<div class=\"alert alert-danger\">Yakin akan menghapus dokumen ini?</div>",
|
||||
showCancelButton: true,
|
||||
animation: false,
|
||||
confirmButtonText: "Ya",
|
||||
cancelButtonText: "Tidak"
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
$.post("<?php echo _BASE_ . 'include/master.php'; ?>", {
|
||||
hapus_dokumen: 1,
|
||||
rajal: 2,
|
||||
idx,
|
||||
file_path
|
||||
}, function(data) {
|
||||
Toast.fire({
|
||||
title: data.message,
|
||||
type: data.type,
|
||||
onClose: function() {
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
}, "json");
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,183 @@
|
||||
<form action="ranap/save_dpmp.php" name="dpmp" method="post" id="dpmp">
|
||||
<input type="hidden" name="idxdaftar" value="<?php echo $id_admission; ?>" />
|
||||
<input type="hidden" name="nomr" value="<?php echo $nomr; ?>" />
|
||||
<input type="hidden" name="ruang" value="<?php echo $noruang; ?>" />
|
||||
<input type="hidden" name="nobill" value="<?php echo $userdata['nobill']; ?>" />
|
||||
<fieldset class="fieldset">
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Waktu Diet </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="waktu_konsumsi[]" value="SIANG" id="shift_2"
|
||||
checked="checked" class="cb_waktu" /> <label class="form-check-label"
|
||||
for="shift_2"> Siang</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="waktu_konsumsi[]" value="SORE" id="shift_3"
|
||||
checked="checked" class="cb_waktu" /> <label class="form-check-label"
|
||||
for="shift_3"> Sore</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="waktu_konsumsi[]" value="PAGI" id="shift_1"
|
||||
checked="checked" class="cb_waktu" /> <label class="form-check-label"
|
||||
for="shift_1"> Pagi</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Menu Makanan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="menu_diet" id="menu_diet" class="form-control">
|
||||
<input type="hidden" name="idx_diet" id="idx_diet" value="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Daftar Diet</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left" id="daftar_diet">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Detail Diet</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left" id="detail_diet">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Keterangan
|
||||
Tambahan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="keterangantambahan" class="form-control text" cols="50"
|
||||
rows="6"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
/***Todo Pembatasan Access menurut unit pelayanan */
|
||||
if (($_SESSION['ROLES'] == 15) or ($_SESSION['ROLES'] == 6)) {
|
||||
|
||||
//echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
} else {
|
||||
echo '<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="button" name="Submit" value="Simpan" class="btn btn-primary text" id="btn_save_dpmp" disabled="true"/>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<?php
|
||||
if (($_SESSION['ROLES'] == 15) or ($_SESSION['ROLES'] == 6)) {
|
||||
echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
}
|
||||
|
||||
?>
|
||||
</fieldset>
|
||||
</form>
|
||||
<div id="valid_save_dpmp">
|
||||
<?php include("save_dpmp.php"); ?>
|
||||
</div>
|
||||
<?php
|
||||
$js_init .= '
|
||||
arr_waktu = [];
|
||||
async function load_diet() {
|
||||
const menu_diet = await new Bloodhound({
|
||||
datumTokenizer: Bloodhound.tokenizers.obj.whitespace("text"),
|
||||
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
||||
remote: {
|
||||
url : "' . _BASE_ . 'include/master.php?diet=true&waktu="+arr_waktu+"&get_menu_diet=1&nama=%QUERY",
|
||||
wildcard: "%QUERY"
|
||||
}
|
||||
});
|
||||
|
||||
$("#btn_save_dpmp").prop("disabled",true);
|
||||
|
||||
$("#menu_diet").typeahead({hint: true, highlight: true, minLength: 2 },{
|
||||
name: "menu_diet",
|
||||
display: "text",
|
||||
source: menu_diet,
|
||||
limit: 10
|
||||
}).on("typeahead:selected typeahead:autocompleted typeahead:matched", function (ev, datum) {
|
||||
load_detail_diet(datum.text);
|
||||
$("#btn_save_dpmp").prop("disabled",false);
|
||||
});
|
||||
}
|
||||
|
||||
function load_detail_diet(diet) {
|
||||
$.post("' . _BASE_ . 'include/master.php",{diet:true,waktu:arr_waktu,nama:diet},function(data){
|
||||
$("#daftar_diet").html("").html(data.daftar_diet);
|
||||
$("#detail_diet").html("").html(data.detail_diet);
|
||||
$("#idx_diet").val(data.id_diet);
|
||||
},"json");
|
||||
}
|
||||
$(".cb_waktu").each(function(){
|
||||
if($(this).prop("checked")) {
|
||||
$(this).prop("checked",true);
|
||||
arr_waktu.push($(this).val());
|
||||
}
|
||||
});
|
||||
|
||||
$(".cb_waktu").click(function(){
|
||||
key = $(this).val();
|
||||
if($(this).prop("checked") == false) {
|
||||
for(i = 0; i < arr_waktu.length ; i++) {
|
||||
if(arr_waktu[i] == key) {
|
||||
arr_waktu.splice(i,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
arr_waktu.push(key);
|
||||
}
|
||||
load_diet();
|
||||
});
|
||||
load_diet();
|
||||
|
||||
$("#btn_save_dpmp").click(function(){
|
||||
form_data = $("#dpmp").serialize();
|
||||
$.post("' . _BASE_ . 'ranap/save_dpmp.php",form_data+"&check=1",function(data){
|
||||
|
||||
if(data.type == "error") {
|
||||
Swal.fire({
|
||||
html: "<div class=\"alert alert-info\">Ditemukan diit untuk pasien ini pada hari ini, apakah ingin mengganti dengan diit yang baru?</div>",
|
||||
showCancelButton: true,
|
||||
animation: false,
|
||||
confirmButtonText: "Ya",
|
||||
cancelButtonText: "Tidak"
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
$.post("' . _BASE_ . 'ranap/save_dpmp.php",form_data+"&replace=1",function(data){
|
||||
$("#valid_save_dpmp").html(data);
|
||||
$("#daftar_diet").html("");
|
||||
$("#detail_diet").html("");
|
||||
$("#menu_diet").val("");
|
||||
$("#btn_save_dpmp").prop("disabled",true);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.post("' . _BASE_ . 'ranap/save_dpmp.php",form_data,function(data){
|
||||
$("#valid_save_dpmp").html(data);
|
||||
$("#daftar_diet").html("");
|
||||
$("#detail_diet").html("");
|
||||
$("#menu_diet").val("");
|
||||
$("#btn_save_dpmp").prop("disabled",true);
|
||||
});
|
||||
}
|
||||
},"json");
|
||||
|
||||
});
|
||||
';
|
||||
?>
|
||||
@@ -0,0 +1,207 @@
|
||||
|
||||
<h3 class="text-center">SURAT PERSETUJUAN RAWAT INAP</h3>
|
||||
<form method="post" id="dokumen_form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
<div class="row text-left">
|
||||
<div class="col-md-9 col-lg-9 mt-5">
|
||||
<div class="form-group">
|
||||
<label >Nama</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[nama]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Umur</label>
|
||||
<div class="control">
|
||||
<input type="number" name="input[umur]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Jenis Kelamin</label>
|
||||
<div class="control">
|
||||
<div class="form-check">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[jk]" id="jk1" value="L" >
|
||||
<label class="form-check-label" for="jk1">
|
||||
Laki-Laki
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[jk]" id="jk2" value="P" >
|
||||
<label class="form-check-label" for="jk2">
|
||||
Perempuan
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Alamat</label>
|
||||
<div class="control">
|
||||
<textarea name="input[alamat]" class="form-control" placeholder="Alamat"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >KTP/SIM/Paspor</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[no_identitas]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Bertindak Untuk</label>
|
||||
<div class="control">
|
||||
<div class="form-check">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[bertinda_untuk]" id="bertindak1" value="Diri Sendiri" >
|
||||
<label class="form-check-label" for="bertindak1">
|
||||
Diri Sendiri
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[bertinda_untuk]" id="bertindak2" value="Istri" >
|
||||
<label class="form-check-label" for="bertindak2">
|
||||
Istri
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[bertinda_untuk]" id="bertindak3" value="Suami" >
|
||||
<label class="form-check-label" for="bertindak3">
|
||||
Suami
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[bertinda_untuk]" id="bertindak4" value="Anak" >
|
||||
<label class="form-check-label" for="bertindak4">
|
||||
Anak
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[bertinda_untuk]" id="bertindak5" value="Orang tua" >
|
||||
<label class="form-check-label" for="bertindak5">
|
||||
Orang tua
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[bertinda_untuk]" id="bertindak6" value="Wali/Kurator" >
|
||||
<label class="form-check-label" for="bertindak6">
|
||||
Wali/Kurator
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="mt-2">Dengan ini menyatakan dengan sesungguhnya memberikan persetujuan dilakukan rawat inap di RSUD DR.Saiful Anwar malang serta setuju untuk</p>
|
||||
<ol class="pl-5">
|
||||
<li>Memberikan keterangan tentang rowayat penyakit dan kesehatannya</li>
|
||||
<li>Menjalani pemeriksaan fisik</li>
|
||||
<li>Menjalani pemeriksaan penunjang</li>
|
||||
<li>Mendapatkan tindakan medis non operatif serta tindakan perawatan yang dibutuhkan terkain dengan perawatan pasien</li>
|
||||
<li>Memenuhi semua persyaratan adminitrasi yang diperlukan</li>
|
||||
<li>Mentaati seluruh peraturan yang ditetapkan RSUD Dr.Saiful Anwar Malang</li>
|
||||
<li>Bersediamengganti peralatan yang hilang (peralatan makan, minum , sprei, selimut dan lain-lain yang terdaftar dalam ruang rawat inap pasien) akibat kelalaian pasien dan keluarga.</li>
|
||||
</ol>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Nama Pasien</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[nama_pasien]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Tgl lahir / Umur</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[nama_pasien]" class="mask-date-default datepicker-default form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Jenis Kelamin</label>
|
||||
<div class="control">
|
||||
<div class="form-check">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[jk_pasien]" id="jk_pasien1" value="L" >
|
||||
<label class="form-check-label" for="jk_pasien1">
|
||||
Laki-Laki
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<input class="form-check-input" type="radio" name="input[jk_pasien]" id="jk_pasien2" value="P" >
|
||||
<label class="form-check-label" for="jk_pasien2">
|
||||
Perempuan
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Alamat</label>
|
||||
<div class="control">
|
||||
<textarea name="input[alamat_pasien]" class="form-control" placeholder="Alamat"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >No Rekam Medik</label>
|
||||
<div class="control">
|
||||
<input type="text" name="input[nomr_pasien]" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Hak Kelas Perawatan</label>
|
||||
<div class="control">
|
||||
<select name="input[hak_kelas]" class="form-control">
|
||||
<option value="I">I</option>
|
||||
<option value="II">II</option>
|
||||
<option value="III">III</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label >Kelas Perawatan yang diinginkan</label>
|
||||
<div class="control">
|
||||
<select name="input[hak_kelas]" class="form-control">
|
||||
<option value="I">I</option>
|
||||
<option value="II">II</option>
|
||||
<option value="III">III</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="pl-4" style="font-style: italic; font-weight: bold;">*Bersedia menanggung biaya apabila naik kelas</p>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="control">
|
||||
<button class="btn btn-primary mt-5">S I M P A N</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
@@ -0,0 +1,158 @@
|
||||
|
||||
<h3 class="text-center">HAK-HAK PASIEN DAN KELUARGA</h3>
|
||||
<form method="post" id="dokumen_form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
<div class="row text-left mt-5">
|
||||
<p class="text-justify">RSUD Dr. Saiful Anwar Malang bertanggung jawab untuk melindungi dan mengedepankan
|
||||
hak pasien dan keluarga sesuai UU RI No. 44 Tahun 2009 tentang Rumah Sakit yaitu :</p>
|
||||
<div class="col-md-12 col-lg-12 pl-5">
|
||||
<ol>
|
||||
<li>
|
||||
<p class="text-justify"> Pasien berhak memperoleh <strong>informasi mengenai tata tertib dan peraturan yang berlaku</strong> di
|
||||
Rumah Sakit.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>informasi tentang hak dan kewajiban</strong> pasien.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak memperoleh layanan yang manusiawi, adil, jujur dan <strong>tanpa diskriminasi.</strong></p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak memperoleh <strong>layanan kesehatan yang bermutu</strong> sesuai dengan standar profesi
|
||||
dan standar prosedur operasional.
|
||||
</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak memperoleh layanan yang <strong>efektif dan efisien sehingga pasien terhindar dari
|
||||
kerugian fisik dan materi.</strong>
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>mengajukan pengaduan</strong> atas kualitas pelayanan yang didapatkan</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong>Pasien berhak memilih dokter dan kelas</strong> perawatan sesuai dengan keinginannya dan
|
||||
peraturan yang berlaku di Rumah Sakit.</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>meminta konsultasi tentang penyakit yang di deritanya kepada dokter lain</strong>
|
||||
yang mempunyai Surat Ijin Praktek (SIP) baik didalam maupun diluar Rumah Sakit.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak mendapat <strong>privasi dan kerahasiaan penyakit</strong> yang diderita termasuk data -
|
||||
data medisnya.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>mendapat informasi</strong> yang meliputi diagnosis dan tata cara tindakan medis,
|
||||
tujuan tindakan medis. alternatif tindakan. resiko dan komplikasi yang mungkin terjadi dan
|
||||
prognosis terhadap tindakan yang dilakukan serta perkiraan biaya pengobatan.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"> Pasien berhak memberikan <strong>persetujuan atau menolak atas tindakan</strong> yang akan dilakukan
|
||||
Oleh tenaga kesehatan terhadap penyakit yang dideritanya.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"> Pasien berhak <strong>didampingi keluarganya</strong> dalam keadaan kritis.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>menjalankan ibadah</strong> sesuai agama / kepercayaan yang dianutnya selama hal
|
||||
itu tidak mengganggu pasien lainnya.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>memperoleh keamanan dan keselamatan</strong> dirinya selama dalam perawatan di
|
||||
Rumah Sakit.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>mengajukan usul, saran, perbaikan</strong> atas perilaku Rumah Sakit terhadap
|
||||
dirinya.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>menolak pelayanan bimbingan rohani</strong> yang tidak sesuai dengan agama dan
|
||||
kepercayaan yang dianutnya.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>menggugat dan / atau menuntut</strong> Rumah Sakit apabila Rumah Sakit diduga
|
||||
memberikan pelayanan yang tidak sesuai dengan standar baik secara perdata maupun pidana.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify">Pasien berhak <strong>mengeluhkan pelayanan Rumah Sakit yang tidak sesuai dengan standar</strong>
|
||||
pelayanan melalui media cetak dan elektronik sesuai dengan ketentuan
|
||||
</p>
|
||||
</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- <div class="row mt-5">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4"><button type="submit" class="btn btn-primary ">S I M P A N</button>
|
||||
</div>
|
||||
<div class="col-md-4"></div>
|
||||
</div> -->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="row text-left mt-5">
|
||||
<div class="col-md-12 col-lg-12 pl-5">
|
||||
<h5 class="text-center">KEWAJIBAN PASIEN DAN KELUARGA <br> (PMK No. 69 Tahun 2014)</h5>
|
||||
Dalam menerima pelayanan dari Rumah Sakit, pasien mempunyai kewajiban
|
||||
<ol class="pl-5">
|
||||
<li>Mematuhi peraturan yang berlaku di Rumah Sakit;</li>
|
||||
<li>Menggunakan fasilitas rumah sakit secara bertanggungjawab;</li>
|
||||
<li>Menghormati hak-hak pasien lain, pengunjung dan hak Tenaga Kesehatan serta petugas
|
||||
Iainnya yang bekerja di rumah sakit ;
|
||||
</li>
|
||||
<li>
|
||||
Memberikan informasi yang jujur, lengkap dan akurat sesuai kemampuan dan
|
||||
pengetahuannya tentang masalah kesehatannya;
|
||||
</li>
|
||||
<li>
|
||||
Memberikan informasi mengenai kemampuan finansial dan jaminan kesehatan yang
|
||||
dimilikinya;
|
||||
</li>
|
||||
<li>
|
||||
Mematuhi rencana terapi yang direkomendasikan Oleh Tenaga Kesehatan di rumah sakit dan disetujui Oleh Pasien yang bersangkutan setelah mendapatkan penjelasan sesuai ketentuan peraturan perundang-undangan;
|
||||
</li>
|
||||
<li>
|
||||
Menerima segala konsekuensi atas keputusan pribadinya untuk menolak rencana terapi
|
||||
yang direkomendasikan Oleh Tenaga Kesehatan dan/atau tidak mematuhi petuniuk yang
|
||||
diberikan Oleh Tenaga Kesehatan dalam rangka penyembuhan penyakit atau masalah
|
||||
kesehatannya; dan
|
||||
</li>
|
||||
<li>
|
||||
Memberi imbalan jasa atas pelayanan yang diterima;
|
||||
</li>
|
||||
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
@@ -0,0 +1,374 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
?>
|
||||
<form ame="kajian_awal_medis" method="post" id="kajian_awal_medis">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>KAJIAN AWAL MEDIS RAWAT INAP<br>( Diisi Dengan Temuan Positif )</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Keluhan Utama</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[KELUHANUTAMA]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['KELUHANUTAMA']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Pemeriksaan Fisik :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kesadaran</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[KESADARAN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['KESADARAN']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Pernafasan : Frekuensi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[NAFAS]" value="<?=$dat_rp['NAFAS']?>" tabindex="4" required>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">/menit</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Nadi : Frekuensi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="inpur[NADI]" value="<?=$dat_rp['NADI']?>" tabindex="6" required>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">/menit</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tekanan Darah Lengan Kanan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[DARAHKANAN]" value="<?=$dat_rp['DARAHKANAN']?>" tabindex="8" required>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">mmHg</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Suhu (°Celcius) : Aksila</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[AKSILA]" value="<?=$dat_rp['AKSILA']?>" tabindex="10">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">°C</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kulit</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[KULIT]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['KULIT']?>" tabindex="12">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Telinga</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[TELINGA]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['TELINGA']?>" tabindex="14">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Rongga Mulut dan Tenggorokan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[MULUT]" id="mulut" class="form-control text" value="<?=$dat_rp['MULUT']?>" tabindex="16">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Bagian Kepala Lain</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[KEPALALAIN]" class="form-control text" value="<?=$dat_rp['KEPALALAIN']?>" tabindex="18">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kelenjartiroid</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[KELENJARTIROID]" class="form-control text" value="<?=$dat_rp['KELENJARTIROID']?>" tabindex="20">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Thoraks</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[THORAKS]" class="form-control text" value="<?=$dat_rp['THORAKS']?>" tabindex="22">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Paru</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[PARU]" class="form-control text" value="<?=$dat_rp['PARU']?>" tabindex="24">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Abdomen</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[ABDOMEN]" class="form-control text" value="<?=$dat_rp['ABDOMEN']?>" tabindex="26">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Lien</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[LIEN]" class="form-control text" value="<?=$dat_rp['LIEN']?>" tabindex="28">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Punggung</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[PUNGGUNG]" class="form-control text" value="<?=$dat_rp['PUNGGUNG']?>" tabindex="30">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kelamin</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[KELAMIN]" class="form-control text" value="<?=$dat_rp['KELAMIN']?>" tabindex="32">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Pemeriksaan Tambahan :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Laboratorium</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[LABORATORIUM]" cols="60" rows="5" class="form-control text" tabindex="35"><?=$dat_rp['LABORATORIUM']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Lain-lain</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[TAMBAHANLAIN]" cols="60" rows="5" class="form-control text" tabindex="37"><?=$dat_rp['TAMBAHANLAIN']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Permasalahan :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Medis</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[MASALAHMEDIS]" cols="60" rows="5" class="form-control text" tabindex="39"><?=$dat_rp['MASALAHMEDIS']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Riwayat Penyakit</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[RIWAYATPENYAKIT]" cols="60" rows="5" class="form-control text" placeholder="(Riwayat penyakit sekarang, riwayat penyakit dahulu, riwayat pengobatan, riwayat penyakit keluarga, dll)" tabindex="2" required><?=$dat_rp['RIWAYATPENYAKIT']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Jenis</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[NAFASJENIS]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['NAFASJENIS']?>" tabindex="5">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Jenis</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[NADIJENIS]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['NADIJENIS']?>" tabindex="7">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tekanan Darah Lengan Kiri</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[DARAHKIRI]" value="<?=$dat_rp['DARAHKIRI']?>" tabindex="9">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">mmHg</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Suhu (°Celcius) : Rektal</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[REKTAL]" value="<?=$dat_rp['REKTAL']?>" tabindex="11">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">°C</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kepala</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" class="form-control" name="input[KEPALA]" value="<?=$dat_rp['KEPALA']?>" tabindex="13">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Hidung</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[HIDUNG]" class="form-control text" value="<?=$dat_rp['HIDUNG']?>" tabindex="15">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Mata</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[MATA]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['MATA']?>" tabindex="17"><BR>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Leher</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[LEHER]" class="form-control text" value="<?=$dat_rp['LEHER']?>" tabindex="19">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Bagian Leher Lain</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[LEHERLAIN]" class="form-control text" value="<?=$dat_rp['LEHERLAIN']?>" tabindex="21">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Jantung</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[JANTUNG]" class="form-control text" value="<?=$dat_rp['JANTUNG']?>" tabindex="23">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Bagian Thoraks Lain</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[THORAKSLAIN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['THORAKSLAIN']?>" tabindex="25">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Hati</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[HATI]" class="form-control text" value="<?=$dat_rp['HATI']?>" tabindex="27">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Bagian Abdomen Lain</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[ABDOMENLAIN]" class="form-control text" value="<?=$dat_rp['ABDOMENLAIN']?>" tabindex="29">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Ekstremitas</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[EKSTREMITAS]" class="form-control text" value="<?=$dat_rp['EKSTREMITAS']?>" tabindex="31">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Rectum</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[RECTUM]" class="form-control text" value="<?=$dat_rp['RECTUM']?>" tabindex="33">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Sistim Syaraf</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[SYARAF]" class="form-control text" value="<?=$dat_rp['SYARAF']?>" tabindex="34">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Radiologi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[RADIOLOGI]" cols="60" rows="5" class="form-control text" tabindex="36"><?=$dat_rp['RADIOLOGI']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Diagnosis Medis</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[DIAGNOSISMEDIS]" cols="60" rows="5" class="form-control text" tabindex="38"><?=$dat_rp['DIAGNOSISMEDIS']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> Keperawatan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[MASALAHKEPERAWATAN]" cols="60" rows="5" class="form-control text" tabindex="40"><?=$dat_rp['MASALAHKEPERAWATAN']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="button" name="Submit" id="simpankajianmedis" value="Simpan" class="btn btn-primary" tabindex="41"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<div id="valid_kajian_awal"></div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
$.get("<?php echo _BASE_;?>ranap/save_kajian_awal.php",{get_data:true,NOMR:$("#nomr_kajian").val(),IDXRANAP:$("#idx_kajian").val()},function(data)
|
||||
{
|
||||
$("#valid_kajian_awal").html(data.html);
|
||||
},"json");
|
||||
|
||||
$('#simpankajianmedis').click(function(){
|
||||
$.post('<?php echo _BASE_;?>ranap/save_kajian_awal.php',$('#kajian_awal_medis').serialize()+"&save=1",function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,672 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
?>
|
||||
<form name="kajian_awal_medis" method="post" id="kajian_awal_medis">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>ASESMEN AWAL KEPERAWATAN PASIEN RAWAT IANP<br>( Dilengkapi sebelum 24 jam pertama pasien masuk ruang rawat inap )</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Riwayat Kesehatan Pasien</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Keluhan Utama :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[KELUHANUTAMA]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['KELUHANUTAMA']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Riwayat Perawatan Sebelumnya :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[RIWAYATPERAWATAN]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['RIWAYATPERAWATAN']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Riwayat Penyakit Dalam Keluarga :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[RIWAYATKELUARGA]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['RIWAYATKELUARGA']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Riwayat Alergi </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Makanan :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[ALERGIMAKANAN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['ALERGIMAKANAN']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Obat :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[ALERGIOBAT]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['ALERGIOBAT']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Lain-lain :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[ALERGILAIN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Status Fisik </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Keadaan Umum : </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="baik" type="radio" value="Baik" name="input[KEADAANUMUM]">
|
||||
<label class="form-check-label" for="baik">Baik</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="sedang" type="radio" value="Sedang" name="input[KEADAANUMUM]">
|
||||
<label class="form-check-label" for="sedang">Sedang</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="Kurang" name="input[KEADAANUMUM]">
|
||||
<label class="form-check-label" for="kurang">Kurang</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Pernafasan :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[NAFAS]" value="<?=$dat_rp['NAFAS']?>" tabindex="4" required>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">x/menit</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Nadi :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="inpur[NADI]" value="<?=$dat_rp['NADI']?>" tabindex="6" required>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">x/menit</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Status Psikologis Sosial</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kondisi :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[KONDISI]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['KONDISI']?>" placeholder="(Tenang, Cemas, Takut, Marah, Sedih, dll)" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Sistem Pendukung :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[SISTEMPENDUKUNG]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['SISTEMPENDUKUNG']?>" placeholder="(Suami, Istri, Anak, Saudara, Tidak ada, dll)" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Ekonomi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right;">Masalah terkait biaya perawatan di rumah sakit :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="radio" value="1" name="input[EKONOMI]">
|
||||
<label class="form-check-label" for="">Ditanggung (Asuransi, dll)</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="radio" value="0" name="input[EKONOMI]">
|
||||
<label class="form-check-label" for="">Tidak Ditanggung (Biaya Sendiri)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Spiritual</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right;">Keyakinan yang di anut :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKTRANSFUSI]">
|
||||
Menolak dilakukan tranfusi darah
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKPULANG]">
|
||||
Menolak pulang di hari tertentu
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKPELAYANAN]">
|
||||
Menolak dilayani petugas lawan jenis kelamin
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKIMUNISASI]">
|
||||
Menolak diberikan imunisasi pada anaknya
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MEMILIHALTERNATIF]">
|
||||
Menolak dirawat oleh petugas medis dan mencari pengobatan alternative
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKMAKANAN]">
|
||||
Tidak memakan suatu jenis makanan tertentu (Daging Sapi, Ikan bersisik, dll)
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[BAYISUNAT]">
|
||||
Pada bayi baru lahir perempuan minta di sunat karena suatu kepercayaan
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[LAINLAIN]">
|
||||
<label class="form-check-label">
|
||||
<input type="text" name="input[KEYAKINANLAIN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['KEYAKINANLAIN']?>" placeholder="Lainnya.." tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Skrining Nyeri</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Skala Nyeri :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[SKALANYERI]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['SKALANYERI']?>" placeholder="Gunakan Skala NRS dan WBS" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
Bila ada nyeri, lakukan asesmen lebih lanjut
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">P (Provokes)/Provokasi :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[PROVOKES]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['PROVOKES']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">R (Regio)/Lokasi :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[REGIO]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['REGIO']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">T (Time)/Waktu :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="hilang_timbul" type="radio" value="1" name="input[FREKUENSINYERI]">
|
||||
<label class="form-check-label" for="hilang_timbul">Hilang Timbul</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="terus_menerus" type="radio" value="2" name="input[FREKUENSINYERI]">
|
||||
<label class="form-check-label" for="terus_menerus">Terus Menerus</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left">Catatan : Bila pasien kritis/tidak sadar/koma/ ataupun pasien tahanp terminal, gunakan skala <i>Crititcal Pain Observation Tool (CPOT)</i></label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Skrining Resiko Jatuh :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" value="1" name="input[RESIKOJATUH]">
|
||||
<label class="form-check-label">Ya</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" value="0" name="input[RESIKOJATUH]">
|
||||
<label class="form-check-label">Tidak</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left">Catatan : Pada pasien dewasa menggunakan penilaian <i>SAKTI-J</i> dan pasien anak dengan <i>SKOP-DULL</i>.Bila Beresiko Iya pasang setiker penandah resiko jatuh warna kuning pada gelang identitas pasien</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TENGAH -->
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Riwayat Penyakit Sekarang :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[RIWAYATPENYAKIT]" cols="60" rows="5" class="form-control text" tabindex="2" required><?=$dat_rp['RIWAYATPENYAKIT']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Riwayat Pengobatan :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[RIWAYATPENGOBATAN]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['RIWAYATPENGOBATAN']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Reaksi :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[REAKSIMAKANAN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['REAKSIMAKANAN']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Reaksi :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[REAKSIOBAT]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['REAKSIOBAT']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Reaksi :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[REAKSILAIN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['REAKSILAIN']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"><hr></label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kesadaran : </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left;">
|
||||
<select class="form-control" name="input['KESADARAN']">
|
||||
<option value="1">Compos Mentis</option>
|
||||
<option value="2">Delirium</option>
|
||||
<option value="3">Somnolen</option>
|
||||
<option value="4">Spoor</option>
|
||||
<option value="5">Koma</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tekanan Darah :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[TEKANANDARAH]" value="<?=$dat_rp['TEKANANDARAH']?>" tabindex="9">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">mmHg</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Suhu Tubuh :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[SUHUTUBUH]" value="<?=$dat_rp['SUHUTUBUH']?>" tabindex="11">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">°C</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Hubungan pasien dengan Keluarga :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="baik" type="radio" value="1" name="input[HUBUNGANKELUARGA]">
|
||||
<label class="form-check-label" for="baik">Baik</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="tidak_baik" type="radio" value="0" name="input[HUBUNGANKELUARGA]">
|
||||
<label class="form-check-label" for="tidak_baik">Tidak Baik</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kegiatan Ibadah Pasien :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="aktif" type="radio" value="1" name="input[KEGIATANIBADAH]">
|
||||
<label class="form-check-label" for="aktif">Aktif</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="tidak" type="radio" value="0" name="input[KEGIATANIBADAH]">
|
||||
<label class="form-check-label" for="tidak">Tidak</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left">Catatan : Gunakan Skala <i>Numeric Rating Scale (NRS) dan Wong Backer Scale (WBS)</i></label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Q (Quality)/Kualitas :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[]" cols="60" rows="5" class="form-control text" value="" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">S (Severity)/Derajat :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="nyeri_ringan" type="radio" value="1" name="input[DERAJATNYERI]">
|
||||
<label class="form-check-label" for="nyeri_ringan">Nyeri ringan</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="nyeri_sedang" type="radio" value="2" name="input[DERAJATNYERI]">
|
||||
<label class="form-check-label" for="nyeri_sedang">Nyeri sedang</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="nyeri_berat" type="radio" value="3" name="input[DERAJATNYERI]">
|
||||
<label class="form-check-label" for="nyeri_berat">Nyeri berat</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-3 pt-0" style="text-align:right">Asesmen Kebutuhan Fungsional</label>
|
||||
<div class="col-sm-9 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Makan (Feeding) :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALMAKAN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALMAKAN']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Tidak mampu | 1 = Butuh bantuan memotong, mengoles mentega, dll | 2 = Mandiri
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Mandi (Bathing) :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALMANDI]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALMANDI']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Tergantung orang lain | 1 = Mandiri
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Perawatan diri (Grooming):</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALPERAWATAN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALPERAWATAN']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Membutuhkan bantuan orang lain | 1 = Mandiri dalam perawatan muka, rambut, gigi, dan bercukur
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Berpakaian (Dressing) :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALBERPAKAIAN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALBERPAKAIAN']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Tergantung orang lain | 1 = Sebagian dibantu (Misal mengancing baju) | 2 = Mandiri
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Buang air kecil (Bladder) :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALAIRKECIL]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALAIRKECIL']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Inkontinensia atau pakai kateter dan tidak terkontrol | 1 = Kadang Inkontinensia (1x24 jam) | 2 = Kontinensia (Teratur)
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Buang air besar (Bowel) :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALAIRBESAR]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALAIRBESAR']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Inkontinensia (Tidak teratur atau perlu enema) | 1 = Kadang Inkontinensia (1x seminggu) | 2 = Kontinensia (Teratur)
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Penggunaan Toilet :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALTOILET]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALTOILET']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Tergantung bantuan orang lain | 1 = Kadang Inkontensia (1x seminggu) | 2 = Mandiri
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Transfer :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALTRANSFER]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALTRANSFER']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Tidak mampu | 1 = Butuh bantuan untuk bisa duduk (2 Orang) | 2 = Bantuan kecil (1 Orang) | 3 = Mandiri
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Mobilitas :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALMOBILITAS]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALMOBILITAS']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Immobile (Tidak mampu) | 1 = Menggunakan kursi roda | 2 = Berjalan dengan bantuan satu orang | 3 = Mandiri (Meskipun menggunakan alat bantu)
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Naik turun Tangga :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[FUNGSIONALTANGGA]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['FUNGSIONALTANGGA']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
0 = Tidak mampu | 1 = Membutuhkan bantuan (Alat bantu) | 2 = Mandiri
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Total Score :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<input type="text" name="input[TOTALSCORE]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['TOTALSCORE']?>" tabindex="3" required>
|
||||
</div>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
Interpretasi Hasil
|
||||
<br>0-4 : Ketergantungan total <br> 5-8 : Ketergantungan Berat <br> 9-11 : Ketergantungan Sedang <br> 12-19 : Ketergantungan Ringan <br> 20 : Mandiri
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12 pt-0" style="text-align:center;">
|
||||
<input type="button" name="Submit" id="simpankajianmedis" value="Simpan" class="btn btn-primary" tabindex="41"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- <div id="valid_kajian_awal"></div> -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
$.get("<?php echo _BASE_;?>ranap/save_kajian_awal.php",{get_data:true,NOMR:$("#nomr_kajian").val(),IDXRANAP:$("#idx_kajian").val()},function(data)
|
||||
{
|
||||
$("#valid_kajian_awal").html(data.html);
|
||||
},"json");
|
||||
|
||||
$('#simpankajianmedis').click(function(){
|
||||
$.post('<?php echo _BASE_;?>ranap/save_kajian_awal.php',$('#kajian_awal_medis').serialize()+"&save=1",function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,542 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
?>
|
||||
<form name="kajian_awal_medis" method="post" id="kajian_awal_medis">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>PENGKAJIAN GIZI</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">A. Antropometri</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">BB :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[BBD]" value="<?=$dat_rp['BBD']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Kg</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">TB :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[TBD]" value="<?=$dat_rp['TBD']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Cm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">TL :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[TLD]" value="<?=$dat_rp['TLD']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Cm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">TB Est :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[TBED]" value="<?=$dat_rp['TBED']?>" tabindex="6" required>
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Cm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">BB :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[BBA]" value="<?=$dat_rp['BBA']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Kg</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">TB :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[TBA]" value="<?=$dat_rp['TBA']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Cm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">%BBI :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[PBBIA]" value="<?=$dat_rp['PBBIA']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">BB/U :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[BBUA]" value="<?=$dat_rp['BBUA']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">TB/U :</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10 pt-0"><hr></div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Dewasa</label>
|
||||
<div class="col-sm-0 pt-0" style="text-align:right;">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">BBI :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[BBID]" value="<?=$dat_rp['BBID']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Kg</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">IMT :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[IMTD]" value="<?=$dat_rp['IMTD']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Kg/m<sup>2</sup></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">LLA :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[LLAD]" value="<?=$dat_rp['LLAD']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">Cm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">%LLA :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[PLLAD]" value="<?=$dat_rp['PLLAD']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">%</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-10 pt-0"><hr></div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Anak</label>
|
||||
<div class="col-sm-0 pt-0" style="text-align:right;">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">LLA :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[LLAA]" value="<?=$dat_rp['LLAA']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Cm</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">BBI :</label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[BBIA]" value="<?=$dat_rp['BBIA']?>" tabindex="6">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text" id="basic-addon2">Kg</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[TBUA]" value="<?=$dat_rp['TBUA']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">BB/TB :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[BBTBA]" value="<?=$dat_rp['BBTBA']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">LLA/U :</label>
|
||||
<div class="col-sm-2 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[LLAUA]" value="<?=$dat_rp['LLAUA']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">B. Biokimia</label>
|
||||
<div class="col-sm-9 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-1 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="baik" type="radio" value="1" name="input[BIOKIMIA]">
|
||||
<label class="form-check-label" for="baik">Normal</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="baik" type="radio" value="1" name="input[BIOKIMIA]">
|
||||
<input type="text" name="input[BIOKIMIABERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['BIOKIMIABERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">C. Fisik - Klinik </label>
|
||||
<div class="col-sm-9 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-1 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="baik" type="radio" value="1" name="input[FISIKKLINIK]">
|
||||
<label class="form-check-label" for="baik">Normal</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="baik" type="radio" value="1" name="input[FISIKKLINIK]">
|
||||
<input type="text" name="input[FISIKKLINIKBERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['FISIKKLINIKBERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">D. Riwayat Gizi</label>
|
||||
<div class="col-sm-9 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-1 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
Dahulu :
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="baik">
|
||||
<input class="form-check-input" id="baik" type="radio" value="0" name="input[ALERGIMAKANAN]">
|
||||
Tidak ada alergi makanan</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="baik">
|
||||
<input class="form-check-input" id="baik" type="radio" value="1" name="input[ALERGIMAKANAN]">
|
||||
Ada alergi makanan</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left;">
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[ALERGIMAKANANBERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['ALERGIMAKANANBERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="sedang">
|
||||
<input class="form-check-input" id="sedang" type="radio" value="0" name="input[POLAMAKAN]">
|
||||
Pola makan teratur</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="sedang">
|
||||
<input class="form-check-input" id="sedang" type="radio" value="1" name="input[POLAMAKAN]">
|
||||
Pola makan tidak teratur</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[POLAMAKANBERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['POLAMAKANBERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[MENUSEIMBANG]">
|
||||
Susunan menu seimbang</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="1" name="input[MENUSEIMBANG]">
|
||||
Susunan menu tidak seimbang</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[MENUSEIMBANGBERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['MENUSEIMBANGBERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[DIBERIASI]">
|
||||
Diberikan ASI</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="1" name="input[DIBERIASI]">
|
||||
Tidak diberikan ASI</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[DIBERIASIBERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['DIBERIASIBERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
|
||||
</div>
|
||||
<div class="col-sm-3 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="Kurang" name="input[GIZILAIN]">
|
||||
Lain-lain</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[GIZILAINBERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['GIZILAINBERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left;">
|
||||
Sekarang :
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
- Nafsu Makan :
|
||||
<input class="form-check-input" id="baik" type="radio" value="1" name="input[NAFSUMAKAN]">
|
||||
<label class="form-check-label" for="baik">Baik</label>
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[NAFSUMAKAN]">
|
||||
<label class="form-check-label" for="kurang">Kurang</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
-
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Sulit Menelan, </label>
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENGUNYAH]">
|
||||
<label class="form-check-label" for="kurang">Sulit Mengunyah, </label>
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[MUAL]">
|
||||
<label class="form-check-label" for="kurang">Mual, </label>
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[MUNTAH]">
|
||||
<label class="form-check-label" for="kurang">Muntah </label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
- Diet :
|
||||
<input class="form-check-input" id="parenteral" type="radio" value="1" name="input[DIET]">
|
||||
<label class="form-check-label" for="parenteral">Parenteral, Berupa : </label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[PARENTERAL]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['PARENTERAL']?>" placeholder="" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
|
||||
<input class="form-check-input" id="kurang" type="radio" value="2" name="input[DIET]">
|
||||
<label class="form-check-label" for="kurang">Enteral : </label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="1" name="input[ENTERAL]">
|
||||
Oral
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="2" name="input[ENTERAL]">
|
||||
NGT
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="3" name="input[ENTERAL]">
|
||||
Lain-lain :
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[ENTERALLAIN]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['ENTERALLAIN']?>" placeholder="" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">E. Riwayat Personal </label>
|
||||
<div class="col-sm-9 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-1 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
- Riwayat penyakit dahulu :
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="1" name="input[RIWAYATPENYAKITDULU]">
|
||||
Hipertensi,
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="2" name="input[RIWAYATPENYAKITDULU]">
|
||||
DM,
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="3" name="input[RIWAYATPENYAKITDULU]">
|
||||
Jantung,
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="4" name="input[RIWAYATPENYAKITDULU]">
|
||||
Stroke,
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[RIWAYATPENYAKITDULU]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['RIWAYATPENYAKITDULU']?>" placeholder="Lain-lain" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-10 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
- Riwayat penyakit sekarang :
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[RIWAYATPENYAKITSEKARANG]" cols="60" rows="5" class="form-control text" value="<?=$dat_rp['RIWAYATPENYAKITSEKARANG']?>" placeholder="" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12 pt-0" style="text-align:center;">
|
||||
<input type="button" name="Submit" id="simpankajianmedis" value="Simpan" class="btn btn-primary" tabindex="41"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- <div id="valid_kajian_awal"></div> -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
$.get("<?php echo _BASE_;?>ranap/save_kajian_awal.php",{get_data:true,NOMR:$("#nomr_kajian").val(),IDXRANAP:$("#idx_kajian").val()},function(data)
|
||||
{
|
||||
$("#valid_kajian_awal").html(data.html);
|
||||
},"json");
|
||||
|
||||
$('#simpankajianmedis').click(function(){
|
||||
$.post('<?php echo _BASE_;?>ranap/save_kajian_awal.php',$('#kajian_awal_medis').serialize()+"&save=1",function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,351 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
?>
|
||||
<form name="kajian_awal_medis" method="post" id="kajian_awal_medis">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>REKONSILIASI OBAT</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Pengkajian</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">1. </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">Riwayat Penyakit</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Penyakit Jantung</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Tuberkulosis</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Hipertensi</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Kanker</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Hepatitis</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[LAIN]" cols="60" rows="5" class="form-control text" placeholder="Lain-lain" value="<?=$dat_rp['LAIN']?>" tabindex="3" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-7 pt-0"><hr></div>
|
||||
<label class="col-form-label col-sm-5 pt-0" style="text-align:right">Centang Pada Kotak Dibawah Ini</label>
|
||||
<div class="col-sm-0 pt-0" style="text-align:right;">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">
|
||||
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Penyakit Ginjal</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Asma</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Diabetes</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Tukak Lambung</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">2. </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">Riwayat Pengobatan Terdahulu</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Obat</label>
|
||||
</div>
|
||||
</label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[OBAT]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['OBAT']?>" tabindex="3" required>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Vitamin</label>
|
||||
</div>
|
||||
</label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[VITAMIN]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['VITAMIN']?>" tabindex="3" required>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">
|
||||
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Produk Herbal</label>
|
||||
</div>
|
||||
</label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[PRODUKHERBAL]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['PRODUKHERBAL']?>" tabindex="3" required>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[SULITMENELAN]">
|
||||
<label class="form-check-label" for="kurang">Minuman Berenergi</label>
|
||||
</div>
|
||||
</label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[MINUMANENERGI]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['MINUMANENERGI']?>" tabindex="3" required>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">3. </label>
|
||||
<label class="col-form-label col-sm-8 pt-0" style="text-align:left;">Riwayat Alergi</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-1 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">Obat
|
||||
</div>
|
||||
</label>
|
||||
<label class="col-form-label col-sm-7 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[ALERGIMAKANANBERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['ALERGIMAKANANBERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-1 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">Obat
|
||||
</div>
|
||||
</label>
|
||||
<label class="col-form-label col-sm-7 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="text" name="input[ALERGIMAKANANBERMASALAH]" cols="60" rows="5" class="form-control text" placeholder="" value="<?=$dat_rp['ALERGIMAKANANBERMASALAH']?>" tabindex="3" required>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left;">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"> </label>
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">
|
||||
Seberapa berat alerginya :
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[MENUSEIMBANG]">Ringan</label>
|
||||
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[MENUSEIMBANG]">Sedang</label>
|
||||
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[MENUSEIMBANG]">Berat</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left;">
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label" for="kurang">
|
||||
Seberapa berat alerginya :
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[MENUSEIMBANG]">Ringan</label>
|
||||
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[MENUSEIMBANG]">Sedang</label>
|
||||
|
||||
<label class="form-check-label" for="kurang">
|
||||
<input class="form-check-input" id="kurang" type="radio" value="0" name="input[MENUSEIMBANG]">Berat</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">4. </label>
|
||||
<label class="col-form-label col-sm-10 pt-0" style="text-align:left;">Obat Pribadi Pasien yang dibawa ke Rumah Sakit</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-form-label col-sm-2 pt-0"> </div>
|
||||
<div class="col-form-label col-sm-10 pt-0">
|
||||
<table class="table table-sm table-bordered table-striped" id="table_obat">
|
||||
<tr align="center" class="bg-success text-white">
|
||||
<th width="5%">No</th>
|
||||
<th width="30%">Nama Obat</th>
|
||||
<th width="10%">Dosis</th>
|
||||
<th width="15%">Aturan Pakai</th>
|
||||
<th width="15%">Dilanjutkan</th>
|
||||
<th width="15%">Dihentikan</th>
|
||||
<th width="10%">Action</th>
|
||||
</tr>
|
||||
<tr id="rowid-0">
|
||||
<td>1</td>
|
||||
<td><input type="text" id="namaobat0" class="form-control text" name="input[NAMAOBAT0]" tabindex="6"></td>
|
||||
<td><input type="text" id="dosis0" class="form-control text" name="input[DOSIS0]" tabindex="6"></td>
|
||||
<td><input type="text" id="aturanpakai0" class="form-control text" name="input[ATURANPAKAI0]" tabindex="6"></td>
|
||||
<td><input type="text" id="dilanjutkan0" class="form-control text" name="input[DILANJUTKAN0]" tabindex="6"></td>
|
||||
<td><input type="text" id="dihentikan0" class="form-control text" name="input[DIHENTIKAN0]" tabindex="6"></td>
|
||||
<td><center><button type="button" id="btn_add0" class="btn btn-sm btn-success btn_add" data-no="1"><i class="fa fa-plus"></i></button>
|
||||
<button type="button" id="btn_remove0" class="btn btn-sm btn-danger btn_remove" data-no="1"><i class="fa fa-trash"></i></center></button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12 pt-0" style="text-align:center;">
|
||||
<input type="button" name="Submit" id="simpankajianmedis" value="Simpan" class="btn btn-primary" tabindex="41"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- <div id="valid_kajian_awal"></div> -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$.get("<?php echo _BASE_;?>ranap/save_kajian_awal.php",{get_data:true,NOMR:$("#nomr_kajian").val(),IDXRANAP:$("#idx_kajian").val()},function(data)
|
||||
{
|
||||
$("#valid_kajian_awal").html(data.html);
|
||||
},"json");
|
||||
|
||||
$('#simpankajianmedis').click(function(){
|
||||
$.post('<?php echo _BASE_;?>ranap/save_kajian_awal.php',$('#kajian_awal_medis').serialize()+"&save=1",function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
|
||||
$("#table_obat").delegate(".btn_add","click",function() {
|
||||
nomor = parseInt($(this).data("no"));
|
||||
idx = nomor - 1;
|
||||
next = nomor + 1;
|
||||
|
||||
$("#table_obat").append("<tr id=\"rowid-"+nomor+"\"><td>"+next+"</td><td><input type=\"text\" id=\"namaobat"+nomor+"\" class=\"form-control text\" name=\"input[NAMAOBAT"+nomor+"]\"></td><td><input type=\"text\" id=\"dosis"+nomor+"\" class=\"form-control text\" name=\"input[DOSIS"+nomor+"]\" tabindex=\"6\"></td><td><input type=\"text\" id=\"aturanpakai"+nomor+"\" class=\"form-control text\" name=\"input[ATURANPAKAI"+nomor+"]\" tabindex=\"6\"></td><td><input type=\"text\" id=\"dilanjutkan"+nomor+"\" class=\"form-control text\" name=\"input[DILANJUTKAN"+nomor"]\" tabindex=\"6\"></td><td><input type=\"text\" id=\"dihentikan"+nomor+"\" class=\"form-control text\" name=\"input[DIHENTIKAN"+nomor+"]\" tabindex=\"6\"></td><center><button type=\"button\" id=\"btn_add"+nomor+"\" class=\"btn btn-sm btn-success btn_add\" data-no=\""+next+"\" ><i class=\"fa fa-plus\"></i></button> <button type=\"button\" id=\"btn_remove"+nomor+"\" class=\"btn btn-sm btn-danger btn_remove\" data-no=\""+nomor+"\" ><i class=\"fa fa-trash\"></i></button></center></td></tr>");
|
||||
|
||||
$("#btn_remove"+idx).prop("disabled",true);
|
||||
$("#btn_add"+idx).prop("disabled",true);
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,78 @@
|
||||
|
||||
<form action="ranap/save_rencana_awalmedis.php" name="rencana_awalmedis" method="post" id="rencana_awalmedis">
|
||||
<input type="hidden" name="id_admission" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="nomr" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="noruang" value="<?php echo $noruang;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>RENCANA AWAL MEDIS<br>Rencana yang akan dilakukan untuk masing-masing masalah<br>(meliputi rencana untuk diagnosa, penatalaksaaan dan edukasi)<br></h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tanggal</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="tanggal" cols="60" rows="5" class="form-control text" value="<?php echo date("d/m/Y"); ?>" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Target Waktu</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="target_waktu" class="form-control text" tabindex="1">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Rencana Pemeriksaan Diagnostik</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="rencana_diagnostik" cols="60" rows="5" class="form-control text" tabindex="3"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Rencana Monitoring</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="rencana_monitoring" cols="60" rows="5" class="form-control text" tabindex="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Diagnosis dan Masalah Kesehatan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="diagnosis" cols="60" rows="5" class="form-control text" tabindex="2"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Rencana Terapi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="rencana_terapi" cols="60" rows="5" class="form-control text" tabindex="4"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Rencana Edukasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="rencana_edukasi" cols="60" rows="5" class="form-control text" tabindex="6"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="submit" name="Submit" value="Simpan" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('rencana_awalmedis'),'ranap/save_rencana_awalmedis.php','valid_rencana_awalmedis',validatetask); return false;"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div id="valid_rencana_awalmedis" >
|
||||
<?php include("save_rencana_awalmedis.php"); ?>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,216 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."' and status_aktif = 1";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
?>
|
||||
<form name="kajian_awal_medis" method="post" id="kajian_awal_medis">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>RENCANA ASUHAN GIZI</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<div class="col-form-label col-sm-12 pt-0">
|
||||
<table class="table table-sm table-bordered table-striped" id="table_daftar">
|
||||
<tr align="center" class="bg-success text-white">
|
||||
<th width="20%" rowspan="2">Masalah</th>
|
||||
<th width="35%" rowspan="2">Diagnosa Gizi</th>
|
||||
<th width="40%" colspan="2">Rencana</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="20%"><center>Intervensi Gizi </center></th>
|
||||
<th width="20%"><center>Monitoring Dan Evaluasi </center></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="radio" value="1" name="input[MASALAHGIZI]">
|
||||
Tidak ada masalah gizi
|
||||
</label>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input type="text" name="input[STATUSGIZI]" cols="60" rows="5" class="form-control text" placeholder="Status Gizi" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input type="text" name="input[NILAILAB]" cols="60" rows="5" class="form-control text" placeholder="Nilai Laboratorium" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input type="text" name="input[FISIKKLINIS]" cols="60" rows="5" class="form-control text" placeholder="Fisik/Klinis" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input type="text" name="input[ASUPAN]" cols="60" rows="5" class="form-control text" placeholder="Asupan Makan" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" type="radio" value="1" name="input[NO]">
|
||||
NO Tidak ada masalah gizi
|
||||
</label>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label"> NI 2.1 Kekurangan intake makanan dan minuman oral
|
||||
<input type="text" name="input[NI21]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label"> NI 5.1 Peningkatan kebutuhan
|
||||
<input type="text" name="input[NI51]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label"> NI 5.2 Malnutrisi protein dan energi yang nyata
|
||||
<input type="text" name="input[NI52]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label"> NI 5.4 Penurunan Kebutuhan
|
||||
<input type="text" name="input[NI54]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label"> NB 1.1 Pengetahuan yang kurang dikaitkan pangan dan gizi
|
||||
<input type="text" name="input[NB11]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label"> NB 1.3 Belum siap melakukan Diet
|
||||
<input type="text" name="input[NB13]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label"> NB 1.5 Kekeliruan pola makan
|
||||
<input type="text" name="input[NB15]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label"> NB 3.1 Intake makanan yang tidak aman
|
||||
<input type="text" name="input[NB31]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>Tujuan :
|
||||
<textarea name="input[TUJUAN]" cols="60" rows="5" class="form-control text" tabindex="2"></textarea>
|
||||
<br>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[ENERGI]" tabindex="8" placeholder="Energi">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">Kkal</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[PROTEIN]" tabindex="8" placeholder="Protein">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text " id="basic-addon2">Gram</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control text" name="input[GIZI1]" tabindex="8" placeholder="">
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control text" name="input[GIZI2]" tabindex="8" placeholder="">
|
||||
</div>
|
||||
<br>
|
||||
<div class="input-group">
|
||||
<label class="form-check-label"> Diet :
|
||||
<input type="text" name="input[DIET]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<label class="form-check-label"> Frekeunsi Pemberian Diet :
|
||||
<input type="text" name="input[FREKDIET]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<label class="form-check-label"> Rute Pemberian Diet :
|
||||
<input type="text" name="input[RUTEDIET]" cols="60" rows="5" class="form-control text" placeholder="" tabindex="3">
|
||||
</label>
|
||||
</div>
|
||||
Edukasi/Konseling :
|
||||
<textarea name="input[KONSELING]" cols="60" rows="5" class="form-control text" tabindex="2"></textarea>
|
||||
<br>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKTRANSFUSI]">
|
||||
Antropometri
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKPULANG]">
|
||||
Biokimia
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKPELAYANAN]">
|
||||
Klinik / Fisik
|
||||
</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="0" name="input[MENOLAKIMUNISASI]">
|
||||
Asupan Makan
|
||||
</label>
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12 pt-0" style="text-align:center;">
|
||||
<input type="button" name="Submit" id="simpankajianmedis" value="Simpan" class="btn btn-primary" tabindex="41"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- <div id="valid_kajian_awal"></div> -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$.get("<?php echo _BASE_;?>ranap/save_kajian_awal.php",{get_data:true,NOMR:$("#nomr_kajian").val(),IDXRANAP:$("#idx_kajian").val()},function(data)
|
||||
{
|
||||
$("#valid_kajian_awal").html(data.html);
|
||||
},"json");
|
||||
|
||||
$('#simpankajianmedis').click(function(){
|
||||
$.post('<?php echo _BASE_;?>ranap/save_kajian_awal.php',$('#kajian_awal_medis').serialize()+"&save=1",function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,448 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."' and status_aktif = 1";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
?>
|
||||
<form name="kajian_awal_medis" method="post" id="kajian_awal_medis">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>DAFTAR MASALAH FARMASI</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<table class="table table-sm table-bordered table-striped" id="table_obat">
|
||||
<tr align="center" class="bg-success text-white">
|
||||
<th width="5%" rowspan="2">No</th>
|
||||
<th width="10%" rowspan="2">Tanggal Ditemukan</th>
|
||||
<th width="45%" rowspan="2">Masalah Awal <br> (Beri Tanda Centang Pada Kotak Dibawah Ini) </th>
|
||||
<th width="30%" colspan="3">Masalah</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th width="10%"><center>Selesai/Tanggal</center></th>
|
||||
<th width="10%"><center>Terkontrol/Tanggal</center></th>
|
||||
<th width="10%"><center>Tetap</center></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL1]" id="TGL1" size="30" value="<?php if( ($dat_rp['TGL1'] == '') or ($dat_rp['TGL1'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL1']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN1]">
|
||||
Tidak Ada Masalah Obat
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI1]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI1]" id="TGLTSELESAI1" size="30" value="<?php if( ($dat_rp['TGLTSELESAI1'] == '') or ($dat_rp['TGLTSELESAI1'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI1']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL1]" id="TGLTERKONTROL1" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL1'] == '') or ($dat_rp['TGLTERKONTROL1'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL1']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP1]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL2]" id="TGL2" size="30" value="<?php if( ($dat_rp['TGL2'] == '') or ($dat_rp['TGL2'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL2']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN2]">
|
||||
Ada Indikasi Tapi tidak Diterapi Obat
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI2]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI2]" id="TGLTSELESAI2" size="30" value="<?php if( ($dat_rp['TGLTSELESAI2'] == '') or ($dat_rp['TGLTSELESAI2'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI2']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL2]" id="TGLTERKONTROL2" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL2'] == '') or ($dat_rp['TGLTERKONTROL2'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL2']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP2]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL3]" id="TGL3" size="30" value="<?php if( ($dat_rp['TGL3'] == '') or ($dat_rp['TGL3'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL3']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN3]">
|
||||
Tidak ada Indikasi Tapi diterapi Obat
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI3]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI3]" id="TGLTSELESAI3" size="30" value="<?php if( ($dat_rp['TGLTSELESAI3'] == '') or ($dat_rp['TGLTSELESAI3'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI3']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL3]" id="TGLTERKONTROL3" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL3'] == '') or ($dat_rp['TGLTERKONTROL3'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL3']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP3]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL4]" id="TGL4" size="30" value="<?php if( ($dat_rp['TGL4'] == '') or ($dat_rp['TGL4'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL4']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN4]">
|
||||
Pemilihan Obat tidak Tepat
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI4]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI4]" id="TGLTSELESAI4" size="30" value="<?php if( ($dat_rp['TGLTSELESAI4'] == '') or ($dat_rp['TGLTSELESAI4'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI4']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL4]" id="TGLTERKONTROL4" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL4'] == '') or ($dat_rp['TGLTERKONTROL4'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL4']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP4]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL5]" id="TGL5" size="30" value="<?php if( ($dat_rp['TGL5'] == '') or ($dat_rp['TGL5'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL5']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN5]">
|
||||
Dosis Obat Terlalu Rendah
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI5]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI5]" id="TGLTSELESAI5" size="30" value="<?php if( ($dat_rp['TGLTSELESAI5'] == '') or ($dat_rp['TGLTSELESAI5'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI5']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL5]" id="TGLTERKONTROL5" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL5'] == '') or ($dat_rp['TGLTERKONTROL5'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL5']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP5]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>6</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL6]" id="TGL6" size="30" value="<?php if( ($dat_rp['TGL6'] == '') or ($dat_rp['TGL6'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL6']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN6]">
|
||||
Dosis Obat Terlalu Tinggi
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI6]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI6]" id="TGLTSELESAI6" size="30" value="<?php if( ($dat_rp['TGLTSELESAI6'] == '') or ($dat_rp['TGLTSELESAI6'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI6']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL6]" id="TGLTERKONTROL6" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL6'] == '') or ($dat_rp['TGLTERKONTROL6'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL6']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP6]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL7]" id="TGL7" size="30" value="<?php if( ($dat_rp['TGL7'] == '') or ($dat_rp['TGL7'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL7']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN7]">
|
||||
Efek Samping Obat (Alergi, Non Alergi)
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI7]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI7]" id="TGLTSELESAI7" size="30" value="<?php if( ($dat_rp['TGLTSELESAI7'] == '') or ($dat_rp['TGLTSELESAI7'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI7']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL7]" id="TGLTERKONTROL7" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL7'] == '') or ($dat_rp['TGLTERKONTROL7'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL7']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP7]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>8</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL8]" id="TGL8" size="30" value="<?php if( ($dat_rp['TGL8'] == '') or ($dat_rp['TGL8'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL8']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN8]">
|
||||
Interaksi Obat (Obat-Obatan, Obat Makanan)
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI8]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI8]" id="TGLTSELESAI8" size="30" value="<?php if( ($dat_rp['TGLTSELESAI8'] == '') or ($dat_rp['TGLTSELESAI8'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI8']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL8]" id="TGLTERKONTROL8" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL8'] == '') or ($dat_rp['TGLTERKONTROL8'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL8']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP8]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>9</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL9]" id="TGL9" size="30" value="<?php if( ($dat_rp['TGL9'] == '') or ($dat_rp['TGL9'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL9']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN9]">
|
||||
Pasien Tidak Menggunakan Obat
|
||||
<input type="text" class="form-control text" name="input[ISI9]" tabindex="8" placeholder="">
|
||||
</label>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI9]" id="TGLTSELESAI9" size="30" value="<?php if( ($dat_rp['TGLTSELESAI9'] == '') or ($dat_rp['TGLTSELESAI9'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI9']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL9]" id="TGLTERKONTROL9" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL9'] == '') or ($dat_rp['TGLTERKONTROL9'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL9']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP9]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Ada Faktor Penghambat Kepatuhan Minum Obat</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>10</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL10]" id="TGL10" size="30" value="<?php if( ($dat_rp['TGL10'] == '') or ($dat_rp['TGL10'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL10']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN10]">
|
||||
a. Pemahaman Tentang Obat
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI10]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI10]" id="TGLTSELESAI10" size="30" value="<?php if( ($dat_rp['TGLTSELESAI10'] == '') or ($dat_rp['TGLTSELESAI10'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI10']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL10]" id="TGLTERKONTROL10" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL10'] == '') or ($dat_rp['TGLTERKONTROL10'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL10']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP10]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>11</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL11]" id="TGL11" size="30" value="<?php if( ($dat_rp['TGL11'] == '') or ($dat_rp['TGL11'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL11']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN11]">
|
||||
b. Bahasa (Komunikasi)
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI11]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI11]" id="TGLTSELESAI11" size="30" value="<?php if( ($dat_rp['TGLTSELESAI11'] == '') or ($dat_rp['TGLTSELESAI11'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI11']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL11]" id="TGLTERKONTROL11" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL11'] == '') or ($dat_rp['TGLTERKONTROL11'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL11']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP11]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL12]" id="TGL12" size="30" value="<?php if( ($dat_rp['TGL12'] == '') or ($dat_rp['TGL12'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL12']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN12]">
|
||||
c. Ingatan
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI12]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI12]" id="TGLTSELESAI12" size="30" value="<?php if( ($dat_rp['TGLTSELESAI12'] == '') or ($dat_rp['TGLTSELESAI12'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI12']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL12]" id="TGLTERKONTROL12" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL12'] == '') or ($dat_rp['TGLTERKONTROL12'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL12']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP12]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>13</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL13]" id="TGL13" size="30" value="<?php if( ($dat_rp['TGL13'] == '') or ($dat_rp['TGL13'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL13']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN13]">
|
||||
d. Tingkat Pendidikan
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI13]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI13]" id="TGLTSELESAI13" size="30" value="<?php if( ($dat_rp['TGLTSELESAI13'] == '') or ($dat_rp['TGLTSELESAI13'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI13']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL13]" id="TGLTERKONTROL13" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL13'] == '') or ($dat_rp['TGLTERKONTROL13'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL13']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP13]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>14</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL14]" id="TGL14" size="30" value="<?php if( ($dat_rp['TGL14'] == '') or ($dat_rp['TGL14'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL14']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN14]">
|
||||
e. Kemampuan Penggunaan Obat Secara Mandiri
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI14]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI14]" id="TGLTSELESAI14" size="30" value="<?php if( ($dat_rp['TGLTSELESAI14'] == '') or ($dat_rp['TGLTSELESAI14'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI14']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL14]" id="TGLTERKONTROL14" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL14'] == '') or ($dat_rp['TGLTERKONTROL14'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL14']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP14]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>15</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL15]" id="TGL15" size="30" value="<?php if( ($dat_rp['TGL15'] == '') or ($dat_rp['TGL15'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL15']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN15]">
|
||||
f. Kebosanan
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI15]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI15]" id="TGLTSELESAI15" size="30" value="<?php if( ($dat_rp['TGLTSELESAI15'] == '') or ($dat_rp['TGLTSELESAI15'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI15']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL15]" id="TGLTERKONTROL15" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL15'] == '') or ($dat_rp['TGLTERKONTROL15'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL15']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP15]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>16</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL16]" id="TGL16" size="30" value="<?php if( ($dat_rp['TGL16'] == '') or ($dat_rp['TGL16'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL16']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN16]">
|
||||
g. Polifarmasi
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI16]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI16]" id="TGLTSELESAI16" size="30" value="<?php if( ($dat_rp['TGLTSELESAI16'] == '') or ($dat_rp['TGLTSELESAI16'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI16']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL16]" id="TGLTERKONTROL16" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL16'] == '') or ($dat_rp['TGLTERKONTROL16'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL16']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP16]"></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>17</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGL17]" id="TGL17" size="30" value="<?php if( ($dat_rp['TGL17'] == '') or ($dat_rp['TGL17'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGL17']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="form-check form-check-inline">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" id="" type="checkbox" value="1" name="input[URAIAN17]">
|
||||
Lain-lain
|
||||
</label>
|
||||
</div>
|
||||
<input type="text" class="form-control text" name="input[ISI17]" tabindex="8" placeholder="">
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTSELESAI17]" id="TGLTSELESAI17" size="30" value="<?php if( ($dat_rp['TGLTSELESAI17'] == '') or ($dat_rp['TGLTSELESAI17'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTSELESAI17']; endif;?>"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="input[TGLTERKONTROL17]" id="TGLTERKONTROL17" size="30" value="<?php if( ($dat_rp['TGLTERKONTROL17'] == '') or ($dat_rp['TGLTERKONTROL17'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLTERKONTROL17']; endif;?>"/>
|
||||
</td>
|
||||
<td><center><input class="form-check-input" id="" type="checkbox" value="1" name="input[TETAP17]"></center></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12 pt-0" style="text-align:center;">
|
||||
<input type="button" name="Submit" id="simpankajianmedis" value="Simpan" class="btn btn-primary" tabindex="41"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- <div id="valid_kajian_awal"></div> -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$.get("<?php echo _BASE_;?>ranap/save_kajian_awal.php",{get_data:true,NOMR:$("#nomr_kajian").val(),IDXRANAP:$("#idx_kajian").val()},function(data)
|
||||
{
|
||||
$("#valid_kajian_awal").html(data.html);
|
||||
},"json");
|
||||
|
||||
$('#simpankajianmedis').click(function(){
|
||||
$.post('<?php echo _BASE_;?>ranap/save_kajian_awal.php',$('#kajian_awal_medis').serialize()+"&save=1",function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,326 @@
|
||||
<?php
|
||||
require_once './core/db.php';
|
||||
$dbRIS = new db($_ENV['RIS_DB_HOST'], $_ENV['RIS_DB_USER'], $_ENV['RIS_DB_PASS'], $_ENV['RIS_DB_NAME']);
|
||||
|
||||
$visitNumberCol = (_DBTYPE_ == 'mysqli') ? "a.VisitNumber" : "a.\"VisitNumber\"";
|
||||
$OrderNumberCol = (_DBTYPE_ == 'mysqli') ? "a.OrderNumber" : "a.\"OrderNumber\"";
|
||||
$nomrCol = (_DBTYPE_ == 'mysqli') ? "a.NoMR" : "a.\"NoMR\"";
|
||||
$lisRegNoCol = (_DBTYPE_ == 'mysqli') ? "a.LIS_REG_NO" : "a.\"LIS_REG_NO\"";
|
||||
$wardNameCol = (_DBTYPE_ == 'mysqli') ? "a.WardName" : "a.\"WardName\"";
|
||||
$doctorNameCol = (_DBTYPE_ == 'mysqli') ? "a.DoctorName" : "a.\"DoctorName\"";
|
||||
$retrievedCol = (_DBTYPE_ == 'mysqli') ? "a.RETRIEVED_DT" : "a.\"RETRIEVED_DT\"";
|
||||
$serviceUnitCol = (_DBTYPE_ == 'mysqli') ? "a.ServiceUnitID" : "a.\"ServiceUnitID\"";
|
||||
|
||||
$sql = "SELECT a.nolab,a.tglorder as tgl_order,a.tgl_lab, b.nama, b.alamat, g.nama as carabayar, a.nomr, e.nama as poly, a.idxdaftar, (select namadokter from m_dokter join t_orderlabmikro on m_dokter.kddokter = t_orderlabmikro.drpengirim where t_orderlabmikro.nolab = a.nolab limit 1) as namadokter,'Mikrobiologi Klinik' as nama_lab,'MK' as kode_lab
|
||||
FROM t_orderlabmikro_main a
|
||||
JOIN t_admission f ON a.IDXDAFTAR = f.id_admission and a.NOMR = f.NOMR
|
||||
JOIN m_pasien b ON a.NOMR = b.NOMR
|
||||
JOIN m_ruang e ON f.noruang = e.no
|
||||
JOIN m_carabayar g ON f.statusbayar = g.KODE
|
||||
WHERE (f.id_admission = $id_admission) or a.nomr = '$nomr'
|
||||
UNION
|
||||
SELECT a.noreglab as nolab,a.tglorder as tgl_order,a.tgljawab_lab as tgl_lab, b.nama, b.alamat, g.nama as carabayar, a.nomr, e.nama as poly, a.idxdaftar, (select namadokter from m_dokter join t_orderlabpa_main on m_dokter.kddokter = t_orderlabpa_main.drpengirim where t_orderlabpa_main.noreglab = a.noreglab limit 1) as namadokter,'Patologi Anatomi' as nama_lab,'PA' as kode_lab
|
||||
FROM t_orderlabpa_main a
|
||||
JOIN t_admission f ON a.IDXDAFTAR = f.id_admission and a.NOMR = f.NOMR
|
||||
JOIN m_pasien b ON a.NOMR = b.NOMR
|
||||
JOIN m_ruang e ON f.noruang = e.no
|
||||
JOIN m_carabayar g ON f.statusbayar = g.KODE
|
||||
WHERE f.id_admission = $id_admission
|
||||
UNION
|
||||
SELECT $OrderNumberCol as NOLAB,a.\"OrderDateTime\" as tgl_order, (select authorization_date from t_lis_result where lis_reg_no = $lisRegNoCol limit 1) as tgl_lab, b.nama, b.alamat, g.nama as carabayar, $nomrCol, $wardNameCol as poly, $visitNumberCol as idxdaftar, $doctorNameCol as namadokter,'Patologi Klinik' as nama_lab,'PK' as kode_lab
|
||||
FROM t_lis_registration a
|
||||
JOIN (select nobill,idxdaftar from t_billranap where idxdaftar= $id_admission order by idxbill desc limit 1) bill on $visitNumberCol = bill.nobill
|
||||
JOIN t_admission f ON bill.idxdaftar = f.id_admission and $nomrCol = f.NOMR
|
||||
JOIN m_pasien b ON $nomrCol = b.NOMR
|
||||
JOIN m_carabayar g ON f.statusbayar = g.KODE
|
||||
WHERE $serviceUnitCol = 1 AND f.id_admission = $id_admission
|
||||
UNION
|
||||
SELECT a.no_form as nolab,a.tgl_order,a.tgl_uji as tgl_lab, b.nama, b.alamat, g.nama as carabayar, a.nomr, e.nama as poly, a.idxdaftar, (select namadokter from m_dokter join t_orderlabdarah_main on m_dokter.kddokter = t_orderlabdarah_main.dokter_pengirim where t_orderlabdarah_main.no_form = a.no_form limit 1) as namadokter,'Darah' as nama_lab,'DRH' as kode_lab
|
||||
FROM t_orderlabdarah_main a
|
||||
JOIN t_admission f ON a.IDXDAFTAR = f.id_admission and a.NOMR = f.NOMR
|
||||
JOIN m_pasien b ON a.NOMR = b.NOMR
|
||||
JOIN m_ruang e ON f.noruang = e.no
|
||||
JOIN m_carabayar g ON f.statusbayar = g.KODE
|
||||
WHERE f.id_admission = $id_admission
|
||||
ORDER BY nolab desc
|
||||
";
|
||||
|
||||
$sql_rad = 'SELECT a.idxorderrad,a.hasilresume,a.nofilm, b.tglorder, b.nomr,p.nama as poly,t.nama_field as nama_tindakan,t.jenis_kelompok as jenisfilm,d.namadokter,
|
||||
case b.aps when 1 then (select nama from m_pasien_aps p where b.nomr = b.nomr limit 1)
|
||||
else (select nama from m_pasien p where p.nomr = b.nomr limit 1) end as nama,
|
||||
case b.aps when 1 then (select jeniskelamin from m_pasien_aps p where b.nomr = b.nomr limit 1)
|
||||
else (select jeniskelamin from m_pasien p where b.nomr = b.nomr limit 1) end as jeniskelamin
|
||||
FROM t_orderradiologi a
|
||||
JOIN t_orderradiologi_main b on a.IDXPKRAD = b.IDXPKRAD
|
||||
JOIN m_ruang p ON p.no = b.POLYPENGIRIM
|
||||
JOIN m_dokter d ON d.KDDOKTER = b.DRPENGIRIM
|
||||
JOIN m_form_lab t ON t.form_id = a.IDXFORM
|
||||
where b.IDXDAFTAR = ' . $id_admission . ' AND b.NOMR = \'' . $nomr . '\' and RAJAL = 0';
|
||||
|
||||
$tmp_rad = $dbRIS->query("SELECT a.nofoto,a.reques,a.mulai,a.akhir,a.status from periksa a
|
||||
where noregister = '$nomr' and a.verifikasi is not null");
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<h5>HASIL PEMERIKSAAN PENUNJANG</h5>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h5>Laboratorium</h5>
|
||||
<table class="table table-bordered table-striped table-sm">
|
||||
<tr class="bg-success text-white">
|
||||
<th>No Lab</th>
|
||||
<th>Dari Lab</th>
|
||||
<th>Tanggal Order</th>
|
||||
<th>Tanggal Selesai</th>
|
||||
<th>Lihat Hasil</th>
|
||||
</tr>
|
||||
<?php
|
||||
$tmp_query = $db->query($sql);
|
||||
if ($tmp_query->numRows()) {
|
||||
foreach ($tmp_query->fetchAll() as $ds) {
|
||||
$view_lab = ($ds['kode_lab'] == 'MK') ? 'view_lab_mikro' : (($ds['kode_lab'] == 'PA') ? 'view_lab_pa' : (($ds['kode_lab'] == 'DRH') ? 'view_lab_darah' : 'view_lab_pk'));
|
||||
if ($ds['kode_lab'] == 'MK') {
|
||||
$get_detil = $db->query("SELECT nomr,no_lokal as no_lab,
|
||||
case when jenis_hasil is null then 'BELUM DIPERIKSA'
|
||||
when jenis_hasil != '' and simpan_analis = 1 and status_kirim_expertise is null and simpan_expertise is null and status_final is null then 'DIPERIKSA ANALIS'
|
||||
when jenis_hasil != '' and simpan_analis = 1 and status_kirim_expertise = 1 and simpan_expertise is null and status_final is null then 'KIRIM EXPERTISE'
|
||||
when jenis_hasil != '' and simpan_analis = 1 and status_kirim_expertise = 1 and simpan_expertise = 1 and status_final is null then 'DIPERIKSA EXPERTISE'
|
||||
when jenis_hasil != '' and simpan_analis = 1 and status_kirim_expertise = 1 and simpan_expertise = 1 and status_final = 1 then 'KIRIM HASIL LAB' end as status,jenis_hasil,idxordermikro
|
||||
from t_orderlabmikro where nolab='{$ds['nolab']}' and no_lokal is not null and status_final = 1");
|
||||
if ($get_detil->numRows() > 0) {
|
||||
$data_detil = $get_detil->fetchAll();
|
||||
}
|
||||
echo '<tr>';
|
||||
echo '<td>' . $ds['nolab'] . '</td>';
|
||||
echo '<td>' . $ds['nama_lab'] . '</td>';
|
||||
echo '<td>' . $ds['tgl_order'] . '</td>';
|
||||
echo '<td>' . $ds['tgl_lab'] . '</td>';
|
||||
echo '<td>';
|
||||
if ($get_detil->numRows() > 0) {
|
||||
echo '<table class="table">
|
||||
<thead class="thead-dark"><tr><th>No Lab</th><th>Hasil</th></tr></thead><tbody>';
|
||||
foreach ($data_detil as $detil) {
|
||||
$hasil = ($detil['status'] == 'KIRIM HASIL LAB') ? '<button data-nomr="' . $detil['nomr'] . '" data-idx="' . $detil['idxordermikro'] . '" data-nolab="' . $ds['nolab'] . '" data-jenis_hasil="' . $detil['jenis_hasil'] . '" class="view_lab_mikro btn btn-outline-danger btn-sm"><i class="fa fa-file-pdf"></i> Lihat ' . $detil['jenis_hasil'] . '</button>' : '';
|
||||
|
||||
echo '<tr><td>' . $detil['no_lab'] . '</td><td>' . $hasil . '</td></tr>';
|
||||
}
|
||||
echo '</tbody></table>';
|
||||
}
|
||||
echo '</td></tr>';
|
||||
} else {
|
||||
echo '<tr>';
|
||||
echo '<td>' . $ds['nolab'] . '</td>';
|
||||
echo '<td>' . $ds['nama_lab'] . '</td>';
|
||||
echo '<td>' . $ds['tgl_order'] . '</td>';
|
||||
echo '<td>' . $ds['tgl_lab'] . '</td>';
|
||||
echo '<td><button data-nomr="' . $ds['nomr'] . '" data-idx="' . $ds['idxdaftar'] . '" data-nolab="' . $ds['nolab'] . '" class="' . $view_lab . ' btn btn-outline-secondary btn-sm">LIHAT</button></td></tr><tr id="detillab-' . $ds['nolab'] . '"><td colspan="4"></td></tr>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<h5>Radiologi</h5>
|
||||
<table class="table table-bordered table-striped table-sm">
|
||||
<tr class="bg-success text-white">
|
||||
<th>No Foto</th>
|
||||
<th>Nama Foto</th>
|
||||
<th>Mulai</th>
|
||||
<th>Selesai</th>
|
||||
<th>Waktu Respon</th>
|
||||
<th>Status</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
<?php
|
||||
if ($tmp_rad->numRows()) {
|
||||
foreach ($tmp_rad->fetchAll() as $ds) {
|
||||
$dt_a = new DateTime($ds['mulai']);
|
||||
if ($ds['selesai'] != '') {
|
||||
$dt_b = new DateTime($ds['selesai']);
|
||||
|
||||
$dt_respon = $dt_b->diff($dt_a);
|
||||
$waktu_respon = $dt_respon->format("%H jam %I menit %s detik");
|
||||
} else {
|
||||
$waktu_respon = '';
|
||||
}
|
||||
$view_lab = 'view_rad';
|
||||
echo '<tr>';
|
||||
echo '<td>' . $ds['nofoto'] . '</td>';
|
||||
echo '<td>' . $ds['reques'] . '</td>';
|
||||
echo '<td>' . $ds['mulai'] . '</td>';
|
||||
echo '<td>' . $ds['selesai'] . '</td>';
|
||||
echo '<td>' . $waktu_respon . '</td>';
|
||||
echo '<td>' . $ds['status'] . '</td>';
|
||||
echo '<td><div class="btn-group">
|
||||
<button data-nofoto="' . $ds['nofoto'] . '" class="' . $view_lab . ' btn btn-outline-primary btn-sm">Jawaban</button>
|
||||
<button data-nofoto="' . $ds['nofoto'] . '" data-nomr="' . $nomr . '" class="' . $view_lab . '_foto btn btn-outline-success btn-sm">Lihat Foto</button>
|
||||
</div>
|
||||
</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
// $(document).on("click", ".view_lab_pk", function(e) {
|
||||
// e.preventDefault();
|
||||
// $(this).button("loading");
|
||||
// var nolab = $(this).data("nolab");
|
||||
// var nomr = $(this).data("nomr");
|
||||
// var idx = $(this).data("idx");
|
||||
// $.ajax({
|
||||
// url: <?php echo _BASE_ . 'include/master.php?get_viewer=1'; ?>,
|
||||
// type: "POST",
|
||||
// data: {
|
||||
// search: data_search
|
||||
// },
|
||||
// dataType: "JSON",
|
||||
// success: function(data) {
|
||||
// console.log(data);
|
||||
// },
|
||||
// error: function(jqXHR, textStatus, errorThrown) {
|
||||
// $(".view_lab_pk").button("reset");
|
||||
// },
|
||||
// }); //end ajax
|
||||
// });
|
||||
$(".view_lab_pk").click(function() {
|
||||
var nolab = $(this).data("nolab");
|
||||
var nomr = $(this).data("nomr");
|
||||
var idx = $(this).data("idx");
|
||||
var this_btn = $(this);
|
||||
this_btn.text("Loading...");
|
||||
|
||||
$.post("<?php echo _BASE_ . 'include/master.php?get_viewer=1'; ?>", {
|
||||
nomr
|
||||
}, function(data) {
|
||||
// console.log(data);
|
||||
wrapper = $("#detillab-" + nolab + " td");
|
||||
// wrapper.html("");
|
||||
//console.log(wrapper);
|
||||
html_elm = "<div class=\"list-group\">";
|
||||
if (data.type == "success") {
|
||||
this_btn.text("Loading Selesai").prop("disabled", true);
|
||||
$.each(data.data, function(k, v) {
|
||||
html_elm +=
|
||||
"<a href=\"javascript:void(0)\" class=\"list-group-item list-group-item-action view_pdf\" onclick=\"openviewer('" +
|
||||
v.url + "')\">" + v.nama + "</a>";
|
||||
});
|
||||
} else {
|
||||
this_btn.text("Lihat").prop("disabled", false);
|
||||
}
|
||||
html_elm += "</div>";
|
||||
wrapper.html(html_elm);
|
||||
}, "json");
|
||||
/*$.post('<?php echo _BASE_; ?>lab/detil_hasil_labpk.php',{preview:1,nolab:nolab,nomr:nomr,idx:idx,rajal:0},function(data)
|
||||
{
|
||||
$("#modal-preview .modal-body").html(data);
|
||||
$("#modal-preview").modal("show");
|
||||
})*/
|
||||
|
||||
});
|
||||
|
||||
function openviewer(url) {
|
||||
$("#print_body").html("");
|
||||
$("#print_body").html("<embed src=\"\" width=\"100%\" height=\"450\" id=\"embed_pdf\"></embed>");
|
||||
$("#embed_pdf").prop("src", url);
|
||||
$("#modal-preview").modal("show");
|
||||
$("#modal-preview .btn-success").css("display", 'none');
|
||||
}
|
||||
|
||||
// $(".view_lab_mikro").click(function(){
|
||||
// var nolab = $(this).data("nolab");
|
||||
// var nomr = $(this).data("nomr");
|
||||
// var idx = $(this).data("idx");
|
||||
// $.post('<?php echo _BASE_; ?>lab/detil_hasil_labmikro.php',{preview:1,nolab:nolab,nomr:nomr,idx:idx},function(data)
|
||||
// {
|
||||
// $("#modal-preview .modal-body").html(data);
|
||||
// $("#modal-preview").modal("show");
|
||||
// })
|
||||
|
||||
// });
|
||||
// $(".view_lab_pa").click(function(){
|
||||
// var nolab = $(this).data("nolab");
|
||||
// var nomr = $(this).data("nomr");
|
||||
// var idx = $(this).data("idx");
|
||||
// $.post('<?php echo _BASE_; ?>lab/detil_hasil_labpa.php',{preview:1,nolab:nolab,nomr:nomr,idx:idx},function(data)
|
||||
// {
|
||||
// $("#modal-preview .modal-body").html(data);
|
||||
// $("#modal-preview").modal("show");
|
||||
// })
|
||||
|
||||
// });
|
||||
|
||||
$(".view_lab_darah").click(function() {
|
||||
var nolab = $(this).data("nolab");
|
||||
var nomr = $(this).data("nomr");
|
||||
var idx = $(this).data("idx");
|
||||
$.post('<?php echo _BASE_; ?>lab/detil_hasil_labdarah.php', {
|
||||
preview: 1,
|
||||
nolab: nolab,
|
||||
nomr: nomr,
|
||||
idx: idx
|
||||
}, function(data) {
|
||||
$("#modal-preview .modal-body").html(data);
|
||||
$("#modal-preview").modal("show");
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
$(".view_rad").click(function() {
|
||||
var nofoto = $(this).data("nofoto");
|
||||
$.post('<?php echo _BASE_; ?>radiologi/detil_hasil_radiologi.php', {
|
||||
preview: 1,
|
||||
nofoto
|
||||
}, function(data) {
|
||||
$("#modal-preview .modal-body").html(data);
|
||||
$("#modal-preview").modal("show");
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
$(".view_rad_foto").click(function() {
|
||||
var nofoto = $(this).data("nofoto");
|
||||
var nomr = $(this).data("nomr");
|
||||
$.post('<?php echo _BASE_; ?>include/master.php', {
|
||||
ris_viewer: 1,
|
||||
nofoto,
|
||||
nomr
|
||||
}, function(data) {
|
||||
// $("#modal-preview .modal-body").html(data);
|
||||
// $("#modal-preview").modal("show");
|
||||
// $("#modal-preview .btn-success").css("display",'none');
|
||||
var windowFeatures =
|
||||
"height=900,width=1300,directories=0,titlebar=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,addressbar=0";
|
||||
a = window.open(data.url, 'viewer_radiologi', windowFeatures);
|
||||
}, "json");
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
array_push($form_plugin['ui_plugins_js'], $jspm_js);
|
||||
|
||||
$js_init .= $jspm_init;
|
||||
$js_init .= '$(".view_lab_mikro").click(function(){
|
||||
var nolab = $(this).data("nolab");
|
||||
var nomr = $(this).data("nomr");
|
||||
var idx = $(this).data("idx");
|
||||
jspm_print_with_toolbar("' . _BASE_ . 'lab/detil_hasil_labmikro.php?preview=1&no="+idx,"modal-preview","Hasil Laboratorium Mikrobiologi.pdf",0);
|
||||
});
|
||||
$(".view_lab_pa").click(function(){
|
||||
var nolab = $(this).data("nolab");
|
||||
var nomr = $(this).data("nomr");
|
||||
var idx = $(this).data("idx");
|
||||
jspm_print_with_toolbar("' . _BASE_ . 'lab/detil_hasil_labpa.php?preview=1&idx="+idx+"&nomr="+nomr+"&nolab="+nolab,"modal-preview","Hasil Laboratorium Patologi Anatomi.pdf",0);
|
||||
});';
|
||||
?>
|
||||
@@ -0,0 +1,475 @@
|
||||
<?php
|
||||
|
||||
array_push($form_plugin['ui_plugins_js'], $jspm_js);
|
||||
$js_init .= $jspm_init;
|
||||
$m_ppa = $db->query("SELECT * from m_ppa");
|
||||
if ($m_ppa->numRows() > 0) {
|
||||
$arr_ppa = array('' => 'Pilih PPA');
|
||||
foreach ($m_ppa->fetchAll() as $ds) {
|
||||
if ($ds['nama_ppa'] == 'Petugas Lab') continue;
|
||||
$arr_ppa[$ds['id_ppa']] = $ds['nama_ppa'];
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists('edit_cprj', $_REQUEST) && $_REQUEST['edit_cprj'] == 1) {
|
||||
// var_dump("EDIT_CPRJ");
|
||||
$cprj = "SELECT a.*,case when (a.perawat <> 0 ) then b.nama when a.kddokter is not null then c.namadokter end as nama_ppa,d.nama_ppa as jenis_ppa from t_detail_diagnosakep a
|
||||
left join m_perawat b on a.perawat = b.idperawat
|
||||
left join m_dokter c on a.kddokter = c.kddokter
|
||||
left join m_ppa d on a.kategori = d.id_ppa
|
||||
where id_detail_diagnosakep = {$_REQUEST['id']}";
|
||||
|
||||
$tmp_cprj = $db->query($cprj);
|
||||
if ($tmp_cprj->numRows() > 0) {
|
||||
$form_cprj = 'edit';
|
||||
$data = $tmp_cprj->fetchFirst();
|
||||
$hidden_form = '<input type="hidden" name="id_detail_diagnosakep" value="' . $data['id_detail_diagnosakep'] . '">';
|
||||
}
|
||||
} else {
|
||||
$data['kategori'] = $data['nama_ppa'] = $data['evaluasi_a'] = $data['evaluasi_o'] = $data['evaluasi_p'] = $data['evaluasi_s']
|
||||
= $data['review'] = '';
|
||||
|
||||
$form_cprj = 'daftar';
|
||||
$hidden_form = '';
|
||||
}
|
||||
|
||||
$is_ppa = '';
|
||||
$txt_ppa = '';
|
||||
$user_id = '';
|
||||
$user_name = '';
|
||||
if (!empty($_SESSION['KDDOKTER'])){
|
||||
$sql_user = "select namadokter as nama, kddokter as user_id, 'Dokter' as nama_ppa, 1 as id_ppa from m_dokter
|
||||
where kddokter = '".$_SESSION['KDDOKTER']."'";
|
||||
$user = $db->query($sql_user)->fetchAll()[0];
|
||||
if (!empty($user)){
|
||||
$user_id = $user['user_id'];
|
||||
$is_ppa = $user['id_ppa'];
|
||||
$txt_ppa = $user['nama_ppa'];
|
||||
$user_name = $user['nama'];
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($_SESSION['KDPERAWAT'])){
|
||||
$sql_user = "select a.nama, a.idperawat as user_id, b.nama_ppa, b.id_ppa from m_perawat a
|
||||
join m_ppa b on b.id_ppa = a.ppa
|
||||
where idperawat = '".$_SESSION['KDPERAWAT']."'";
|
||||
$user = $db->query($sql_user)->fetchAll()[0];
|
||||
if (!empty($user)){
|
||||
$user_id = $user['user_id'];
|
||||
$is_ppa = $user['id_ppa'];
|
||||
$txt_ppa = $user['nama_ppa'];
|
||||
$user_name = $user['nama'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form name="form_f6" id="form_f6" action="" method="post">
|
||||
<?php
|
||||
$f6_sql = null;
|
||||
|
||||
if (isset($_GET['iddetdiagkep'])) {
|
||||
$f6_sql = $db->query("SELECT * FROM t_diagnosakep a left join t_detail_diagnosakep b on a.id_diagnosakep = b.id_diagnosakep WHERE a.NOMR ='" . $nomr . "' and a.idadmission = '" . $id_admission . "' and a.id_diagnosakep = '" . $data_diagnosa['id_diagnosakep'] . "' and b.id_detail_diagnosakep = '" . $_GET['iddetdiagkep'] . "';");
|
||||
?>
|
||||
|
||||
<input class="text" value="<?= $data_diagnosa['id_diagnosakep'] ?>" type="hidden" name="id_diagkep" id="id_diagkep">
|
||||
<input class="text" value="<?= $_GET['iddetdiagkep'] ?>" type="hidden" name="id_detail_diagkep"
|
||||
id="id_detail_diagkep">
|
||||
|
||||
<?php
|
||||
} elseif (isset($data_diagnosa['id_diagnosakep'])) {
|
||||
$f6_sql = $db->query("SELECT * FROM t_diagnosakep WHERE NOMR ='" . $nomr . "' and idadmission = '" . $id_admission . "' and id_diagnosakep = '" . $data['id_diagnosakep'] . "';"); ?>
|
||||
<input class="text" value="<?= $data_diagnosa['id_diagnosakep'] ?>" type="hidden" name="id_diagkep" id="id_diagkep">
|
||||
<?php
|
||||
}
|
||||
|
||||
$dataf6 = (NULL != $f6_sql) ? mysqli_fetch_array($f6_sql) : null;
|
||||
?>
|
||||
|
||||
<div id="list_data"></div>
|
||||
<br>
|
||||
|
||||
<input class="text" value="<?= $id_admission ?>" type="hidden" name="idx_admission" id="idadmission">
|
||||
<input class="text" value="<?= $nomr ?>" type="hidden" name="nomr" id="nomr">
|
||||
<input class="text" value="<?= $nama ?>" type="hidden" name="nama" id="nama">
|
||||
<input value="1" type="hidden" name="<?php echo $form_cprj; ?>">
|
||||
<input value="<?php echo $_SESSION['ROLES']; ?>" type="hidden" name="role_petugas">
|
||||
<?php echo $hidden_form; ?>
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center">
|
||||
<h5>CATATAN PERKEMBANGAN PASIEN TERINTEGRASI</h5>
|
||||
</label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">PPA</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<input type="text" class="form-control" value="<?= $txt_ppa ?>" disabled>
|
||||
<div style="display: none">
|
||||
<?php echo form_dropdown('jenis_ppa', $arr_ppa, $is_ppa, 'class="form-control" id="jenis_ppa" style="width:100%" '); ?>
|
||||
</div>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Nama PPA</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left" id="temp_ppa_text">
|
||||
<input type="text" class="form-control" value="<?= $user_name ?>" disabled>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left;display: none" id="temp_ppa" >
|
||||
<?php
|
||||
echo $data['nama_ppa'];
|
||||
// echo form_dropdown('perawat',array(),'','class="form-control" id="perawat"');
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="row" id="form_soap1">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Daftar Evaluasi ( S )</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="evaluasi_s" id="soap_evaluasi_s" cols="60" rows="5"
|
||||
class="form-control text"><?= (($data['kategori'] != 4) ? $data['evaluasi_s'] : '') ?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">( O )</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="evaluasi_o" id="soap_evaluasi_o" cols="60" rows="5"
|
||||
class="form-control text"><?= (($data['kategori'] != 4) ? $data['evaluasi_o'] : '') ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="row" id="form_soap2">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">( A )</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="evaluasi_a" id="soap_evaluasi_a" cols="60" rows="5"
|
||||
class="form-control text"><?= (($data['kategori'] != 4) ? $data['evaluasi_a'] : '') ?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">( P )</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="evaluasi_p" id="soap_evaluasi_p" cols="60" rows="5"
|
||||
class="form-control text"><?= (($data['kategori'] != 4) ? $data['evaluasi_p'] : '') ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="row d-none" id="form_adime1">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Daftar Evaluasi ( A )</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="evaluasi_s" id="adime_evaluasi_s" cols="60" rows="5"
|
||||
class="form-control text"><?= $data['evaluasi_s'] ?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">( D )</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="evaluasi_o" id="adime_evaluasi_o" cols="60" rows="5"
|
||||
class="form-control text"><?= $data['evaluasi_o'] ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="row d-none" id="form_adime2">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">( I )</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="evaluasi_a" id="adime_evaluasi_a" cols="60" rows="5"
|
||||
class="form-control text"><?= $data['evaluasi_a'] ?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">( ME )</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="evaluasi_p" id="adime_evaluasi_p" cols="60" rows="5"
|
||||
class="form-control text"><?= $data['evaluasi_p'] ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Instruksi </label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="implementasi" cols="60" rows="5" class="form-control text"
|
||||
placeholder="Instruksi PPA Termasuk Pasca Bedah"><?= (($data['kategori'] != 4) ? $data['implementasi'] : '') ?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right">Review</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<textarea name="review" cols="60" rows="5" class="form-control text"
|
||||
placeholder="Review & Verifikasi DPJP"><?= $data['review'] ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$nomr = (!isset($nomr)) ? $_REQUEST['nomr'] : $nomr;
|
||||
$html_values = "";
|
||||
// var_dump($_REQUEST);
|
||||
//var_dump(array_key_exists("edit_cprj", $_REQUEST));
|
||||
if (array_key_exists("edit_cprj", $_REQUEST) == true) {
|
||||
$html_values = '<input type="button" name="daftar" id="simpaneditf6" class="btn btn-primary text"
|
||||
value="S i m p a n ">';
|
||||
} else {
|
||||
$html_values = '<input type="button" name="daftar" id="simpanf6" class="btn btn-primary text"
|
||||
value="S i m p a n">';
|
||||
}
|
||||
/***Todo Pembatasan Access menurut unit pelayanan */
|
||||
// if (($_SESSION['ROLES'] == 15) or ($_SESSION['ROLES'] == 6)) {
|
||||
// echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
// } else {
|
||||
|
||||
// var_dump($nomr);
|
||||
echo ' <div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 offset-sm-8 text-right pt-0" style="text-align:left">
|
||||
' . $html_values . '
|
||||
<input type="button" data-nomr="' . $id_admission . '"name="perview" id="perviewf6" class="btn btn-primary text" value="P r e v i e w"/>
|
||||
<input type="button" class="btn btn-outline-success" id="btn_hist_cprj" value="History CPRJ"></input>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>';
|
||||
// }
|
||||
?>
|
||||
|
||||
</fieldset>
|
||||
</form>
|
||||
<div id="valid_catatan">
|
||||
<?php include _DOCROOT_ . 'kep/add_save_diagnosa_ranap.php'; ?>
|
||||
</div>
|
||||
<template id="histcprj-template">
|
||||
<div class="modal fade histcprj-modal-lg" id="histcprj-modal" tabindex="-1" role="dialog" aria-labelledby="HistCPRJ"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" style="max-width: 98%">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">History Catatan Pasien Rawat Inap</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body"></div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
function htmlEntities(str) {
|
||||
return String(str).replace(/&/g, '_amp_').replace(/</g, '_lt_').replace(/>/g, '_gt_').replace(/"/g,
|
||||
'_quot_');
|
||||
}
|
||||
$hist_cprj = $("#histcprj-template").html();
|
||||
$("body").append($hist_cprj);
|
||||
|
||||
<?php if (!empty($is_ppa)) :?>
|
||||
change_jenis_ppa('<?= $is_ppa ?>', '<?= $txt_ppa ?>', '<?= $user_id ?>')
|
||||
<?php endif; ?>
|
||||
|
||||
$("#simpanf6").click(function(e) {
|
||||
var ppa = $("#jenis_ppa");
|
||||
if (ppa.length > 0) {
|
||||
nama_ppa = ppa.find(":selected").val();
|
||||
if (nama_ppa == '') {
|
||||
Toast.fire({
|
||||
title: "Nama PPA masih kosong",
|
||||
type: "error"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
$.post("<?php echo _BASE_ . 'kep/add_save_diagnosa_ranap.php'; ?>", $("#form_f6")
|
||||
.serialize(),
|
||||
function(data) {
|
||||
e.preventDefault();
|
||||
$("#valid_catatan").html(data);
|
||||
$("#form_f6").trigger("reset");
|
||||
$("#temp_ppa").html("");
|
||||
$("#jenis_ppa").val('<?= $is_ppa ?>').trigger("change");
|
||||
change_jenis_ppa('<?= $is_ppa ?>', '<?= $txt_ppa ?>', '<?= $user_id ?>')
|
||||
});
|
||||
} else {
|
||||
Toast.fire({
|
||||
title: "Nama PPA masih kosong",
|
||||
type: "error"
|
||||
});
|
||||
}
|
||||
});
|
||||
$("#simpaneditf6").click(function(e) {
|
||||
var ppa = $("#ppa_form6").find(":selected").val();
|
||||
jenis_ppa = $("#jenis_ppa").find(":selected").val();
|
||||
console.log(jenis_ppa);
|
||||
console.log(ppa);
|
||||
|
||||
|
||||
if (jenis_ppa == '') {
|
||||
Toast.fire({
|
||||
title: "Maaf form tidak dapat diproses, silakan pilih PPA terlebih dahulu!",
|
||||
type: "error"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
let es, eo, ea, ep;
|
||||
if (jenis_ppa != 4) {
|
||||
es = $("#soap_evaluasi_s").val();
|
||||
eo = $("#soap_evaluasi_o").val();
|
||||
ea = $("#soap_evaluasi_a").val();
|
||||
ep = $("#soap_evaluasi_p").val();
|
||||
} else {
|
||||
es = $("#adime_evaluasi_s").val();
|
||||
eo = $("#adime_evaluasi_o").val();
|
||||
ea = $("#adime_evaluasi_a").val();
|
||||
ep = $("#adime_evaluasi_p").val();
|
||||
}
|
||||
if (ppa != '') {
|
||||
if (es == "" && eo == "" && ea == "" && ep == "") {
|
||||
Toast.fire({
|
||||
title: "Isikan keterangan pada form terlebih dahulu.",
|
||||
type: "error"
|
||||
});
|
||||
return false;
|
||||
} else {
|
||||
$.post("<?php echo _BASE_ . 'kep/add_save_diagnosa_ranap.php'; ?>", $("#form_f6").find(
|
||||
'input,select,textarea').serialize() + "&evaluasi_s=" + htmlEntities(es) +
|
||||
"&evaluasi_o=" + htmlEntities(eo) + "&evaluasi_a=" + htmlEntities(ea) +
|
||||
"&evaluasi_p=" + htmlEntities(ep) +
|
||||
"&<?php echo implode("&", parse_url($_SERVER['QUERY_STRING'])); ?>",
|
||||
function(data) {
|
||||
e.preventDefault();
|
||||
$("#valid_catatan").html(data);
|
||||
$("#form_f6").trigger("reset");
|
||||
$("#temp_ppa").html("");
|
||||
location.reload();
|
||||
});
|
||||
}
|
||||
} else {
|
||||
Toast.fire({
|
||||
title: "Nama PPA masih kosong",
|
||||
type: "error"
|
||||
});
|
||||
}
|
||||
});
|
||||
$("#perviewf6").click(function(e) {
|
||||
var idx = $(this).data("nomr");
|
||||
jspm_print_with_toolbar(
|
||||
"<?php echo _BASE_; ?>include/master.php?load_cppt_view=1&rajal=0&idx=" + idx,
|
||||
"modal-preview", "CPPT.pdf", 0, false);
|
||||
});
|
||||
$(".remove_cprj").click(function() {
|
||||
Swal.fire({
|
||||
html: "<div class=\"alert alert-danger\">Hapus data Catatan Pasien ini?</div>",
|
||||
showCancelButton: true,
|
||||
animation: false,
|
||||
confirmButtonText: "Ya",
|
||||
cancelButtonText: "Tidak"
|
||||
}).then((result) => {
|
||||
if (result.value) {
|
||||
let id = $(this).data("id");
|
||||
$.post("<?php echo _BASE_ . 'include/master.php'; ?>", {
|
||||
rajal: 0,
|
||||
remove_cprj: 1,
|
||||
id
|
||||
}, function(data) {
|
||||
Toast.fire({
|
||||
title: data.message,
|
||||
type: data.type,
|
||||
onClose: function() {
|
||||
window.location.reload();
|
||||
}
|
||||
})
|
||||
}, "JSON")
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#btn_hist_cprj').click(function() {
|
||||
var idx = $('#idadmission').val();
|
||||
var nomr = $('#nomr').val();
|
||||
|
||||
let tbl_id = "tbl_hist_cprj";
|
||||
// alert(nomr + idx);
|
||||
$.post('<?php echo _BASE_; ?>ranap/history_cprj.php', {
|
||||
idxdaftar: idx,
|
||||
nomr,
|
||||
tbl_id
|
||||
}, function(data) {
|
||||
$("#histcprj-modal .modal-body").html("");
|
||||
$("#histcprj-modal .modal-body").html(data);
|
||||
$("#histcprj-modal").modal("show");
|
||||
|
||||
$("#" + tbl_id + " thead tr").clone(true).appendTo("#" + tbl_id + " thead");
|
||||
$("#" + tbl_id + " thead tr:eq(1) th").each(function(i) {
|
||||
if (i == 2) {
|
||||
var title = $(this).text();
|
||||
$(this).html(
|
||||
"<input type=\"text\" class=\"form-control form-control-sm\" placeholder=\"Cari " +
|
||||
title + "\" />");
|
||||
|
||||
$("input", this).typing({
|
||||
stop: function(e, elm) {
|
||||
tbl_hist_cprj.column(i).search(elm[0].value)
|
||||
.draw();
|
||||
},
|
||||
delay: 400
|
||||
});
|
||||
|
||||
$("input", this).on("click", function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
} else {
|
||||
var title = $(this).text();
|
||||
$(this).html(" ");
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
function change_jenis_ppa(jenis, txt_jenis, user_id){
|
||||
$.post("<?php echo _BASE_ . 'include/master.php'; ?>", {
|
||||
ppa: true,
|
||||
jenis_ppa: jenis,
|
||||
user_id: user_id
|
||||
}, function(d) {
|
||||
$("#temp_ppa").html(d);
|
||||
|
||||
jQuery("#ppa_form6").select2();
|
||||
if (txt_jenis == 'Gizi') {
|
||||
$("#form_soap1 textarea, #form_soap2 textarea").each(function(k, v) {
|
||||
$(v).prop("disabled", true);
|
||||
});
|
||||
$("#form_adime1 textarea, #form_adime2 textarea").each(function(k, v) {
|
||||
$(v).prop("disabled", false);
|
||||
});
|
||||
|
||||
$("#form_soap1,#form_soap2").addClass("d-none");
|
||||
$("#form_adime1,#form_adime2").removeClass("d-none");
|
||||
} else {
|
||||
$("#form_soap1 textarea, #form_soap2 textarea").each(function(k, v) {
|
||||
$(v).prop("disabled", false);
|
||||
});
|
||||
$("#form_adime1 textarea, #form_adime2 textarea").each(function(k, v) {
|
||||
$(v).prop("disabled", true);
|
||||
});
|
||||
|
||||
$("#form_soap1,#form_soap2").removeClass("d-none");
|
||||
$("#form_adime1,#form_adime2").addClass("d-none");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$("#jenis_ppa").on("change", function() {
|
||||
var jenis = $(this).find(":selected").val();
|
||||
var txt_jenis = $(this).find(":selected").text();
|
||||
change_jenis_ppa(jenis, txt_jenis, '')
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
<form action="" name="perjalanan_penyakit" method="post" id="perjalanan_penyakit">
|
||||
<input type="hidden" name="id_admission" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="nomr" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="noruang" value="<?php echo $noruang;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>KONSULTASI</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tanggal</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="tanggal" cols="60" rows="5" class="form-control text" value="<?php echo date("d/m/Y"); ?>" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Konsultasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="konsultasi" cols="60" rows="5" class="form-control text"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="submit" name="simpanf7" value="Simpan" class="btn btn-primary text"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div id="valid_perjalanan_penyakit" >
|
||||
<?php include("save_perjalanan_penyakit.php"); ?>
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,229 @@
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_kajianawalmedis WHERE IDXRANAP = '".$id_admission."'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$found = $get_rsm_pulang->numRows();
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
$IDXF2 = ($found > 0) ? $dat_rp['IDXF2'] : null;
|
||||
?>
|
||||
<form name="kajian_awal_medis" method="post" id="kajian_awal_medis">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>RESUME KEPERAWATAN</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-6 pt-0" style="text-align:right">A. Ringaksan Keperawatan</label>
|
||||
<div class="col-sm-6 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Nama :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control text" name="input[NAMA]" value="<?=$dat_rp['NAMA']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Umur :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[UMUR]" value="<?=$dat_rp['UMUR']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Jenis :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control text" name="input[JENIS]" value="<?=$dat_rp['JENIS']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Agama :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control text" name="input[AGAMA]" value="<?=$dat_rp['AGAMA']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Pekerjaan :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control text" name="input[PEKERJAAN]" value="<?=$dat_rp['PEKERJAAN']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-0 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-12 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">No. Reg :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control mask-decimal" name="input[NOREG]" value="<?=$dat_rp['NOREG']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">R. Perawatan :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control text" name="input[RUANGPERAWATAN]" value="<?=$dat_rp['RUANGPERAWATAN']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tanggal MRS :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="TGLMRS" id="TGLMRS" size="30" value="<?php if( ($dat_rp['TGLMRS'] == '') or ($dat_rp['TGLMRS'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLMRS']; endif;?>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tanggal KRS :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="datepicker-default mask-date-default form-control" name="TGLKRS" id="TGLKRS" size="30" value="<?php if( ($dat_rp['TGLKRS'] == '') or ($dat_rp['TGLKRS'] == '0000-00-00')): echo date('Y-m-d'); else: echo $dat_rp['TGLKRS']; endif;?>" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Keadaan KRS :</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control text" name="input[KEADAANKRS]" value="<?=$dat_rp['KEADAANKRS']?>" tabindex="6">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kondisi : </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left;">
|
||||
<select class="form-control" name="input['KONDISI']">
|
||||
<option value="0">-</option>
|
||||
<option value="1">Sembuh</option>
|
||||
<option value="2">Rawat Jalan</option>
|
||||
<option value="3">Dirujuk</option>
|
||||
<option value="4">Pulang Atas Permintaan Sendiri</option>
|
||||
<option value="5">Melarikan Diri</option>
|
||||
<option value="6">Meninggal</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-3 pt-0" style="text-align:right">B. Riwayat Singkat Keperawatan</label>
|
||||
<div class="col-sm-9 pt-0" style="text-align:left">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-10 pt-0" style="text-align:left">1. Masalah kesehatan pada awal / saat MRS :</label>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[KESEHATANAWAL]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['KESEHATANAWAL']?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-10 pt-0" style="text-align:left">2. Tindakan keperawatan selama dirawat :</label>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[TINDAKANKEPERAWATAN]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['TINDAKANKEPERAWATAN']?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-10 pt-0" style="text-align:left">3. Evaluasi / Perkembangan Pasien :</label>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[EVALUASIPERKEMBANGAN]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['EVALUASIPERKEMBANGAN']?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-10 pt-0" style="text-align:left">4. Masalah Potensial Setelah keluar Rumah Sakit :</label>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[MASALAHPOTENSIAL]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['MASALAHPOTENSIAL']?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<label class="col-form-label col-sm-10 pt-0" style="text-align:left">5. Nasehat / Saran Saat Keluar dari Rumah Sakit :</label>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
<br>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="input[NASEHATRS]" cols="60" rows="5" class="form-control required" tabindex="1" required><?=$dat_rp['NASEHATRS']?></textarea>
|
||||
</div>
|
||||
<label class="col-form-label col-sm-2 pt-0" style="text-align:right"> </label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<div class="col-sm-12 pt-0" style="text-align:center;">
|
||||
<input type="button" name="Submit" id="simpankajianmedis" value="Simpan" class="btn btn-primary" tabindex="41"/>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<!-- <div id="valid_kajian_awal"></div> -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
$.get("<?php echo _BASE_;?>ranap/save_kajian_awal.php",{get_data:true,NOMR:$("#nomr_kajian").val(),IDXRANAP:$("#idx_kajian").val()},function(data)
|
||||
{
|
||||
$("#valid_kajian_awal").html(data.html);
|
||||
},"json");
|
||||
|
||||
$('#simpankajianmedis').click(function(){
|
||||
$.post('<?php echo _BASE_;?>ranap/save_kajian_awal.php',$('#kajian_awal_medis').serialize()+"&save=1",function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function(){
|
||||
window.location.reload();
|
||||
}});
|
||||
},"json");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,286 @@
|
||||
<?php
|
||||
$m_ppa = $db->query("SELECT * from m_ppa");
|
||||
if($m_ppa->numRows() > 0)
|
||||
{
|
||||
$arr_ppa = array();
|
||||
foreach($m_ppa->fetchAll() as $ds) {
|
||||
$arr_ppa[$ds['id_ppa']] = $ds['nama_ppa'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form action="ranap/save_formulis_khusus.php" name="formulir_khusus" method="post" id="formulir_khusus">
|
||||
<input type="hidden" name="id_admission" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="nomr" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="noruang" value="<?php echo $noruang;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:center"><h5>ASSESSMEN KEBUTUHAN EDUKASI</h5></label>
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:left"> KEBUTUHAN EDUKASI </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Informasi Umum</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="informasi_umum" id="informasi_umum" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<?php
|
||||
$qryiu = $db->query("SELECT * FROM t_kebutuhan_edukasi where jenis_kebutuhan = 'UMUM' ORDER BY id_kebutuhan ASC");
|
||||
foreach($qryiu->fetchAll() as $listiu) {
|
||||
?>
|
||||
<option value="<?php echo $listiu['nama_kebutuhan'];?>"><?php echo $listiu['nama_kebutuhan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left">ASSASMENT KEMAMPUAN DAN KEMAUAN BELAJAR</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kemampuan Belajar</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="kemampuan_belajar" id="kemampuan_belajar" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<?php
|
||||
$qryiu = $db->query("SELECT * FROM t_kemampuan_belajar where jenis_kemampuan = 'KEMAMPUAN' ORDER BY id_kemampuan_belajar ASC");
|
||||
foreach($qryiu->fetchAll() as $listiu) {
|
||||
?>
|
||||
<option value="<?php echo $listiu['nama_kemampuan'];?>"><?php echo $listiu['nama_kemampuan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Hambatan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="hambatan" id="hambatan" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<?php
|
||||
$qryiu = $db->query("SELECT * FROM t_kemampuan_belajar where jenis_kemampuan = 'HAMBATAN' ORDER BY id_kemampuan_belajar ASC");
|
||||
foreach($qryiu->fetchAll() as $listiu) {
|
||||
?>
|
||||
<option value="<?php echo $listiu['nama_kemampuan'];?>"><?php echo $listiu['nama_kemampuan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Bahasa yang digunakan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="bahasa" id="bahasa" class="form-control text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Membutuhkan Penterjemah</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="hambatan_penterjemah" id="hambatan_penterjemah" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<option value="Ya">Ya</option>
|
||||
<option value="Tidak">Tidak</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Keyakinan dan Nilai-nilai yang dianut</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="keyakinan" id="keyakinan" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<option value="Ya">Ya</option>
|
||||
<option value="Tidak">Tidak</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">PPA</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo form_dropdown('kategori_ppa',$arr_ppa,'','class="form-control" id="kategori_ppa" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Rencana Edukasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="rencana_edukasi" cols="60" rows="5" class="form-control text" placeholder="Sesuaikan dengan hasil assessment edukasi"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-12 pt-0" style="text-align:left"> PELAKSANAAN EDUKASI DAN VERIFIKASI TERINTEGRASI</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tanggal</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="tanggal" class="form-control text" readonly value="<?php echo date('Y-m-d') ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Materi Edukasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="materi_edukasi" cols="60" rows="5" class="form-control text"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Hasil Verifikasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="hasil_verifikasi" cols="60" rows="5" class="form-control text"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Edukasi Khusus</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="edukasi_khusus" id="edukasi_khusus" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<?php
|
||||
$qryiu = $db->query("SELECT * FROM t_kebutuhan_edukasi where jenis_kebutuhan = 'KHUSUS' ORDER BY id_kebutuhan ASC");
|
||||
foreach($qryiu->fetchAll() as $listiu) {
|
||||
?>
|
||||
<option value="<?php echo $listiu['nama_kebutuhan'];?>"><?php echo $listiu['nama_kebutuhan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kemauan Belajar</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="kemauan_belajar" id="kemauan_belajar" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<?php
|
||||
$qryiu = $db->query("SELECT * FROM t_kemampuan_belajar where jenis_kemampuan = 'KEMAUAN' ORDER BY id_kemampuan_belajar ASC");
|
||||
foreach($qryiu->fetchAll() as $listiu) {
|
||||
?>
|
||||
<option value="<?php echo $listiu['nama_kemampuan'];?>"><?php echo $listiu['nama_kemampuan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Metode Pembelajaran</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="metode_pembelajaran" id="metode_pembelajaran" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<?php
|
||||
$qryiu = $db->query("SELECT * FROM t_kemampuan_belajar where jenis_kemampuan = 'METODE' ORDER BY id_kemampuan_belajar ASC");
|
||||
foreach($qryiu->fetchAll() as $listiu) {
|
||||
?>
|
||||
<option value="<?php echo $listiu['nama_kemampuan'];?>"><?php echo $listiu['nama_kemampuan'];?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Hambatan Bahasa</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="hambatan_bahasa" id="hambatan_bahasa" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<option value="Ya">Ya</option>
|
||||
<option value="Tidak">Tidak</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Penterjemah<br> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<select name="penterjemah" id="penterjemah" class="form-control text" style="width: 100%">
|
||||
<option value=""> -- </option>
|
||||
<option value="Tim Penterjemah">Tim Penterjemah</option>
|
||||
<option value="Keluarga">Keluarga</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Sebutkan<br> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" id="sebutkan" name="sebutkan" class="form-control text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Nama PPA</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left" id="temp_ppa_f9">
|
||||
<?php echo form_dropdown('perawat',array(),'','class="form-control" id="perawat"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Kebutuhan Edukasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="kebutuhan_edukasi" cols="60" rows="5" class="form-control text" ></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="submit" name="Submit" value="Simpan" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('formulir_khusus'),'ranap/save_formulir_khusus.php','valid_formulir_khusus',validatetask); return false;"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div id="valid_formulir_khusus" >
|
||||
<?php include("save_formulir_khusus.php"); ?>
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$("#kategori_ppa").on("change",function()
|
||||
{
|
||||
$jenis = $(this).find(":selected").val();
|
||||
$.post("<?php echo _BASE_.'include/master.php'; ?>",{ppa:true,jenis_ppa:$jenis},function(d)
|
||||
{
|
||||
$("#temp_ppa_f9").html(d);
|
||||
$("select").select2();
|
||||
});
|
||||
});
|
||||
|
||||
$("#kategori_ppa").trigger("change");
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,167 @@
|
||||
|
||||
<h3 class="text-center">FORM PEMBERIAN INFORMASI DAN PERSETUJUAN UMUM <br> (GENERAL CONSENT)</rp></h3>
|
||||
<form method="post" id="dokumen_form" enctype="multipart/form-data">
|
||||
<input type="hidden" name="input[IDXF2]" value="<?php echo $IDXF2;?>" />
|
||||
<input type="hidden" name="input[IDXRANAP]" id="idx_kajian" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="input[NOMR]" id="nomr_kajian" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[TANGGALMASUK]" value="<?php echo $masukrs;?>" />
|
||||
<div class="row text-left mt-5">
|
||||
<div class="col-md-12 col-lg-12 pl-5">
|
||||
<ol>
|
||||
<li>
|
||||
<p class="text-justify"><strong>Hak dan Kewajiban sebagai pasien :</strong> Dengan menandatangani dokumen ini saya mengakui
|
||||
bahwa pada proses pendaftaran untuk mendapatkan perawatan di RSUD Dr. Saiful Anwar
|
||||
telah mendapatkan informasi tentang hak dan kewajiban saya sebagai pasien(melalui
|
||||
leaflet/banner dan atau petugas).</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-justify"><strong>Persetujuan Pelayanan :</strong> Saya menyetujui dan memberikan persetujuan untuk dirawat di
|
||||
RSUD Dr. Saiful Anwar dan dengan ini saya meminta dan memberikan kuasa kepada RSUD
|
||||
Dr. Saiful Anwar, dokter dan perawat dan tenaga kesehatan lainnya untuk memberikan
|
||||
asuhan keperawatan, pemeriksaan fisik yang dilakukan oleh dokter dan perawat dan
|
||||
melakukan prosedur diagnostik radiologi dan/atau terapi dan tatalaksana sesuai
|
||||
pertimbangan dokter yang diperlukan atau disarankan pada perawatan saya. Hal ini
|
||||
mencakup seluruh pemeriksaan dan prosedur diagnostik rutin termasuk X ray, pemberna
|
||||
dan/atau tindakan medis serta penyuntikan (intramuskular, intravena dan prosedur invasif
|
||||
lainnya) produk farmasi dan obat-obatan, pemasangan alat kesehatan (kecuali yang
|
||||
membutunkan persetujuan khusus/tertulis) dan pengambilan darah untuk pemeriksaan
|
||||
laboratorium atau pemeriksaan patologi.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-justify"><strong>Akses Informasi Kesehatan :</strong> Saya memberi kuasa kepada setiap dan seluruh orang yang
|
||||
merawat saya untuk memeriksa dan atau memberitahukan informasi kesehatan saya kepada
|
||||
pemberi kesehatan lain yang turut merawat saya selama di rumah sakit ini.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-justify"><strong>Rahasia Kedokteran :</strong> Saya setuju RSUD Dr. Saiful Anwar Malang wajib menjamin
|
||||
kerahasiaan informasi medis saya baik untuk kepentingan perawatan dan pengobatan,
|
||||
pendidikan maupun penelitian.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong>Membuka Rahasia Kedokteran :</strong>
|
||||
Saya setuju untuk membuka rahasia kedokteran terkait
|
||||
dengan kondisi kesehatan, asuhan dan pengobatan yang saya terima kepada : <br>
|
||||
<ol type="a" class="pl-4">
|
||||
<li>
|
||||
<p class="text-justify">Dokter dan tenaga kesehatan lain yang turut merawat/memberikan asuhan kepada
|
||||
saya</p>
|
||||
</li>
|
||||
<li>
|
||||
<p class="text-justify">Perusahaan asuransi kesehatan atau perusahaan lainnya atau pihak lain yang
|
||||
menjamin pembiayaan saya</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Anggota keluarga saya / Pihak yang diberikan wewenang :</p>
|
||||
<ul>
|
||||
<li>
|
||||
<input type="text" name="c1" class="form-control mb-3" width="50%">
|
||||
</li>
|
||||
<li>
|
||||
<input type="text" name="c2" class="form-control">
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong>Privasi :</strong> Saya memberi kuasa kepada RSUD Dr. Saiful Anwar Malang untuk menjaga. privasi
|
||||
dan kerahasiaan penyakit saya selama dalam perawatan.</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong>Barang Pribadi :</strong> Saya setuju untuk tidak membawa barang-barang berharga yang tidak
|
||||
diperlukan (seperti perhiasan, elektronik, dll) selama dalam perawatan di RSUD Dr. Saiful
|
||||
Anwar, dan saya menyetujuijika membawanya maka RSUD Dr. Saiful Anwar tidak
|
||||
bertanggung jawab terhadap kehilangan, kerusakan atau pencurian.</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong>Pengajuan keluhan :</strong> Saya menyatakan bahwa saya telah menerima informasi tentang
|
||||
adanya tata cara mengajukan dan mengatasi keluhan terkait pelayanan medik yang diberikan
|
||||
terhadap diri saya. Saya setuju untuk mengikuti tata cara mengajukan keluhan sesuai
|
||||
prosedur yang ada.</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong>Kewajiban Pembayaran :</strong> Saya menyatakan setuju, baik sebagai wali ataupun sebagai
|
||||
pasien, bahwa sesuai pertimbangan pelayanan yang diberikan kepada pasien, maka saya
|
||||
wajib untuk membayar total biaya pelayanan sesuai acuan biaya dan ketentuan RSUD Dr. Saiful Anwar Malang dengan
|
||||
jaminan atau pribadi.Apabilaasuransikesehatanswasta atau program pemerintan
|
||||
menanggung pembiayaan saya, saya memberi wewenang kepada rumah sakit untuk
|
||||
memberi tagihan dari semua pelayanan dan tindakan medis yang diberikan. Tanggungan
|
||||
Asuransi saya mungkin menyatakan bahwa sebagian pembayaran tetap menjadi tanggung
|
||||
jawab pribadi saya atau tidak ditanggung oleh asuransi, maka rumah sakit berwenang
|
||||
memberi tagihan untuk biaya yang tidak ditanggung oleh asuransi dan saya bertanggung
|
||||
jawab untuk membayarnya. Apabila saya tidak memberikan persetujuan, atau dikemudian
|
||||
hari mencabut persetujuan saya untuk melepaskan rahasia kedokteran saya kepada
|
||||
perusahaan asuransi yang saya tentukan, maka saya pribadi bertanggung jawab untuk
|
||||
membayar semua pelayanan dan tindakan medis dari RSUD Dr. Saiful Anwar Malang.</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong>Rumah Sakit Pendidikan :</strong> Saya mengetahui bahwa RSUD Dr. Saiful Anwar merupakan
|
||||
rumah sakit pendidikan yang menjadi tempat praktek klinik bagi mahasiswa kedokteran dan
|
||||
profesi-profesi kesehatan lainnya, karena itu mereka mungkin berpartisipasi dan atau terlibat
|
||||
dalam perawatan saya dan saya menyetujui bahwa mereka berpartisipasi dalam perawatan
|
||||
saya sepanjang di bawah supervisi dokter penanggung jawab pasien (DPJP).</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong></strong> Selama dalam perawatan saya dan keluarga saya akan mematuhi ketentuan untuk tidak
|
||||
mengambil, menyimpan, mengedarkan gambar/video dokumen dan aktivitas pelayanan
|
||||
selama di RS tanpa persetujuan RS.</p>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p class="text-justify"><strong></strong> Melalui dokumen ini, saya menegaskan kembali bahwa saya mempercayakan kepada semua
|
||||
tenaga kesehatan rumah sakit untuk memberikan perawatan, diagnostik dan terapi kepada
|
||||
saya sebagai pasien rawat inap atau rawat jalan atau Instalasi gawat darurat (IGD), termasuk
|
||||
semua pemeriksaan penunjang, yang dibutuhkan untuk pengobatan dan tindakan yang
|
||||
diperlukan.
|
||||
</p>
|
||||
</li>
|
||||
</ol>
|
||||
<p>Saya menyetujui setiap pernyataan yang terdapat pada formulir ini dan menandatangani tanpa
|
||||
paksaan dan dengan kesadaran penuh.</p>
|
||||
<div class="row mt-5">
|
||||
<div class="col">
|
||||
<label>Malang, <input type="text" name="tgl_tercatat" value="<?php echo(date('d-m-Y')) ?>" readonly class="form-control"></label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-3">
|
||||
<div class="col-md-3">
|
||||
<label>Pasien/Keluarga/Penanggung Jawab
|
||||
</label>
|
||||
<input type="text" name="penanggung_jawab" class="form-control mt-5" placeholder="">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Pemberi Informasi</label>
|
||||
<input type="text" name="pemberi_informasi" class="form-control mt-5" >
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Saksi 1 (Keluarga / Pengantar)</label>
|
||||
<input type="text" name="saksi1" class="form-control mt-5" >
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<label>Saksi II (Petugas Selain yang Menerima Pendaftaran Pasien)</label>
|
||||
<input type="text" name="saksi2" class="form-control mt-4" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mt-5">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4"><button type="submit" class="btn btn-primary ">S I M P A N</button>
|
||||
</div>
|
||||
<div class="col-md-4"></div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
@@ -0,0 +1,266 @@
|
||||
<?php
|
||||
$sql_dokter ="SELECT kddokter,namadokter,kdsmf FROM m_dokter where aktif = 1";
|
||||
$get_dokter = $db->query($sql_dokter);
|
||||
$arr_smf = [''=>'Pilih SMF'];
|
||||
$arr_dokter = [];
|
||||
$smf_dpjp = '';
|
||||
foreach($get_dokter->fetchAll() as $data) {
|
||||
if($data['kdsmf'] != ''){
|
||||
$arr_smf[$data['kdsmf']] = $data['kdsmf'];
|
||||
}
|
||||
$arr_dokter[$data['kdsmf']][$data['kddokter']] = $data['namadokter'];
|
||||
if($_SESSION['KDDOKTER'] == $data['kddokter']) {
|
||||
$smf_dpjp = $data['kdsmf'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
|
||||
<form action="rajal/save_konsul.php" name="konsultasi" method="post" id="form_konsul">
|
||||
<input type="hidden" name="idxdaftar" value="<?php echo $userdata['id_admission'];?>" id="idxdaftar"/>
|
||||
<input type="hidden" name="nomr" value="<?php echo $nomr;?>" id="nomr"/>
|
||||
<input type="hidden" name="kdpoly" value="<?php echo $userdata['noruang'];?>" />
|
||||
<input type="hidden" name="kddokter" value="<?php echo $_SESSION['KDDOKTER'];?>" />
|
||||
<input type="hidden" name="st_rajal" value="0" />
|
||||
<?php
|
||||
if($_SESSION['KDDOKTER'] == 0) { $disabled_input = 'disabled'; }
|
||||
else { $disabled_input = ''; }
|
||||
// if($_SESSION['KDDOKTER'] == $kddokter) { // jika dokter yang login merupakan dpjp
|
||||
echo '<input type="hidden" name="form_konsul" value="1">';
|
||||
echo '<input type="hidden" name="smf_dpjp" value="'.$smf_dpjp.'">';
|
||||
?>
|
||||
<h5 class="d-none">FORM KONSULTASI</h5>
|
||||
<div class="row d-none">
|
||||
<div class="col-md-12 col-lg-12 my-5">
|
||||
<table class="table table-bordered table-striped table-sm" id="table_rujuk_smf">
|
||||
<tr class="bg-blue">
|
||||
<th width="50%">SMF</th>
|
||||
<th width="50%">DPJP</th>
|
||||
<th>#</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo form_dropdown('konsul_smf[1][smf]',$arr_smf,'','class="form-control" onchange="getKonsulSMF(this)" data-wrapper="dpjp_smf" data-idxrow="1"'); ?></td>
|
||||
<td></td>
|
||||
<td><button type="button" class="btn btn-primary btn-sm " onclick="addSmf(1)" id="addsmf1"><i class="fas fa-plus"></i></button></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
if($_SESSION['KDDOKTER'] == 0) {
|
||||
echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<input type="submit" name="Submit" value="Simpan" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('form_konsul'),'rajal/save_konsul.php','valid_konsul',validatetask); return false;"/>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
// }
|
||||
// else {
|
||||
if(!array_key_exists('jawab', $_REQUEST)) {
|
||||
?>
|
||||
<h5>LEMBAR KONSULTASI</h5>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Dokter</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo $_SESSION['NAMA_PEGAWAI']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tanggal</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="tanggal" cols="60" rows="5" class="form-control text" value="<?php echo date("Y-m-d"); ?>" readonly <?php echo $disabled_input; ?>>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Uraian Konsultasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="uraian_konsul" cols="60" rows="5" class="form-control text" tabindex="3" <?php echo $disabled_input; ?>></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tujuan Konsultasi</label>
|
||||
<div class="col-sm-4 pt-0" style="text-align:left">
|
||||
<input type="hidden" name="konsul_smf[1][smf]" value="" id="konsul_smf">
|
||||
<?php echo form_dropdown('tujuan_smf',$arr_smf,'','class="form-control" onchange="getKonsulSMF(this)" data-wrapper="dpjp_smf" data-idxrow="1"'); ?>
|
||||
</div>
|
||||
<div class="col-sm-4 pt-0" style="text-align: left" id="dpjp_smf1">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php
|
||||
if($_SESSION['KDDOKTER'] == 0) {
|
||||
echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<input type="submit" name="Submit" value="Simpan" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('form_konsul'),'rajal/save_konsul.php','valid_konsul',validatetask); return false;"/>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<button type="button" class="btn btn-outline-success" id="btn_hist_konsul">History Konsul</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
elseif(array_key_exists('jawab', $_REQUEST) && array_key_exists('id', $_REQUEST) && $_REQUEST['id'] != '') {
|
||||
echo '<input type="hidden" name="jawaban_konsul" value="1">';
|
||||
echo '<input type="hidden" name="id_konsultasi" value="'.$_REQUEST['id'].'">';
|
||||
$tmp_konsulan = $db->query("SELECT * from t_konsultasi where id_konsultasi = ".$_REQUEST['id']);
|
||||
$data_konsulan = $tmp_konsulan->fetchFirst();
|
||||
|
||||
?>
|
||||
|
||||
<h5>LEMBAR JAWABAN KONSULTASI</h5>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-lg-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Dokter</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo $_SESSION['NAMA_PEGAWAI']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tanggal</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="text" name="tanggal" cols="60" rows="5" class="form-control text" value="<?php echo date("Y-m-d"); ?>" readonly <?php echo $disabled_input; ?>>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Uraian Konsultasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="uraian_konsul" cols="60" rows="5" class="form-control text" tabindex="3" <?php echo $disabled_input; ?> disabled><?php echo $data_konsulan['uraian_konsul']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Jawaban Konsultasi</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="uraian_jawaban_konsul" cols="60" rows="5" class="form-control text" tabindex="3" <?php echo $disabled_input; ?>><?php echo ($data_konsulan['jawaban_konsul'] != '') ? $data_konsulan['jawaban_konsul'] : ''; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"></label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php
|
||||
if($_SESSION['KDDOKTER'] == 0) {
|
||||
echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
}
|
||||
else {
|
||||
?>
|
||||
<input type="submit" name="Submit" value="Simpan" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('form_konsul'),'rajal/save_konsul.php','valid_konsul',validatetask); return false;"/>
|
||||
<button type="button" class="btn btn-danger" id="btn_kembali_konsul">Kembali</button>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<button type="button" class="btn btn-outline-success" id="btn_hist_konsul">History Konsul</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div id="valid_konsul" >
|
||||
<?php include("rajal/save_konsul.php"); ?>
|
||||
</div>
|
||||
</form>
|
||||
<template id="histkonsul-template">
|
||||
<div class="modal fade histkonsul-modal-lg" id="histkonsul-modal" tabindex="-1" role="dialog" aria-labelledby="HistKonsultasi" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" style="max-width: 98%">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">History Konsultasi</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body"></div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$histkonsul = $("#histkonsul-template").html();
|
||||
$("body").append($histkonsul);
|
||||
|
||||
$('#btn_hist_konsul').click(function(){
|
||||
var idx = $('#idxdaftar').val();
|
||||
var nomr = $('#nomr').val();
|
||||
|
||||
let tbl_id = "tbl_hist_konsul";
|
||||
$.post('<?php echo _BASE_;?>rajal/history_konsul.php?<?php echo http_build_query($_REQUEST); ?>',{idxdaftar:idx,nomr,tbl_id},function(data) {
|
||||
$("#histkonsul-modal .modal-body").html("");
|
||||
$("#histkonsul-modal .modal-body").html(data);
|
||||
$("#histkonsul-modal").modal("show");
|
||||
|
||||
$("#"+tbl_id+" thead tr").clone(true).appendTo( "#"+tbl_id+" thead" );
|
||||
$("#"+tbl_id+" thead tr:eq(1) th").each( function (i) {
|
||||
if(i == 2 || i == 3 || i == 5 ) {
|
||||
var title = $(this).text();
|
||||
$(this).html( "<input type=\"text\" class=\"form-control form-control-sm\" placeholder=\"Cari "+title+"\" />" );
|
||||
|
||||
$("input",this).typing({
|
||||
stop : function(e,elm) {
|
||||
tbl_hist_konsul.column(i).search( elm[0].value ) .draw();
|
||||
},
|
||||
delay : 400
|
||||
});
|
||||
|
||||
$("input", this).on("click", function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
else {
|
||||
var title = $(this).text();
|
||||
$(this).html( " " );
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
$js_init .= '
|
||||
function getKonsulSMF(elm) {
|
||||
smf = $(elm).find(":selected").val();
|
||||
row_id = $(elm).data("idxrow");
|
||||
wrapper = $(elm).data("wrapper")+row_id;
|
||||
$("#konsul_smf").val(smf);
|
||||
$.get("'._BASE_.'rujukan/alasan_rujuk.php",{smf,key:row_id},function(data){
|
||||
$("#"+wrapper).html(data);
|
||||
});
|
||||
}
|
||||
function addSmf(id){
|
||||
new_id = parseInt(id)+1;
|
||||
$("#addSmf"+id+",#remSmf"+id).prop("disabled",true);
|
||||
|
||||
dropdown = \''.preg_replace("/\n/","",form_dropdown('konsul_smf[{kode}][smf]',$arr_smf,'','class="form-control" onchange="getKonsulSMF(this)" data-wrapper="dpjp_smf" data-idxrow="{kode}"')).'\';
|
||||
klinik = dropdown.replace(/\{kode\}/g,new_id);
|
||||
|
||||
$("#table_rujuk_smf").append(\'<tr><td>\'+klinik+\'</td><td id=\"dpjp_smf\'+new_id+\'\"></td><td><button type=\"button\" class=\"btn btn-primary btn-sm\" onclick=\"addSmf(\'+new_id+\')\" id=\"addsmf\'+new_id+\'\"><i class=\"fas fa-plus\"></i></button><button type=\"button\" class=\"btn btn-danger btn-sm\" onclick=\"remSmf(\'+new_id+\')\" id=\"remsmf\'+new_id+\'\"><i class=\"fas fa-trash\"></i></button></td></tr>\');
|
||||
}
|
||||
function remSmf(id) {
|
||||
id_before = (parseInt(id) > 1) ? parseInt(id)-1 : id;
|
||||
$("#addsmf"+id_before+",#remsmf"+id_before).prop("disabled",false);
|
||||
$("#remsmf"+id).parent().parent().remove();
|
||||
}';
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,458 @@
|
||||
<form action="ranap/save_pemberian_obat.php" name="pemberian_obat" method="post" id="pemberian_obat">
|
||||
<?php
|
||||
$client = new GuzzleHttp\Client();
|
||||
|
||||
$res = $client->request('GET', $_SESSION['FARMASI_WEBADDRESS'].'/api/depo', [
|
||||
'headers' => [
|
||||
'Accept' => 'application/json',
|
||||
'Content-type' => 'application/json',
|
||||
'x-token' => $_SESSION['farmasi_x_token']
|
||||
]
|
||||
]);
|
||||
|
||||
$json_depo = ($res->getStatusCode() == 200) ? $res->getBody()->getContents() : [];
|
||||
$data_depo = (!empty($json_depo)) ? json_decode($json_depo) : null;
|
||||
$arr_depo = [];
|
||||
foreach($data_depo as $obj_depo) {
|
||||
if($obj_depo->StMinta == 1 && $obj_depo->StJual == 1){
|
||||
$arr_depo[$obj_depo->Kode] = $obj_depo->Nama;
|
||||
}
|
||||
}
|
||||
|
||||
$res = $client->request('GET', $_SESSION['FARMASI_WEBADDRESS'].'/api/provider', [
|
||||
'headers' => [
|
||||
'Accept' => 'application/json',
|
||||
'Content-type' => 'application/json',
|
||||
'x-token' => $_SESSION['farmasi_x_token']
|
||||
]
|
||||
]);
|
||||
|
||||
$json_dokter = ($res->getStatusCode() == 200) ? $res->getBody()->getContents() : [];
|
||||
$data_dokter = (!empty($json_dokter)) ? json_decode($json_dokter) : null;
|
||||
$arr_dokter = [];
|
||||
foreach($data_dokter as $obj_dokter) {
|
||||
$arr_dokter[$obj_dokter->Kode] = $obj_dokter->Nama;
|
||||
}
|
||||
|
||||
$res = $client->request('GET', $_SESSION['FARMASI_WEBADDRESS'].'/api/tempatlayanan/1', [
|
||||
'headers' => [
|
||||
'Accept' => 'application/json',
|
||||
'Content-type' => 'application/json',
|
||||
'x-token' => $_SESSION['farmasi_x_token']
|
||||
]
|
||||
]);
|
||||
|
||||
$json_tempat = ($res->getStatusCode() == 200) ? $res->getBody()->getContents() : [];
|
||||
$data_tempat = (!empty($json_tempat)) ? json_decode($json_tempat) : null;
|
||||
$arr_JL = [];
|
||||
$arr_tempat = [];
|
||||
foreach($data_tempat as $obj_tempat) {
|
||||
$arr_JL[$obj_tempat->KodeJL] = $obj_tempat->KodeJL;
|
||||
$arr_tempat[$obj_tempat->KodeJL][$obj_tempat->Kode] = $obj_tempat->Nama;
|
||||
}
|
||||
|
||||
$res = $client->request('GET', $_SESSION['FARMASI_WEBADDRESS'].'/api/petugas', [
|
||||
'headers' => [
|
||||
'Accept' => 'application/json',
|
||||
'Content-type' => 'application/json',
|
||||
'x-token' => $_SESSION['farmasi_x_token']
|
||||
]
|
||||
]);
|
||||
|
||||
$json_petugas = ($res->getStatusCode() == 200) ? $res->getBody()->getContents() : [];
|
||||
$data_petugas = (!empty($json_petugas)) ? json_decode($json_petugas) : null;
|
||||
$arr_petugas = [];
|
||||
foreach($data_petugas as $obj_petugas) {
|
||||
$arr_petugas[$obj_petugas->Kode] = $obj_petugas->Nama;
|
||||
}
|
||||
|
||||
$res = $client->request('GET', $_SESSION['FARMASI_WEBADDRESS'].'/api/statusstok', [
|
||||
'headers' => [
|
||||
'Accept' => 'application/json',
|
||||
'Content-type' => 'application/json',
|
||||
'x-token' => $_SESSION['farmasi_x_token']
|
||||
]
|
||||
]);
|
||||
|
||||
$json_stok = ($res->getStatusCode() == 200) ? $res->getBody()->getContents() : [];
|
||||
$data_stok = (!empty($json_stok)) ? json_decode($json_stok) : null;
|
||||
$arr_stok = [''=>'Pilih'];
|
||||
foreach($data_stok as $obj_stok) {
|
||||
$arr_stok[$obj_stok->Kode] = $obj_stok->Nama;
|
||||
}
|
||||
|
||||
$query = $db->query( "SELECT * from tmlogreference where tipe = 5 and aktif = 1");
|
||||
if($query->numRows()) {
|
||||
$arr_jamin = [];
|
||||
foreach($query->fetchAll() as $data_jamin) {
|
||||
$arr_jamin[$data_jamin['Kode']] = $data_jamin['Nama'];
|
||||
}
|
||||
}
|
||||
|
||||
$tgl_lahir_px = new Datetime($userdata['TGLLAHIR']);
|
||||
$tgl_mrs_px = new Datetime($tglreg);
|
||||
$umur = $tgl_mrs_px->diff($tgl_lahir_px);
|
||||
$umur_tahun = $umur->format('%y');
|
||||
if($umur_tahun < 1)
|
||||
{
|
||||
$umur_tahun = $umur->format('%m');
|
||||
$ket_umur = 'Bulan';
|
||||
}
|
||||
else {
|
||||
$ket_umur = 'Tahun';
|
||||
}
|
||||
$billing = $db->query( "SELECT DISTINCT NOBILL from t_billranap where IDXDAFTAR = {$id_admission} and NOMR = '{$nomr}' UNION SELECT DISTINCT NOBILL from t_billrajal where IDXDAFTAR = {$id_admission} and NOMR = '{$nomr}'");
|
||||
if($billing->numRows() > 0)
|
||||
{
|
||||
$data = $billing->fetchAll()[0];
|
||||
$nobill = $data['NOBILL'];
|
||||
}
|
||||
?>
|
||||
<input type="hidden" name="id_admission" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="nomr" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="noruang" value="<?php echo $noruang;?>" />
|
||||
<input type="hidden" name="kddokter" value="<?php echo $kddokter;?>" />
|
||||
<input type="hidden" name="input[NoRMPx]" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="input[NamaPx]" value="<?php echo $nama;?>" />
|
||||
<input type="hidden" name="input[TglLahir]" value="<?php echo $userdata['TGLLAHIR'];?>" />
|
||||
<input type="hidden" name="input[UmurPx]" value="<?php echo $umur_tahun;?>" />
|
||||
<input type="hidden" name="input[KetUmur]" value="<?php echo $ket_umur;?>" />
|
||||
<input type="hidden" name="input[AlamatPx]" value="<?php echo $userdata['nm_ruang'].' No. '.$userdata['nott'];?>" />
|
||||
<input type="hidden" name="input[NoTT]" value="<?php echo $userdata['nott'];?>" />
|
||||
<input type="hidden" name="input[NoBilling]" value="<?php echo $nobill;?>" />
|
||||
|
||||
<fieldset class="fieldset">
|
||||
<div class="row">
|
||||
<fieldset class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Subdepo Farmasi</label>
|
||||
<div class="col-sm-8 pt-0 text-left">
|
||||
<?php echo form_dropdown('input[KodeDepo]',$arr_depo,'','class="form-control" id="kodeDepo" style="width:100%"'); ?>
|
||||
<input type="hidden" name="depo" id="depo">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Penjamin</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo form_dropdown('input[KodeJamin]',$arr_jamin,'NON5','class="form-control" id="kodeJamin" style="width:100%"'); ?>
|
||||
<input type="hidden" id="penjamin">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Dokter</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo form_dropdown('input[KodeDokter]',$arr_dokter,'Prov08100007','class="form-control" id="kodeDokter" style="width:100%"'); ?>
|
||||
<input type="hidden" id="provider">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Jenis Layanan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo form_dropdown('KodeJL',$arr_JL,'','class="form-control" id="KodeJL" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Tempat Layanan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo form_dropdown('input[KodeTL]',[],'','class="form-control" id="kodeTL" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Petugas</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo form_dropdown('input[IdPetugas]',$arr_petugas,'','class="form-control" id="IdPetugas" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Keterangan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<textarea name="keterangan" id="keterangan" cols="45" rows="5" class="form-control text"><?=$dat_rp['KETERANGAN']?></textarea>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
<div class="col-sm-6 text-left">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Racikan</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo form_dropdown('StRacik',[0=>'NON RACIKAN',1=>'RACIKAN'],'','class="form-control" id="StRacik" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Status Barang</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<?php echo form_dropdown('StStock',$arr_stok,'','class="form-control" id="StStock" style="width:100%"'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Penulisan Resep</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="PenG" id="penulisan_1" value="1" <?php if($dat_rp['PenG']=="1")echo "Checked";?>/> <label class="form-check-label" for="penulisan_1"> Generik</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="PenF" id="penulisan_2" value="1" <?php if($dat_rp['PenF']=="1")echo "Checked";?>/> <label class="form-check-label" for="penulisan_2"> Formularium</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Nama Obat</label>
|
||||
<div class="col-sm-8">
|
||||
<div id="obatracik"><input class="form-control text" name="nama_obatx" id="nama_obat" stlye="" placeholder="Nama Obat" type="text" required="true"></div>
|
||||
<input type="hidden" name="tmp_selectobat" id="tmp_selectobat" value="">
|
||||
<input type="hidden" name="nama_obat" id="nama_obatsimpan" />
|
||||
<input type="hidden" id="temp_harga" />
|
||||
<input type="hidden" id="temp_kode" />
|
||||
<input type="hidden" id="temp_stok" />
|
||||
<input type="hidden" id="temp_satuan"/>
|
||||
<input type="hidden" id="temp_hpp"/>
|
||||
<input type="hidden" id="temp_StStock"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Jumlah</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="jumlah" id="jumlah" class="form-control mask-decimal" placeholder="Jumlah">
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="harga" id="harga" class="form-control mask-decimal" readonly="true" placeholder="Harga">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Signa</label>
|
||||
<div class="col-sm-4">
|
||||
<div class="row">
|
||||
<div class="col-sm-5">
|
||||
<input type="text" name="frek" id="frek" class="form-control mask-decimal" placeholder="Frek">
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
X
|
||||
</div>
|
||||
<div class="col-sm-5">
|
||||
<input type="text" name="Jfrek" id="Jfrek" class="form-control mask-decimal" placeholder="Dosis">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" name="signa" id="signa" class="form-control" placeholder="Ket">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right">Waktu</label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="waktu" id="waktu_1" value="1" <?php if($dat_rp['SP']=="1")echo "Checked";?>/> <label class="form-check-label" for="waktu_1"> Pagi</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="waktu" id="waktu_2" value="1" <?php if($dat_rp['SS']=="1")echo "Checked";?>/> <label class="form-check-label" for="waktu_2"> Siang</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="waktu" id="waktu_3" value="1" <?php if($dat_rp['SSR']=="1")echo "Checked";?>/> <label class="form-check-label" for="waktu_3"> Sore</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input type="checkbox" name="waktu" id="waktu_4" value="1" <?php if($dat_rp['SM']=="1")echo "Checked";?>/> <label class="form-check-label" for="waktu_4"> Malam</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-4" style="text-align: left">
|
||||
<button type="button" id="btnTambahObat" class="btn btn-outline-primary ">Tambah</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<table class="table table-dark" id="table_item_obat">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:5%">No</th>
|
||||
<th style="width:35%">Nama Barang</th>
|
||||
<th style="width:15%">Jumlah</th>
|
||||
<th style="width:15%">Harga</th>
|
||||
<th style="width:15%">Total</th>
|
||||
<th style="width:5%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-sm-4 pt-0" style="text-align:right"> </label>
|
||||
<div class="col-sm-8 pt-0" style="text-align:left">
|
||||
<input type="submit" size="50" name="simpan" value="Order Obat" class="btn btn-primary text" onclick="newsubmitform (document.getElementById('pemberian_obat'),'ranap/save_pemberian_obat.php','valid_pemberian_obat',validatetask); return false;"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<?php
|
||||
$hook_select = 'jQuery("#temp_kode").val(datum.value); ';
|
||||
$hook_select .= 'jQuery("#temp_harga").val(datum.HJual); ';
|
||||
$hook_select .= 'jQuery("#temp_stok").val(datum.stok); ';
|
||||
$hook_select .= 'jQuery("#nama_obatsimpan").val(datum.nama); ';
|
||||
$hook_select .= 'jQuery("#harga").val(accounting.formatMoney(datum.HJual,moneyOptions));';
|
||||
$hook_select .= 'jQuery("#temp_satuan").val(datum.satuan);';
|
||||
$hook_select .= 'jQuery("#temp_hpp").val(accounting.formatMoney(datum.HPP,moneyOptions));';
|
||||
$hook_select .= 'jQuery("#temp_StStock").val(datum.StStock);';
|
||||
$js = '<script type="text/javascript">
|
||||
function removeItem(elm) {
|
||||
$(elm).remove();
|
||||
}
|
||||
$(document).ready(function(){
|
||||
var TL = '.json_encode($arr_tempat,JSON_FORCE_OBJECT).';
|
||||
var moneyOptions = {
|
||||
decimal : ",",
|
||||
thousand: ".",
|
||||
precision : 2,
|
||||
format: "%s%v"
|
||||
};
|
||||
|
||||
$("#kodeDepo").on("change",async function(e){
|
||||
var thisdepo = $("#kodeDepo").find(":selected").val();
|
||||
$("#depo").val(thisdepo);
|
||||
});
|
||||
$("#KodeJL").on("change",function(e){
|
||||
var JL = $("#KodeJL").find(":selected").val();
|
||||
var kodeTL = $("#kodeTL");
|
||||
$("#kodeTL").children("option").remove();
|
||||
$.each(TL[JL] , function(key,value){
|
||||
$("#kodeTL").append($("<option></option>")
|
||||
.attr("value",key)
|
||||
.text(value));
|
||||
});
|
||||
});
|
||||
$("#StStock").on("change",async function(){
|
||||
var depo = $("#kodeDepo").find(":selected").val();
|
||||
var StStock = $(this).find(":selected").val();
|
||||
const nama_obat = await new Bloodhound({
|
||||
datumTokenizer: Bloodhound.tokenizers.obj.whitespace("text"),
|
||||
queryTokenizer: Bloodhound.tokenizers.whitespace,
|
||||
remote: {
|
||||
url : "'._BASE_.'include/master.php?obat=true&depo="+depo+"&ststock="+StStock+"&nama=%QUERY",
|
||||
wildcard: "%QUERY"
|
||||
}
|
||||
});
|
||||
$("#nama_obat").typeahead({hint: true, highlight: true, minLength: 3 },{
|
||||
name: "nama_obat",
|
||||
display: "text",
|
||||
source: nama_obat,
|
||||
limit: 10
|
||||
}).on("typeahead:selected typeahead:autocompleted typeahead:matched", function (ev, datum) {
|
||||
'.$hook_select.'
|
||||
});
|
||||
});
|
||||
const Toast = Swal.mixin({
|
||||
toast: true,
|
||||
position: "top-end",
|
||||
showConfirmButton: false,
|
||||
timer: 3000
|
||||
});
|
||||
var t_item = $("#table_item_obat");
|
||||
var noitem = 1;
|
||||
var coll_obat = [];
|
||||
$("#btnTambahObat").click(function(){
|
||||
var kode_barang = jQuery("#temp_kode").val();
|
||||
var nama_barang = jQuery("#nama_obatsimpan").val();
|
||||
var stok_barang = jQuery("#temp_stok").val();
|
||||
var frek = ($("#frek").val() != "") ? $("#frek").val().replace(/\./,"").replace(/,/,".") : 0;
|
||||
var Jfrek = ($("#Jfrek").val() != "") ? $("#Jfrek").val().replace(/\./,"").replace(/,/,".") : 0;
|
||||
var signa = ($("#signa").val() == "") ? "-" : $("#signa").val();
|
||||
var aturan = jQuery("#aturan").find(":selected").val();
|
||||
var jumlah = jQuery("#jumlah").val().replace(/\./,"").replace(/,/,".");
|
||||
var harga = jQuery("#harga").val().replace(/\./,"").replace(/,/,".");
|
||||
var total = parseFloat(harga) * parseFloat(jumlah);
|
||||
var hpp = jQuery("#temp_hpp").val().replace(/\./,"").replace(/,/,".");
|
||||
var satuan = jQuery("#temp_satuan").val();
|
||||
var StStock = jQuery("#StStock").val();
|
||||
var StRacik = jQuery("#StRacik").val();
|
||||
var Generik = ($("#penulisan_1").is(":checked") == false) ? 0 : 1;
|
||||
var Formularium = ($("#penulisan_2").is(":checked") == false) ? 0 : 1;
|
||||
var SP = ($("#waktu_1").is(":checked") == false) ? 0 : 1;
|
||||
var SS = ($("#waktu_2").is(":checked") == false) ? 0 : 1;
|
||||
var SSR = ($("#waktu_3").is(":checked") == false) ? 0 : 1;
|
||||
var SM = ($("#waktu_4").is(":checked") == false) ? 0 : 1;
|
||||
|
||||
if($.inArray(kode_barang,coll_obat) === 0) {
|
||||
Toast.fire({type:"error",title:"data sudah dimasukkan!"});
|
||||
}
|
||||
else if(jumlah > stok_barang)
|
||||
{
|
||||
Toast.fire({type:"error",title:"Jumlah permintaan melebihi jumlah Stok"});
|
||||
}
|
||||
else {
|
||||
t_item.append("<tr id=\"row"+noitem+"\">"+
|
||||
"<td>"+noitem+"<input type=\"hidden\" name=\"arr_input["+noitem+"][KodeBarang]\" id=\"kode_barang-"+noitem+"\" value=\""+kode_barang+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][HPP]\" id=\"HPP-"+noitem+"\" value=\""+hpp+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][Satuan]\" id=\"satuan-"+noitem+"\" value=\""+satuan+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][StStock]\" id=\"StStock-"+noitem+"\" value=\""+StStock+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][StRacik]\" id=\"StRacik-"+noitem+"\" value=\""+StRacik+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][Signa]\" id=\"Signa-"+noitem+"\" value=\""+signa+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][Frek]\" id=\"Frek-"+noitem+"\" value=\""+frek+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][JFrek]\" id=\"JFrek-"+noitem+"\" value=\""+Jfrek+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][PenG]\" id=\"PenG-"+noitem+"\" value=\""+Generik+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][PenF]\" id=\"PenF-"+noitem+"\" value=\""+Formularium+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][SP]\" id=\"SP-"+noitem+"\" value=\""+SP+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][SS]\" id=\"SS-"+noitem+"\" value=\""+SS+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][SSR]\" id=\"SSR-"+noitem+"\" value=\""+SSR+"\"><input type=\"hidden\" name=\"arr_input["+noitem+"][SM]\" id=\"SM-"+noitem+"\" value=\""+SM+"\"><input type=\"hidden\" id=\"stok-"+noitem+"\" value=\""+stok_barang+"\"></td>"+
|
||||
"<td>"+nama_barang+"</td>"+
|
||||
"<td><input class=\"form-control form-control-sm jumlahItem mask-decimal\" name=\"arr_input["+noitem+"][Jumlah]\" id=\"jumlah-"+noitem+"\" value=\""+jumlah+"\" data-index=\""+noitem+"\" readonly></td>"+
|
||||
"<td><input class=\"form-control form-control-sm\" name=\"arr_input["+noitem+"][Harga]\" id=\"harga-"+noitem+"\" value=\""+harga+"\" readonly></td>"+
|
||||
"<td><input class=\"form-control form-control-sm\" name=\"arr_input["+noitem+"][subtotal]\" id=\"hargatotal-"+noitem+"\" value=\""+accounting.formatMoney(total,moneyOptions)+"\" readonly> </td>"+
|
||||
"<td><div class=\"dropdown\"><button type=\"button\" class=\"btn btn-sm btn-outline-danger dropdown-toggle\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\"><i class=\"fa fa-list\"></i></button><div class=\"dropdown-menu\" aria-labelledby=\"dropdownMenuButton\"> <button type=\"button\" class=\"dropdown-item removeItem\" data-index=\""+noitem+"\">Hapus</button> <button type=\"button\" class=\"dropdown-item EditItem\" data-index=\""+noitem+"\">Edit</a> </div></div></td>"+
|
||||
"</tr>");
|
||||
coll_obat.push(kode_barang);
|
||||
}
|
||||
noitem++;
|
||||
});
|
||||
$("body").delegate(".removeItem","click",function(){
|
||||
var id = $(this).data("index");
|
||||
kode = $("#kode_barang-"+id).val();
|
||||
$("#row"+id).remove();
|
||||
noitem -= 1;
|
||||
for( var i = 0; i < coll_obat.length; i++ ) {
|
||||
if( coll_obat[i] == kode){
|
||||
coll_obat.splice(i,1);
|
||||
}
|
||||
}
|
||||
});
|
||||
$("body").delegate(".EditItem","click",function(){
|
||||
var id = $(this).data("index");
|
||||
$("#jumlah-"+id).removeAttr("readonly");
|
||||
$("#jumlah-"+id).parent().append("<button type=\"button\" class=\"btn btn-sm btn-success saveJumlah\" data-index=\""+id+"\">Save</button>");
|
||||
$(".mask-decimal").inputmask("numeric", {
|
||||
radixPoint: ",",
|
||||
groupSeparator: ".",
|
||||
digits: 2,
|
||||
autoGroup: true,
|
||||
prefix: "",
|
||||
rightAlign: false,
|
||||
oncleared: function (e) { $(e.currentTarget).val(""); }
|
||||
});
|
||||
});
|
||||
$("body").delegate(".saveJumlah","click",function(){
|
||||
var id = $(this).data("index");
|
||||
var stok = $("#stok-"+id).val();
|
||||
var jumlah = $("#jumlah-"+id).val().replace(/\./,"").replace(/,/,".");
|
||||
if(parseFloat(jumlah) > parseFloat(stok))
|
||||
{
|
||||
Toast.fire({type:"error",title:"Jumlah permintaan melebihi jumlah Stok"});
|
||||
}
|
||||
else {
|
||||
$(this).remove();
|
||||
$("#jumlah-"+id).prop("readonly",true);
|
||||
}
|
||||
});
|
||||
$("body").delegate(".jumlahItem","keyup",function(){
|
||||
var id = $(this).data("index");
|
||||
var jumlah = jQuery("#jumlah-"+id).val().replace(/\./,"").replace(/,/,".");
|
||||
var harga = jQuery("#harga-"+id).val();
|
||||
var total = parseFloat(harga) * parseFloat(jumlah);
|
||||
|
||||
$("#hargatotal-"+id).val(accounting.formatMoney(total,moneyOptions));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
';
|
||||
echo $js;
|
||||
?>
|
||||
<div id="valid_pemberian_obat">
|
||||
<div id="autocompletedivobat" class="autocomp" align="left"></div>
|
||||
<?php include("save_pemberian_obat.php"); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,199 @@
|
||||
<?php
|
||||
echo $datetimepicker_css;
|
||||
echo $easyui_css;
|
||||
include 'core/main.php';
|
||||
|
||||
array_push($form_plugin['ui_plugins_js'], $datetimepicker_js);
|
||||
array_push($form_plugin['ui_plugins_js'], $sweetalert_js);
|
||||
|
||||
$js_init .= '$(".datetime").datepicker({format :"yyyy-mm-dd hh:ii:ss", autoclose:true, todayBtn:true, minuteStep: 10 });';
|
||||
|
||||
$cek_pelimpahan = $db->query("SELECT a.tgl_pelimpahan,d.kddokter as kddokter_utama,d.namadokter as dpjp_utama,smf_utama,e.kddokter as kddokter_pengganti,e.namadokter as dpjp_pengganti,smf_pengganti from t_pelimpahan_dpjp a
|
||||
join m_dokter d on a.dpjp_utama = d.kddokter
|
||||
join m_dokter e on a.dpjp_pengganti = e.kddokter
|
||||
where id_admission = $id_admission order by id_pelimpahan");
|
||||
if ($cek_pelimpahan->numRows() > 0) {
|
||||
$st_input_pelimpahan = false;
|
||||
$data_pelimpahan_dpjp = $cek_pelimpahan->fetchAll();
|
||||
$arr_pelimpahan = $data_pelimpahan_dpjp[$cek_pelimpahan->numRows() - 1];
|
||||
// $nama_dpjp = $arr_pelimpahan['dpjp_utama'];
|
||||
// $smf_dpjp = $arr_pelimpahan['smf_utama'];
|
||||
$nama_dpjp = $arr_pelimpahan['dpjp_pengganti'];
|
||||
$smf_dpjp = $arr_pelimpahan['smf_pengganti'];
|
||||
$dpjp_pengganti = $arr_pelimpahan['kddokter_pengganti'];
|
||||
$smf_pengganti = $arr_pelimpahan['smf_pengganti'];
|
||||
$tgl_pelimpahan = $arr_pelimpahan['tgl_pelimpahan'];
|
||||
} else {
|
||||
$st_input_pelimpahan = false;
|
||||
$data_pelimpahan_dpjp = [];
|
||||
$nama_dpjp = $arr_dokter[$kddokter];
|
||||
$smf_dpjp = $arr_smf[$kddokter];
|
||||
$dpjp_pengganti = $kddokter;
|
||||
$tgl_pelimpahan = date('Y-m-d');
|
||||
$smf_pengganti = '';
|
||||
}
|
||||
?>
|
||||
<h4>FORM PELIMPAHAN DOKTER DPJP</h4>
|
||||
|
||||
<form name="pelimpahan_dpjp" method="post" id="pelimpahan_dpjp">
|
||||
|
||||
<input type="hidden" name="idx_admission" id="idx_admission" value="<?php echo $id_admission; ?>" />
|
||||
<input type="hidden" name="nomr" id="nomr" value="<?php echo $nomr; ?>" />
|
||||
<input type="hidden" name="kdruang" value="<?php echo $noruang; ?>" />
|
||||
<input type="hidden" name="dpjp_utama" value="<?php echo $kddokter; ?>" />
|
||||
|
||||
<div class="text-left">
|
||||
<p>Yang bertanda tangan di bawah ini :
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Nama </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" readonly class="form-control" name="nama_dpjp" id="nama_dpjp"
|
||||
value="<?php echo $nama_dpjp; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">SMF </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" readonly class="form-control" name="smf_dpjp" id="smf_dpjp"
|
||||
value="<?php echo $smf_dpjp; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<p>Selaku Dokter DPJP dari Pasien : </p>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Nama </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" readonly class="form-control" name="nama_pasien" id="nama_pasien"
|
||||
value="<?php echo $nama; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Alamat </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" readonly class="form-control" name="alamat_pasien" id="alamat_pasien"
|
||||
value="<?php echo $userdata['alamat']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Ruang Rawat </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" readonly class="form-control" name="ruang" id="ruang"
|
||||
value="<?php echo $userdata['nm_ruang']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">No Rekam Medik </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" readonly class="form-control" name="norm" id="norm"
|
||||
value="<?php echo $userdata['nomr']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<p>Melimpahkan tanggung jawab perawatan pasien tersebut di atas kepada : </p>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Nama </label>
|
||||
<div class="col-sm-8">
|
||||
<?php
|
||||
if ($st_input_pelimpahan == false) {
|
||||
echo form_dropdown('dpjp_baru', $arr_dokter, $kddokter, 'class="form-control" id="kddokter_baru"');
|
||||
} else {
|
||||
echo form_dropdown('dpjp_baru', $arr_dokter, $dpjp_pengganti, 'class="form-control" id="kddokter_baru" disabled');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">SMF </label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" readonly class="form-control" name="smf_dpjp_baru" id="smf_dpjp_baru"
|
||||
value="<?php echo $smf_pengganti; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Tanggal Pelimpahan</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" class="form-control mask-date-default datepicker-default" name="tgl_pelimpahan"
|
||||
id="tgl_pelimpahan"
|
||||
value="<?php echo ($st_input_pelimpahan == false) ? date('Y-m-d') : $tgl_pelimpahan; ?>"
|
||||
<?php echo ($st_input_pelimpahan == false) ? '' : 'disabled'; ?> />
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($st_input_pelimpahan == false) : ?>
|
||||
<?php
|
||||
/***Todo Pembatasan Access menurut unit pelayanan */
|
||||
if (($_SESSION['ROLES'] == 15) or ($_SESSION['ROLES'] == 6)) {
|
||||
echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
} else {
|
||||
echo ' <input type="button" name="Submit" id="simpan_pelimpahan" value="Simpan" class="btn btn-primary" />';
|
||||
}
|
||||
?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="container-fluid mt-5">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-12">
|
||||
<table class="table table-condensed table-striped table-sm table-bordered" id="table_pelimpahan">
|
||||
<thead>
|
||||
<tr class="table-info">
|
||||
<th rowspan="2">No.</th>
|
||||
<th rowspan="2">Tanggal Pelimpahan</th>
|
||||
<th colspan="2">DPJP Asal</th>
|
||||
<th colspan="2">Dilimpahkan Ke DPJP</th>
|
||||
</tr>
|
||||
<tr class="table-info">
|
||||
<th>Nama DPJP</th>
|
||||
<th>SMF DPJP</th>
|
||||
<th>Nama DPJP</th>
|
||||
<th>SMF DPJP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (!empty($data_pelimpahan_dpjp)) {
|
||||
$no = 1;
|
||||
foreach ($data_pelimpahan_dpjp as $row) {
|
||||
echo '<tr><td>' . $no . '</td><td>' . $row['tgl_pelimpahan'] . '</td><td>' . $row['dpjp_utama'] . '</td><td>' . $row['smf_utama'] . '</td><td>' . $row['dpjp_pengganti'] . '</td><td>' . $row['smf_pengganti'] . '</td></tr>';
|
||||
$no++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
echo '<script>';
|
||||
$arr_str_smf = [];
|
||||
foreach ($arr_smf as $kd => $smf) {
|
||||
$arr_str_smf[] = $kd . ':\'' . $smf . '\'';
|
||||
}
|
||||
$str_dpjp = 'const arr_smf = {' . implode(',', $arr_str_smf) . '}';
|
||||
echo $str_dpjp;
|
||||
echo '</script>';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$("#kddokter_baru").on("change", function(d) {
|
||||
const kd = $(this).find(":selected").val();
|
||||
$("#smf_dpjp_baru").val(arr_smf[kd]);
|
||||
});
|
||||
$('#simpan_pelimpahan').click(function() {
|
||||
form_pelimpahan = $("#pelimpahan_dpjp").serialize();
|
||||
|
||||
$.post('<?php echo _BASE_; ?>ranap/save_pelimpahan.php', form_pelimpahan + "&simpan=1",
|
||||
function(data) {
|
||||
Toast.fire({
|
||||
title: data.message,
|
||||
type: data.type,
|
||||
onClose: function() {
|
||||
// window.location.reload();
|
||||
if (data.table != false) {
|
||||
$("#table_pelimpahan tbody").html(data.table);
|
||||
}
|
||||
}
|
||||
});
|
||||
}, "json");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,77 @@
|
||||
<form action="save_dpmp.php" name="dpmp" method="post" id="dpmp">
|
||||
<input type="hidden" name="IDXDAFTAR" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="NOMR" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="RUANG" value="<?php echo $noruang;?>" />
|
||||
<table width="95%" class="tb" border="0">
|
||||
<tr valign="top">
|
||||
<td width="17%">DIIT :</td>
|
||||
<td colspan="2">
|
||||
Shift :
|
||||
<input type="radio" name="SHIFT" value="1"/> Pagi
|
||||
<input type="radio" name="SHIFT" value="2"/> Siang
|
||||
<input type="radio" name="SHIFT" value="3"/> Sore
|
||||
<span style="padding-left:100px;">Snack :
|
||||
<input type="radio" name="SNACK" value="1"/> Pagi
|
||||
<input type="radio" name="SNACK" value="2"/> Sore</span> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>TYPE MAKANAN</td>
|
||||
<td width="30%">
|
||||
<select name="TYPEMAKANAN" class="text">
|
||||
<option selected="selected"> -Pilih- </option>
|
||||
<option value="1">PASIEN YANG MENDAPAT MAKANAN BIASA</option>
|
||||
<option value="2">PASIEN YANG MENDAPAT MAKANAN KHUSUS</option>
|
||||
</select>
|
||||
</td>
|
||||
<td width="53%">KETERANGAN TAMBAHAN</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>KETERANGAN</td>
|
||||
<td>
|
||||
<select name="KETERANGAN" class="text">
|
||||
<option selected="selected"> -Pilih- </option>
|
||||
<option value="1">TKTP</option>
|
||||
<option value="2">RG</option>
|
||||
<option value="3">DL</option>
|
||||
<option value="4">DH</option>
|
||||
<option value="5">DM</option>
|
||||
<option value="6">DJ</option>
|
||||
<option value="7">TP</option>
|
||||
<option value="8">RP.r</option>
|
||||
<option value="9">RP</option>
|
||||
<option value="10">LAIN-LAIN</option>
|
||||
</select>
|
||||
</td>
|
||||
<td rowspan="5" valign="top"><textarea name="KETERANGANTAMBAHAN" class="text" cols="50" rows="6"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>JENIS MAKANAN</td>
|
||||
<td>
|
||||
<select name="JENISMAKANAN" class="text">
|
||||
<option selected="selected"> -Pilih- </option>
|
||||
<option value="1">Nasi</option>
|
||||
<option value="6">Nasi TIM (TIM)</option>
|
||||
<option value="2">Lunak / BUBUR</option>
|
||||
<option value="3">Bubur Saring</option>
|
||||
<option value="4">Cair</option>
|
||||
<option value="5">Sonde</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" name="Submit" value="Simpan" class="text" onclick="newsubmitform (document.getElementById('dpmp'),'ranap/save_dpmp.php','valid_save_dpmp',validatetask); return false;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id="valid_save_dpmp">
|
||||
<?php include("save_update_dpmp.php"); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,331 @@
|
||||
<?php
|
||||
echo $datetimepicker_css;
|
||||
echo $easyui_css;
|
||||
?>
|
||||
<form name="rencana_pulang" method="post" id="rencana_pulang" action="ranap/save_rencana_pulang.php">
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_resumepulang WHERE IDADMISSION = '" . $id_admission . "'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
|
||||
$query_rencana_pulang = $db->query("SELECT rencana_pulang FROM t_admission WHERE id_admission = '" . $id_admission . "'");;
|
||||
$data_rencana_pulang = $query_rencana_pulang->fetchAll()[0];
|
||||
|
||||
array_push($form_plugin['ui_plugins_js'], $datetimepicker_js);
|
||||
array_push($form_plugin['ui_plugins_js'], $sweetalert_js);
|
||||
// echo $datetimepicker_css;
|
||||
$js_init .= '$(".datetime").datepicker({format :"yyyy-mm-dd hh:ii:ss", autoclose:true, todayBtn:true, minuteStep: 10 });';
|
||||
|
||||
$sql = $db->query('select * from m_statuskeluarranap order by kode');
|
||||
$arr_status_plg = [];
|
||||
foreach ($sql->fetchAll() as $row) {
|
||||
$arr_status_plg[$row['kode']] = $row['nama'];
|
||||
}
|
||||
|
||||
|
||||
$list_order_poct = "select a.id, a.norm, a.operator_id, b.nip, b.nama, a.dokter_id, c.namadokter, a.no_pemeriksaan, a.tanggal, a.total_order, a.created_at, a.is_valid
|
||||
from order_poct a
|
||||
join m_perawat b on b.idperawat = a.operator_id
|
||||
join m_dokter c on c.kddokter = a.dokter_id
|
||||
where norm = '" . $userdata['nomr'] . "' and a.status = 1 and a.idxdaftar = '" . $userdata['id_admission'] . "'
|
||||
and a.is_valid in (2, 0)
|
||||
order by a.created_at desc";
|
||||
|
||||
$tmp_list_poct = $db->query($list_order_poct);
|
||||
$list_poct = $tmp_list_poct->fetchAll();
|
||||
|
||||
$total_order = 0;
|
||||
|
||||
|
||||
?>
|
||||
<input type="hidden" name="IDADMISSION" id="id_admission" value="<?php echo $id_admission; ?>" />
|
||||
<input type="hidden" name="NOMR" id="nomr" value="<?php echo $nomr; ?>" />
|
||||
<input type="hidden" name="KDRUANG" value="<?php echo $noruang; ?>" />
|
||||
<input type="hidden" name="JK" value="<?php echo $jk; ?>" />
|
||||
<div class="text-left">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Dirawat Sejak</label>
|
||||
<div class="col-sm-3"><input type="text" name="TGLMASUK" class="form-control text" size="30" readonly
|
||||
value="<?php echo $masukrs; ?>" /></div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Rencana Tanggal Pulang</label>
|
||||
<div class="col-sm-3"><input type="text" class="datepicker-jadwal mask-date-default form-control"
|
||||
name="tgl_rencanaPulang" id="tgl_rencanaPulang" size="30"
|
||||
value="<?= (($data_rencana_pulang['rencana_pulang'] == '') or ($data_rencana_pulang['rencana_pulang'] == '0000-00-00')) ? '' : $data_rencana_pulang['rencana_pulang']; ?>" />
|
||||
</div>
|
||||
<?php
|
||||
|
||||
|
||||
// echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
if ($_SESSION['KDDOKTER'] != '') {
|
||||
if (!empty($data_rencana_pulang['rencana_pulang'])){
|
||||
echo '<input type="button" name="" id="batal_rencana" value="BATAL RENCANA PULANG" class="btn btn-warning btn-xl">';
|
||||
}else{
|
||||
echo '<input type="button" name="" id="simpan_rencana" value="SIMPAN RENCANA PULANG" class="btn btn-primary btn-xl">';
|
||||
}
|
||||
}
|
||||
if ($_SESSION['KDPERAWAT'] != '') {
|
||||
if (!empty($data_rencana_pulang['rencana_pulang'])){
|
||||
echo '<input type="button" name="" id="batal_rencana" value="BATAL RENCANA PULANG" class="btn btn-warning btn-xl">';
|
||||
}else {
|
||||
echo '<input type="button" name="" id="simpan_rencana" value="SIMPAN RENCANA PULANG" class="btn btn-primary btn-xl">';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div id="rujuk_resume"></div>
|
||||
|
||||
<div class="form-group row">
|
||||
<input type="hidden" name="idxpulang" value="<?= $dat_rp['idxpulang'] ?>" />
|
||||
<input type="hidden" name="nosep" id="nosep" value="<?= $userdata['nosep'] ?>" />
|
||||
<input type="hidden" name="icd_mati_1" id="icd_mati_1" value="" />
|
||||
<input type="hidden" name="icd_mati_2" id="icd_mati_2" value="" />
|
||||
<input type="hidden" name="icd_mati_3" id="icd_mati_3" value="" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div id="valid_resume_pulang"></div>
|
||||
|
||||
<form name="resume_pulang" method="post" id="resume_pulang" action="ranap/save_resume_pulang.php">
|
||||
<?php
|
||||
$sql_rsm_pulang = "SELECT * FROM t_resumepulang WHERE idadmission = '" . $id_admission . "'";
|
||||
$get_rsm_pulang = $db->query($sql_rsm_pulang);
|
||||
$dat_rp = $get_rsm_pulang->fetchAll()[0];
|
||||
|
||||
|
||||
array_push($form_plugin['ui_plugins_js'], $datetimepicker_js);
|
||||
array_push($form_plugin['ui_plugins_js'], $sweetalert_js);
|
||||
// echo $datetimepicker_css;
|
||||
$js_init .= '$(".datetime").datepicker({format :"yyyy-mm-dd hh:ii:ss", endDate: "' . date('Y-m-d H:i:s') . '", autoclose:true, todayBtn:true, minuteStep: 10 });';
|
||||
|
||||
$sql = $db->query('select * from m_statuskeluarranap order by kode');
|
||||
$arr_status_plg = [];
|
||||
foreach ($sql->fetchAll() as $row) {
|
||||
$arr_status_plg[$row['kode']] = $row['nama'];
|
||||
}
|
||||
|
||||
?>
|
||||
<input type="hidden" name="IDADMISSION" id="idadmission" value="<?php echo $id_admission; ?>" />
|
||||
<input type="hidden" name="NOMR" value="<?php echo $nomr; ?>" />
|
||||
<input type="hidden" name="KDRUANG" value="<?php echo $noruang; ?>" />
|
||||
<input type="hidden" name="JK" value="<?php echo $jk; ?>" />
|
||||
<input type="hidden" name="TGLMASUK" value="<?php echo $masukrs; ?>" />
|
||||
<div class="text-left">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Status Pulang</label>
|
||||
<div class="col-sm-3">
|
||||
<?php if ($userdata['keluarrs'] != null) : ?>
|
||||
<?php echo form_dropdown('STATUSPULANG', $arr_status_plg, '', 'class="form-control" id="status_pulang" style="width:100%"'); ?>
|
||||
<?php else: ?>
|
||||
<?php echo form_dropdown('STATUSPULANG', $arr_status_plg, '', 'class="form-control" id="status_pulang" style="width:100%" disabled'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2">Sampai dengan</label>
|
||||
<div class="col-sm-3">
|
||||
<input type="text" class="datepicker-default mask-date-default form-control"
|
||||
name="TGLKELUAR" id="TGLKELUAR2" size="30" <?= ($userdata['keluarrs'] == null) ? 'disabled': '' ?>
|
||||
value="<?php if (($dat_rp['TGLKELUAR'] == '') or ($dat_rp['TGLKELUAR'] == '0000-00-00')) : echo date('Y-m-d'); else : echo $dat_rp['TGLKELUAR']; endif; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="rujuk_resume"></div>
|
||||
|
||||
<div class="form-group row">
|
||||
<input type="hidden" name="idxpulang" value="<?= $dat_rp['idxpulang'] ?>" />
|
||||
<input type="hidden" name="nosep" id="nosep" value="<?= $userdata['nosep'] ?>" />
|
||||
<input type="hidden" name="icd_mati_1" id="icd_mati_1" value="" />
|
||||
<input type="hidden" name="icd_mati_2" id="icd_mati_2" value="" />
|
||||
<input type="hidden" name="icd_mati_3" id="icd_mati_3" value="" />
|
||||
<div class="col-sm-4 offset-sm-2">
|
||||
|
||||
<?php if (count($list_poct) > 0) : ?>
|
||||
<div class="alert alert-danger">Terdapat <?= count($list_poct) ?> Order POCT yang belum terverifikasi</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
/***Todo Pembatasan Access menurut unit pelayanan */
|
||||
if (($_SESSION['ROLES'] == 15) or ($_SESSION['ROLES'] == 6)) {
|
||||
echo '<div class="alert alert-error"><p>Anda tidak memiliki akses untuk mengisi form ini</p></div>';
|
||||
} else {
|
||||
if ($userdata['keluarrs'] != null) {
|
||||
// <button type="button" class="btn btn-success" id="btnPulangSEP">Update Pulang SEP</button>
|
||||
echo '<input type="button" name="Submit" id="simpan_pulang" value="PULANGKAN PASIEN" class="btn btn-primary"/>';
|
||||
} else {
|
||||
// <button type="button" class="btn btn-secondary" id="btnPulangSEP" disabled>Update Pulang SEP</button>
|
||||
echo '<div class="alert alert-danger">Simpan akan aktif ketika pasien sudah verifikasi billing</div>
|
||||
<input type="button" name="Submit" id="pulang" value="Simpan" class="btn btn-secondary" title="Simpan aktif ketika pasien sudah verifikasi billing" disabled/>';
|
||||
//cek resume pulang
|
||||
$tmp_resume = $db->query("SELECT * from t_resumepulang where idadmission = $id_admission and status is null");
|
||||
if ($tmp_resume->numRows() > 0) {
|
||||
echo '<button type="button" class="btn btn-danger" id="batal_pulang" value="Batal Pulang" data-idadmission="' . $id_admission . '">BATAL PULANG</button>';
|
||||
}
|
||||
}
|
||||
}
|
||||
// if ($userdata['keluarrs'] != null) {
|
||||
// echo '<button type="button" class="btn btn-success" id="btnPulangSEP">Update Pulang SEP</button>
|
||||
// <input type="button" name="Submit" id="simpan_pulang" value="PULANGKAN PASIEN" class="btn btn-primary"/>';
|
||||
// } else {
|
||||
// echo '<div class="alert alert-danger">Simpan akan aktif ketika pasien sudah verifikasi billing</div><button type="button" class="btn btn-secondary" id="btnPulangSEP" disabled>Update Pulang SEP</button>
|
||||
// <input type="button" name="Submit" id="pulang" value="Simpan" class="btn btn-secondary" title="Simpan aktif ketika pasien sudah verifikasi billing" disabled/>';
|
||||
// //cek resume pulang
|
||||
// $tmp_resume = $db->query("SELECT * from t_resumepulang where idadmission = $id_admission and status is null");
|
||||
// if ($tmp_resume->numRows() > 0) {
|
||||
// echo '<button type="button" class="btn btn-danger" id="batal_pulang" value="Batal Pulang" data-idadmission="' . $id_admission . '">BATAL PULANG</button>';
|
||||
// }
|
||||
// }
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- <input type="button" name="" id="test" value="test" class="btn btn-primary btn-xl"> -->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#simpan_rencana').click(function() {
|
||||
var tgl = $("#tgl_rencanaPulang").val();
|
||||
var id = $('#id_admission').val();
|
||||
var flag = 'simpan';
|
||||
|
||||
$.post('<?php echo _BASE_; ?>ranap/save_rencana_pulang.php', {
|
||||
tgl: tgl,
|
||||
id: id,
|
||||
flag:flag
|
||||
}, function(data) {
|
||||
|
||||
if (data == "1") {
|
||||
$msg = 'Berhasil Menyimpan Rencana Pulang.';
|
||||
$type = 'success';
|
||||
} else {
|
||||
$msg = 'Gagal Menyimpan Rencana Pulang.';
|
||||
$type = 'error';
|
||||
}
|
||||
Toast.fire({
|
||||
title: $msg,
|
||||
type: $type
|
||||
});
|
||||
location.reload()
|
||||
});
|
||||
});
|
||||
|
||||
$('#batal_rencana').click(function() {
|
||||
var tgl = $("#tgl_rencanaPulang").val();
|
||||
var id = $('#id_admission').val();
|
||||
var flag = 'batal';
|
||||
|
||||
$.post('<?php echo _BASE_; ?>ranap/save_rencana_pulang.php', {
|
||||
tgl: tgl,
|
||||
id: id,
|
||||
flag:flag
|
||||
}, function(data) {
|
||||
|
||||
if (data == "1") {
|
||||
$msg = 'Berhasil Menyimpan Rencana Pulang.';
|
||||
$type = 'success';
|
||||
} else {
|
||||
$msg = 'Gagal Menyimpan Rencana Pulang.';
|
||||
$type = 'error';
|
||||
}
|
||||
Toast.fire({
|
||||
title: $msg,
|
||||
type: $type
|
||||
});
|
||||
location.reload()
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
array_push($form_plugin['ui_plugins_js'], '<script src="' . _LIB_ . 'jquery-easyui-1.6.10/jquery.easyui.min.js"></script>');
|
||||
$js_init .= '
|
||||
$("#simpan_pulang").on("click",function(){
|
||||
dt_meninggal = ($("#dt_meninggal").length > 0) ? $("#dt_meninggal").val() : "";
|
||||
icd_mati0 = ($("[name*=\'icd_mati[0]\']").length > 0) ? $("[name*=\'icd_mati[0]\']").val() : "";
|
||||
icd_mati1 = ($("[name*=\'icd_mati[1]\']").length > 0) ? $("[name*=\'icd_mati[1]\']").val() : "";
|
||||
icd_mati2 = ($("[name*=\'icd_mati[2]\']").length > 0) ? $("[name*=\'icd_mati[2]\']").val() : "";
|
||||
sebab_mati_1 = ($("[name*=\'sebab_mati[0]\']").length > 0) ? $("[name*=\'sebab_mati[0]\']").val() : "";
|
||||
|
||||
$.post("' . _BASE_ . 'ranap/save_resume_pulang.php",$("#resume_pulang").serialize()+"&dt_meninggal="+dt_meninggal+"&icd_mati0="+icd_mati0+"&icd_mati1="+icd_mati1+"&icd_mati2="+icd_mati2+"&sebab_mati_1="+sebab_mati_1,function(data){
|
||||
Toast.fire({title:data.message,type:data.type});
|
||||
},"json");
|
||||
});
|
||||
$("#btnPulangSEP").on("click",function(){
|
||||
var tgl_keluar = $("#TGLKELUAR2").val();
|
||||
var nosep = $("#nosep").val();
|
||||
var ppkPelayanan = "' . $_SESSION['PPK_PELAYANAN'] . '";
|
||||
$.post("' . _BASE_ . 'include/master.php",{pulang_sep:true,tgl_pulang:tgl_keluar,nosep:nosep, ppkPelayanan:ppkPelayanan},function(data){
|
||||
if(data.metaData.code != "200")
|
||||
{
|
||||
Swal.fire({text:data.metaData.message,type:"error",imageUrl:"' . _BASE_ . 'assets/images/SEP_logo.png",imageWidth:160,imageHeight:33});
|
||||
}
|
||||
else {
|
||||
Swal.fire({text:data.metaData.message,type:"success",imageUrl:"' . _BASE_ . 'assets/images/SEP_logo.png",imageWidth:160,imageHeight:33});
|
||||
}
|
||||
},"json");
|
||||
});
|
||||
$("#status_pulang").on("change",function(){
|
||||
rujuk = $(this).find(":selected").val();
|
||||
idxdaftar = $("#idadmission").val();
|
||||
$.get("' . _BASE_ . 'rujukan/alasan_rujuk.php",{rujuk,idxdaftar,rajal:0},function(data){
|
||||
$("#rujuk_resume").html(data);
|
||||
current_time = "' . Date('Y-m-d H:i:s') . '";
|
||||
$(".datetimepicker").datetimepicker({format :"yyyy-mm-dd hh:ii:ss", endDate: current_time, autoclose:true, minuteStep: 10, startView:0 });
|
||||
$("#dt_meninggal").change(function(){
|
||||
tgl_mati = new Date($(this).val());
|
||||
var weekdays = new Array(7);
|
||||
weekdays[0] = "Minggu";
|
||||
weekdays[1] = "Senin";
|
||||
weekdays[2] = "Selasa";
|
||||
weekdays[3] = "Rabu";
|
||||
weekdays[4] = "Kamis";
|
||||
weekdays[5] = "Jumat";
|
||||
weekdays[6] = "Sabtu";
|
||||
$("#hari_meninggal").val(weekdays[tgl_mati.getDay()]);
|
||||
});
|
||||
$(".kodeicd1,.kodeicd2,.kodeicd3").combobox({
|
||||
"mode" : "remote",
|
||||
"loader" : function(param,success,error) {
|
||||
query = param.q || "";
|
||||
if(query.length < 2){ return false; }
|
||||
$.post("' . _BASE_ . 'include/master.php?cari_diagnosa=1",{query},function(data){
|
||||
var items = $.map(data.data, function(item,index){
|
||||
return {
|
||||
code: item.code,
|
||||
name: item.str
|
||||
};
|
||||
});
|
||||
success(items);
|
||||
},"json")
|
||||
},
|
||||
"valueField" : "code",
|
||||
"textField" : "name",
|
||||
"formatter" : formatItem,
|
||||
"prompt" : "Cari Diagnosa",
|
||||
onClick : function(record) {
|
||||
nourut = $(this).data("nourut");
|
||||
$("#icd_mati_"+nourut).val(record.code);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
function formatItem(row){
|
||||
var s = \'<div class="d-flex flex-row"><div class="flex-fill text-left">\' + row.name + \'</div>\' +
|
||||
\'<div class="flex-fill text-right">\' + row.code + \'</div></div>\';
|
||||
return s;
|
||||
}
|
||||
|
||||
$("#batal_pulang").click(function(){
|
||||
idadmission = $(this).data("idadmission");
|
||||
$.post("' . _BASE_ . 'include/master.php?batal_pulang_resume=1",{idadmission},function(data){
|
||||
Toast.fire({title:data.message,type:data.type,onClose : function() {
|
||||
window.location.reload();
|
||||
}})
|
||||
},"json");
|
||||
});
|
||||
';
|
||||
?>
|
||||
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
include '../core/main.php';
|
||||
|
||||
|
||||
|
||||
$tgl = "";
|
||||
if(!empty($_GET['tgl'])){
|
||||
$tgl =$_GET['tgl'];
|
||||
}
|
||||
|
||||
$search = "";
|
||||
if($tgl !=""){
|
||||
$search = "";
|
||||
}
|
||||
|
||||
$sql = "";
|
||||
?>
|
||||
<div align="center">
|
||||
<div id="frame" style="width:95%">
|
||||
<div id="frame_title">
|
||||
<h5>SENSUS HARIAN PASIEN RAWAT INAP</h5></div>
|
||||
<div align="right" style="margin:5px;">
|
||||
|
||||
<div id="table_search">
|
||||
<div style="overflow:scroll;width:98%;height:auto;" >
|
||||
<!--<div>-->
|
||||
<table width="95%" style="margin:10px;" border="1" cellspacing="0" cellspading="0" class="tb">
|
||||
<tr align="center">
|
||||
<th width="3%" rowspan="3">NO URUT</th>
|
||||
<th width="9%" rowspan="3">RUANG PERAWATAN</th>
|
||||
<th width="13%" rowspan="3">TT TERSEDIA</th>
|
||||
<th width="6%" rowspan="3">SISA AWAL</th>
|
||||
<th width="3%" rowspan="3"> MASUK</th>
|
||||
<th width="4%" rowspan="3">PINDAHAN</th>
|
||||
<th width="8%" rowspan="3">JUMLAH (4+5+6)</th>
|
||||
<th width="11%" rowspan="3">DIPINDAHKAN</th>
|
||||
<th width="12%" colspan="8">KELUAR RUMAH SAKIT</th>
|
||||
<th width="12%" rowspan="3">JUMLAH (8+13+16)</th>
|
||||
<th width="12%" rowspan="3">MASIH DIRAWAT (7-17)</th>
|
||||
<th width="7%" rowspan="3">LAMA DIRAWAT</th>
|
||||
<th width="0%" colspan="4">RINCIAN HARI PERAWATAN PERKELAS</th>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<th width="6%" colspan="5">HIDUP</th>
|
||||
<th width="6%" colspan="3">MENINGGAL</th>
|
||||
<th width="0%" rowspan="2">KELAS II</th>
|
||||
<th width="0%" rowspan="2">KELAS III</th>
|
||||
<th width="0%" rowspan="2">ISOLASI</th>
|
||||
<th width="0%" rowspan="2">PERINA</th>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<th>DIPULANGKAN</th>
|
||||
<th>PERMINTAAN SENDIRI</th>
|
||||
<th>MELARIKAN DIRI</th>
|
||||
<th>DIRUJUK</th>
|
||||
<th>JUMLAH (9+10+11+12)</th>
|
||||
<th width="2%">< 48 JAM</th>
|
||||
<th width="1%">> 48 JAM</th>
|
||||
<th width="3%">JUMLAH (14+15)</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>2</td>
|
||||
<td>3</td>
|
||||
<td>4</td>
|
||||
<td>5</td>
|
||||
<td>6</td>
|
||||
<td>7</td>
|
||||
<td>8</td>
|
||||
<td>9</td>
|
||||
<td>10</td>
|
||||
<td>11</td>
|
||||
<td>12</td>
|
||||
<td>13</td>
|
||||
<td>14</td>
|
||||
<td>15</td>
|
||||
<td>16</td>
|
||||
<td>17</td>
|
||||
<td>18</td>
|
||||
<td>19</td>
|
||||
<td>20</td>
|
||||
<td>21</td>
|
||||
<td>22</td>
|
||||
<td>23</td>
|
||||
</tr>
|
||||
<?php
|
||||
$sql="CALL pr_sensusharian_ranap()";
|
||||
$rs = $db->query($sql);
|
||||
|
||||
|
||||
foreach($pager['list'] as $data) {?>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><?=$data['nama'];?></td>
|
||||
<td><?=$data['jmltersedia'];?></td>
|
||||
<td><?=$data['sisaawal'];?></td>
|
||||
<td><?=$data['masuk'];?></td>
|
||||
<td><?=$data['pindahan'];?></td>
|
||||
<td><?=$data['jml456'];?></td>
|
||||
<td><?=$data['dipindahkan'];?></td>
|
||||
<td><?=$data['dipulangkan'];?></td>
|
||||
<td><?=$data['permintaansdr'];?></td>
|
||||
<td><?=$data['melarikandiri'];?></td>
|
||||
<td><?=$data['dirujuk'];?></td>
|
||||
<td><?=$data['keluarhidup'];?></td>
|
||||
<td><?=$data['kurang48'];?></td>
|
||||
<td><?=$data['lebih48'];?></td>
|
||||
<td><?=$data['keluarmeninggal'];?></td>
|
||||
<td><?=$data['dipindahkan']+$data['keluarhidup']+$data['keluarmeninggal'];?></td>
|
||||
<td><?=$data['jml456']-($data['dipindahkan']+$data['keluarhidup']+$data['keluarmeninggal']);?></td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<?php }
|
||||
|
||||
|
||||
?>
|
||||
</table></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<?php
|
||||
$qry_excel = $sql;
|
||||
?>
|
||||
<div align="left">
|
||||
<form name="formprint" method="post" action="gudang/excelexport.php" target="_blank" >
|
||||
<input type="hidden" name="query" value="<?=$qry_excel?>" />
|
||||
<input type="hidden" name="header" value="SENSUS HARIAN RAWAT INAP" />
|
||||
<input type="hidden" name="filename" value="sensus_harian_ranap" />
|
||||
<input type="submit" value="Export To Ms Excel Document" class="text" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<p></p>
|
||||
@@ -0,0 +1,215 @@
|
||||
<?php
|
||||
require_once '../core/main.php';
|
||||
|
||||
if (array_key_exists('filter', $_REQUEST) && $_REQUEST['filter']) {
|
||||
$tgl_awal = $_REQUEST['tgl_awal'];
|
||||
$tgl_akhir = $_REQUEST['tgl_akhir'];
|
||||
$norm = $_REQUEST['nomr'];
|
||||
|
||||
if ($tgl_awal != '' && $tgl_akhir == '') {
|
||||
$where_tgl = " and date(tgl) >= '{$tgl_awal}'";
|
||||
} elseif ($tgl_awal == '' && $tgl_akhir != '') {
|
||||
$where_tgl = " and date(tgl) <= '{$tgl_akhir}'";
|
||||
} elseif ($tgl_awal != '' && $tgl_akhir != '') {
|
||||
$where_tgl = " and date(tgl) between '{$tgl_awal}' and '{$tgl_akhir}'";
|
||||
}
|
||||
|
||||
$query_hist = "SELECT a.*,case when (a.perawat <> 0 ) then b.NAMA when a.kddokter is not null then c.NAMADOKTER end as nama_ppa,d.nama_ppa as jenis_ppa
|
||||
FROM t_detail_diagnosakep a
|
||||
left join m_perawat b on a.perawat = b.IDPERAWAT
|
||||
left join m_dokter c on a.kddokter = c.KDDOKTER
|
||||
left join m_ppa d on a.kategori = d.id_ppa
|
||||
WHERE (a.nomr = '" . $norm . "')
|
||||
ORDER BY a.tgl";
|
||||
|
||||
$query_hist_filter = "SELECT a.*,case when (a.perawat <> 0 ) then b.NAMA when a.kddokter is not null then c.NAMADOKTER end as nama_ppa,d.nama_ppa as jenis_ppa
|
||||
FROM t_detail_diagnosakep a
|
||||
left join m_perawat b on a.perawat = b.IDPERAWAT
|
||||
left join m_dokter c on a.kddokter = c.KDDOKTER
|
||||
left join m_ppa d on a.kategori = d.id_ppa
|
||||
WHERE (a.nomr = '" . $norm . "') $where_tgl
|
||||
ORDER BY a.tgl";
|
||||
|
||||
$tmp_hist_all = $db->query($query_hist);
|
||||
$tmp_hist_filter = $db->query($query_hist_filter);
|
||||
$html = '';
|
||||
if ($tmp_hist_filter->numRows() > 0) {
|
||||
$no = 1;
|
||||
$flag_dokter = '';
|
||||
foreach ($tmp_hist_filter->fetchAll() as $row) {
|
||||
|
||||
$arr_data[] = [
|
||||
'id_detail_diagnosakep' => $row['id_detail_diagnosakep'],
|
||||
'no' => $no,
|
||||
'tgl' => datetime_to_id($row['tgl']),
|
||||
'jenis_ppa' => $row['jenis_ppa'],
|
||||
'nama_ppa' => $row['nama_ppa'],
|
||||
'soap' => (($row['jenis_ppa'] != 'Gizi') ? 'S : ' . $row['evaluasi_s'] . '<hr>O : ' . $row['evaluasi_o'] . '<hr>A : ' . $row['evaluasi_a'] . '<hr>P : ' . $row['evaluasi_p'] . '<br>' : 'A : ' . $row['evaluasi_s'] . '<hr>D : ' . $row['evaluasi_o'] . '<hr>I : ' . $row['evaluasi_a'] . '<hr>ME : ' . $row['evaluasi_p'] . '<br>'),
|
||||
'review' => $row['review'],
|
||||
];
|
||||
$no++;
|
||||
}
|
||||
}
|
||||
|
||||
$output = array(
|
||||
"draw" => intval($_GET['draw']),
|
||||
"recordsTotal" => $tmp_hist_all->numRows(),
|
||||
"recordsFiltered" => $tmp_hist_filter->numRows(),
|
||||
"data" => $arr_data
|
||||
);
|
||||
|
||||
echo json_encode($output);
|
||||
exit;
|
||||
} else {
|
||||
$norm = $_REQUEST['nomr'];
|
||||
$idxdaftar = $_REQUEST['idxdaftar'];
|
||||
$rajal = $_REQUEST['rajal_status'];
|
||||
$id_table = $_REQUEST['tbl_id'];
|
||||
$query_hist = "SELECT a.*,case when (a.perawat <> 0 ) then b.NAMA when a.kddokter is not null then c.NAMADOKTER end as nama_ppa,d.nama_ppa as jenis_ppa ,e.rolename
|
||||
FROM t_detail_diagnosakep a
|
||||
left join m_perawat b on a.perawat = b.IDPERAWAT
|
||||
left join m_dokter c on a.kddokter = c.KDDOKTER
|
||||
left join m_ppa d on a.kategori = d.id_ppa
|
||||
left join user_roles e on a.role_petugas = e.roleid
|
||||
WHERE (a.nomr = '" . $norm . "') and idxrajal isnull
|
||||
ORDER BY a.tgl desc";
|
||||
|
||||
$tmp_hist = $db->query($query_hist);
|
||||
$html = '<style>
|
||||
td.details-control {
|
||||
text-align:center;
|
||||
color:forestgreen;
|
||||
cursor: pointer;
|
||||
}
|
||||
tr.shown td.details-control {
|
||||
text-align:center;
|
||||
color:red;
|
||||
}
|
||||
</style>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1">Tgl Awal</label><div class="col-sm-2">
|
||||
<input type="text" id="tgl_awal" class="datepicker-default mask-date-default form-control form-control-sm" value="' . date('Y-m-d') . '">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-1">Tgl Akhir</label><div class="col-sm-2">
|
||||
<input type="text" id="tgl_akhir" class="datepicker-default mask-date-default form-control form-control-sm" value="' . date('Y-m-d') . '">
|
||||
</div>
|
||||
<div class="col-sm-2"><button type="button" class="btn btn-primary btn-sm" id="btn_filter_cprj">Cari</button></div>
|
||||
</div>
|
||||
<table class="table table-bordered table-striped table-sm" id="' . $id_table . '" style="width:100%"><thead>
|
||||
<tr class="bg-primary text-white">
|
||||
<th style="width:2%">No</th>
|
||||
<th style="width:15%">Tanggal Jam</th>
|
||||
<th style="width:15%">PPA</th>
|
||||
<th style="width:30%">Hasil Asesmen Pasien dan Pemberian Pelayanan</th>
|
||||
<th style="width:20%">Instruksi PPA Termasuk Pasca Bedah</th>
|
||||
<th style="width:5%">Review & Verifikasi DPJP</th>
|
||||
</tr></thead><tbody>';
|
||||
if ($tmp_hist->numRows() > 0) {
|
||||
$no = 1;
|
||||
$flag_dokter = '';
|
||||
foreach ($tmp_hist->fetchAll() as $row) {
|
||||
// echo "<pre>";
|
||||
// var_dump($row);
|
||||
// echo "</pre>";
|
||||
// $status_class = ($row['status_acc'] == 2) ? 'style="text-decoration:line-through"' : '';
|
||||
$html .= '<tr>
|
||||
<td class="text-center">' . $no . '</td>
|
||||
<td>' . datetime_to_id($row['tgl']) . '</td>
|
||||
<td>' . $row['nama_ppa'] . ' / ' . $row['jenis_ppa'] . ' / ' . $row['rolename'] . '</td>
|
||||
<td>' . (($row['jenis_ppa'] != 'Gizi') ? 'S : ' . $row['evaluasi_s'] . '<hr>O : ' . $row['evaluasi_o'] . '<hr>A : ' . $row['evaluasi_a'] . '<hr>P : ' . $row['evaluasi_p'] . '<br>' : 'A : ' . $row['evaluasi_s'] . '<hr>D : ' . $row['evaluasi_o'] . '<hr>I : ' . $row['evaluasi_a'] . '<hr>ME : ' . $row['evaluasi_p'] . '<br>') . '</td>
|
||||
<td>' . $row['implementasi'] . '</td>
|
||||
<td>' . $row['review'] . '</td>
|
||||
</tr>';
|
||||
$no++;
|
||||
}
|
||||
}
|
||||
|
||||
$html .= '</tbody></table>';
|
||||
|
||||
echo $datatable_css . $datatable_bootstrap4_css . $datepicker_css;
|
||||
echo '<style>
|
||||
#tbl_hist_cprj_wrapper .dataTables_filter {
|
||||
text-align:left !mportant;
|
||||
}</style>';
|
||||
echo $datatable_js . $datatable_bootstrap4_js . $datepicker_js . $datepicker_id_js . '
|
||||
<script src="' . _LIB_ . 'DataTables/FixedHeader-3.1.4/js/dataTables.fixedHeader.min.js"></script>
|
||||
<script src="' . _LIB_ . 'typing.js"></script>
|
||||
<script src="' . _LIB_ . 'Inputmask/dist/min/jquery.inputmask.bundle.min.js"></script>';
|
||||
echo '<script>
|
||||
$(".mask-date-default").inputmask("9999-99-99");
|
||||
$(".datepicker-default").datepicker({"format":"yyyy-mm-dd","language":"id","endDate":"0d"});
|
||||
|
||||
function draw_hist_table() {
|
||||
' . $id_table . ' = $("#' . $id_table . '").DataTable({
|
||||
"orderCellsTop": true,
|
||||
"dom" : "<\'row text-left\'<\'col-sm-3 col-md-3 \'f><\'col-sm-6 col-md-6\'><\'col-sm-3 col-md-3\'l>>" +
|
||||
"<\'row\'<\'col-md-12\'tr>>" +
|
||||
"<\'row\'<\'col-sm-6 col-md-6\'i><\'col-sm-6 col-md-6\'p>>",
|
||||
"ordering" : true,
|
||||
"columnDefs": [
|
||||
{ "name": "no", "targets": 0, searchable : false, orderable : true },
|
||||
{ "name": "tgl", "targets": 1, searchable : true, orderable : true },
|
||||
{ "name": "namappa", "targets": 1, searchable : false, orderable : false },
|
||||
{ "name": "soap", "targets": 3, searchable : false, orderable : false },
|
||||
{ "name": "review", "targets": 4, searchable : false, orderable : false },
|
||||
],
|
||||
"language":{
|
||||
"decimal": ",",
|
||||
"emptyTable": "Tidak terdapat data",
|
||||
"info": "Menampilkan _START_ s/d _END_ dari _TOTAL_ data",
|
||||
"infoEmpty": "Data kosong",
|
||||
"infoFiltered": "(difilter dari _MAX_ total data)",
|
||||
"infoPostFix": "",
|
||||
"thousands": ".",
|
||||
"lengthMenu": "Tampilkan _MENU_ data",
|
||||
"loadingRecords": "Menunggu...",
|
||||
"processing": "Memproses...",
|
||||
"search": "Pencarian :",
|
||||
"zeroRecords": "Tidak ditemukan data yang cocok",
|
||||
"paginate": {
|
||||
"first": "⇤",
|
||||
"last": "⇥",
|
||||
"next": "»",
|
||||
"previous": "«"
|
||||
},
|
||||
"aria": {
|
||||
"sortAscending": ": activate to sort column ascending",
|
||||
"sortDescending": ": activate to sort column descending"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return ' . $id_table . ';
|
||||
}
|
||||
$(document).ready(function(){
|
||||
|
||||
' . $id_table . ' = draw_hist_table();
|
||||
|
||||
$("#btn_filter_cprj").click(function(){
|
||||
tgl_awal = $("#tgl_awal").val();
|
||||
tgl_akhir = $("#tgl_akhir").val();
|
||||
$.post("' . _BASE_ . 'rajal/history_cprj.php?filter=1&' . http_build_query($_REQUEST) . '",{tgl_awal,tgl_akhir},function(data){
|
||||
' . $id_table . '.destroy();
|
||||
$("#' . $id_table . ' tbody").html("");
|
||||
$.each(data.data,function(k,v){
|
||||
|
||||
$("#' . $id_table . ' tbody").append("<tr>"+
|
||||
"<td>"+v.no+"</td>"+
|
||||
"<td>"+v.tgl+"</td>"+
|
||||
"<td>"+v.nama_ppa+" / "+v.jenis_ppa+"</td>"+
|
||||
"<td>"+v.soap+"</td>"+
|
||||
"<td>"+v.review+"</td>"+
|
||||
"</tr>");
|
||||
});
|
||||
draw_hist_table();
|
||||
},"json");
|
||||
/*' . $id_table . '.serverSide = true;
|
||||
' . $id_table . '.ajax.url("' . _BASE_ . 'rajal/history_cprj.php?filter=1&' . http_build_query($_REQUEST) . '&tgl_awal="+tgl_awal+"&tgl_akhir="+tgl_akhir).load();*/
|
||||
});
|
||||
});
|
||||
</script>';
|
||||
echo $html;
|
||||
}
|
||||
|
After Width: | Height: | Size: 127 B |
|
After Width: | Height: | Size: 874 B |
|
After Width: | Height: | Size: 62 B |
|
After Width: | Height: | Size: 63 B |
|
After Width: | Height: | Size: 57 B |
|
After Width: | Height: | Size: 48 B |
|
After Width: | Height: | Size: 47 B |
|
After Width: | Height: | Size: 57 B |
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
$q = strtolower($_GET["q"]);
|
||||
if (!$q) return;
|
||||
|
||||
include("../../core/main.php");
|
||||
|
||||
// Replace "TABLE_NAME" below with the table you'd like to extract data from
|
||||
$data = $db->query( "SELECT icd_code FROM icd" )
|
||||
or die( mysqli_error($connect) );
|
||||
|
||||
// Replace "COLUMN_ONE" below with the column you'd like to search through
|
||||
// In between the if/then statement, you may present a string of text
|
||||
// you'd like to appear in the textbox.
|
||||
while( $row = mysqli_fetch_array( $data )){
|
||||
if ( strpos( strtolower( $row['icd_code'] ), $q ) !== false ) {
|
||||
echo $row['icd_code']."\n";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
session_start();
|
||||
include("../../core/main.php");
|
||||
//kondisi get no mr untuk pembayaran
|
||||
header("Content-Type: text/html; charset=ISO-8859-15");
|
||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
?>
|
||||
<div id="finished">
|
||||
<?php
|
||||
|
||||
//remove
|
||||
if(!empty($_GET['IDXDAFTAR'])){
|
||||
$db->query("DELETE FROM t_resep WHERE IDXRESEP ='".$_SESSION['IDXRESEP']."' AND IDXDAFTAR ='".$_GET['IDXDAFTAR']."'")or die($db->query());
|
||||
echo "<div style='margin:5px; padding:5px; border:1px solid #CCC; background-color:#F3FFCE'><strong>Delete Succesfull!</strong></div>";
|
||||
unset($_SESSION['IDXRESEP']);
|
||||
}
|
||||
?>
|
||||
<form name="frm_list2" action="" method="post" enctype="multipart/form-data">
|
||||
<table width="100%" border="0">
|
||||
<tr>
|
||||
<th>Actions</th>
|
||||
<th>Nama Obat</th>
|
||||
<th>Kode Obat</th>
|
||||
<th>Jumlah</th>
|
||||
<th>Aturan Pakai</th>
|
||||
<th>Keterangan</th>
|
||||
</tr>
|
||||
<?php
|
||||
//list resep
|
||||
$qry_resep = $db->query("SELECT * FROM t_resep WHERE IDXDAFTAR = '".$_GET['IDXDAFTAR']."'");
|
||||
foreach($qry_resep->fetchAll() as $data){
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php $_SESSION['IDXRESEP'] = $data['IDXRESEP']; ?>
|
||||
<input type="hidden" class="text" size="5" name="IDXDAFTAR" value="<?php echo $data['IDXDAFTAR']; ?>" id="IDXDAFTAR" />
|
||||
<a href="#" onclick="javascript: MyAjaxRequest('del','rajal/inc/delete.php?IDXDAFTAR=','IDXDAFTAR'); Effect.Appear('del'); return false;"><div align="center" class="text"> Hapus </div></a></td>
|
||||
<td><?php echo $data['NAMAOBAT']; ?></td>
|
||||
<td><?php echo $data['KDOBAT']; ?></td>
|
||||
<td><?php echo $data['JUMLAH']; ?></td>
|
||||
<td><?php echo $data['ATURANPAKAI']; ?></td>
|
||||
<td><?php echo $data['KETERANGAN'];?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
|
||||
<div style="width:100px; padding:5px;"><a href="#" onclick="javascript: MyAjaxRequest('finished','rajal/finish.php?action=','finished'); Effect.Appear('finish'); return false;">
|
||||
<div align="center" class="text"> Finish </div>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
|
||||
function Terbilang($x)
|
||||
{
|
||||
$abil = array("", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan", "sepuluh", "sebelas");
|
||||
if ($x < 12)
|
||||
return " " . $abil[$x];
|
||||
elseif ($x < 20)
|
||||
return Terbilang($x - 10) . "belas";
|
||||
elseif ($x < 100)
|
||||
return Terbilang($x / 10) . " puluh" . Terbilang($x % 10);
|
||||
elseif ($x < 200)
|
||||
return " seratus" . Terbilang($x - 100);
|
||||
elseif ($x < 1000)
|
||||
return Terbilang($x / 100) . " ratus" . Terbilang($x % 100);
|
||||
elseif ($x < 2000)
|
||||
return " seribu" . Terbilang($x - 1000);
|
||||
elseif ($x < 1000000)
|
||||
return Terbilang($x / 1000) . " ribu" . Terbilang($x % 1000);
|
||||
elseif ($x < 1000000000)
|
||||
return Terbilang($x / 1000000) . " juta" . Terbilang($x % 1000000);
|
||||
}
|
||||
|
||||
function nomr(){
|
||||
$sql="select LPAD(nomor,6,'0') as nomor from m_maxnomr";
|
||||
$query = $db->query($sql);
|
||||
$data = $query->fetchAll()[0];
|
||||
echo $data['nomor'];
|
||||
}
|
||||
|
||||
function nobyr(){
|
||||
$sql="select LPAD(nomor,6,'0') as nomor from m_maxnobyr";
|
||||
$query = $db->query($sql);
|
||||
$data = $query->fetchAll()[0];
|
||||
echo $data['nomor'];
|
||||
}
|
||||
|
||||
|
||||
function datediff($d1, $d2){
|
||||
$d1 = (is_string($d1) ? strtotime($d1) : $d1);
|
||||
$d2 = (is_string($d2) ? strtotime($d2) : $d2);
|
||||
$diff_secs = abs($d1 - $d2);
|
||||
$base_year = min(date("Y", $d1), date("Y", $d2));
|
||||
$diff = mktime(0, 0, $diff_secs, 1, 1, $base_year);
|
||||
return array(
|
||||
"years" => date("Y", $diff) - $base_year,
|
||||
"months_total" => (date("Y", $diff) - $base_year) * 12 + date("n", $diff) - 1,
|
||||
"months" => date("n", $diff) - 1,
|
||||
"days_total" => floor($diff_secs / (3600 * 24)),
|
||||
"days" => date("j", $diff) - 1,
|
||||
"hours_total" => floor($diff_secs / 3600),
|
||||
"hours" => date("G", $diff),
|
||||
"minutes_total" => floor($diff_secs / 60),
|
||||
"minutes" => (int) date("i", $diff),
|
||||
"seconds_total" => $diff_secs,
|
||||
"seconds" => (int) date("s", $diff)
|
||||
);
|
||||
}
|
||||
|
||||
function getRealIpAddr() {
|
||||
if(!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
$ip=$_SERVER['HTTP_CLIENT_IP']; // share internet
|
||||
} elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
$ip=$_SERVER['HTTP_X_FORWARDED_FOR']; // pass from proxy
|
||||
} else {
|
||||
$ip=$_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
return $ip;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
function writeShoppingCart() {
|
||||
$cart = $_SESSION['cart'];
|
||||
if (!$cart) {
|
||||
return '<p>Anda Belum Memilih List Data Pembayaran</p>';
|
||||
} else {
|
||||
// Parse the cart session variable
|
||||
$items = explode(',',$cart);
|
||||
$s = (count($items) > 1) ? 's':'';
|
||||
return '<p style="border:1px solid #CCC; color:green; padding:10px;">Anda Telah Memilih <a href="index.php">'.count($items).' item'.$s.'</a></p>';
|
||||
}
|
||||
}
|
||||
|
||||
function showCart() {
|
||||
global $db;
|
||||
$cart = $_SESSION['cart'];
|
||||
if ($cart) {
|
||||
$items = explode(',',$cart);
|
||||
$contents = array();
|
||||
foreach ($items as $item) {
|
||||
$contents[$item] = (isset($contents[$item])) ? $contents[$item] + 1 : 1;
|
||||
}
|
||||
$output[] = '<form action="index.php?action=update" method="post" id="cart">';
|
||||
$output[] = '<table >';
|
||||
foreach ($contents as $id=>$qty) {
|
||||
$sql = 'SELECT * FROM m_tarif WHERE kode = '.$id;
|
||||
$result = $db->query($sql);
|
||||
$row = $result->fetch();
|
||||
extract($row);
|
||||
$output[] = '<tr>';
|
||||
$output[] = '<td>
|
||||
<div style="padding:2px; background:#FFC; border:1px solid #CCC;">
|
||||
<a href="index.php?action=delete&id='.$id.'">Remove</a>
|
||||
</div>
|
||||
</td>';
|
||||
$output[] = '<td>'.$row['nama_jasa'].'</td>';
|
||||
$output[] = '<td>Rp. '.number_format($row['tarif'],0).'</td>';
|
||||
$output[] = '<td><input type="text" class="text" name="qty'.$id.'" value="'.$qty.'" size="2" maxlength="3" />
|
||||
<input type="hidden" class="text" name="tarif'.$id.'" value="'.$row['tarif'].'" size="2" maxlength="3" />
|
||||
<input type="hidden" class="text" name="kode'.$id.'" value="'.$row['kode'].'" size="2" maxlength="3" />
|
||||
<input type="hidden" class="text" name="nama'.$id.'" value="'.$row['nama_jasa'].'" size="2" maxlength="3" />';
|
||||
$output[] = '<td>Rp. '.$row['tarif'] * $qty.'</td>';
|
||||
$total += $row['tarif'] * $qty;
|
||||
$_SESSION['total'] = $total;
|
||||
$output[] = '</tr>';
|
||||
}
|
||||
$output[] = '</table>';
|
||||
$output[] = '<p>Grand total: <strong>Rp '.number_format($total, 0).'</strong></p>';
|
||||
$output[] = '<div><button type="submit" name="refresh" class="text">save cart</button></div>';
|
||||
$output[] = '</form>';
|
||||
} else {
|
||||
$output[] = '<p>Anda Belum Memilih List Data Pembayaran.</p>';
|
||||
}
|
||||
return join('',$output);
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
include("../../core/main.php");
|
||||
$host = $hostname;
|
||||
$user = $username;
|
||||
$pass = $password;
|
||||
$name = $database;
|
||||
$db = &new MySQL($host,$user,$pass,$name);
|
||||
?>
|
||||
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
/**
|
||||
* MySQL Database Connection Class
|
||||
* @access public
|
||||
* @package SPLIB
|
||||
*/
|
||||
class MySQL {
|
||||
/**
|
||||
* MySQL server hostname
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $host;
|
||||
|
||||
/**
|
||||
* MySQL username
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $dbUser;
|
||||
|
||||
/**
|
||||
* MySQL user's password
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $dbPass;
|
||||
|
||||
/**
|
||||
* Name of database to use
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $dbName;
|
||||
|
||||
/**
|
||||
* MySQL Resource link identifier stored here
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $dbConn;
|
||||
|
||||
/**
|
||||
* Stores error messages for connection errors
|
||||
* @access private
|
||||
* @var string
|
||||
*/
|
||||
var $connectError;
|
||||
|
||||
/**
|
||||
* MySQL constructor
|
||||
* @param string host (MySQL server hostname)
|
||||
* @param string dbUser (MySQL User Name)
|
||||
* @param string dbPass (MySQL User Password)
|
||||
* @param string dbName (Database to select)
|
||||
* @access public
|
||||
*/
|
||||
function MySQL ($host,$dbUser,$dbPass,$dbName) {
|
||||
$this->host=$host;
|
||||
$this->dbUser=$dbUser;
|
||||
$this->dbPass=$dbPass;
|
||||
$this->dbName=$dbName;
|
||||
$this->connectToDb();
|
||||
}
|
||||
|
||||
/**
|
||||
* Establishes connection to MySQL and selects a database
|
||||
* @return void
|
||||
* @access private
|
||||
*/
|
||||
function connectToDb () {
|
||||
// Make connection to MySQL server
|
||||
if (!$this->dbConn = @mysql_connect($this->host,
|
||||
$this->dbUser,
|
||||
$this->dbPass)) {
|
||||
trigger_error('Could not connect to server');
|
||||
$this->connectError=true;
|
||||
// Select database
|
||||
} else if ( !@mysql_select_db($this->dbName,$this->dbConn) ) {
|
||||
trigger_error('Could not select database');
|
||||
$this->connectError=true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks for MySQL errors
|
||||
* @return boolean
|
||||
* @access public
|
||||
*/
|
||||
function isError () {
|
||||
if ( $this->connectError )
|
||||
return true;
|
||||
$error=mysql_error ($this->dbConn);
|
||||
if ( empty ($error) )
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an instance of MySQLResult to fetch rows with
|
||||
* @param $sql string the database query to run
|
||||
* @return MySQLResult
|
||||
* @access public
|
||||
*/
|
||||
function query($sql) {
|
||||
if (!$queryResource=$db->query($sql,$this->dbConn))
|
||||
trigger_error ('Query failed: '.mysql_error($this->dbConn).
|
||||
' SQL: '.$sql);
|
||||
return new MySQLResult($this,$queryResource);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* MySQLResult Data Fetching Class
|
||||
* @access public
|
||||
* @package SPLIB
|
||||
*/
|
||||
class MySQLResult {
|
||||
/**
|
||||
* Instance of MySQL providing database connection
|
||||
* @access private
|
||||
* @var MySQL
|
||||
*/
|
||||
var $mysql;
|
||||
|
||||
/**
|
||||
* Query resource
|
||||
* @access private
|
||||
* @var resource
|
||||
*/
|
||||
var $query;
|
||||
|
||||
/**
|
||||
* MySQLResult constructor
|
||||
* @param object mysql (instance of MySQL class)
|
||||
* @param resource query (MySQL query resource)
|
||||
* @access public
|
||||
*/
|
||||
function MySQLResult(& $mysql,$query) {
|
||||
$this->mysql=& $mysql;
|
||||
$this->query=$query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches a row from the result
|
||||
* @return array
|
||||
* @access public
|
||||
*/
|
||||
function fetch () {
|
||||
if ( $row=mysqli_fetch_array($this->query,MYSQL_ASSOC) ) {
|
||||
return $row;
|
||||
} else if ( $this->size() > 0 ) {
|
||||
mysql_data_seek($this->query,0);
|
||||
return false;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows selected
|
||||
* @return int
|
||||
* @access public
|
||||
*/
|
||||
function size () {
|
||||
return $this->query->numRows();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ID of the last row inserted
|
||||
* @return int
|
||||
* @access public
|
||||
*/
|
||||
function insertID () {
|
||||
return mysqli_insert_id($this->mysql->dbConn);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks for MySQL errors
|
||||
* @return boolean
|
||||
* @access public
|
||||
*/
|
||||
function isError () {
|
||||
return $this->mysql->isError();
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
session_start();
|
||||
//kondisi get no mr untuk pembayaran
|
||||
header("Content-Type: text/html; charset=ISO-8859-15");
|
||||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
require_once('mysql.class.php');
|
||||
// Include database connection
|
||||
require_once('global.inc.php');
|
||||
// Include functions
|
||||
require_once('functions.inc.php');
|
||||
require_once('function.php');
|
||||
|
||||
//kondisi cek no rm
|
||||
if(!empty($_GET['cek_rm'])){
|
||||
$sql = "SELECT a.NOMR,b.NAMA
|
||||
FROM t_pendaftaran a, m_pasien b
|
||||
where tglreg=current_date() and a.nomr=b.nomr and a.nomr='".htmlspecialchars($_GET['cek_rm'])."'";
|
||||
$qry = $db->query($sql);
|
||||
$data = $qry->fetchAll()[0];
|
||||
|
||||
if($_GET['cek_rm'] == $data['NOMR']){
|
||||
echo "<input type='text' class='text' name='NAMA' value='". $data['NAMA'] ."'> No Mr
|
||||
<input type='text' class='text' name='NOMR' value='". $data['NOMR'] ."'> ";
|
||||
}else{
|
||||
?><input onblur="javascript: MyAjaxRequest('all','inc/process.php?cek_rm=','cek_rm'); Effect.appear('all'); return false;" type='text' class='text' name='NAMA'> No MR tidak Terdaftar
|
||||
<input type="hidden" name="IDXDAFTAR" value="<?php echo $data['IDXDAFTAR']; ?>" />
|
||||
<?php
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(!empty($_GET['jenis'])){
|
||||
$sql_keperawatan = "SELECT *
|
||||
FROM m_diagnosa_keperawatan
|
||||
WHERE jenis = '".$_GET['jenis']."'";
|
||||
$get_keperawatan = $db->query($sql_keperawatan);
|
||||
?>
|
||||
<table width="95%" border="0" class="tb">
|
||||
<tr>
|
||||
<th width="3%">Pilih</th>
|
||||
<th width="9%">TGL / JAM</th>
|
||||
<th width="33%">DIAGNOSA KEPERAWATAN</th>
|
||||
<th width="11%">TUJUAN</th>
|
||||
<th width="27%">RENCANA KEPERAWATAN</th>
|
||||
<th width="17%">RASIONAL</th>
|
||||
</tr>
|
||||
<?php foreach($get_keperawatan->fetchAll() as $dk){ ?>
|
||||
<tr <?php echo "class =";
|
||||
$count++;
|
||||
if ($count % 2) {
|
||||
echo "tr1"; }
|
||||
else {
|
||||
echo "tr2";
|
||||
}
|
||||
?> valign="top">
|
||||
<td align="center"><input type="checkbox" name="ck<?=$dk['idxd_perawat']?>" /></td>
|
||||
<td><input class="text" size="15" name="tgl<?=$dk['idxd_perawat']?>" type="text" value="<?=date("Y-m-d")?>"/></td>
|
||||
<td><?=$dk['diagnosa']?><input type="hidden" name="diagnosa" value="<?=$dk['diagnosa']?>" /></td>
|
||||
<td><?=$dk['tujuan']?><input type="hidden" name="tujuan" value="<?=$dk['tujuan']?>" /></td>
|
||||
<td><?=$dk['rencana_keperawatan']?>
|
||||
<input type="hidden" name="rk" value="<?=$dk['rencana_keperawatan']?>" /></td>
|
||||
<td><?=$dk['rasional']?>
|
||||
<input type="hidden" name="rk2" value="<?=$dk['rasional']?>" /></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
session_start();
|
||||
include("../core/main.php");
|
||||
?>
|
||||
|
||||
<?php
|
||||
$myquery = "SELECT a.nomr, a.kirimdari, a.dokterpengirim AS dokter_penanggungjawab, a.masukrs, a.noruang, a.nott, b.NAMA, b.ALAMAT, b.JENISKELAMIN, b.TGLLAHIR, c.NAMA AS CARABAYAR, a.id_admission, a.noruang, d.NAMA AS POLY, e.NAMADOKTER, f.kelas, f.nama AS nm_ruang, TGLLAHIR AS TGLLAHIR1, a.statusbayar
|
||||
FROM t_admission a
|
||||
JOIN m_pasien b ON a.nomr=b.NOMR
|
||||
JOIN m_carabayar c ON a.statusbayar=c.KODE
|
||||
JOIN m_ruang d ON d.no=a.kirimdari
|
||||
JOIN m_ruang f ON f.no=a.noruang
|
||||
JOIN m_dokter e ON a.dokterpengirim=e.KDDOKTER
|
||||
WHERE a.id_admission='".$_GET["id_admission"]."'";
|
||||
$get = $db->query($myquery);
|
||||
$userdata = $get->fetchAll()[0];
|
||||
$id_admission = $userdata['id_admission'];
|
||||
$nomr = $userdata['nomr'];
|
||||
$noruang = $userdata['noruang'];
|
||||
$kdpoly = $userdata['kirimdari'];
|
||||
$kddokter = $userdata['dokter_penanggungjawab'];
|
||||
$tglreg = $userdata['TGLREG'];
|
||||
$kelas = $userdata['kelas'];
|
||||
$masukrs = $userdata['masukrs'];
|
||||
$jk = $userdata['JENISKELAMIN'];
|
||||
|
||||
$db->query("update t_billranap set NOMR='$nomr' where IDXDAFTAR='$_GET[id_admission]'");
|
||||
$db->query("update t_bayarranap set NOMR='$nomr' where IDXDAFTAR='$_GET[id_admission]'");
|
||||
?>
|
||||
|
||||
<form action="ranap/save_perjalanan_penyakit.php" name="perjalanan_penyakit" method="post" id="perjalanan_penyakit">
|
||||
<!--<input type="hidden" name="id_admission" value="<?php echo $_POST['id_admission'];?>" />
|
||||
<input type="hidden" name="nomr" value="<?php echo $_POST['nomr'];?>" />
|
||||
<input type="hidden" name="noruang" value="<?php echo $_POST['noruang'];?>" />-->
|
||||
|
||||
<input type="hidden" name="id_admission" value="<?php echo $id_admission;?>" />
|
||||
<input type="hidden" name="nomr" value="<?php echo $nomr;?>" />
|
||||
<input type="hidden" name="noruang" value="<?php echo $noruang;?>" />
|
||||
<input type="hidden" name="kelas" value="<?php echo $kelas;?>" />
|
||||
<input type="hidden" name="kddokter" value="<?php echo $kddokter;?>" />
|
||||
<input type="hidden" name="kdpoly" value="<?php echo $kdpoly;?>" />
|
||||
<input type="hidden" name="masukrs" value="<?php echo $masukrs;?>" />
|
||||
<input type="hidden" name="jk" value="<?php echo $jk;?>" />
|
||||
<table width="95%" class="tb" border="0">
|
||||
<tr>
|
||||
<td width="22%">Tanggal / Jam</td>
|
||||
<td width="78%"><strong><?php echo date("d/m/Y"); ?></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Perjalanan Penyakit</td>
|
||||
<td><textarea name="perjalanan_penyakit" cols="65" rows="4" class="text" id="perjalanan_penyakit"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Intruksi Dokter</td>
|
||||
<td><textarea name="intruksi_dokter" cols="65" rows="4" class="text" id="intruksi_dokter"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td>
|
||||
<input type="submit" name="Submit" value="Simpan" class="text" onclick="newsubmitform (document.getElementById('perjalanan_penyakit'),'ranap/save_perjalanan_penyakit.php','valid_perjalanan_penyakit',validatetask); return false;"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div id="valid_perjalanan_penyakit" >
|
||||
<?php include("save_perjalanan_penyakit.php"); ?>
|
||||
</div>
|
||||
<div id="autocompletediv" class="autocomp"></div>
|
||||
<br />
|
||||
<hr/>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$q = strtolower( $_GET["q"] );
|
||||
if (!$q) return;
|
||||
|
||||
include("../../core/main.php");
|
||||
|
||||
// Replace "TABLE_NAME" below with the table you'd like to extract data from
|
||||
$data = $db->query( "SELECT icd_code,jenis_penyakit FROM icd" )
|
||||
or die( mysqli_error($connect) );
|
||||
|
||||
// Replace "COLUMN_ONE" below with the column you'd like to search through
|
||||
// In between the if/then statement, you may present a string of text
|
||||
// you'd like to appear in the textbox.
|
||||
while( $row = mysqli_fetch_array( $data )){
|
||||
if ( strpos( strtolower( $row['icd_code'] ), $q ) !== false ) {
|
||||
echo $row['icd_code']."-".$row['jenis_penyakit']."\n";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,416 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Page not found</title>
|
||||
<style>
|
||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||
body {margin:0}
|
||||
article,
|
||||
aside,
|
||||
details,
|
||||
figcaption,
|
||||
figure,
|
||||
footer,
|
||||
header,
|
||||
hgroup,
|
||||
main,
|
||||
nav,
|
||||
section,
|
||||
summary {display:block}
|
||||
audio,
|
||||
canvas,
|
||||
progress,
|
||||
video {display:inline-block;vertical-align:baseline}
|
||||
audio:not([controls]) {display:none;height:0}
|
||||
[hidden],
|
||||
template {display:none}
|
||||
a {background:transparent}
|
||||
a:active,
|
||||
a:hover {outline:0}
|
||||
abbr[title] {border-bottom:1px dotted}
|
||||
b,
|
||||
strong {font-weight:bold}
|
||||
dfn {font-style:italic}
|
||||
h1 {font-size:2em;margin:0.67em 0}
|
||||
mark {background:#ff0;color:#000}
|
||||
small {font-size:80%}
|
||||
sub,
|
||||
sup {font-size:75%;line-height:0;position:relative;vertical-align:baseline}
|
||||
sup {top:-0.5em}
|
||||
sub {bottom:-0.25em}
|
||||
img {border:0}
|
||||
svg:not(:root) {overflow:hidden}
|
||||
figure {margin:1em 40px}
|
||||
hr {-moz-box-sizing:content-box;box-sizing:content-box;height:0}
|
||||
pre {overflow:auto}
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {font-family:monospace,monospace;font-size:1em}
|
||||
button,
|
||||
input,
|
||||
optgroup,
|
||||
select,
|
||||
textarea {color:inherit;font:inherit;margin:0}
|
||||
button {overflow:visible}
|
||||
button,
|
||||
select {text-transform:none}
|
||||
button,
|
||||
html input[type="button"],
|
||||
input[type="reset"],
|
||||
input[type="submit"] {-webkit-appearance:button;cursor:pointer}
|
||||
button[disabled],
|
||||
html input[disabled] {cursor:default}
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner {border:0;padding:0}
|
||||
input {line-height:normal}
|
||||
input[type="checkbox"],
|
||||
input[type="radio"] {box-sizing:border-box;padding:0}
|
||||
input[type="number"]::-webkit-inner-spin-button,
|
||||
input[type="number"]::-webkit-outer-spin-button {height:auto}
|
||||
input[type="search"] {-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
|
||||
input[type="search"]::-webkit-search-cancel-button,
|
||||
input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||
fieldset {border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}
|
||||
legend {border:0;padding:0}
|
||||
textarea {overflow:auto}
|
||||
optgroup {font-weight:bold}
|
||||
table {border-collapse:collapse;border-spacing:0;table-layout:auto;word-wrap:break-word;word-break:break-all}
|
||||
td,
|
||||
th {padding:0}
|
||||
*,
|
||||
*:before,
|
||||
*:after {-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}
|
||||
html {font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
||||
body {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;line-height:1.42857143;color:#333;background-color:#f9f9f9}
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
textarea {font-family:inherit;font-size:inherit;line-height:inherit}
|
||||
button,
|
||||
input,
|
||||
select[multiple],
|
||||
textarea {background-image:none}
|
||||
a {color:#0181b9;text-decoration:none}
|
||||
a:hover,
|
||||
a:focus {color:#001721;text-decoration:underline}
|
||||
a:focus {outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}
|
||||
img {vertical-align:middle}
|
||||
.img-responsive {display:block;max-width:100%;height:auto}
|
||||
.img-rounded {-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}
|
||||
.img-circle {border-radius:50%}
|
||||
hr {margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}
|
||||
.sr-only {position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}
|
||||
@media print {* {text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important }a,a:visited {text-decoration:underline }a[href]:after {content:" (" attr(href) ")" }abbr[title]:after {content:" (" attr(title) ")" }a[href^="javascript:"]:after,a[href^="#"]:after {content:"" }pre,blockquote {border:1px solid #999;page-break-inside:avoid }thead {display:table-header-group }tr,img {page-break-inside:avoid }img {max-width:100% !important }p,h2,h3 {orphans:3;widows:3 }h2,h3 {page-break-after:avoid }select {background:#fff !important }.navbar {display:none }.table td,.table th {background-color:#fff !important }.btn >.caret,.dropup >.btn >.caret {border-top-color:#000 !important }.label {border:1px solid #000 }.table {border-collapse:collapse !important }.table-bordered th,.table-bordered td {border:1px solid #ddd !important }}
|
||||
.container {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
@media (min-width:768px) {.container {width:750px }}
|
||||
@media (min-width:992px) {.container {width:970px }}
|
||||
@media (min-width:1200px) {.container {width:1170px }}
|
||||
.container-fluid {margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}
|
||||
.row {margin-left:-15px;margin-right:-15px}
|
||||
.row-flush {margin-left:0;margin-right:0}
|
||||
.row-flush [class*="col-"] {padding-left:0 !important;padding-right:0 !important}
|
||||
.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12 {position:relative;min-height:1px;padding-left:15px;padding-right:15px}
|
||||
.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12 {float:left}
|
||||
.col-xs-12 {width:100%}
|
||||
.col-xs-11 {width:91.66666667%}
|
||||
.col-xs-10 {width:83.33333333%}
|
||||
.col-xs-9 {width:75%}
|
||||
.col-xs-8 {width:66.66666667%}
|
||||
.col-xs-7 {width:58.33333333%}
|
||||
.col-xs-6 {width:50%}
|
||||
.col-xs-5 {width:41.66666667%}
|
||||
.col-xs-4 {width:33.33333333%}
|
||||
.col-xs-3 {width:25%}
|
||||
.col-xs-2 {width:16.66666667%}
|
||||
.col-xs-1 {width:8.33333333%}
|
||||
.col-xs-pull-12 {right:100%}
|
||||
.col-xs-pull-11 {right:91.66666667%}
|
||||
.col-xs-pull-10 {right:83.33333333%}
|
||||
.col-xs-pull-9 {right:75%}
|
||||
.col-xs-pull-8 {right:66.66666667%}
|
||||
.col-xs-pull-7 {right:58.33333333%}
|
||||
.col-xs-pull-6 {right:50%}
|
||||
.col-xs-pull-5 {right:41.66666667%}
|
||||
.col-xs-pull-4 {right:33.33333333%}
|
||||
.col-xs-pull-3 {right:25%}
|
||||
.col-xs-pull-2 {right:16.66666667%}
|
||||
.col-xs-pull-1 {right:8.33333333%}
|
||||
.col-xs-pull-0 {right:0%}
|
||||
.col-xs-push-12 {left:100%}
|
||||
.col-xs-push-11 {left:91.66666667%}
|
||||
.col-xs-push-10 {left:83.33333333%}
|
||||
.col-xs-push-9 {left:75%}
|
||||
.col-xs-push-8 {left:66.66666667%}
|
||||
.col-xs-push-7 {left:58.33333333%}
|
||||
.col-xs-push-6 {left:50%}
|
||||
.col-xs-push-5 {left:41.66666667%}
|
||||
.col-xs-push-4 {left:33.33333333%}
|
||||
.col-xs-push-3 {left:25%}
|
||||
.col-xs-push-2 {left:16.66666667%}
|
||||
.col-xs-push-1 {left:8.33333333%}
|
||||
.col-xs-push-0 {left:0%}
|
||||
.col-xs-offset-12 {margin-left:100%}
|
||||
.col-xs-offset-11 {margin-left:91.66666667%}
|
||||
.col-xs-offset-10 {margin-left:83.33333333%}
|
||||
.col-xs-offset-9 {margin-left:75%}
|
||||
.col-xs-offset-8 {margin-left:66.66666667%}
|
||||
.col-xs-offset-7 {margin-left:58.33333333%}
|
||||
.col-xs-offset-6 {margin-left:50%}
|
||||
.col-xs-offset-5 {margin-left:41.66666667%}
|
||||
.col-xs-offset-4 {margin-left:33.33333333%}
|
||||
.col-xs-offset-3 {margin-left:25%}
|
||||
.col-xs-offset-2 {margin-left:16.66666667%}
|
||||
.col-xs-offset-1 {margin-left:8.33333333%}
|
||||
.col-xs-offset-0 {margin-left:0%}
|
||||
@media (min-width:768px) {.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12 {float:left }.col-sm-12 {width:100% }.col-sm-11 {width:91.66666667% }.col-sm-10 {width:83.33333333% }.col-sm-9 {width:75% }.col-sm-8 {width:66.66666667% }.col-sm-7 {width:58.33333333% }.col-sm-6 {width:50% }.col-sm-5 {width:41.66666667% }.col-sm-4 {width:33.33333333% }.col-sm-3 {width:25% }.col-sm-2 {width:16.66666667% }.col-sm-1 {width:8.33333333% }.col-sm-pull-12 {right:100% }.col-sm-pull-11 {right:91.66666667% }.col-sm-pull-10 {right:83.33333333% }.col-sm-pull-9 {right:75% }.col-sm-pull-8 {right:66.66666667% }.col-sm-pull-7 {right:58.33333333% }.col-sm-pull-6 {right:50% }.col-sm-pull-5 {right:41.66666667% }.col-sm-pull-4 {right:33.33333333% }.col-sm-pull-3 {right:25% }.col-sm-pull-2 {right:16.66666667% }.col-sm-pull-1 {right:8.33333333% }.col-sm-pull-0 {right:0% }.col-sm-push-12 {left:100% }.col-sm-push-11 {left:91.66666667% }.col-sm-push-10 {left:83.33333333% }.col-sm-push-9 {left:75% }.col-sm-push-8 {left:66.66666667% }.col-sm-push-7 {left:58.33333333% }.col-sm-push-6 {left:50% }.col-sm-push-5 {left:41.66666667% }.col-sm-push-4 {left:33.33333333% }.col-sm-push-3 {left:25% }.col-sm-push-2 {left:16.66666667% }.col-sm-push-1 {left:8.33333333% }.col-sm-push-0 {left:0% }.col-sm-offset-12 {margin-left:100% }.col-sm-offset-11 {margin-left:91.66666667% }.col-sm-offset-10 {margin-left:83.33333333% }.col-sm-offset-9 {margin-left:75% }.col-sm-offset-8 {margin-left:66.66666667% }.col-sm-offset-7 {margin-left:58.33333333% }.col-sm-offset-6 {margin-left:50% }.col-sm-offset-5 {margin-left:41.66666667% }.col-sm-offset-4 {margin-left:33.33333333% }.col-sm-offset-3 {margin-left:25% }.col-sm-offset-2 {margin-left:16.66666667% }.col-sm-offset-1 {margin-left:8.33333333% }.col-sm-offset-0 {margin-left:0% }}
|
||||
@media (min-width:992px) {.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12 {float:left }.col-md-12 {width:100% }.col-md-11 {width:91.66666667% }.col-md-10 {width:83.33333333% }.col-md-9 {width:75% }.col-md-8 {width:66.66666667% }.col-md-7 {width:58.33333333% }.col-md-6 {width:50% }.col-md-5 {width:41.66666667% }.col-md-4 {width:33.33333333% }.col-md-3 {width:25% }.col-md-2 {width:16.66666667% }.col-md-1 {width:8.33333333% }.col-md-pull-12 {right:100% }.col-md-pull-11 {right:91.66666667% }.col-md-pull-10 {right:83.33333333% }.col-md-pull-9 {right:75% }.col-md-pull-8 {right:66.66666667% }.col-md-pull-7 {right:58.33333333% }.col-md-pull-6 {right:50% }.col-md-pull-5 {right:41.66666667% }.col-md-pull-4 {right:33.33333333% }.col-md-pull-3 {right:25% }.col-md-pull-2 {right:16.66666667% }.col-md-pull-1 {right:8.33333333% }.col-md-pull-0 {right:0% }.col-md-push-12 {left:100% }.col-md-push-11 {left:91.66666667% }.col-md-push-10 {left:83.33333333% }.col-md-push-9 {left:75% }.col-md-push-8 {left:66.66666667% }.col-md-push-7 {left:58.33333333% }.col-md-push-6 {left:50% }.col-md-push-5 {left:41.66666667% }.col-md-push-4 {left:33.33333333% }.col-md-push-3 {left:25% }.col-md-push-2 {left:16.66666667% }.col-md-push-1 {left:8.33333333% }.col-md-push-0 {left:0% }.col-md-offset-12 {margin-left:100% }.col-md-offset-11 {margin-left:91.66666667% }.col-md-offset-10 {margin-left:83.33333333% }.col-md-offset-9 {margin-left:75% }.col-md-offset-8 {margin-left:66.66666667% }.col-md-offset-7 {margin-left:58.33333333% }.col-md-offset-6 {margin-left:50% }.col-md-offset-5 {margin-left:41.66666667% }.col-md-offset-4 {margin-left:33.33333333% }.col-md-offset-3 {margin-left:25% }.col-md-offset-2 {margin-left:16.66666667% }.col-md-offset-1 {margin-left:8.33333333% }.col-md-offset-0 {margin-left:0% }}
|
||||
@media (min-width:1200px) {.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12 {float:left }.col-lg-12 {width:100% }.col-lg-11 {width:91.66666667% }.col-lg-10 {width:83.33333333% }.col-lg-9 {width:75% }.col-lg-8 {width:66.66666667% }.col-lg-7 {width:58.33333333% }.col-lg-6 {width:50% }.col-lg-5 {width:41.66666667% }.col-lg-4 {width:33.33333333% }.col-lg-3 {width:25% }.col-lg-2 {width:16.66666667% }.col-lg-1 {width:8.33333333% }.col-lg-pull-12 {right:100% }.col-lg-pull-11 {right:91.66666667% }.col-lg-pull-10 {right:83.33333333% }.col-lg-pull-9 {right:75% }.col-lg-pull-8 {right:66.66666667% }.col-lg-pull-7 {right:58.33333333% }.col-lg-pull-6 {right:50% }.col-lg-pull-5 {right:41.66666667% }.col-lg-pull-4 {right:33.33333333% }.col-lg-pull-3 {right:25% }.col-lg-pull-2 {right:16.66666667% }.col-lg-pull-1 {right:8.33333333% }.col-lg-pull-0 {right:0% }.col-lg-push-12 {left:100% }.col-lg-push-11 {left:91.66666667% }.col-lg-push-10 {left:83.33333333% }.col-lg-push-9 {left:75% }.col-lg-push-8 {left:66.66666667% }.col-lg-push-7 {left:58.33333333% }.col-lg-push-6 {left:50% }.col-lg-push-5 {left:41.66666667% }.col-lg-push-4 {left:33.33333333% }.col-lg-push-3 {left:25% }.col-lg-push-2 {left:16.66666667% }.col-lg-push-1 {left:8.33333333% }.col-lg-push-0 {left:0% }.col-lg-offset-12 {margin-left:100% }.col-lg-offset-11 {margin-left:91.66666667% }.col-lg-offset-10 {margin-left:83.33333333% }.col-lg-offset-9 {margin-left:75% }.col-lg-offset-8 {margin-left:66.66666667% }.col-lg-offset-7 {margin-left:58.33333333% }.col-lg-offset-6 {margin-left:50% }.col-lg-offset-5 {margin-left:41.66666667% }.col-lg-offset-4 {margin-left:33.33333333% }.col-lg-offset-3 {margin-left:25% }.col-lg-offset-2 {margin-left:16.66666667% }.col-lg-offset-1 {margin-left:8.33333333% }.col-lg-offset-0 {margin-left:0% }}
|
||||
.clearfix:before,
|
||||
.clearfix:after,
|
||||
.container:before,
|
||||
.container:after,
|
||||
.container-fluid:before,
|
||||
.container-fluid:after,
|
||||
.row:before,
|
||||
.row:after {content:" ";display:table}
|
||||
.clearfix:after,
|
||||
.container:after,
|
||||
.container-fluid:after,
|
||||
.row:after {clear:both}
|
||||
.center-block {display:block;margin-left:auto;margin-right:auto}
|
||||
.pull-right {float:right !important}
|
||||
.pull-left {float:left !important}
|
||||
.hide {display:none !important}
|
||||
.show {display:block !important}
|
||||
.invisible {visibility:hidden}
|
||||
.text-hide {font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}
|
||||
.hidden {display:none !important;visibility:hidden !important}
|
||||
.affix {position:fixed}
|
||||
@-ms-viewport {width:device-width}
|
||||
.visible-xs,
|
||||
.visible-sm,
|
||||
.visible-md,
|
||||
.visible-lg {display:none !important}
|
||||
@media (max-width:767px) {.visible-xs {display:block !important }table.visible-xs {display:table }tr.visible-xs {display:table-row !important }th.visible-xs,td.visible-xs {display:table-cell !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.visible-sm {display:block !important }table.visible-sm {display:table }tr.visible-sm {display:table-row !important }th.visible-sm,td.visible-sm {display:table-cell !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.visible-md {display:block !important }table.visible-md {display:table }tr.visible-md {display:table-row !important }th.visible-md,td.visible-md {display:table-cell !important }}
|
||||
@media (min-width:1200px) {.visible-lg {display:block !important }table.visible-lg {display:table }tr.visible-lg {display:table-row !important }th.visible-lg,td.visible-lg {display:table-cell !important }}
|
||||
@media (max-width:767px) {.hidden-xs {display:none !important }}
|
||||
@media (min-width:768px) and (max-width:991px) {.hidden-sm {display:none !important }}
|
||||
@media (min-width:992px) and (max-width:1199px) {.hidden-md {display:none !important }}
|
||||
@media (min-width:1200px) {.hidden-lg {display:none !important }}
|
||||
.visible-print {display:none !important}
|
||||
@media print {.visible-print {display:block !important }table.visible-print {display:table }tr.visible-print {display:table-row !important }th.visible-print,td.visible-print {display:table-cell !important }}
|
||||
@media print {.hidden-print {display:none !important }}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
.h1,
|
||||
.h2,
|
||||
.h3,
|
||||
.h4,
|
||||
.h5,
|
||||
.h6 {font-family:inherit;font-weight:400;line-height:1.1;color:inherit}
|
||||
h1 small,
|
||||
h2 small,
|
||||
h3 small,
|
||||
h4 small,
|
||||
h5 small,
|
||||
h6 small,
|
||||
.h1 small,
|
||||
.h2 small,
|
||||
.h3 small,
|
||||
.h4 small,
|
||||
.h5 small,
|
||||
.h6 small,
|
||||
h1 .small,
|
||||
h2 .small,
|
||||
h3 .small,
|
||||
h4 .small,
|
||||
h5 .small,
|
||||
h6 .small,
|
||||
.h1 .small,
|
||||
.h2 .small,
|
||||
.h3 .small,
|
||||
.h4 .small,
|
||||
.h5 .small,
|
||||
.h6 .small {font-weight:normal;line-height:1;color:#999}
|
||||
h1,
|
||||
.h1,
|
||||
h2,
|
||||
.h2,
|
||||
h3,
|
||||
.h3 {margin-top:20px;margin-bottom:10px}
|
||||
h1 small,
|
||||
.h1 small,
|
||||
h2 small,
|
||||
.h2 small,
|
||||
h3 small,
|
||||
.h3 small,
|
||||
h1 .small,
|
||||
.h1 .small,
|
||||
h2 .small,
|
||||
.h2 .small,
|
||||
h3 .small,
|
||||
.h3 .small {font-size:65%}
|
||||
h4,
|
||||
.h4,
|
||||
h5,
|
||||
.h5,
|
||||
h6,
|
||||
.h6 {margin-top:10px;margin-bottom:10px}
|
||||
h4 small,
|
||||
.h4 small,
|
||||
h5 small,
|
||||
.h5 small,
|
||||
h6 small,
|
||||
.h6 small,
|
||||
h4 .small,
|
||||
.h4 .small,
|
||||
h5 .small,
|
||||
.h5 .small,
|
||||
h6 .small,
|
||||
.h6 .small {font-size:75%}
|
||||
h1,
|
||||
.h1 {font-size:36px}
|
||||
h2,
|
||||
.h2 {font-size:30px}
|
||||
h3,
|
||||
.h3 {font-size:24px}
|
||||
h4,
|
||||
.h4 {font-size:18px}
|
||||
h5,
|
||||
.h5 {font-size:14px}
|
||||
h6,
|
||||
.h6 {font-size:12px}
|
||||
p {margin:0 0 10px}
|
||||
.lead {margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}
|
||||
@media (min-width:768px) {.lead {font-size:21px }}
|
||||
small,
|
||||
.small {font-size:85%}
|
||||
cite {font-style:normal}
|
||||
.text-left {text-align:left}
|
||||
.text-right {text-align:right}
|
||||
.text-center {text-align:center}
|
||||
.text-justify {text-align:justify}
|
||||
.text-muted {color:#999}
|
||||
.text-primary {color:#34495e}
|
||||
a.text-primary:hover {color:#222f3d}
|
||||
.text-success {color:#3c763d}
|
||||
a.text-success:hover {color:#2b542c}
|
||||
.text-info {color:#31708f}
|
||||
a.text-info:hover {color:#245269}
|
||||
.text-warning {color:#8a6d3b}
|
||||
a.text-warning:hover {color:#66512c}
|
||||
.text-danger {color:#a94442}
|
||||
a.text-danger:hover {color:#843534}
|
||||
.bg-primary {color:#fff;background-color:#34495e}
|
||||
a.bg-primary:hover {background-color:#222f3d}
|
||||
.bg-success {background-color:#dff0d8}
|
||||
a.bg-success:hover {background-color:#c1e2b3}
|
||||
.bg-info {background-color:#d9edf7}
|
||||
a.bg-info:hover {background-color:#afd9ee}
|
||||
.bg-warning {background-color:#fcf8e3}
|
||||
a.bg-warning:hover {background-color:#f7ecb5}
|
||||
.bg-danger {background-color:#f2dede}
|
||||
a.bg-danger:hover {background-color:#e4b9b9}
|
||||
.page-header {padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}
|
||||
ul,
|
||||
ol {margin-top:0;margin-bottom:10px}
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol,
|
||||
ol ol {margin-bottom:0}
|
||||
.list-unstyled {padding-left:0;list-style:none}
|
||||
.list-inline {padding-left:0;list-style:none;margin-left:-5px}
|
||||
.list-inline >li {display:inline-block;padding-left:5px;padding-right:5px}
|
||||
dl {margin-top:0;margin-bottom:20px}
|
||||
dt,
|
||||
dd {line-height:1.42857143}
|
||||
dt {font-weight:bold}
|
||||
dd {margin-left:0}
|
||||
@media (min-width:768px) {.dl-horizontal dt {float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }.dl-horizontal dd {margin-left:180px }}
|
||||
abbr[title],
|
||||
abbr[data-original-title] {cursor:help;border-bottom:1px dotted #999}
|
||||
.initialism {font-size:90%;text-transform:uppercase}
|
||||
blockquote {padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}
|
||||
blockquote p:last-child,
|
||||
blockquote ul:last-child,
|
||||
blockquote ol:last-child {margin-bottom:0}
|
||||
blockquote footer,
|
||||
blockquote small,
|
||||
blockquote .small {display:block;font-size:80%;line-height:1.42857143;color:#999}
|
||||
blockquote footer:before,
|
||||
blockquote small:before,
|
||||
blockquote .small:before {content:'\2014 \00A0'}
|
||||
.blockquote-reverse,
|
||||
blockquote.pull-right {padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}
|
||||
.blockquote-reverse footer:before,
|
||||
blockquote.pull-right footer:before,
|
||||
.blockquote-reverse small:before,
|
||||
blockquote.pull-right small:before,
|
||||
.blockquote-reverse .small:before,
|
||||
blockquote.pull-right .small:before {content:''}
|
||||
.blockquote-reverse footer:after,
|
||||
blockquote.pull-right footer:after,
|
||||
.blockquote-reverse small:after,
|
||||
blockquote.pull-right small:after,
|
||||
.blockquote-reverse .small:after,
|
||||
blockquote.pull-right .small:after {content:'\00A0 \2014'}
|
||||
blockquote:before,
|
||||
blockquote:after {content:""}
|
||||
address {margin-bottom:20px;font-style:normal;line-height:1.42857143}
|
||||
|
||||
.oc-icon-chain:before,
|
||||
.icon-chain:before,
|
||||
|
||||
.oc-icon-chain-broken:before,
|
||||
.icon-chain-broken:before {content:"\f127"}
|
||||
|
||||
.close {float:right;font-size:21px;font-weight:bold;line-height:1;color:#000;text-shadow:0 1px 0 #fff;font-family:sans-serif;opacity:0.2;filter:alpha(opacity=20)}
|
||||
.close:hover,
|
||||
.close:focus {color:#000;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}
|
||||
button.close {padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}
|
||||
@font-face {font-family:'FontAwesome';src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=1.0.1');src:url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=1.0.1') format('embedded-opentype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=1.0.1') format('woff'),url('../ui/font/fontawesome-webfont.ttf?v=1.0.1') format('truetype'),url('../library/font-awesome-4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular?v=1.0.1') format('svg');font-weight:normal;font-style:normal}
|
||||
[class^="icon-"],
|
||||
[class*=" icon-"] {font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;display:inline;width:auto;height:auto;line-height:normal;vertical-align:baseline;background-image:none;background-position:0% 0%;background-repeat:repeat;margin-top:0}
|
||||
[class^="icon-"]:before,
|
||||
[class*=" icon-"]:before {text-decoration:inherit;display:inline-block;speak:none}
|
||||
[class^="icon-"].pull-left,
|
||||
[class*=" icon-"].pull-left {margin-right:.3em}
|
||||
[class^="icon-"].pull-right,
|
||||
[class*=" icon-"].pull-right {margin-left:.3em}
|
||||
[class^="oc-icon-"]:before,
|
||||
[class*=" oc-icon-"]:before {display:inline-block;margin-right:8px;font-family:FontAwesome;font-weight:normal;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em;vertical-align:baseline}
|
||||
[class^="oc-icon-"].empty:before,
|
||||
[class*=" oc-icon-"].empty:before {margin-right:0}
|
||||
.icon-lg {font-size:1.33333333em;line-height:0.75em;vertical-align:-15%}
|
||||
.icon-2x {font-size:2em}
|
||||
.icon-3x {font-size:3em}
|
||||
.icon-4x {font-size:4em}
|
||||
.icon-5x {font-size:5em}
|
||||
body {padding-top:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";background:#f3f3f3;color:#405261}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5 {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";text-transform:uppercase}
|
||||
h1 {font-weight:300;font-size:50px;margin-bottom:15px}
|
||||
h1 i[class^="icon-"]:before {font-size:46px}
|
||||
i[class^="icon-"].warning {color:#c84530}
|
||||
h3 {font-size:24px;font-weight:300}
|
||||
p.lead {font-size:16px;font-weight:300}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1><i class="icon-chain-broken warning"></i> Page not found</h1>
|
||||
<p class="lead">The requested page cannot be found.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,48 @@
|
||||
.ac_results {
|
||||
padding: 0px;
|
||||
border: 1px solid black;
|
||||
background-color: white;
|
||||
overflow: hidden;
|
||||
z-index: 99999;
|
||||
}
|
||||
|
||||
.ac_results ul {
|
||||
width: 100%;
|
||||
list-style-position: outside;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.ac_results li {
|
||||
margin: 0px;
|
||||
padding: 2px 5px;
|
||||
cursor: default;
|
||||
display: block;
|
||||
/*
|
||||
if width will be 100% horizontal scrollbar will apear
|
||||
when scroll mode will be used
|
||||
*/
|
||||
/*width: 100%;*/
|
||||
font: menu;
|
||||
font-size: 12px;
|
||||
/*
|
||||
it is very important, if line-height not setted or setted
|
||||
in relative units scroll will be broken in firefox
|
||||
*/
|
||||
line-height: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ac_loading {
|
||||
background: white url('indicator.gif') right center no-repeat;
|
||||
}
|
||||
|
||||
.ac_odd {
|
||||
background-color: #eee;
|
||||
}
|
||||
|
||||
.ac_over {
|
||||
background-color: #0A246A;
|
||||
color: white;
|
||||
}
|
||||
@@ -0,0 +1,759 @@
|
||||
/*
|
||||
* Autocomplete - jQuery plugin 1.0.2
|
||||
*
|
||||
* Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
|
||||
*
|
||||
* Dual licensed under the MIT and GPL licenses:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
* http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* Revision: $Id: jquery.autocomplete.js 5747 2008-06-25 18:30:55Z joern.zaefferer $
|
||||
*
|
||||
*/
|
||||
|
||||
;(function($) {
|
||||
|
||||
$.fn.extend({
|
||||
autocomplete: function(urlOrData, options) {
|
||||
var isUrl = typeof urlOrData == "string";
|
||||
options = $.extend({}, $.Autocompleter.defaults, {
|
||||
url: isUrl ? urlOrData : null,
|
||||
data: isUrl ? null : urlOrData,
|
||||
delay: isUrl ? $.Autocompleter.defaults.delay : 10,
|
||||
max: options && !options.scroll ? 10 : 150
|
||||
}, options);
|
||||
|
||||
// if highlight is set to false, replace it with a do-nothing function
|
||||
options.highlight = options.highlight || function(value) { return value; };
|
||||
|
||||
// if the formatMatch option is not specified, then use formatItem for backwards compatibility
|
||||
options.formatMatch = options.formatMatch || options.formatItem;
|
||||
|
||||
return this.each(function() {
|
||||
new $.Autocompleter(this, options);
|
||||
});
|
||||
},
|
||||
result: function(handler) {
|
||||
return this.bind("result", handler);
|
||||
},
|
||||
search: function(handler) {
|
||||
return this.trigger("search", [handler]);
|
||||
},
|
||||
flushCache: function() {
|
||||
return this.trigger("flushCache");
|
||||
},
|
||||
setOptions: function(options){
|
||||
return this.trigger("setOptions", [options]);
|
||||
},
|
||||
unautocomplete: function() {
|
||||
return this.trigger("unautocomplete");
|
||||
}
|
||||
});
|
||||
|
||||
$.Autocompleter = function(input, options) {
|
||||
|
||||
var KEY = {
|
||||
UP: 38,
|
||||
DOWN: 40,
|
||||
DEL: 46,
|
||||
TAB: 9,
|
||||
RETURN: 13,
|
||||
ESC: 27,
|
||||
COMMA: 188,
|
||||
PAGEUP: 33,
|
||||
PAGEDOWN: 34,
|
||||
BACKSPACE: 8
|
||||
};
|
||||
|
||||
// Create $ object for input element
|
||||
var $input = $(input).attr("autocomplete", "off").addClass(options.inputClass);
|
||||
|
||||
var timeout;
|
||||
var previousValue = "";
|
||||
var cache = $.Autocompleter.Cache(options);
|
||||
var hasFocus = 0;
|
||||
var lastKeyPressCode;
|
||||
var config = {
|
||||
mouseDownOnSelect: false
|
||||
};
|
||||
var select = $.Autocompleter.Select(options, input, selectCurrent, config);
|
||||
|
||||
var blockSubmit;
|
||||
|
||||
// prevent form submit in opera when selecting with return key
|
||||
$.browser.opera && $(input.form).bind("submit.autocomplete", function() {
|
||||
if (blockSubmit) {
|
||||
blockSubmit = false;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
// only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all
|
||||
$input.bind(($.browser.opera ? "keypress" : "keydown") + ".autocomplete", function(event) {
|
||||
// track last key pressed
|
||||
lastKeyPressCode = event.keyCode;
|
||||
switch(event.keyCode) {
|
||||
|
||||
case KEY.UP:
|
||||
event.preventDefault();
|
||||
if ( select.visible() ) {
|
||||
select.prev();
|
||||
} else {
|
||||
onChange(0, true);
|
||||
}
|
||||
break;
|
||||
|
||||
case KEY.DOWN:
|
||||
event.preventDefault();
|
||||
if ( select.visible() ) {
|
||||
select.next();
|
||||
} else {
|
||||
onChange(0, true);
|
||||
}
|
||||
break;
|
||||
|
||||
case KEY.PAGEUP:
|
||||
event.preventDefault();
|
||||
if ( select.visible() ) {
|
||||
select.pageUp();
|
||||
} else {
|
||||
onChange(0, true);
|
||||
}
|
||||
break;
|
||||
|
||||
case KEY.PAGEDOWN:
|
||||
event.preventDefault();
|
||||
if ( select.visible() ) {
|
||||
select.pageDown();
|
||||
} else {
|
||||
onChange(0, true);
|
||||
}
|
||||
break;
|
||||
|
||||
// matches also semicolon
|
||||
case options.multiple && $.trim(options.multipleSeparator) == "," && KEY.COMMA:
|
||||
case KEY.TAB:
|
||||
case KEY.RETURN:
|
||||
if( selectCurrent() ) {
|
||||
// stop default to prevent a form submit, Opera needs special handling
|
||||
event.preventDefault();
|
||||
blockSubmit = true;
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
case KEY.ESC:
|
||||
select.hide();
|
||||
break;
|
||||
|
||||
default:
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(onChange, options.delay);
|
||||
break;
|
||||
}
|
||||
}).focus(function(){
|
||||
// track whether the field has focus, we shouldn't process any
|
||||
// results if the field no longer has focus
|
||||
hasFocus++;
|
||||
}).blur(function() {
|
||||
hasFocus = 0;
|
||||
if (!config.mouseDownOnSelect) {
|
||||
hideResults();
|
||||
}
|
||||
}).click(function() {
|
||||
// show select when clicking in a focused field
|
||||
if ( hasFocus++ > 1 && !select.visible() ) {
|
||||
onChange(0, true);
|
||||
}
|
||||
}).bind("search", function() {
|
||||
// TODO why not just specifying both arguments?
|
||||
var fn = (arguments.length > 1) ? arguments[1] : null;
|
||||
function findValueCallback(q, data) {
|
||||
var result;
|
||||
if( data && data.length ) {
|
||||
for (var i=0; i < data.length; i++) {
|
||||
if( data[i].result.toLowerCase() == q.toLowerCase() ) {
|
||||
result = data[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if( typeof fn == "function" ) fn(result);
|
||||
else $input.trigger("result", result && [result.data, result.value]);
|
||||
}
|
||||
$.each(trimWords($input.val()), function(i, value) {
|
||||
request(value, findValueCallback, findValueCallback);
|
||||
});
|
||||
}).bind("flushCache", function() {
|
||||
cache.flush();
|
||||
}).bind("setOptions", function() {
|
||||
$.extend(options, arguments[1]);
|
||||
// if we've updated the data, repopulate
|
||||
if ( "data" in arguments[1] )
|
||||
cache.populate();
|
||||
}).bind("unautocomplete", function() {
|
||||
select.unbind();
|
||||
$input.unbind();
|
||||
$(input.form).unbind(".autocomplete");
|
||||
});
|
||||
|
||||
|
||||
function selectCurrent() {
|
||||
var selected = select.selected();
|
||||
if( !selected )
|
||||
return false;
|
||||
|
||||
var v = selected.result;
|
||||
previousValue = v;
|
||||
|
||||
if ( options.multiple ) {
|
||||
var words = trimWords($input.val());
|
||||
if ( words.length > 1 ) {
|
||||
v = words.slice(0, words.length - 1).join( options.multipleSeparator ) + options.multipleSeparator + v;
|
||||
}
|
||||
v += options.multipleSeparator;
|
||||
}
|
||||
|
||||
$input.val(v);
|
||||
hideResultsNow();
|
||||
$input.trigger("result", [selected.data, selected.value]);
|
||||
return true;
|
||||
}
|
||||
|
||||
function onChange(crap, skipPrevCheck) {
|
||||
if( lastKeyPressCode == KEY.DEL ) {
|
||||
select.hide();
|
||||
return;
|
||||
}
|
||||
|
||||
var currentValue = $input.val();
|
||||
|
||||
if ( !skipPrevCheck && currentValue == previousValue )
|
||||
return;
|
||||
|
||||
previousValue = currentValue;
|
||||
|
||||
currentValue = lastWord(currentValue);
|
||||
if ( currentValue.length >= options.minChars) {
|
||||
$input.addClass(options.loadingClass);
|
||||
if (!options.matchCase)
|
||||
currentValue = currentValue.toLowerCase();
|
||||
request(currentValue, receiveData, hideResultsNow);
|
||||
} else {
|
||||
stopLoading();
|
||||
select.hide();
|
||||
}
|
||||
};
|
||||
|
||||
function trimWords(value) {
|
||||
if ( !value ) {
|
||||
return [""];
|
||||
}
|
||||
var words = value.split( options.multipleSeparator );
|
||||
var result = [];
|
||||
$.each(words, function(i, value) {
|
||||
if ( $.trim(value) )
|
||||
result[i] = $.trim(value);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
function lastWord(value) {
|
||||
if ( !options.multiple )
|
||||
return value;
|
||||
var words = trimWords(value);
|
||||
return words[words.length - 1];
|
||||
}
|
||||
|
||||
// fills in the input box w/the first match (assumed to be the best match)
|
||||
// q: the term entered
|
||||
// sValue: the first matching result
|
||||
function autoFill(q, sValue){
|
||||
// autofill in the complete box w/the first match as long as the user hasn't entered in more data
|
||||
// if the last user key pressed was backspace, don't autofill
|
||||
if( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) {
|
||||
// fill in the value (keep the case the user has typed)
|
||||
$input.val($input.val() + sValue.substring(lastWord(previousValue).length));
|
||||
// select the portion of the value not typed by the user (so the next character will erase)
|
||||
$.Autocompleter.Selection(input, previousValue.length, previousValue.length + sValue.length);
|
||||
}
|
||||
};
|
||||
|
||||
function hideResults() {
|
||||
clearTimeout(timeout);
|
||||
timeout = setTimeout(hideResultsNow, 200);
|
||||
};
|
||||
|
||||
function hideResultsNow() {
|
||||
var wasVisible = select.visible();
|
||||
select.hide();
|
||||
clearTimeout(timeout);
|
||||
stopLoading();
|
||||
if (options.mustMatch) {
|
||||
// call search and run callback
|
||||
$input.search(
|
||||
function (result){
|
||||
// if no value found, clear the input box
|
||||
if( !result ) {
|
||||
if (options.multiple) {
|
||||
var words = trimWords($input.val()).slice(0, -1);
|
||||
$input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : "") );
|
||||
}
|
||||
else
|
||||
$input.val( "" );
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
if (wasVisible)
|
||||
// position cursor at end of input field
|
||||
$.Autocompleter.Selection(input, input.value.length, input.value.length);
|
||||
};
|
||||
|
||||
function receiveData(q, data) {
|
||||
if ( data && data.length && hasFocus ) {
|
||||
stopLoading();
|
||||
select.display(data, q);
|
||||
autoFill(q, data[0].value);
|
||||
select.show();
|
||||
} else {
|
||||
hideResultsNow();
|
||||
}
|
||||
};
|
||||
|
||||
function request(term, success, failure) {
|
||||
if (!options.matchCase)
|
||||
term = term.toLowerCase();
|
||||
var data = cache.load(term);
|
||||
// recieve the cached data
|
||||
if (data && data.length) {
|
||||
success(term, data);
|
||||
// if an AJAX url has been supplied, try loading the data now
|
||||
} else if( (typeof options.url == "string") && (options.url.length > 0) ){
|
||||
|
||||
var extraParams = {
|
||||
timestamp: +new Date()
|
||||
};
|
||||
$.each(options.extraParams, function(key, param) {
|
||||
extraParams[key] = typeof param == "function" ? param() : param;
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
// try to leverage ajaxQueue plugin to abort previous requests
|
||||
mode: "abort",
|
||||
// limit abortion to this input
|
||||
port: "autocomplete" + input.name,
|
||||
dataType: options.dataType,
|
||||
url: options.url,
|
||||
data: $.extend({
|
||||
q: lastWord(term),
|
||||
limit: options.max
|
||||
}, extraParams),
|
||||
success: function(data) {
|
||||
var parsed = options.parse && options.parse(data) || parse(data);
|
||||
cache.add(term, parsed);
|
||||
success(term, parsed);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match
|
||||
select.emptyList();
|
||||
failure(term);
|
||||
}
|
||||
};
|
||||
|
||||
function parse(data) {
|
||||
var parsed = [];
|
||||
var rows = data.split("\n");
|
||||
for (var i=0; i < rows.length; i++) {
|
||||
var row = $.trim(rows[i]);
|
||||
if (row) {
|
||||
row = row.split("|");
|
||||
parsed[parsed.length] = {
|
||||
data: row,
|
||||
value: row[0],
|
||||
result: options.formatResult && options.formatResult(row, row[0]) || row[0]
|
||||
};
|
||||
}
|
||||
}
|
||||
return parsed;
|
||||
};
|
||||
|
||||
function stopLoading() {
|
||||
$input.removeClass(options.loadingClass);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
$.Autocompleter.defaults = {
|
||||
inputClass: "ac_input",
|
||||
resultsClass: "ac_results",
|
||||
loadingClass: "ac_loading",
|
||||
minChars: 1,
|
||||
delay: 400,
|
||||
matchCase: false,
|
||||
matchSubset: true,
|
||||
matchContains: false,
|
||||
cacheLength: 10,
|
||||
max: 100,
|
||||
mustMatch: false,
|
||||
extraParams: {},
|
||||
selectFirst: true,
|
||||
formatItem: function(row) { return row[0]; },
|
||||
formatMatch: null,
|
||||
autoFill: false,
|
||||
width: 0,
|
||||
multiple: false,
|
||||
multipleSeparator: ", ",
|
||||
highlight: function(value, term) {
|
||||
return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") + ")(?![^<>]*>)(?![^&;]+;)", "gi"), "<strong>$1</strong>");
|
||||
},
|
||||
scroll: true,
|
||||
scrollHeight: 180
|
||||
};
|
||||
|
||||
$.Autocompleter.Cache = function(options) {
|
||||
|
||||
var data = {};
|
||||
var length = 0;
|
||||
|
||||
function matchSubset(s, sub) {
|
||||
if (!options.matchCase)
|
||||
s = s.toLowerCase();
|
||||
var i = s.indexOf(sub);
|
||||
if (i == -1) return false;
|
||||
return i == 0 || options.matchContains;
|
||||
};
|
||||
|
||||
function add(q, value) {
|
||||
if (length > options.cacheLength){
|
||||
flush();
|
||||
}
|
||||
if (!data[q]){
|
||||
length++;
|
||||
}
|
||||
data[q] = value;
|
||||
}
|
||||
|
||||
function populate(){
|
||||
if( !options.data ) return false;
|
||||
// track the matches
|
||||
var stMatchSets = {},
|
||||
nullData = 0;
|
||||
|
||||
// no url was specified, we need to adjust the cache length to make sure it fits the local data store
|
||||
if( !options.url ) options.cacheLength = 1;
|
||||
|
||||
// track all options for minChars = 0
|
||||
stMatchSets[""] = [];
|
||||
|
||||
// loop through the array and create a lookup structure
|
||||
for ( var i = 0, ol = options.data.length; i < ol; i++ ) {
|
||||
var rawValue = options.data[i];
|
||||
// if rawValue is a string, make an array otherwise just reference the array
|
||||
rawValue = (typeof rawValue == "string") ? [rawValue] : rawValue;
|
||||
|
||||
var value = options.formatMatch(rawValue, i+1, options.data.length);
|
||||
if ( value === false )
|
||||
continue;
|
||||
|
||||
var firstChar = value.charAt(0).toLowerCase();
|
||||
// if no lookup array for this character exists, look it up now
|
||||
if( !stMatchSets[firstChar] )
|
||||
stMatchSets[firstChar] = [];
|
||||
|
||||
// if the match is a string
|
||||
var row = {
|
||||
value: value,
|
||||
data: rawValue,
|
||||
result: options.formatResult && options.formatResult(rawValue) || value
|
||||
};
|
||||
|
||||
// push the current match into the set list
|
||||
stMatchSets[firstChar].push(row);
|
||||
|
||||
// keep track of minChars zero items
|
||||
if ( nullData++ < options.max ) {
|
||||
stMatchSets[""].push(row);
|
||||
}
|
||||
};
|
||||
|
||||
// add the data items to the cache
|
||||
$.each(stMatchSets, function(i, value) {
|
||||
// increase the cache size
|
||||
options.cacheLength++;
|
||||
// add to the cache
|
||||
add(i, value);
|
||||
});
|
||||
}
|
||||
|
||||
// populate any existing data
|
||||
setTimeout(populate, 25);
|
||||
|
||||
function flush(){
|
||||
data = {};
|
||||
length = 0;
|
||||
}
|
||||
|
||||
return {
|
||||
flush: flush,
|
||||
add: add,
|
||||
populate: populate,
|
||||
load: function(q) {
|
||||
if (!options.cacheLength || !length)
|
||||
return null;
|
||||
/*
|
||||
* if dealing w/local data and matchContains than we must make sure
|
||||
* to loop through all the data collections looking for matches
|
||||
*/
|
||||
if( !options.url && options.matchContains ){
|
||||
// track all matches
|
||||
var csub = [];
|
||||
// loop through all the data grids for matches
|
||||
for( var k in data ){
|
||||
// don't search through the stMatchSets[""] (minChars: 0) cache
|
||||
// this prevents duplicates
|
||||
if( k.length > 0 ){
|
||||
var c = data[k];
|
||||
$.each(c, function(i, x) {
|
||||
// if we've got a match, add it to the array
|
||||
if (matchSubset(x.value, q)) {
|
||||
csub.push(x);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
return csub;
|
||||
} else
|
||||
// if the exact item exists, use it
|
||||
if (data[q]){
|
||||
return data[q];
|
||||
} else
|
||||
if (options.matchSubset) {
|
||||
for (var i = q.length - 1; i >= options.minChars; i--) {
|
||||
var c = data[q.substr(0, i)];
|
||||
if (c) {
|
||||
var csub = [];
|
||||
$.each(c, function(i, x) {
|
||||
if (matchSubset(x.value, q)) {
|
||||
csub[csub.length] = x;
|
||||
}
|
||||
});
|
||||
return csub;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
$.Autocompleter.Select = function (options, input, select, config) {
|
||||
var CLASSES = {
|
||||
ACTIVE: "ac_over"
|
||||
};
|
||||
|
||||
var listItems,
|
||||
active = -1,
|
||||
data,
|
||||
term = "",
|
||||
needsInit = true,
|
||||
element,
|
||||
list;
|
||||
|
||||
// Create results
|
||||
function init() {
|
||||
if (!needsInit)
|
||||
return;
|
||||
element = $("<div/>")
|
||||
.hide()
|
||||
.addClass(options.resultsClass)
|
||||
.css("position", "absolute")
|
||||
.appendTo(document.body);
|
||||
|
||||
list = $("<ul/>").appendTo(element).mouseover( function(event) {
|
||||
if(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {
|
||||
active = $("li", list).removeClass(CLASSES.ACTIVE).index(target(event));
|
||||
$(target(event)).addClass(CLASSES.ACTIVE);
|
||||
}
|
||||
}).click(function(event) {
|
||||
$(target(event)).addClass(CLASSES.ACTIVE);
|
||||
select();
|
||||
// TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus
|
||||
input.focus();
|
||||
return false;
|
||||
}).mousedown(function() {
|
||||
config.mouseDownOnSelect = true;
|
||||
}).mouseup(function() {
|
||||
config.mouseDownOnSelect = false;
|
||||
});
|
||||
|
||||
if( options.width > 0 )
|
||||
element.css("width", options.width);
|
||||
|
||||
needsInit = false;
|
||||
}
|
||||
|
||||
function target(event) {
|
||||
var element = event.target;
|
||||
while(element && element.tagName != "LI")
|
||||
element = element.parentNode;
|
||||
// more fun with IE, sometimes event.target is empty, just ignore it then
|
||||
if(!element)
|
||||
return [];
|
||||
return element;
|
||||
}
|
||||
|
||||
function moveSelect(step) {
|
||||
listItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE);
|
||||
movePosition(step);
|
||||
var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE);
|
||||
if(options.scroll) {
|
||||
var offset = 0;
|
||||
listItems.slice(0, active).each(function() {
|
||||
offset += this.offsetHeight;
|
||||
});
|
||||
if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) {
|
||||
list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight());
|
||||
} else if(offset < list.scrollTop()) {
|
||||
list.scrollTop(offset);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function movePosition(step) {
|
||||
active += step;
|
||||
if (active < 0) {
|
||||
active = listItems.size() - 1;
|
||||
} else if (active >= listItems.size()) {
|
||||
active = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function limitNumberOfItems(available) {
|
||||
return options.max && options.max < available
|
||||
? options.max
|
||||
: available;
|
||||
}
|
||||
|
||||
function fillList() {
|
||||
list.empty();
|
||||
var max = limitNumberOfItems(data.length);
|
||||
for (var i=0; i < max; i++) {
|
||||
if (!data[i])
|
||||
continue;
|
||||
var formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term);
|
||||
if ( formatted === false )
|
||||
continue;
|
||||
var li = $("<li/>").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? "ac_even" : "ac_odd").appendTo(list)[0];
|
||||
$.data(li, "ac_data", data[i]);
|
||||
}
|
||||
listItems = list.find("li");
|
||||
if ( options.selectFirst ) {
|
||||
listItems.slice(0, 1).addClass(CLASSES.ACTIVE);
|
||||
active = 0;
|
||||
}
|
||||
// apply bgiframe if available
|
||||
if ( $.fn.bgiframe )
|
||||
list.bgiframe();
|
||||
}
|
||||
|
||||
return {
|
||||
display: function(d, q) {
|
||||
init();
|
||||
data = d;
|
||||
term = q;
|
||||
fillList();
|
||||
},
|
||||
next: function() {
|
||||
moveSelect(1);
|
||||
},
|
||||
prev: function() {
|
||||
moveSelect(-1);
|
||||
},
|
||||
pageUp: function() {
|
||||
if (active != 0 && active - 8 < 0) {
|
||||
moveSelect( -active );
|
||||
} else {
|
||||
moveSelect(-8);
|
||||
}
|
||||
},
|
||||
pageDown: function() {
|
||||
if (active != listItems.size() - 1 && active + 8 > listItems.size()) {
|
||||
moveSelect( listItems.size() - 1 - active );
|
||||
} else {
|
||||
moveSelect(8);
|
||||
}
|
||||
},
|
||||
hide: function() {
|
||||
element && element.hide();
|
||||
listItems && listItems.removeClass(CLASSES.ACTIVE);
|
||||
active = -1;
|
||||
},
|
||||
visible : function() {
|
||||
return element && element.is(":visible");
|
||||
},
|
||||
current: function() {
|
||||
return this.visible() && (listItems.filter("." + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]);
|
||||
},
|
||||
show: function() {
|
||||
var offset = $(input).offset();
|
||||
element.css({
|
||||
width: typeof options.width == "string" || options.width > 0 ? options.width : $(input).width(),
|
||||
top: offset.top + input.offsetHeight,
|
||||
left: offset.left
|
||||
}).show();
|
||||
if(options.scroll) {
|
||||
list.scrollTop(0);
|
||||
list.css({
|
||||
maxHeight: options.scrollHeight,
|
||||
overflow: 'auto'
|
||||
});
|
||||
|
||||
if($.browser.msie && typeof document.body.style.maxHeight === "undefined") {
|
||||
var listHeight = 0;
|
||||
listItems.each(function() {
|
||||
listHeight += this.offsetHeight;
|
||||
});
|
||||
var scrollbarsVisible = listHeight > options.scrollHeight;
|
||||
list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight );
|
||||
if (!scrollbarsVisible) {
|
||||
// IE doesn't recalculate width when scrollbar disappears
|
||||
listItems.width( list.width() - parseInt(listItems.css("padding-left")) - parseInt(listItems.css("padding-right")) );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
selected: function() {
|
||||
var selected = listItems && listItems.filter("." + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);
|
||||
return selected && selected.length && $.data(selected[0], "ac_data");
|
||||
},
|
||||
emptyList: function (){
|
||||
list && list.empty();
|
||||
},
|
||||
unbind: function() {
|
||||
element && element.remove();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
$.Autocompleter.Selection = function(field, start, end) {
|
||||
if( field.createTextRange ){
|
||||
var selRange = field.createTextRange();
|
||||
selRange.collapse(true);
|
||||
selRange.moveStart("character", start);
|
||||
selRange.moveEnd("character", end);
|
||||
selRange.select();
|
||||
} else if( field.setSelectionRange ){
|
||||
field.setSelectionRange(start, end);
|
||||
} else {
|
||||
if( field.selectionStart ){
|
||||
field.selectionStart = start;
|
||||
field.selectionEnd = end;
|
||||
}
|
||||
}
|
||||
field.focus();
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
$q = strtolower( $_GET["q"] );
|
||||
if (!$q) return;
|
||||
|
||||
include("../../core/main.php");
|
||||
|
||||
// Replace "TABLE_NAME" below with the table you'd like to extract data from
|
||||
$data = $db->query( "SELECT icd_code,jenis_penyakit FROM icd" )
|
||||
or die( mysqli_error($connect) );
|
||||
|
||||
// Replace "COLUMN_ONE" below with the column you'd like to search through
|
||||
// In between the if/then statement, you may present a string of text
|
||||
// you'd like to appear in the textbox.
|
||||
while( $row = mysqli_fetch_array( $data )){
|
||||
if ( strpos( strtolower( $row['icd_code'] ), $q ) !== false ) {
|
||||
echo $row['icd_code']."-".$row['jenis_penyakit']."\n";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,102 @@
|
||||
/* NicEdit - Micro Inline WYSIWYG
|
||||
* Copyright 2007-2008 Brian Kirchoff
|
||||
*
|
||||
* NicEdit is distributed under the terms of the MIT license
|
||||
* For more information visit http://nicedit.com/
|
||||
* Do not remove this copyright message
|
||||
*/
|
||||
var bkExtend=function(){var A=arguments;if(A.length==1){A=[this,A[0]]}for(var B in A[1]){A[0][B]=A[1][B]}return A[0]};function bkClass(){}bkClass.prototype.construct=function(){};bkClass.extend=function(C){var A=function(){if(arguments[0]!==bkClass){return this.construct.apply(this,arguments)}};var B=new this(bkClass);bkExtend(B,C);A.prototype=B;A.extend=this.extend;return A};var bkElement=bkClass.extend({construct:function(B,A){if(typeof (B)=="string"){B=(A||document).createElement(B)}B=$BK(B);return B},appendTo:function(A){A.appendChild(this);return this},appendBefore:function(A){A.parentNode.insertBefore(this,A);return this},addEvent:function(B,A){bkLib.addEvent(this,B,A);return this},setContent:function(A){this.innerHTML=A;return this},pos:function(){var C=curtop=0;var B=obj=this;if(obj.offsetParent){do{C+=obj.offsetLeft;curtop+=obj.offsetTop}while(obj=obj.offsetParent)}var A=(!window.opera)?parseInt(this.getStyle("border-width")||this.style.border)||0:0;return[C+A,curtop+A+this.offsetHeight]},noSelect:function(){bkLib.noSelect(this);return this},parentTag:function(A){var B=this;do{if(B&&B.nodeName&&B.nodeName.toUpperCase()==A){return B}B=B.parentNode}while(B);return false},hasClass:function(A){return this.className.match(new RegExp("(\\s|^)nicEdit-"+A+"(\\s|$)"))},addClass:function(A){if(!this.hasClass(A)){this.className+=" nicEdit-"+A}return this},removeClass:function(A){if(this.hasClass(A)){this.className=this.className.replace(new RegExp("(\\s|^)nicEdit-"+A+"(\\s|$)")," ")}return this},setStyle:function(A){var B=this.style;for(var C in A){switch(C){case"float":B.cssFloat=B.styleFloat=A[C];break;case"opacity":B.opacity=A[C];B.filter="alpha(opacity="+Math.round(A[C]*100)+")";break;case"className":this.className=A[C];break;default:B[C]=A[C]}}return this},getStyle:function(A,C){var B=(!C)?document.defaultView:C;if(this.nodeType==1){return(B&&B.getComputedStyle)?B.getComputedStyle(this,null).getPropertyValue(A):this.currentStyle[bkLib.camelize(A)]}},remove:function(){this.parentNode.removeChild(this);return this},setAttributes:function(A){for(var B in A){this[B]=A[B]}return this}});var bkLib={isMSIE:(navigator.appVersion.indexOf("MSIE")!=-1),addEvent:function(C,B,A){(C.addEventListener)?C.addEventListener(B,A,false):C.attachEvent("on"+B,A)},toArray:function(C){var B=C.length,A=new Array(B);while(B--){A[B]=C[B]}return A},noSelect:function(B){if(B.setAttribute&&B.nodeName.toLowerCase()!="input"&&B.nodeName.toLowerCase()!="textarea"){B.setAttribute("unselectable","on")}for(var A=0;A<B.childNodes.length;A++){bkLib.noSelect(B.childNodes[A])}},camelize:function(A){return A.replace(/\-(.)/g,function(B,C){return C.toUpperCase()})},inArray:function(A,B){return(bkLib.search(A,B)!=null)},search:function(A,C){for(var B=0;B<A.length;B++){if(A[B]==C){return B}}return null},cancelEvent:function(A){A=A||window.event;if(A.preventDefault&&A.stopPropagation){A.preventDefault();A.stopPropagation()}return false},domLoad:[],domLoaded:function(){if(arguments.callee.done){return }arguments.callee.done=true;for(i=0;i<bkLib.domLoad.length;i++){bkLib.domLoad[i]()}},onDomLoaded:function(A){this.domLoad.push(A);if(document.addEventListener){document.addEventListener("DOMContentLoaded",bkLib.domLoaded,null)}else{if(bkLib.isMSIE){document.write("<style>.nicEdit-main p { margin: 0; }</style><script id=__ie_onload defer "+((location.protocol=="https:")?"src='javascript:void(0)'":"src=//0")+"><\/script>");$BK("__ie_onload").onreadystatechange=function(){if(this.readyState=="complete"){bkLib.domLoaded()}}}}window.onload=bkLib.domLoaded}};function $BK(A){if(typeof (A)=="string"){A=document.getElementById(A)}return(A&&!A.appendTo)?bkExtend(A,bkElement.prototype):A}var bkEvent={addEvent:function(A,B){if(B){this.eventList=this.eventList||{};this.eventList[A]=this.eventList[A]||[];this.eventList[A].push(B)}return this},fireEvent:function(){var A=bkLib.toArray(arguments),C=A.shift();if(this.eventList&&this.eventList[C]){for(var B=0;B<this.eventList[C].length;B++){this.eventList[C][B].apply(this,A)}}}};function __(A){return A}Function.prototype.closure=function(){var A=this,B=bkLib.toArray(arguments),C=B.shift();return function(){if(typeof (bkLib)!="undefined"){return A.apply(C,B.concat(bkLib.toArray(arguments)))}}};Function.prototype.closureListener=function(){var A=this,C=bkLib.toArray(arguments),B=C.shift();return function(E){E=E||window.event;if(E.target){var D=E.target}else{var D=E.srcElement}return A.apply(B,[E,D].concat(C))}};
|
||||
|
||||
|
||||
|
||||
var nicEditorConfig = bkClass.extend({
|
||||
buttons : {
|
||||
'bold' : {name : __('Click to Bold'), command : 'Bold', tags : ['B','STRONG'], css : {'font-weight' : 'bold'}, key : 'b'},
|
||||
'italic' : {name : __('Click to Italic'), command : 'Italic', tags : ['EM','I'], css : {'font-style' : 'italic'}, key : 'i'},
|
||||
'underline' : {name : __('Click to Underline'), command : 'Underline', tags : ['U'], css : {'text-decoration' : 'underline'}, key : 'u'},
|
||||
'left' : {name : __('Left Align'), command : 'justifyleft', noActive : true},
|
||||
'center' : {name : __('Center Align'), command : 'justifycenter', noActive : true},
|
||||
'right' : {name : __('Right Align'), command : 'justifyright', noActive : true},
|
||||
'justify' : {name : __('Justify Align'), command : 'justifyfull', noActive : true},
|
||||
'ol' : {name : __('Insert Ordered List'), command : 'insertorderedlist', tags : ['OL']},
|
||||
'ul' : {name : __('Insert Unordered List'), command : 'insertunorderedlist', tags : ['UL']},
|
||||
'subscript' : {name : __('Click to Subscript'), command : 'subscript', tags : ['SUB']},
|
||||
'superscript' : {name : __('Click to Superscript'), command : 'superscript', tags : ['SUP']},
|
||||
'strikethrough' : {name : __('Click to Strike Through'), command : 'strikeThrough', css : {'text-decoration' : 'line-through'}},
|
||||
'removeformat' : {name : __('Remove Formatting'), command : 'removeformat', noActive : true},
|
||||
'indent' : {name : __('Indent Text'), command : 'indent', noActive : true},
|
||||
'outdent' : {name : __('Remove Indent'), command : 'outdent', noActive : true},
|
||||
'hr' : {name : __('Horizontal Rule'), command : 'insertHorizontalRule', noActive : true}
|
||||
},
|
||||
iconsPath : 'rajal/jscripts/nicEditorIcons.gif',
|
||||
buttonList : ['save','bold','italic','underline','left','center','right','justify','ol','ul','fontSize','fontFamily','fontFormat','indent','outdent','','upload','','','',''],
|
||||
iconList : {"bgcolor":1,"forecolor":2,"bold":3,"center":4,"hr":5,"indent":6,"italic":7,"justify":8,"left":9,"ol":10,"outdent":11,"removeformat":12,"right":13,"save":24,"strikethrough":15,"subscript":16,"superscript":17,"ul":18,"underline":19,"image":20,"link":21,"unlink":22,"close":23,"arrow":25}
|
||||
|
||||
});
|
||||
;
|
||||
var nicEditors={nicPlugins:[],editors:[],registerPlugin:function(B,A){this.nicPlugins.push({p:B,o:A})},allTextAreas:function(C){var A=document.getElementsByTagName("textarea");for(var B=0;B<A.length;B++){nicEditors.editors.push(new nicEditor(C).panelInstance(A[B]))}return nicEditors.editors},findEditor:function(C){var B=nicEditors.editors;for(var A=0;A<B.length;A++){if(B[A].instanceById(C)){return B[A].instanceById(C)}}}};var nicEditor=bkClass.extend({construct:function(C){this.options=new nicEditorConfig();bkExtend(this.options,C);this.nicInstances=new Array();this.loadedPlugins=new Array();var A=nicEditors.nicPlugins;for(var B=0;B<A.length;B++){this.loadedPlugins.push(new A[B].p(this,A[B].o))}nicEditors.editors.push(this);bkLib.addEvent(document.body,"mousedown",this.selectCheck.closureListener(this))},panelInstance:function(B,C){B=this.checkReplace($BK(B));var A=new bkElement("DIV").setStyle({width:(parseInt(B.getStyle("width"))||B.clientWidth)+"px"}).appendBefore(B);this.setPanel(A);return this.addInstance(B,C)},checkReplace:function(B){var A=nicEditors.findEditor(B);if(A){A.removeInstance(B);A.removePanel()}return B},addInstance:function(B,C){B=this.checkReplace($BK(B));if(B.contentEditable||!!window.opera){var A=new nicEditorInstance(B,C,this)}else{var A=new nicEditorIFrameInstance(B,C,this)}this.nicInstances.push(A);return this},removeInstance:function(C){C=$BK(C);var B=this.nicInstances;for(var A=0;A<B.length;A++){if(B[A].e==C){B[A].remove();this.nicInstances.splice(A,1)}}},removePanel:function(A){if(this.nicPanel){this.nicPanel.remove();this.nicPanel=null}},instanceById:function(C){C=$BK(C);var B=this.nicInstances;for(var A=0;A<B.length;A++){if(B[A].e==C){return B[A]}}},setPanel:function(A){this.nicPanel=new nicEditorPanel($BK(A),this.options,this);this.fireEvent("panel",this.nicPanel);return this},nicCommand:function(B,A){if(this.selectedInstance){this.selectedInstance.nicCommand(B,A)}},getIcon:function(D,A){var C=this.options.iconList[D];var B=(A.iconFiles)?A.iconFiles[D]:"";return{backgroundImage:"url('"+((C)?this.options.iconsPath:B)+"')",backgroundPosition:((C)?((C-1)*-18):0)+"px 0px"}},selectCheck:function(C,A){var B=false;do{if(A.className&&A.className.indexOf("nicEdit")!=-1){return false}}while(A=A.parentNode);this.fireEvent("blur",this.selectedInstance,A);this.lastSelectedInstance=this.selectedInstance;this.selectedInstance=null;return false}});nicEditor=nicEditor.extend(bkEvent);
|
||||
var nicEditorInstance=bkClass.extend({isSelected:false,construct:function(G,D,C){this.ne=C;this.elm=this.e=G;this.options=D||{};newX=parseInt(G.getStyle("width"))||G.clientWidth;newY=parseInt(G.getStyle("height"))||G.clientHeight;this.initialHeight=newY-8;var H=(G.nodeName.toLowerCase()=="textarea");if(H||this.options.hasPanel){var B=(bkLib.isMSIE&&!((typeof document.body.style.maxHeight!="undefined")&&document.compatMode=="CSS1Compat"));var E={width:newX+"px",border:"1px solid #ccc",borderTop:0,overflowY:"auto",overflowX:"hidden"};E[(B)?"height":"maxHeight"]=(this.ne.options.maxHeight)?this.ne.options.maxHeight+"px":null;this.editorContain=new bkElement("DIV").setStyle(E).appendBefore(G);var A=new bkElement("DIV").setStyle({width:(newX-8)+"px",margin:"4px",minHeight:newY+"px"}).addClass("main").appendTo(this.editorContain);G.setStyle({display:"none"});A.innerHTML=G.innerHTML;if(H){A.setContent(G.value);this.copyElm=G;var F=G.parentTag("FORM");if(F){bkLib.addEvent(F,"submit",this.saveContent.closure(this))}}A.setStyle((B)?{height:newY+"px"}:{overflow:"hidden"});this.elm=A}this.ne.addEvent("blur",this.blur.closure(this));this.init();this.blur()},init:function(){this.elm.setAttribute("contentEditable","true");if(this.getContent()==""){this.setContent("<br />")}this.instanceDoc=document.defaultView;this.elm.addEvent("mousedown",this.selected.closureListener(this)).addEvent("keypress",this.keyDown.closureListener(this)).addEvent("focus",this.selected.closure(this)).addEvent("blur",this.blur.closure(this)).addEvent("keyup",this.selected.closure(this));this.ne.fireEvent("add",this)},remove:function(){this.saveContent();if(this.copyElm||this.options.hasPanel){this.editorContain.remove();this.e.setStyle({display:"block"});this.ne.removePanel()}this.disable();this.ne.fireEvent("remove",this)},disable:function(){this.elm.setAttribute("contentEditable","false")},getSel:function(){return(window.getSelection)?window.getSelection():document.selection},getRng:function(){var A=this.getSel();if(!A){return null}return(A.rangeCount>0)?A.getRangeAt(0):A.createRange()},selRng:function(A,B){if(window.getSelection){B.removeAllRanges();B.addRange(A)}else{A.select()}},selElm:function(){var C=this.getRng();if(C.startContainer){var D=C.startContainer;if(C.cloneContents().childNodes.length==1){for(var B=0;B<D.childNodes.length;B++){var A=D.childNodes[B].ownerDocument.createRange();A.selectNode(D.childNodes[B]);if(C.compareBoundaryPoints(Range.START_TO_START,A)!=1&&C.compareBoundaryPoints(Range.END_TO_END,A)!=-1){return $BK(D.childNodes[B])}}}return $BK(D)}else{return $BK((this.getSel().type=="Control")?C.item(0):C.parentElement())}},saveRng:function(){this.savedRange=this.getRng();this.savedSel=this.getSel()},restoreRng:function(){if(this.savedRange){this.selRng(this.savedRange,this.savedSel)}},keyDown:function(B,A){if(B.ctrlKey){this.ne.fireEvent("key",this,B)}},selected:function(C,A){if(!A){A=this.selElm()}if(!C.ctrlKey){var B=this.ne.selectedInstance;if(B!=this){if(B){this.ne.fireEvent("blur",B,A)}this.ne.selectedInstance=this;this.ne.fireEvent("focus",B,A)}this.ne.fireEvent("selected",B,A);this.isFocused=true;this.elm.addClass("selected")}return false},blur:function(){this.isFocused=false;this.elm.removeClass("selected")},saveContent:function(){if(this.copyElm||this.options.hasPanel){this.ne.fireEvent("save",this);(this.copyElm)?this.copyElm.value=this.getContent():this.e.innerHTML=this.getContent()}},getElm:function(){return this.elm},getContent:function(){this.content=this.getElm().innerHTML;this.ne.fireEvent("get",this);return this.content},setContent:function(A){this.content=A;this.ne.fireEvent("set",this);this.elm.innerHTML=this.content},nicCommand:function(B,A){document.execCommand(B,false,A)}});
|
||||
var nicEditorIFrameInstance=nicEditorInstance.extend({savedStyles:[],init:function(){var B=this.elm.innerHTML.replace(/^\s+|\s+$/g,"");this.elm.innerHTML="";(!B)?B="<br />":B;this.initialContent=B;this.elmFrame=new bkElement("iframe").setAttributes({src:"javascript:;",frameBorder:0,allowTransparency:"true",scrolling:"no"}).setStyle({height:"100px",width:"100%"}).addClass("frame").appendTo(this.elm);if(this.copyElm){this.elmFrame.setStyle({width:(this.elm.offsetWidth-4)+"px"})}var A=["font-size","font-family","font-weight","color"];for(itm in A){this.savedStyles[bkLib.camelize(itm)]=this.elm.getStyle(itm)}setTimeout(this.initFrame.closure(this),50)},disable:function(){this.elm.innerHTML=this.getContent()},initFrame:function(){var B=$BK(this.elmFrame.contentWindow.document);B.designMode="on";B.open();var A=this.ne.options.externalCSS;B.write("<html><head>"+((A)?'<link href="'+A+'" rel="stylesheet" type="text/css" />':"")+'</head><body id="nicEditContent" style="margin: 0 !important; background-color: transparent !important;">'+this.initialContent+"</body></html>");B.close();this.frameDoc=B;this.frameWin=$BK(this.elmFrame.contentWindow);this.frameContent=$BK(this.frameWin.document.body).setStyle(this.savedStyles);this.instanceDoc=this.frameWin.document.defaultView;this.heightUpdate();this.frameDoc.addEvent("mousedown",this.selected.closureListener(this)).addEvent("keyup",this.heightUpdate.closureListener(this)).addEvent("keydown",this.keyDown.closureListener(this)).addEvent("keyup",this.selected.closure(this));this.ne.fireEvent("add",this)},getElm:function(){return this.frameContent},setContent:function(A){this.content=A;this.ne.fireEvent("set",this);this.frameContent.innerHTML=this.content;this.heightUpdate()},getSel:function(){return(this.frameWin)?this.frameWin.getSelection():this.frameDoc.selection},heightUpdate:function(){this.elmFrame.style.height=Math.max(this.frameContent.offsetHeight,this.initialHeight)+"px"},nicCommand:function(B,A){this.frameDoc.execCommand(B,false,A);setTimeout(this.heightUpdate.closure(this),100)}});
|
||||
var nicEditorPanel=bkClass.extend({construct:function(E,B,A){this.elm=E;this.options=B;this.ne=A;this.panelButtons=new Array();this.buttonList=bkExtend([],this.ne.options.buttonList);this.panelContain=new bkElement("DIV").setStyle({overflow:"hidden",width:"100%",border:"1px solid #cccccc",backgroundColor:"#efefef"}).addClass("panelContain");this.panelElm=new bkElement("DIV").setStyle({margin:"2px",marginTop:"0px",zoom:1,overflow:"hidden"}).addClass("panel").appendTo(this.panelContain);this.panelContain.appendTo(E);var C=this.ne.options;var D=C.buttons;for(button in D){this.addButton(button,C,true)}this.reorder();E.noSelect()},addButton:function(buttonName,options,noOrder){var button=options.buttons[buttonName];var type=(button.type)?eval("(typeof("+button.type+') == "undefined") ? null : '+button.type+";"):nicEditorButton;var hasButton=bkLib.inArray(this.buttonList,buttonName);if(type&&(hasButton||this.ne.options.fullPanel)){this.panelButtons.push(new type(this.panelElm,buttonName,options,this.ne));if(!hasButton){this.buttonList.push(buttonName)}}},findButton:function(B){for(var A=0;A<this.panelButtons.length;A++){if(this.panelButtons[A].name==B){return this.panelButtons[A]}}},reorder:function(){var C=this.buttonList;for(var B=0;B<C.length;B++){var A=this.findButton(C[B]);if(A){this.panelElm.appendChild(A.margin)}}},remove:function(){this.elm.remove()}});
|
||||
var nicEditorButton=bkClass.extend({construct:function(D,A,C,B){this.options=C.buttons[A];this.name=A;this.ne=B;this.elm=D;this.margin=new bkElement("DIV").setStyle({"float":"left",marginTop:"2px"}).appendTo(D);this.contain=new bkElement("DIV").setStyle({width:"20px",height:"20px"}).addClass("buttonContain").appendTo(this.margin);this.border=new bkElement("DIV").setStyle({backgroundColor:"#efefef",border:"1px solid #efefef"}).appendTo(this.contain);this.button=new bkElement("DIV").setStyle({width:"18px",height:"18px",overflow:"hidden",zoom:1,cursor:"pointer"}).addClass("button").setStyle(this.ne.getIcon(A,C)).appendTo(this.border);this.button.addEvent("mouseover",this.hoverOn.closure(this)).addEvent("mouseout",this.hoverOff.closure(this)).addEvent("mousedown",this.mouseClick.closure(this)).noSelect();if(!window.opera){this.button.onmousedown=this.button.onclick=bkLib.cancelEvent}B.addEvent("selected",this.enable.closure(this)).addEvent("blur",this.disable.closure(this)).addEvent("key",this.key.closure(this));this.disable();this.init()},init:function(){},hide:function(){this.contain.setStyle({display:"none"})},updateState:function(){if(this.isDisabled){this.setBg()}else{if(this.isHover){this.setBg("hover")}else{if(this.isActive){this.setBg("active")}else{this.setBg()}}}},setBg:function(A){switch(A){case"hover":var B={border:"1px solid #666",backgroundColor:"#ddd"};break;case"active":var B={border:"1px solid #666",backgroundColor:"#ccc"};break;default:var B={border:"1px solid #efefef",backgroundColor:"#efefef"}}this.border.setStyle(B).addClass("button-"+A)},checkNodes:function(A){var B=A;do{if(this.options.tags&&bkLib.inArray(this.options.tags,B.nodeName)){this.activate();return true}}while(B=B.parentNode&&B.className!="nicEdit");B=$BK(A);while(B.nodeType==3){B=$BK(B.parentNode)}if(this.options.css){for(itm in this.options.css){if(B.getStyle(itm,this.ne.selectedInstance.instanceDoc)==this.options.css[itm]){this.activate();return true}}}this.deactivate();return false},activate:function(){if(!this.isDisabled){this.isActive=true;this.updateState();this.ne.fireEvent("buttonActivate",this)}},deactivate:function(){this.isActive=false;this.updateState();if(!this.isDisabled){this.ne.fireEvent("buttonDeactivate",this)}},enable:function(A,B){this.isDisabled=false;this.contain.setStyle({opacity:1}).addClass("buttonEnabled");this.updateState();this.checkNodes(B)},disable:function(A,B){this.isDisabled=true;this.contain.setStyle({opacity:0.6}).removeClass("buttonEnabled");this.updateState()},toggleActive:function(){(this.isActive)?this.deactivate():this.activate()},hoverOn:function(){if(!this.isDisabled){this.isHover=true;this.updateState();this.ne.fireEvent("buttonOver",this)}},hoverOff:function(){this.isHover=false;this.updateState();this.ne.fireEvent("buttonOut",this)},mouseClick:function(){if(this.options.command){this.ne.nicCommand(this.options.command,this.options.commandArgs);if(!this.options.noActive){this.toggleActive()}}this.ne.fireEvent("buttonClick",this)},key:function(A,B){if(this.options.key&&B.ctrlKey&&String.fromCharCode(B.keyCode||B.charCode).toLowerCase()==this.options.key){this.mouseClick();if(B.preventDefault){B.preventDefault()}}}});
|
||||
var nicPlugin=bkClass.extend({construct:function(B,A){this.options=A;this.ne=B;this.ne.addEvent("panel",this.loadPanel.closure(this));this.init()},loadPanel:function(C){var B=this.options.buttons;for(var A in B){C.addButton(A,this.options)}C.reorder()},init:function(){}});
|
||||
|
||||
|
||||
var nicPaneOptions = { };
|
||||
|
||||
var nicEditorPane=bkClass.extend({construct:function(D,C,B,A){this.ne=C;this.elm=D;this.pos=D.pos();this.contain=new bkElement("div").setStyle({zIndex:"99999",overflow:"hidden",position:"absolute",left:this.pos[0]+"px",top:this.pos[1]+"px"});this.pane=new bkElement("div").setStyle({fontSize:"12px",border:"1px solid #ccc",overflow:"hidden",padding:"4px",textAlign:"left",backgroundColor:"#ffffc9"}).addClass("pane").setStyle(B).appendTo(this.contain);if(A&&!A.options.noClose){this.close=new bkElement("div").setStyle({"float":"right",height:"16px",width:"16px",cursor:"pointer"}).setStyle(this.ne.getIcon("close",nicPaneOptions)).addEvent("mousedown",A.removePane.closure(this)).appendTo(this.pane)}this.contain.noSelect().appendTo(document.body);this.position();this.init()},init:function(){},position:function(){if(this.ne.nicPanel){var B=this.ne.nicPanel.elm;var A=B.pos();var C=A[0]+parseInt(B.getStyle("width"))-(parseInt(this.pane.getStyle("width"))+8);if(C<this.pos[0]){this.contain.setStyle({left:C+"px"})}}},toggle:function(){this.isVisible=!this.isVisible;this.contain.setStyle({display:((this.isVisible)?"block":"none")})},remove:function(){if(this.contain){this.contain.remove();this.contain=null}},append:function(A){A.appendTo(this.pane)},setContent:function(A){this.pane.setContent(A)}});
|
||||
|
||||
var nicEditorAdvancedButton=nicEditorButton.extend({init:function(){this.ne.addEvent("selected",this.removePane.closure(this)).addEvent("blur",this.removePane.closure(this))},mouseClick:function(){if(!this.isDisabled){if(this.pane&&this.pane.pane){this.removePane()}else{this.pane=new nicEditorPane(this.contain,this.ne,{width:(this.width||"270px"),backgroundColor:"#fff"},this);this.addPane();this.ne.selectedInstance.saveRng()}}},addForm:function(C,G){this.form=new bkElement("form").addEvent("submit",this.submit.closureListener(this));this.pane.append(this.form);this.inputs={};for(itm in C){var D=C[itm];var F="";if(G){F=G.getAttribute(itm)}if(!F){F=D.value||""}var A=C[itm].type;if(A=="title"){new bkElement("div").setContent(D.txt).setStyle({fontSize:"14px",fontWeight:"bold",padding:"0px",margin:"2px 0"}).appendTo(this.form)}else{var B=new bkElement("div").setStyle({overflow:"hidden",clear:"both"}).appendTo(this.form);if(D.txt){new bkElement("label").setAttributes({"for":itm}).setContent(D.txt).setStyle({margin:"2px 4px",fontSize:"13px",width:"50px",lineHeight:"20px",textAlign:"right","float":"left"}).appendTo(B)}switch(A){case"text":this.inputs[itm]=new bkElement("input").setAttributes({id:itm,value:F,type:"text"}).setStyle({margin:"2px 0",fontSize:"13px","float":"left",height:"20px",border:"1px solid #ccc",overflow:"hidden"}).setStyle(D.style).appendTo(B);break;case"select":this.inputs[itm]=new bkElement("select").setAttributes({id:itm}).setStyle({border:"1px solid #ccc","float":"left",margin:"2px 0"}).appendTo(B);for(opt in D.options){var E=new bkElement("option").setAttributes({value:opt,selected:(opt==F)?"selected":""}).setContent(D.options[opt]).appendTo(this.inputs[itm])}break;case"content":this.inputs[itm]=new bkElement("textarea").setAttributes({id:itm}).setStyle({border:"1px solid #ccc","float":"left"}).setStyle(D.style).appendTo(B);this.inputs[itm].value=F}}}new bkElement("input").setAttributes({type:"submit"}).setStyle({backgroundColor:"#efefef",border:"1px solid #ccc",margin:"3px 0","float":"left",clear:"both"}).appendTo(this.form);this.form.onsubmit=bkLib.cancelEvent},submit:function(){},findElm:function(B,A,E){var D=this.ne.selectedInstance.getElm().getElementsByTagName(B);for(var C=0;C<D.length;C++){if(D[C].getAttribute(A)==E){return $BK(D[C])}}},removePane:function(){if(this.pane){this.pane.remove();this.pane=null;this.ne.selectedInstance.restoreRng()}}});
|
||||
|
||||
var nicButtonTips=bkClass.extend({construct:function(A){this.ne=A;A.addEvent("buttonOver",this.show.closure(this)).addEvent("buttonOut",this.hide.closure(this))},show:function(A){this.timer=setTimeout(this.create.closure(this,A),400)},create:function(A){this.timer=null;if(!this.pane){this.pane=new nicEditorPane(A.button,this.ne,{fontSize:"12px",marginTop:"5px"});this.pane.setContent(A.options.name)}},hide:function(A){if(this.timer){clearTimeout(this.timer)}if(this.pane){this.pane=this.pane.remove()}}});nicEditors.registerPlugin(nicButtonTips);
|
||||
|
||||
|
||||
var nicSelectOptions = {
|
||||
buttons : {
|
||||
'fontSize' : {name : __('Select Font Size'), type : 'nicEditorFontSizeSelect', command : 'fontsize'},
|
||||
'fontFamily' : {name : __('Select Font Family'), type : 'nicEditorFontFamilySelect', command : 'fontname'},
|
||||
'fontFormat' : {name : __('Select Font Format'), type : 'nicEditorFontFormatSelect', command : 'formatBlock'}
|
||||
}
|
||||
};
|
||||
|
||||
var nicEditorSelect=bkClass.extend({construct:function(D,A,C,B){this.options=C.buttons[A];this.elm=D;this.ne=B;this.name=A;this.selOptions=new Array();this.margin=new bkElement("div").setStyle({"float":"left",margin:"2px 1px 0 1px"}).appendTo(this.elm);this.contain=new bkElement("div").setStyle({width:"90px",height:"20px",cursor:"pointer",overflow:"hidden"}).addClass("selectContain").addEvent("click",this.toggle.closure(this)).appendTo(this.margin);this.items=new bkElement("div").setStyle({overflow:"hidden",zoom:1,border:"1px solid #ccc",paddingLeft:"3px",backgroundColor:"#fff"}).appendTo(this.contain);this.control=new bkElement("div").setStyle({overflow:"hidden","float":"right",height:"18px",width:"16px"}).addClass("selectControl").setStyle(this.ne.getIcon("arrow",C)).appendTo(this.items);this.txt=new bkElement("div").setStyle({overflow:"hidden","float":"left",width:"66px",height:"14px",marginTop:"1px",fontFamily:"sans-serif",textAlign:"center",fontSize:"12px"}).addClass("selectTxt").appendTo(this.items);if(!window.opera){this.contain.onmousedown=this.control.onmousedown=this.txt.onmousedown=bkLib.cancelEvent}this.margin.noSelect();this.ne.addEvent("selected",this.enable.closure(this)).addEvent("blur",this.disable.closure(this));this.disable();this.init()},disable:function(){this.isDisabled=true;this.close();this.contain.setStyle({opacity:0.6})},enable:function(A){this.isDisabled=false;this.close();this.contain.setStyle({opacity:1})},setDisplay:function(A){this.txt.setContent(A)},toggle:function(){if(!this.isDisabled){(this.pane)?this.close():this.open()}},open:function(){this.pane=new nicEditorPane(this.items,this.ne,{width:"88px",padding:"0px",borderTop:0,borderLeft:"1px solid #ccc",borderRight:"1px solid #ccc",borderBottom:"0px",backgroundColor:"#fff"});for(var C=0;C<this.selOptions.length;C++){var B=this.selOptions[C];var A=new bkElement("div").setStyle({overflow:"hidden",borderBottom:"1px solid #ccc",width:"88px",textAlign:"left",overflow:"hidden",cursor:"pointer"});var D=new bkElement("div").setStyle({padding:"0px 4px"}).setContent(B[1]).appendTo(A).noSelect();D.addEvent("click",this.update.closure(this,B[0])).addEvent("mouseover",this.over.closure(this,D)).addEvent("mouseout",this.out.closure(this,D)).setAttributes("id",B[0]);this.pane.append(A);if(!window.opera){D.onmousedown=bkLib.cancelEvent}}},close:function(){if(this.pane){this.pane=this.pane.remove()}},over:function(A){A.setStyle({backgroundColor:"#ccc"})},out:function(A){A.setStyle({backgroundColor:"#fff"})},add:function(B,A){this.selOptions.push(new Array(B,A))},update:function(A){this.ne.nicCommand(this.options.command,A);this.close()}});var nicEditorFontSizeSelect=nicEditorSelect.extend({sel:{1:"1 (8pt)",2:"2 (10pt)",3:"3 (12pt)",4:"4 (14pt)",5:"5 (18pt)",6:"6 (24pt)"},init:function(){this.setDisplay("Font Size...");for(itm in this.sel){this.add(itm,'<font size="'+itm+'">'+this.sel[itm]+"</font>")}}});var nicEditorFontFamilySelect=nicEditorSelect.extend({sel:{arial:"Arial","comic sans ms":"Comic Sans","courier new":"Courier New",georgia:"Georgia",helvetica:"Helvetica",impact:"Impact","times new roman":"Times","trebuchet ms":"Trebuchet",verdana:"Verdana"},init:function(){this.setDisplay("Font Family...");for(itm in this.sel){this.add(itm,'<font face="'+itm+'">'+this.sel[itm]+"</font>")}}});var nicEditorFontFormatSelect=nicEditorSelect.extend({sel:{p:"Paragraph",pre:"Pre",h6:"Heading 6",h5:"Heading 5",h4:"Heading 4",h3:"Heading 3",h2:"Heading 2",h1:"Heading 1"},init:function(){this.setDisplay("Font Format...");for(itm in this.sel){var A=itm.toUpperCase();this.add("<"+A+">","<"+itm+' style="padding: 0px; margin: 0px;">'+this.sel[itm]+"</"+A+">")}}});nicEditors.registerPlugin(nicPlugin,nicSelectOptions);
|
||||
|
||||
|
||||
var nicLinkOptions = {
|
||||
buttons : {
|
||||
'link' : {name : 'Add Link', type : 'nicLinkButton', tags : ['A']},
|
||||
'unlink' : {name : 'Remove Link', command : 'unlink', noActive : true}
|
||||
}
|
||||
};
|
||||
|
||||
var nicLinkButton=nicEditorAdvancedButton.extend({addPane:function(){this.ln=this.ne.selectedInstance.selElm().parentTag("A");this.addForm({"":{type:"title",txt:"Add/Edit Link"},href:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},title:{type:"text",txt:"Title"},target:{type:"select",txt:"Open In",options:{"":"Current Window",_blank:"New Window"},style:{width:"100px"}}},this.ln)},submit:function(C){var A=this.inputs.href.value;if(A=="http://"||A==""){alert("You must enter a URL to Create a Link");return false}this.removePane();if(!this.ln){var B="javascript:nicTemp();";this.ne.nicCommand("createlink",B);this.ln=this.findElm("A","href",B)}if(this.ln){this.ln.setAttributes({href:this.inputs.href.value,title:this.inputs.title.value,target:this.inputs.target.options[this.inputs.target.selectedIndex].value})}}});nicEditors.registerPlugin(nicPlugin,nicLinkOptions);
|
||||
|
||||
|
||||
var nicColorOptions = {
|
||||
buttons : {
|
||||
'forecolor' : {name : __('Change Text Color'), type : 'nicEditorColorButton', noClose : true},
|
||||
'bgcolor' : {name : __('Change Background Color'), type : 'nicEditorBgColorButton', noClose : true}
|
||||
}
|
||||
};
|
||||
|
||||
var nicEditorColorButton=nicEditorAdvancedButton.extend({addPane:function(){var D={0:"00",1:"33",2:"66",3:"99",4:"CC",5:"FF"};var H=new bkElement("DIV").setStyle({width:"270px"});for(var A in D){for(var F in D){for(var E in D){var I="#"+D[A]+D[E]+D[F];var C=new bkElement("DIV").setStyle({cursor:"pointer",height:"15px","float":"left"}).appendTo(H);var G=new bkElement("DIV").setStyle({border:"2px solid "+I}).appendTo(C);var B=new bkElement("DIV").setStyle({backgroundColor:I,overflow:"hidden",width:"11px",height:"11px"}).addEvent("click",this.colorSelect.closure(this,I)).addEvent("mouseover",this.on.closure(this,G)).addEvent("mouseout",this.off.closure(this,G,I)).appendTo(G);if(!window.opera){C.onmousedown=B.onmousedown=bkLib.cancelEvent}}}}this.pane.append(H.noSelect())},colorSelect:function(A){this.ne.nicCommand("foreColor",A);this.removePane()},on:function(A){A.setStyle({border:"2px solid #000"})},off:function(A,B){A.setStyle({border:"2px solid "+B})}});var nicEditorBgColorButton=nicEditorColorButton.extend({colorSelect:function(A){this.ne.nicCommand("hiliteColor",A);this.removePane()}});nicEditors.registerPlugin(nicPlugin,nicColorOptions);
|
||||
|
||||
|
||||
var nicImageOptions = {
|
||||
buttons : {
|
||||
'image' : {name : 'Add Image', type : 'nicImageButton', tags : ['IMG']}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
var nicImageButton=nicEditorAdvancedButton.extend({addPane:function(){this.im=this.ne.selectedInstance.selElm().parentTag("IMG");this.addForm({"":{type:"title",txt:"Add/Edit Image"},src:{type:"text",txt:"URL",value:"http://",style:{width:"150px"}},alt:{type:"text",txt:"Alt Text",style:{width:"100px"}},align:{type:"select",txt:"Align",options:{none:"Default",left:"Left",right:"Right"}}},this.im)},submit:function(B){var C=this.inputs.src.value;if(C==""||C=="http://"){alert("You must enter a Image URL to insert");return false}this.removePane();if(!this.im){var A="javascript:nicImTemp();";this.ne.nicCommand("insertImage",A);this.im=this.findElm("IMG","src",A)}if(this.im){this.im.setAttributes({src:this.inputs.src.value,alt:this.inputs.alt.value,align:this.inputs.align.value})}}});nicEditors.registerPlugin(nicPlugin,nicImageOptions);
|
||||
|
||||
|
||||
var nicSaveOptions = {
|
||||
buttons : {
|
||||
'save' : {name : __('Save this content'), type : 'nicEditorSaveButton'}
|
||||
}
|
||||
};
|
||||
|
||||
var nicEditorSaveButton=nicEditorButton.extend({init:function(){if(!this.ne.options.onSave){this.margin.setStyle({display:"none"})}},mouseClick:function(){var B=this.ne.options.onSave;var A=this.ne.selectedInstance;B(A.getContent(),A.elm.id,A)}});nicEditors.registerPlugin(nicPlugin,nicSaveOptions);
|
||||
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,154 @@
|
||||
tinyMCE.addI18n({en:{
|
||||
common:{
|
||||
edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
|
||||
apply:"Apply",
|
||||
insert:"Insert",
|
||||
update:"Update",
|
||||
cancel:"Cancel",
|
||||
close:"Close",
|
||||
browse:"Browse",
|
||||
class_name:"Class",
|
||||
not_set:"-- Not set --",
|
||||
clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
|
||||
clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
|
||||
popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
|
||||
invalid_data:"Error: Invalid values entered, these are marked in red.",
|
||||
more_colors:"More colors"
|
||||
},
|
||||
contextmenu:{
|
||||
align:"Alignment",
|
||||
left:"Left",
|
||||
center:"Center",
|
||||
right:"Right",
|
||||
full:"Full"
|
||||
},
|
||||
insertdatetime:{
|
||||
date_fmt:"%Y-%m-%d",
|
||||
time_fmt:"%H:%M:%S",
|
||||
insertdate_desc:"Insert date",
|
||||
inserttime_desc:"Insert time",
|
||||
months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
|
||||
months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
|
||||
day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
|
||||
day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
|
||||
},
|
||||
print:{
|
||||
print_desc:"Print"
|
||||
},
|
||||
preview:{
|
||||
preview_desc:"Preview"
|
||||
},
|
||||
directionality:{
|
||||
ltr_desc:"Direction left to right",
|
||||
rtl_desc:"Direction right to left"
|
||||
},
|
||||
layer:{
|
||||
insertlayer_desc:"Insert new layer",
|
||||
forward_desc:"Move forward",
|
||||
backward_desc:"Move backward",
|
||||
absolute_desc:"Toggle absolute positioning",
|
||||
content:"New layer..."
|
||||
},
|
||||
save:{
|
||||
save_desc:"Save",
|
||||
cancel_desc:"Cancel all changes"
|
||||
},
|
||||
nonbreaking:{
|
||||
nonbreaking_desc:"Insert non-breaking space character"
|
||||
},
|
||||
iespell:{
|
||||
iespell_desc:"Run spell checking",
|
||||
download:"ieSpell not detected. Do you want to install it now?"
|
||||
},
|
||||
advhr:{
|
||||
advhr_desc:"Horizontal rule"
|
||||
},
|
||||
emotions:{
|
||||
emotions_desc:"Emotions"
|
||||
},
|
||||
searchreplace:{
|
||||
search_desc:"Find",
|
||||
replace_desc:"Find/Replace"
|
||||
},
|
||||
advimage:{
|
||||
image_desc:"Insert/edit image"
|
||||
},
|
||||
advlink:{
|
||||
link_desc:"Insert/edit link"
|
||||
},
|
||||
xhtmlxtras:{
|
||||
cite_desc:"Citation",
|
||||
abbr_desc:"Abbreviation",
|
||||
acronym_desc:"Acronym",
|
||||
del_desc:"Deletion",
|
||||
ins_desc:"Insertion",
|
||||
attribs_desc:"Insert/Edit Attributes"
|
||||
},
|
||||
style:{
|
||||
desc:"Edit CSS Style"
|
||||
},
|
||||
paste:{
|
||||
paste_text_desc:"Paste as Plain Text",
|
||||
paste_word_desc:"Paste from Word",
|
||||
selectall_desc:"Select All"
|
||||
},
|
||||
paste_dlg:{
|
||||
text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
|
||||
text_linebreaks:"Keep linebreaks",
|
||||
word_title:"Use CTRL+V on your keyboard to paste the text into the window."
|
||||
},
|
||||
table:{
|
||||
desc:"Inserts a new table",
|
||||
row_before_desc:"Insert row before",
|
||||
row_after_desc:"Insert row after",
|
||||
delete_row_desc:"Delete row",
|
||||
col_before_desc:"Insert column before",
|
||||
col_after_desc:"Insert column after",
|
||||
delete_col_desc:"Remove column",
|
||||
split_cells_desc:"Split merged table cells",
|
||||
merge_cells_desc:"Merge table cells",
|
||||
row_desc:"Table row properties",
|
||||
cell_desc:"Table cell properties",
|
||||
props_desc:"Table properties",
|
||||
paste_row_before_desc:"Paste table row before",
|
||||
paste_row_after_desc:"Paste table row after",
|
||||
cut_row_desc:"Cut table row",
|
||||
copy_row_desc:"Copy table row",
|
||||
del:"Delete table",
|
||||
row:"Row",
|
||||
col:"Column",
|
||||
cell:"Cell"
|
||||
},
|
||||
autosave:{
|
||||
unload_msg:"The changes you made will be lost if you navigate away from this page."
|
||||
},
|
||||
fullscreen:{
|
||||
desc:"Toggle fullscreen mode"
|
||||
},
|
||||
media:{
|
||||
desc:"Insert / edit embedded media",
|
||||
edit:"Edit embedded media"
|
||||
},
|
||||
fullpage:{
|
||||
desc:"Document properties"
|
||||
},
|
||||
template:{
|
||||
desc:"Insert predefined template content"
|
||||
},
|
||||
visualchars:{
|
||||
desc:"Visual control characters on/off."
|
||||
},
|
||||
spellchecker:{
|
||||
desc:"Toggle spellchecker",
|
||||
menu:"Spellchecker settings",
|
||||
ignore_word:"Ignore word",
|
||||
ignore_words:"Ignore all",
|
||||
langs:"Languages",
|
||||
wait:"Please wait...",
|
||||
sug:"Suggestions",
|
||||
no_sug:"No suggestions",
|
||||
no_mpell:"No misspellings found."
|
||||
},
|
||||
pagebreak:{
|
||||
desc:"Insert page break."
|
||||
}}});
|
||||
@@ -0,0 +1,504 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
input.radio {border:1px none #000; background:transparent; vertical-align:middle;}
|
||||
.panel_wrapper div.current {height:80px;}
|
||||
#width {width:50px; vertical-align:middle;}
|
||||
#width2 {width:50px; vertical-align:middle;}
|
||||
#size {width:100px;}
|
||||
@@ -0,0 +1 @@
|
||||
(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})();
|
||||
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.AdvancedHRPlugin', {
|
||||
init : function(ed, url) {
|
||||
// Register commands
|
||||
ed.addCommand('mceAdvancedHr', function() {
|
||||
ed.windowManager.open({
|
||||
file : url + '/rule.htm',
|
||||
width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)),
|
||||
height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)),
|
||||
inline : 1
|
||||
}, {
|
||||
plugin_url : url
|
||||
});
|
||||
});
|
||||
|
||||
// Register buttons
|
||||
ed.addButton('advhr', {
|
||||
title : 'advhr.advhr_desc',
|
||||
cmd : 'mceAdvancedHr'
|
||||
});
|
||||
|
||||
ed.onNodeChange.add(function(ed, cm, n) {
|
||||
cm.setActive('advhr', n.nodeName == 'HR');
|
||||
});
|
||||
|
||||
ed.onClick.add(function(ed, e) {
|
||||
e = e.target;
|
||||
|
||||
if (e.nodeName === 'HR')
|
||||
ed.selection.select(e);
|
||||
});
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Advanced HR',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin);
|
||||
})();
|
||||
@@ -0,0 +1,43 @@
|
||||
var AdvHRDialog = {
|
||||
init : function(ed) {
|
||||
var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w;
|
||||
|
||||
w = dom.getAttrib(n, 'width');
|
||||
f.width.value = w ? parseInt(w) : (dom.getStyle('width') || '');
|
||||
f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || '';
|
||||
f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width');
|
||||
selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px');
|
||||
},
|
||||
|
||||
update : function() {
|
||||
var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = '';
|
||||
|
||||
h = '<hr';
|
||||
|
||||
if (f.size.value) {
|
||||
h += ' size="' + f.size.value + '"';
|
||||
st += ' height:' + f.size.value + 'px;';
|
||||
}
|
||||
|
||||
if (f.width.value) {
|
||||
h += ' width="' + f.width.value + (f.width2.value == '%' ? '%' : '') + '"';
|
||||
st += ' width:' + f.width.value + (f.width2.value == '%' ? '%' : 'px') + ';';
|
||||
}
|
||||
|
||||
if (f.noshade.checked) {
|
||||
h += ' noshade="noshade"';
|
||||
st += ' border-width: 1px; border-style: solid; border-color: #CCCCCC; color: #ffffff;';
|
||||
}
|
||||
|
||||
if (ed.settings.inline_styles)
|
||||
h += ' style="' + tinymce.trim(st) + '"';
|
||||
|
||||
h += ' />';
|
||||
|
||||
ed.execCommand("mceInsertContent", false, h);
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
};
|
||||
|
||||
tinyMCEPopup.requireLangPack();
|
||||
tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog);
|
||||
@@ -0,0 +1,5 @@
|
||||
tinyMCE.addI18n('en.advhr_dlg',{
|
||||
width:"Width",
|
||||
size:"Height",
|
||||
noshade:"No shadow"
|
||||
});
|
||||
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advhr.advhr_desc}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="js/rule.js"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
||||
<link href="css/advhr.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form onsubmit="AdvHRDialog.update();return false;" action="#">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel_wrapper">
|
||||
<div id="general_panel" class="panel current">
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr>
|
||||
<td><label for="width">{#advhr_dlg.width}</label></td>
|
||||
<td class="nowrap">
|
||||
<input id="width" name="width" type="text" value="" class="mceFocus" />
|
||||
<select name="width2" id="width2">
|
||||
<option value="">px</option>
|
||||
<option value="%">%</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="size">{#advhr_dlg.size}</label></td>
|
||||
<td><select id="size" name="size">
|
||||
<option value="">Normal</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
</select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="noshade">{#advhr_dlg.noshade}</label></td>
|
||||
<td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mceActionPanel">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
||||
</div>
|
||||
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
#src_list, #over_list, #out_list {width:280px;}
|
||||
.mceActionPanel {margin-top:7px;}
|
||||
.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;}
|
||||
.checkbox {border:0;}
|
||||
.panel_wrapper div.current {height:305px;}
|
||||
#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;}
|
||||
#align, #classlist {width:150px;}
|
||||
#width, #height {vertical-align:middle; width:50px; text-align:center;}
|
||||
#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;}
|
||||
#class_list {width:180px;}
|
||||
input {width: 280px;}
|
||||
#constrain, #onmousemovecheck {width:auto;}
|
||||
#id, #dir, #lang, #usemap, #longdesc {width:200px;}
|
||||
@@ -0,0 +1 @@
|
||||
(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})();
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* $Id: editor_plugin_src.js 677 2008-03-07 13:52:41Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.AdvancedImagePlugin', {
|
||||
init : function(ed, url) {
|
||||
// Register commands
|
||||
ed.addCommand('mceAdvImage', function() {
|
||||
// Internal image object like a flash placeholder
|
||||
if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1)
|
||||
return;
|
||||
|
||||
ed.windowManager.open({
|
||||
file : url + '/image.htm',
|
||||
width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
|
||||
height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
|
||||
inline : 1
|
||||
}, {
|
||||
plugin_url : url
|
||||
});
|
||||
});
|
||||
|
||||
// Register buttons
|
||||
ed.addButton('image', {
|
||||
title : 'advimage.image_desc',
|
||||
cmd : 'mceAdvImage'
|
||||
});
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Advanced image',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin);
|
||||
})();
|
||||
@@ -0,0 +1,237 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advimage_dlg.dialog_title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
||||
<script type="text/javascript" src="../../utils/validate.js"></script>
|
||||
<script type="text/javascript" src="../../utils/editable_selects.js"></script>
|
||||
<script type="text/javascript" src="js/image.js"></script>
|
||||
<link href="css/advimage.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body id="advimage" style="display: none">
|
||||
<form onsubmit="ImageDialog.insert();return false;" action="#">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advimage_dlg.tab_general}</a></span></li>
|
||||
<li id="appearance_tab"><span><a href="javascript:mcTabs.displayTab('appearance_tab','appearance_panel');" onmousedown="return false;">{#advimage_dlg.tab_appearance}</a></span></li>
|
||||
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advimage_dlg.tab_advanced}</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel_wrapper">
|
||||
<div id="general_panel" class="panel current">
|
||||
<fieldset>
|
||||
<legend>{#advimage_dlg.general}</legend>
|
||||
|
||||
<table class="properties">
|
||||
<tr>
|
||||
<td class="column1"><label id="srclabel" for="src">{#advimage_dlg.src}</label></td>
|
||||
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input name="src" type="text" id="src" value="" class="mceFocus" onchange="ImageDialog.showPreviewImage(this.value);" /></td>
|
||||
<td id="srcbrowsercontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="src_list">{#advimage_dlg.image_list}</label></td>
|
||||
<td><select id="src_list" name="src_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;document.getElementById('title').value=this.options[this.selectedIndex].text;ImageDialog.showPreviewImage(this.options[this.selectedIndex].value);"><option value=""></option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column1"><label id="altlabel" for="alt">{#advimage_dlg.alt}</label></td>
|
||||
<td colspan="2"><input id="alt" name="alt" type="text" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column1"><label id="titlelabel" for="title">{#advimage_dlg.title}</label></td>
|
||||
<td colspan="2"><input id="title" name="title" type="text" value="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{#advimage_dlg.preview}</legend>
|
||||
<div id="prev"></div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="appearance_panel" class="panel">
|
||||
<fieldset>
|
||||
<legend>{#advimage_dlg.tab_appearance}</legend>
|
||||
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr>
|
||||
<td class="column1"><label id="alignlabel" for="align">{#advimage_dlg.align}</label></td>
|
||||
<td><select id="align" name="align" onchange="ImageDialog.updateStyle('align');ImageDialog.changeAppearance();">
|
||||
<option value="">{#not_set}</option>
|
||||
<option value="baseline">{#advimage_dlg.align_baseline}</option>
|
||||
<option value="top">{#advimage_dlg.align_top}</option>
|
||||
<option value="middle">{#advimage_dlg.align_middle}</option>
|
||||
<option value="bottom">{#advimage_dlg.align_bottom}</option>
|
||||
<option value="text-top">{#advimage_dlg.align_texttop}</option>
|
||||
<option value="text-bottom">{#advimage_dlg.align_textbottom}</option>
|
||||
<option value="left">{#advimage_dlg.align_left}</option>
|
||||
<option value="right">{#advimage_dlg.align_right}</option>
|
||||
</select>
|
||||
</td>
|
||||
<td rowspan="6" valign="top">
|
||||
<div class="alignPreview">
|
||||
<img id="alignSampleImg" src="img/sample.gif" alt="{#advimage_dlg.example_img}" />
|
||||
Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam
|
||||
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum
|
||||
edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
|
||||
erat volutpat.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="widthlabel" for="width">{#advimage_dlg.dimensions}</label></td>
|
||||
<td class="nowrap">
|
||||
<input name="width" type="text" id="width" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeHeight();" /> x
|
||||
<input name="height" type="text" id="height" value="" size="5" maxlength="5" class="size" onchange="ImageDialog.changeWidth();" /> px
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td><input id="constrain" type="checkbox" name="constrain" class="checkbox" /></td>
|
||||
<td><label id="constrainlabel" for="constrain">{#advimage_dlg.constrain_proportions}</label></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="vspacelabel" for="vspace">{#advimage_dlg.vspace}</label></td>
|
||||
<td><input name="vspace" type="text" id="vspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('vspace');ImageDialog.changeAppearance();" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="hspacelabel" for="hspace">{#advimage_dlg.hspace}</label></td>
|
||||
<td><input name="hspace" type="text" id="hspace" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('hspace');ImageDialog.changeAppearance();" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="borderlabel" for="border">{#advimage_dlg.border}</label></td>
|
||||
<td><input id="border" name="border" type="text" value="" size="3" maxlength="3" class="number" onchange="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" onblur="ImageDialog.updateStyle('border');ImageDialog.changeAppearance();" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label for="class_list">{#class_name}</label></td>
|
||||
<td colspan="2"><select id="class_list" name="class_list" class="mceEditableSelect"><option value=""></option></select></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="stylelabel" for="style">{#advimage_dlg.style}</label></td>
|
||||
<td colspan="2"><input id="style" name="style" type="text" value="" onchange="ImageDialog.changeAppearance();" /></td>
|
||||
</tr>
|
||||
|
||||
<!-- <tr>
|
||||
<td class="column1"><label id="classeslabel" for="classes">{#advimage_dlg.classes}</label></td>
|
||||
<td colspan="2"><input id="classes" name="classes" type="text" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
|
||||
</tr> -->
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="advanced_panel" class="panel">
|
||||
<fieldset>
|
||||
<legend>{#advimage_dlg.swap_image}</legend>
|
||||
|
||||
<input type="checkbox" id="onmousemovecheck" name="onmousemovecheck" class="checkbox" onclick="ImageDialog.setSwapImage(this.checked);" />
|
||||
<label id="onmousemovechecklabel" for="onmousemovecheck">{#advimage_dlg.alt_image}</label>
|
||||
|
||||
<table border="0" cellpadding="4" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td class="column1"><label id="onmouseoversrclabel" for="onmouseoversrc">{#advimage_dlg.mouseover}</label></td>
|
||||
<td><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input id="onmouseoversrc" name="onmouseoversrc" type="text" value="" /></td>
|
||||
<td id="onmouseoversrccontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="over_list">{#advimage_dlg.image_list}</label></td>
|
||||
<td><select id="over_list" name="over_list" onchange="document.getElementById('onmouseoversrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column1"><label id="onmouseoutsrclabel" for="onmouseoutsrc">{#advimage_dlg.mouseout}</label></td>
|
||||
<td class="column2"><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input id="onmouseoutsrc" name="onmouseoutsrc" type="text" value="" /></td>
|
||||
<td id="onmouseoutsrccontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="out_list">{#advimage_dlg.image_list}</label></td>
|
||||
<td><select id="out_list" name="out_list" onchange="document.getElementById('onmouseoutsrc').value=this.options[this.selectedIndex].value;"><option value=""></option></select></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{#advimage_dlg.misc}</legend>
|
||||
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr>
|
||||
<td class="column1"><label id="idlabel" for="id">{#advimage_dlg.id}</label></td>
|
||||
<td><input id="id" name="id" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="dirlabel" for="dir">{#advimage_dlg.langdir}</label></td>
|
||||
<td>
|
||||
<select id="dir" name="dir" onchange="ImageDialog.changeAppearance();">
|
||||
<option value="">{#not_set}</option>
|
||||
<option value="ltr">{#advimage_dlg.ltr}</option>
|
||||
<option value="rtl">{#advimage_dlg.rtl}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="langlabel" for="lang">{#advimage_dlg.langcode}</label></td>
|
||||
<td>
|
||||
<input id="lang" name="lang" type="text" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="usemaplabel" for="usemap">{#advimage_dlg.map}</label></td>
|
||||
<td>
|
||||
<input id="usemap" name="usemap" type="text" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="longdesclabel" for="longdesc">{#advimage_dlg.long_desc}</label></td>
|
||||
<td><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input id="longdesc" name="longdesc" type="text" value="" /></td>
|
||||
<td id="longdesccontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mceActionPanel">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
||||
</div>
|
||||
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,443 @@
|
||||
var ImageDialog = {
|
||||
preInit : function() {
|
||||
var url;
|
||||
|
||||
tinyMCEPopup.requireLangPack();
|
||||
|
||||
if (url = tinyMCEPopup.getParam("external_image_list_url"))
|
||||
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
|
||||
},
|
||||
|
||||
init : function(ed) {
|
||||
var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode();
|
||||
|
||||
tinyMCEPopup.resizeToInnerSize();
|
||||
this.fillClassList('class_list');
|
||||
this.fillFileList('src_list', 'tinyMCEImageList');
|
||||
this.fillFileList('over_list', 'tinyMCEImageList');
|
||||
this.fillFileList('out_list', 'tinyMCEImageList');
|
||||
TinyMCE_EditableSelects.init();
|
||||
|
||||
if (n.nodeName == 'IMG') {
|
||||
nl.src.value = dom.getAttrib(n, 'src');
|
||||
nl.width.value = dom.getAttrib(n, 'width');
|
||||
nl.height.value = dom.getAttrib(n, 'height');
|
||||
nl.alt.value = dom.getAttrib(n, 'alt');
|
||||
nl.title.value = dom.getAttrib(n, 'title');
|
||||
nl.vspace.value = this.getAttrib(n, 'vspace');
|
||||
nl.hspace.value = this.getAttrib(n, 'hspace');
|
||||
nl.border.value = this.getAttrib(n, 'border');
|
||||
selectByValue(f, 'align', this.getAttrib(n, 'align'));
|
||||
selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true);
|
||||
nl.style.value = dom.getAttrib(n, 'style');
|
||||
nl.id.value = dom.getAttrib(n, 'id');
|
||||
nl.dir.value = dom.getAttrib(n, 'dir');
|
||||
nl.lang.value = dom.getAttrib(n, 'lang');
|
||||
nl.usemap.value = dom.getAttrib(n, 'usemap');
|
||||
nl.longdesc.value = dom.getAttrib(n, 'longdesc');
|
||||
nl.insert.value = ed.getLang('update');
|
||||
|
||||
if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover')))
|
||||
nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
|
||||
|
||||
if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout')))
|
||||
nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1');
|
||||
|
||||
if (ed.settings.inline_styles) {
|
||||
// Move attribs to styles
|
||||
if (dom.getAttrib(n, 'align'))
|
||||
this.updateStyle('align');
|
||||
|
||||
if (dom.getAttrib(n, 'hspace'))
|
||||
this.updateStyle('hspace');
|
||||
|
||||
if (dom.getAttrib(n, 'border'))
|
||||
this.updateStyle('border');
|
||||
|
||||
if (dom.getAttrib(n, 'vspace'))
|
||||
this.updateStyle('vspace');
|
||||
}
|
||||
}
|
||||
|
||||
// Setup browse button
|
||||
document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image');
|
||||
if (isVisible('srcbrowser'))
|
||||
document.getElementById('src').style.width = '260px';
|
||||
|
||||
// Setup browse button
|
||||
document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image');
|
||||
if (isVisible('overbrowser'))
|
||||
document.getElementById('onmouseoversrc').style.width = '260px';
|
||||
|
||||
// Setup browse button
|
||||
document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image');
|
||||
if (isVisible('outbrowser'))
|
||||
document.getElementById('onmouseoutsrc').style.width = '260px';
|
||||
|
||||
// If option enabled default contrain proportions to checked
|
||||
if (ed.getParam("advimage_constrain_proportions", true))
|
||||
f.constrain.checked = true;
|
||||
|
||||
// Check swap image if valid data
|
||||
if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value)
|
||||
this.setSwapImage(true);
|
||||
else
|
||||
this.setSwapImage(false);
|
||||
|
||||
this.changeAppearance();
|
||||
this.showPreviewImage(nl.src.value, 1);
|
||||
},
|
||||
|
||||
insert : function(file, title) {
|
||||
var ed = tinyMCEPopup.editor, t = this, f = document.forms[0];
|
||||
|
||||
if (f.src.value === '') {
|
||||
if (ed.selection.getNode().nodeName == 'IMG') {
|
||||
ed.dom.remove(ed.selection.getNode());
|
||||
ed.execCommand('mceRepaint');
|
||||
}
|
||||
|
||||
tinyMCEPopup.close();
|
||||
return;
|
||||
}
|
||||
|
||||
if (tinyMCEPopup.getParam("accessibility_warnings", 1)) {
|
||||
if (!f.alt.value) {
|
||||
tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) {
|
||||
if (s)
|
||||
t.insertAndClose();
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
t.insertAndClose();
|
||||
},
|
||||
|
||||
insertAndClose : function() {
|
||||
var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el;
|
||||
|
||||
tinyMCEPopup.restoreSelection();
|
||||
|
||||
// Fixes crash in Safari
|
||||
if (tinymce.isWebKit)
|
||||
ed.getWin().focus();
|
||||
|
||||
if (!ed.settings.inline_styles) {
|
||||
args = {
|
||||
vspace : nl.vspace.value,
|
||||
hspace : nl.hspace.value,
|
||||
border : nl.border.value,
|
||||
align : getSelectValue(f, 'align')
|
||||
};
|
||||
} else {
|
||||
// Remove deprecated values
|
||||
args = {
|
||||
vspace : '',
|
||||
hspace : '',
|
||||
border : '',
|
||||
align : ''
|
||||
};
|
||||
}
|
||||
|
||||
tinymce.extend(args, {
|
||||
src : nl.src.value,
|
||||
width : nl.width.value,
|
||||
height : nl.height.value,
|
||||
alt : nl.alt.value,
|
||||
title : nl.title.value,
|
||||
'class' : getSelectValue(f, 'class_list'),
|
||||
style : nl.style.value,
|
||||
id : nl.id.value,
|
||||
dir : nl.dir.value,
|
||||
lang : nl.lang.value,
|
||||
usemap : nl.usemap.value,
|
||||
longdesc : nl.longdesc.value
|
||||
});
|
||||
|
||||
args.onmouseover = args.onmouseout = '';
|
||||
|
||||
if (f.onmousemovecheck.checked) {
|
||||
if (nl.onmouseoversrc.value)
|
||||
args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';";
|
||||
|
||||
if (nl.onmouseoutsrc.value)
|
||||
args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';";
|
||||
}
|
||||
|
||||
el = ed.selection.getNode();
|
||||
|
||||
if (el && el.nodeName == 'IMG') {
|
||||
ed.dom.setAttribs(el, args);
|
||||
} else {
|
||||
ed.execCommand('mceInsertContent', false, '<img id="__mce_tmp" />', {skip_undo : 1});
|
||||
ed.dom.setAttribs('__mce_tmp', args);
|
||||
ed.dom.setAttrib('__mce_tmp', 'id', '');
|
||||
ed.undoManager.add();
|
||||
}
|
||||
|
||||
tinyMCEPopup.close();
|
||||
},
|
||||
|
||||
getAttrib : function(e, at) {
|
||||
var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2;
|
||||
|
||||
if (ed.settings.inline_styles) {
|
||||
switch (at) {
|
||||
case 'align':
|
||||
if (v = dom.getStyle(e, 'float'))
|
||||
return v;
|
||||
|
||||
if (v = dom.getStyle(e, 'vertical-align'))
|
||||
return v;
|
||||
|
||||
break;
|
||||
|
||||
case 'hspace':
|
||||
v = dom.getStyle(e, 'margin-left')
|
||||
v2 = dom.getStyle(e, 'margin-right');
|
||||
|
||||
if (v && v == v2)
|
||||
return parseInt(v.replace(/[^0-9]/g, ''));
|
||||
|
||||
break;
|
||||
|
||||
case 'vspace':
|
||||
v = dom.getStyle(e, 'margin-top')
|
||||
v2 = dom.getStyle(e, 'margin-bottom');
|
||||
if (v && v == v2)
|
||||
return parseInt(v.replace(/[^0-9]/g, ''));
|
||||
|
||||
break;
|
||||
|
||||
case 'border':
|
||||
v = 0;
|
||||
|
||||
tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) {
|
||||
sv = dom.getStyle(e, 'border-' + sv + '-width');
|
||||
|
||||
// False or not the same as prev
|
||||
if (!sv || (sv != v && v !== 0)) {
|
||||
v = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (sv)
|
||||
v = sv;
|
||||
});
|
||||
|
||||
if (v)
|
||||
return parseInt(v.replace(/[^0-9]/g, ''));
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (v = dom.getAttrib(e, at))
|
||||
return v;
|
||||
|
||||
return '';
|
||||
},
|
||||
|
||||
setSwapImage : function(st) {
|
||||
var f = document.forms[0];
|
||||
|
||||
f.onmousemovecheck.checked = st;
|
||||
setBrowserDisabled('overbrowser', !st);
|
||||
setBrowserDisabled('outbrowser', !st);
|
||||
|
||||
if (f.over_list)
|
||||
f.over_list.disabled = !st;
|
||||
|
||||
if (f.out_list)
|
||||
f.out_list.disabled = !st;
|
||||
|
||||
f.onmouseoversrc.disabled = !st;
|
||||
f.onmouseoutsrc.disabled = !st;
|
||||
},
|
||||
|
||||
fillClassList : function(id) {
|
||||
var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
|
||||
|
||||
if (v = tinyMCEPopup.getParam('theme_advanced_styles')) {
|
||||
cl = [];
|
||||
|
||||
tinymce.each(v.split(';'), function(v) {
|
||||
var p = v.split('=');
|
||||
|
||||
cl.push({'title' : p[0], 'class' : p[1]});
|
||||
});
|
||||
} else
|
||||
cl = tinyMCEPopup.editor.dom.getClasses();
|
||||
|
||||
if (cl.length > 0) {
|
||||
lst.options.length = 0;
|
||||
lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), '');
|
||||
|
||||
tinymce.each(cl, function(o) {
|
||||
lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']);
|
||||
});
|
||||
} else
|
||||
dom.remove(dom.getParent(id, 'tr'));
|
||||
},
|
||||
|
||||
fillFileList : function(id, l) {
|
||||
var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
|
||||
|
||||
l = window[l];
|
||||
lst.options.length = 0;
|
||||
|
||||
if (l && l.length > 0) {
|
||||
lst.options[lst.options.length] = new Option('', '');
|
||||
|
||||
tinymce.each(l, function(o) {
|
||||
lst.options[lst.options.length] = new Option(o[0], o[1]);
|
||||
});
|
||||
} else
|
||||
dom.remove(dom.getParent(id, 'tr'));
|
||||
},
|
||||
|
||||
resetImageData : function() {
|
||||
var f = document.forms[0];
|
||||
|
||||
f.elements.width.value = f.elements.height.value = '';
|
||||
},
|
||||
|
||||
updateImageData : function(img, st) {
|
||||
var f = document.forms[0];
|
||||
|
||||
if (!st) {
|
||||
f.elements.width.value = img.width;
|
||||
f.elements.height.value = img.height;
|
||||
}
|
||||
|
||||
this.preloadImg = img;
|
||||
},
|
||||
|
||||
changeAppearance : function() {
|
||||
var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg');
|
||||
|
||||
if (img) {
|
||||
if (ed.getParam('inline_styles')) {
|
||||
ed.dom.setAttrib(img, 'style', f.style.value);
|
||||
} else {
|
||||
img.align = f.align.value;
|
||||
img.border = f.border.value;
|
||||
img.hspace = f.hspace.value;
|
||||
img.vspace = f.vspace.value;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
changeHeight : function() {
|
||||
var f = document.forms[0], tp, t = this;
|
||||
|
||||
if (!f.constrain.checked || !t.preloadImg) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (f.width.value == "" || f.height.value == "")
|
||||
return;
|
||||
|
||||
tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height;
|
||||
f.height.value = tp.toFixed(0);
|
||||
},
|
||||
|
||||
changeWidth : function() {
|
||||
var f = document.forms[0], tp, t = this;
|
||||
|
||||
if (!f.constrain.checked || !t.preloadImg) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (f.width.value == "" || f.height.value == "")
|
||||
return;
|
||||
|
||||
tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width;
|
||||
f.width.value = tp.toFixed(0);
|
||||
},
|
||||
|
||||
updateStyle : function(ty) {
|
||||
var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value});
|
||||
|
||||
if (tinyMCEPopup.editor.settings.inline_styles) {
|
||||
// Handle align
|
||||
if (ty == 'align') {
|
||||
dom.setStyle(img, 'float', '');
|
||||
dom.setStyle(img, 'vertical-align', '');
|
||||
|
||||
v = getSelectValue(f, 'align');
|
||||
if (v) {
|
||||
if (v == 'left' || v == 'right')
|
||||
dom.setStyle(img, 'float', v);
|
||||
else
|
||||
img.style.verticalAlign = v;
|
||||
}
|
||||
}
|
||||
|
||||
// Handle border
|
||||
if (ty == 'border') {
|
||||
dom.setStyle(img, 'border', '');
|
||||
|
||||
v = f.border.value;
|
||||
if (v || v == '0') {
|
||||
if (v == '0')
|
||||
img.style.border = '0';
|
||||
else
|
||||
img.style.border = v + 'px solid black';
|
||||
}
|
||||
}
|
||||
|
||||
// Handle hspace
|
||||
if (ty == 'hspace') {
|
||||
dom.setStyle(img, 'marginLeft', '');
|
||||
dom.setStyle(img, 'marginRight', '');
|
||||
|
||||
v = f.hspace.value;
|
||||
if (v) {
|
||||
img.style.marginLeft = v + 'px';
|
||||
img.style.marginRight = v + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
// Handle vspace
|
||||
if (ty == 'vspace') {
|
||||
dom.setStyle(img, 'marginTop', '');
|
||||
dom.setStyle(img, 'marginBottom', '');
|
||||
|
||||
v = f.vspace.value;
|
||||
if (v) {
|
||||
img.style.marginTop = v + 'px';
|
||||
img.style.marginBottom = v + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
// Merge
|
||||
dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText));
|
||||
}
|
||||
},
|
||||
|
||||
changeMouseMove : function() {
|
||||
},
|
||||
|
||||
showPreviewImage : function(u, st) {
|
||||
if (!u) {
|
||||
tinyMCEPopup.dom.setHTML('prev', '');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true))
|
||||
this.resetImageData();
|
||||
|
||||
u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u);
|
||||
|
||||
if (!st)
|
||||
tinyMCEPopup.dom.setHTML('prev', '<img id="previewImg" src="' + u + '" border="0" onload="ImageDialog.updateImageData(this);" onerror="ImageDialog.resetImageData();" />');
|
||||
else
|
||||
tinyMCEPopup.dom.setHTML('prev', '<img id="previewImg" src="' + u + '" border="0" onload="ImageDialog.updateImageData(this, 1);" />');
|
||||
}
|
||||
};
|
||||
|
||||
ImageDialog.preInit();
|
||||
tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog);
|
||||
@@ -0,0 +1,43 @@
|
||||
tinyMCE.addI18n('en.advimage_dlg',{
|
||||
tab_general:"General",
|
||||
tab_appearance:"Appearance",
|
||||
tab_advanced:"Advanced",
|
||||
general:"General",
|
||||
title:"Title",
|
||||
preview:"Preview",
|
||||
constrain_proportions:"Constrain proportions",
|
||||
langdir:"Language direction",
|
||||
langcode:"Language code",
|
||||
long_desc:"Long description link",
|
||||
style:"Style",
|
||||
classes:"Classes",
|
||||
ltr:"Left to right",
|
||||
rtl:"Right to left",
|
||||
id:"Id",
|
||||
map:"Image map",
|
||||
swap_image:"Swap image",
|
||||
alt_image:"Alternative image",
|
||||
mouseover:"for mouse over",
|
||||
mouseout:"for mouse out",
|
||||
misc:"Miscellaneous",
|
||||
example_img:"Appearance preview image",
|
||||
missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.",
|
||||
dialog_title:"Insert/edit image",
|
||||
src:"Image URL",
|
||||
alt:"Image description",
|
||||
list:"Image list",
|
||||
border:"Border",
|
||||
dimensions:"Dimensions",
|
||||
vspace:"Vertical space",
|
||||
hspace:"Horizontal space",
|
||||
align:"Alignment",
|
||||
align_baseline:"Baseline",
|
||||
align_top:"Top",
|
||||
align_middle:"Middle",
|
||||
align_bottom:"Bottom",
|
||||
align_texttop:"Text top",
|
||||
align_textbottom:"Text bottom",
|
||||
align_left:"Left",
|
||||
align_right:"Right",
|
||||
image_list:"Image list"
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
.mceLinkList, .mceAnchorList, #targetlist {width:280px;}
|
||||
.mceActionPanel {margin-top:7px;}
|
||||
.panel_wrapper div.current {height:320px;}
|
||||
#classlist, #title, #href {width:280px;}
|
||||
#popupurl, #popupname {width:200px;}
|
||||
#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;}
|
||||
#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;}
|
||||
#events_panel input {width:200px;}
|
||||
@@ -0,0 +1 @@
|
||||
(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})();
|
||||
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* $Id: editor_plugin_src.js 539 2008-01-14 19:08:58Z spocke $
|
||||
*
|
||||
* @author Moxiecode
|
||||
* @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
tinymce.create('tinymce.plugins.AdvancedLinkPlugin', {
|
||||
init : function(ed, url) {
|
||||
this.editor = ed;
|
||||
|
||||
// Register commands
|
||||
ed.addCommand('mceAdvLink', function() {
|
||||
var se = ed.selection;
|
||||
|
||||
// No selection and not in link
|
||||
if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A'))
|
||||
return;
|
||||
|
||||
ed.windowManager.open({
|
||||
file : url + '/link.htm',
|
||||
width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)),
|
||||
height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)),
|
||||
inline : 1
|
||||
}, {
|
||||
plugin_url : url
|
||||
});
|
||||
});
|
||||
|
||||
// Register buttons
|
||||
ed.addButton('link', {
|
||||
title : 'advlink.link_desc',
|
||||
cmd : 'mceAdvLink'
|
||||
});
|
||||
|
||||
ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink');
|
||||
|
||||
ed.onNodeChange.add(function(ed, cm, n, co) {
|
||||
cm.setDisabled('link', co && n.nodeName != 'A');
|
||||
cm.setActive('link', n.nodeName == 'A' && !n.name);
|
||||
});
|
||||
},
|
||||
|
||||
getInfo : function() {
|
||||
return {
|
||||
longname : 'Advanced link',
|
||||
author : 'Moxiecode Systems AB',
|
||||
authorurl : 'http://tinymce.moxiecode.com',
|
||||
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
|
||||
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Register plugin
|
||||
tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin);
|
||||
})();
|
||||
@@ -0,0 +1,528 @@
|
||||
/* Functions for the advlink plugin popup */
|
||||
|
||||
tinyMCEPopup.requireLangPack();
|
||||
|
||||
var templates = {
|
||||
"window.open" : "window.open('${url}','${target}','${options}')"
|
||||
};
|
||||
|
||||
function preinit() {
|
||||
var url;
|
||||
|
||||
if (url = tinyMCEPopup.getParam("external_link_list_url"))
|
||||
document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
|
||||
}
|
||||
|
||||
function changeClass() {
|
||||
var f = document.forms[0];
|
||||
|
||||
f.classes.value = getSelectValue(f, 'classlist');
|
||||
}
|
||||
|
||||
function init() {
|
||||
tinyMCEPopup.resizeToInnerSize();
|
||||
|
||||
var formObj = document.forms[0];
|
||||
var inst = tinyMCEPopup.editor;
|
||||
var elm = inst.selection.getNode();
|
||||
var action = "insert";
|
||||
var html;
|
||||
|
||||
document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
|
||||
document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
|
||||
document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href');
|
||||
document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href');
|
||||
document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
|
||||
|
||||
// Link list
|
||||
html = getLinkListHTML('linklisthref','href');
|
||||
if (html == "")
|
||||
document.getElementById("linklisthrefrow").style.display = 'none';
|
||||
else
|
||||
document.getElementById("linklisthrefcontainer").innerHTML = html;
|
||||
|
||||
// Resize some elements
|
||||
if (isVisible('hrefbrowser'))
|
||||
document.getElementById('href').style.width = '260px';
|
||||
|
||||
if (isVisible('popupurlbrowser'))
|
||||
document.getElementById('popupurl').style.width = '180px';
|
||||
|
||||
elm = inst.dom.getParent(elm, "A");
|
||||
if (elm != null && elm.nodeName == "A")
|
||||
action = "update";
|
||||
|
||||
formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true);
|
||||
|
||||
setPopupControlsDisabled(true);
|
||||
|
||||
if (action == "update") {
|
||||
var href = inst.dom.getAttrib(elm, 'href');
|
||||
var onclick = inst.dom.getAttrib(elm, 'onclick');
|
||||
|
||||
// Setup form data
|
||||
setFormValue('href', href);
|
||||
setFormValue('title', inst.dom.getAttrib(elm, 'title'));
|
||||
setFormValue('id', inst.dom.getAttrib(elm, 'id'));
|
||||
setFormValue('style', inst.dom.getAttrib(elm, "style"));
|
||||
setFormValue('rel', inst.dom.getAttrib(elm, 'rel'));
|
||||
setFormValue('rev', inst.dom.getAttrib(elm, 'rev'));
|
||||
setFormValue('charset', inst.dom.getAttrib(elm, 'charset'));
|
||||
setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang'));
|
||||
setFormValue('dir', inst.dom.getAttrib(elm, 'dir'));
|
||||
setFormValue('lang', inst.dom.getAttrib(elm, 'lang'));
|
||||
setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
|
||||
setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
|
||||
setFormValue('type', inst.dom.getAttrib(elm, 'type'));
|
||||
setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus'));
|
||||
setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur'));
|
||||
setFormValue('onclick', onclick);
|
||||
setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick'));
|
||||
setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown'));
|
||||
setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup'));
|
||||
setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover'));
|
||||
setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove'));
|
||||
setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout'));
|
||||
setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress'));
|
||||
setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown'));
|
||||
setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup'));
|
||||
setFormValue('target', inst.dom.getAttrib(elm, 'target'));
|
||||
setFormValue('classes', inst.dom.getAttrib(elm, 'class'));
|
||||
|
||||
// Parse onclick data
|
||||
if (onclick != null && onclick.indexOf('window.open') != -1)
|
||||
parseWindowOpen(onclick);
|
||||
else
|
||||
parseFunction(onclick);
|
||||
|
||||
// Select by the values
|
||||
selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir'));
|
||||
selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel'));
|
||||
selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev'));
|
||||
selectByValue(formObj, 'linklisthref', href);
|
||||
|
||||
if (href.charAt(0) == '#')
|
||||
selectByValue(formObj, 'anchorlist', href);
|
||||
|
||||
addClassesToList('classlist', 'advlink_styles');
|
||||
|
||||
selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true);
|
||||
selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true);
|
||||
} else
|
||||
addClassesToList('classlist', 'advlink_styles');
|
||||
}
|
||||
|
||||
function checkPrefix(n) {
|
||||
if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
|
||||
n.value = 'mailto:' + n.value;
|
||||
|
||||
if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
|
||||
n.value = 'http://' + n.value;
|
||||
}
|
||||
|
||||
function setFormValue(name, value) {
|
||||
document.forms[0].elements[name].value = value;
|
||||
}
|
||||
|
||||
function parseWindowOpen(onclick) {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
// Preprocess center code
|
||||
if (onclick.indexOf('return false;') != -1) {
|
||||
formObj.popupreturn.checked = true;
|
||||
onclick = onclick.replace('return false;', '');
|
||||
} else
|
||||
formObj.popupreturn.checked = false;
|
||||
|
||||
var onClickData = parseLink(onclick);
|
||||
|
||||
if (onClickData != null) {
|
||||
formObj.ispopup.checked = true;
|
||||
setPopupControlsDisabled(false);
|
||||
|
||||
var onClickWindowOptions = parseOptions(onClickData['options']);
|
||||
var url = onClickData['url'];
|
||||
|
||||
formObj.popupname.value = onClickData['target'];
|
||||
formObj.popupurl.value = url;
|
||||
formObj.popupwidth.value = getOption(onClickWindowOptions, 'width');
|
||||
formObj.popupheight.value = getOption(onClickWindowOptions, 'height');
|
||||
|
||||
formObj.popupleft.value = getOption(onClickWindowOptions, 'left');
|
||||
formObj.popuptop.value = getOption(onClickWindowOptions, 'top');
|
||||
|
||||
if (formObj.popupleft.value.indexOf('screen') != -1)
|
||||
formObj.popupleft.value = "c";
|
||||
|
||||
if (formObj.popuptop.value.indexOf('screen') != -1)
|
||||
formObj.popuptop.value = "c";
|
||||
|
||||
formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes";
|
||||
formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes";
|
||||
formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes";
|
||||
formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes";
|
||||
formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes";
|
||||
formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes";
|
||||
formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes";
|
||||
|
||||
buildOnClick();
|
||||
}
|
||||
}
|
||||
|
||||
function parseFunction(onclick) {
|
||||
var formObj = document.forms[0];
|
||||
var onClickData = parseLink(onclick);
|
||||
|
||||
// TODO: Add stuff here
|
||||
}
|
||||
|
||||
function getOption(opts, name) {
|
||||
return typeof(opts[name]) == "undefined" ? "" : opts[name];
|
||||
}
|
||||
|
||||
function setPopupControlsDisabled(state) {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
formObj.popupname.disabled = state;
|
||||
formObj.popupurl.disabled = state;
|
||||
formObj.popupwidth.disabled = state;
|
||||
formObj.popupheight.disabled = state;
|
||||
formObj.popupleft.disabled = state;
|
||||
formObj.popuptop.disabled = state;
|
||||
formObj.popuplocation.disabled = state;
|
||||
formObj.popupscrollbars.disabled = state;
|
||||
formObj.popupmenubar.disabled = state;
|
||||
formObj.popupresizable.disabled = state;
|
||||
formObj.popuptoolbar.disabled = state;
|
||||
formObj.popupstatus.disabled = state;
|
||||
formObj.popupreturn.disabled = state;
|
||||
formObj.popupdependent.disabled = state;
|
||||
|
||||
setBrowserDisabled('popupurlbrowser', state);
|
||||
}
|
||||
|
||||
function parseLink(link) {
|
||||
link = link.replace(new RegExp(''', 'g'), "'");
|
||||
|
||||
var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1");
|
||||
|
||||
// Is function name a template function
|
||||
var template = templates[fnName];
|
||||
if (template) {
|
||||
// Build regexp
|
||||
var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi"));
|
||||
var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\(";
|
||||
var replaceStr = "";
|
||||
for (var i=0; i<variableNames.length; i++) {
|
||||
// Is string value
|
||||
if (variableNames[i].indexOf("'${") != -1)
|
||||
regExp += "'(.*)'";
|
||||
else // Number value
|
||||
regExp += "([0-9]*)";
|
||||
|
||||
replaceStr += "$" + (i+1);
|
||||
|
||||
// Cleanup variable name
|
||||
variableNames[i] = variableNames[i].replace(new RegExp("[^A-Za-z0-9]", "gi"), "");
|
||||
|
||||
if (i != variableNames.length-1) {
|
||||
regExp += "\\s*,\\s*";
|
||||
replaceStr += "<delim>";
|
||||
} else
|
||||
regExp += ".*";
|
||||
}
|
||||
|
||||
regExp += "\\);?";
|
||||
|
||||
// Build variable array
|
||||
var variables = [];
|
||||
variables["_function"] = fnName;
|
||||
var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split('<delim>');
|
||||
for (var i=0; i<variableNames.length; i++)
|
||||
variables[variableNames[i]] = variableValues[i];
|
||||
|
||||
return variables;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
function parseOptions(opts) {
|
||||
if (opts == null || opts == "")
|
||||
return [];
|
||||
|
||||
// Cleanup the options
|
||||
opts = opts.toLowerCase();
|
||||
opts = opts.replace(/;/g, ",");
|
||||
opts = opts.replace(/[^0-9a-z=,]/g, "");
|
||||
|
||||
var optionChunks = opts.split(',');
|
||||
var options = [];
|
||||
|
||||
for (var i=0; i<optionChunks.length; i++) {
|
||||
var parts = optionChunks[i].split('=');
|
||||
|
||||
if (parts.length == 2)
|
||||
options[parts[0]] = parts[1];
|
||||
}
|
||||
|
||||
return options;
|
||||
}
|
||||
|
||||
function buildOnClick() {
|
||||
var formObj = document.forms[0];
|
||||
|
||||
if (!formObj.ispopup.checked) {
|
||||
formObj.onclick.value = "";
|
||||
return;
|
||||
}
|
||||
|
||||
var onclick = "window.open('";
|
||||
var url = formObj.popupurl.value;
|
||||
|
||||
onclick += url + "','";
|
||||
onclick += formObj.popupname.value + "','";
|
||||
|
||||
if (formObj.popuplocation.checked)
|
||||
onclick += "location=yes,";
|
||||
|
||||
if (formObj.popupscrollbars.checked)
|
||||
onclick += "scrollbars=yes,";
|
||||
|
||||
if (formObj.popupmenubar.checked)
|
||||
onclick += "menubar=yes,";
|
||||
|
||||
if (formObj.popupresizable.checked)
|
||||
onclick += "resizable=yes,";
|
||||
|
||||
if (formObj.popuptoolbar.checked)
|
||||
onclick += "toolbar=yes,";
|
||||
|
||||
if (formObj.popupstatus.checked)
|
||||
onclick += "status=yes,";
|
||||
|
||||
if (formObj.popupdependent.checked)
|
||||
onclick += "dependent=yes,";
|
||||
|
||||
if (formObj.popupwidth.value != "")
|
||||
onclick += "width=" + formObj.popupwidth.value + ",";
|
||||
|
||||
if (formObj.popupheight.value != "")
|
||||
onclick += "height=" + formObj.popupheight.value + ",";
|
||||
|
||||
if (formObj.popupleft.value != "") {
|
||||
if (formObj.popupleft.value != "c")
|
||||
onclick += "left=" + formObj.popupleft.value + ",";
|
||||
else
|
||||
onclick += "left='+(screen.availWidth/2-" + (formObj.popupwidth.value/2) + ")+',";
|
||||
}
|
||||
|
||||
if (formObj.popuptop.value != "") {
|
||||
if (formObj.popuptop.value != "c")
|
||||
onclick += "top=" + formObj.popuptop.value + ",";
|
||||
else
|
||||
onclick += "top='+(screen.availHeight/2-" + (formObj.popupheight.value/2) + ")+',";
|
||||
}
|
||||
|
||||
if (onclick.charAt(onclick.length-1) == ',')
|
||||
onclick = onclick.substring(0, onclick.length-1);
|
||||
|
||||
onclick += "');";
|
||||
|
||||
if (formObj.popupreturn.checked)
|
||||
onclick += "return false;";
|
||||
|
||||
// tinyMCE.debug(onclick);
|
||||
|
||||
formObj.onclick.value = onclick;
|
||||
|
||||
if (formObj.href.value == "")
|
||||
formObj.href.value = url;
|
||||
}
|
||||
|
||||
function setAttrib(elm, attrib, value) {
|
||||
var formObj = document.forms[0];
|
||||
var valueElm = formObj.elements[attrib.toLowerCase()];
|
||||
var dom = tinyMCEPopup.editor.dom;
|
||||
|
||||
if (typeof(value) == "undefined" || value == null) {
|
||||
value = "";
|
||||
|
||||
if (valueElm)
|
||||
value = valueElm.value;
|
||||
}
|
||||
|
||||
// Clean up the style
|
||||
if (attrib == 'style')
|
||||
value = dom.serializeStyle(dom.parseStyle(value));
|
||||
|
||||
dom.setAttrib(elm, attrib, value);
|
||||
}
|
||||
|
||||
function getAnchorListHTML(id, target) {
|
||||
var inst = tinyMCEPopup.editor;
|
||||
var nodes = inst.dom.select('a.mceItemAnchor,img.mceItemAnchor'), name, i;
|
||||
var html = "";
|
||||
|
||||
html += '<select id="' + id + '" name="' + id + '" class="mceAnchorList" o2nfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target + '.value=';
|
||||
html += 'this.options[this.selectedIndex].value;">';
|
||||
html += '<option value="">---</option>';
|
||||
|
||||
for (i=0; i<nodes.length; i++) {
|
||||
if ((name = inst.dom.getAttrib(nodes[i], "name")) != "")
|
||||
html += '<option value="#' + name + '">' + name + '</option>';
|
||||
}
|
||||
|
||||
html += '</select>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
function insertAction() {
|
||||
var inst = tinyMCEPopup.editor;
|
||||
var elm, elementArray, i;
|
||||
|
||||
elm = inst.selection.getNode();
|
||||
checkPrefix(document.forms[0].href);
|
||||
|
||||
elm = inst.dom.getParent(elm, "A");
|
||||
|
||||
// Remove element if there is no href
|
||||
if (!document.forms[0].href.value) {
|
||||
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
||||
i = inst.selection.getBookmark();
|
||||
inst.dom.remove(elm, 1);
|
||||
inst.selection.moveToBookmark(i);
|
||||
tinyMCEPopup.execCommand("mceEndUndoLevel");
|
||||
tinyMCEPopup.close();
|
||||
return;
|
||||
}
|
||||
|
||||
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
||||
|
||||
// Create new anchor elements
|
||||
if (elm == null) {
|
||||
inst.getDoc().execCommand("unlink", false, null);
|
||||
tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1});
|
||||
|
||||
elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
|
||||
for (i=0; i<elementArray.length; i++)
|
||||
setAllAttribs(elm = elementArray[i]);
|
||||
} else
|
||||
setAllAttribs(elm);
|
||||
|
||||
// Don't move caret if selection was image
|
||||
if (elm.childNodes.length != 1 || elm.firstChild.nodeName != 'IMG') {
|
||||
inst.focus();
|
||||
inst.selection.select(elm);
|
||||
inst.selection.collapse(0);
|
||||
tinyMCEPopup.storeSelection();
|
||||
}
|
||||
|
||||
tinyMCEPopup.execCommand("mceEndUndoLevel");
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
|
||||
function setAllAttribs(elm) {
|
||||
var formObj = document.forms[0];
|
||||
var href = formObj.href.value;
|
||||
var target = getSelectValue(formObj, 'targetlist');
|
||||
|
||||
setAttrib(elm, 'href', href);
|
||||
setAttrib(elm, 'title');
|
||||
setAttrib(elm, 'target', target == '_self' ? '' : target);
|
||||
setAttrib(elm, 'id');
|
||||
setAttrib(elm, 'style');
|
||||
setAttrib(elm, 'class', getSelectValue(formObj, 'classlist'));
|
||||
setAttrib(elm, 'rel');
|
||||
setAttrib(elm, 'rev');
|
||||
setAttrib(elm, 'charset');
|
||||
setAttrib(elm, 'hreflang');
|
||||
setAttrib(elm, 'dir');
|
||||
setAttrib(elm, 'lang');
|
||||
setAttrib(elm, 'tabindex');
|
||||
setAttrib(elm, 'accesskey');
|
||||
setAttrib(elm, 'type');
|
||||
setAttrib(elm, 'onfocus');
|
||||
setAttrib(elm, 'onblur');
|
||||
setAttrib(elm, 'onclick');
|
||||
setAttrib(elm, 'ondblclick');
|
||||
setAttrib(elm, 'onmousedown');
|
||||
setAttrib(elm, 'onmouseup');
|
||||
setAttrib(elm, 'onmouseover');
|
||||
setAttrib(elm, 'onmousemove');
|
||||
setAttrib(elm, 'onmouseout');
|
||||
setAttrib(elm, 'onkeypress');
|
||||
setAttrib(elm, 'onkeydown');
|
||||
setAttrib(elm, 'onkeyup');
|
||||
|
||||
// Refresh in old MSIE
|
||||
if (tinyMCE.isMSIE5)
|
||||
elm.outerHTML = elm.outerHTML;
|
||||
}
|
||||
|
||||
function getSelectValue(form_obj, field_name) {
|
||||
var elm = form_obj.elements[field_name];
|
||||
|
||||
if (!elm || elm.options == null || elm.selectedIndex == -1)
|
||||
return "";
|
||||
|
||||
return elm.options[elm.selectedIndex].value;
|
||||
}
|
||||
|
||||
function getLinkListHTML(elm_id, target_form_element, onchange_func) {
|
||||
if (typeof(tinyMCELinkList) == "undefined" || tinyMCELinkList.length == 0)
|
||||
return "";
|
||||
|
||||
var html = "";
|
||||
|
||||
html += '<select id="' + elm_id + '" name="' + elm_id + '"';
|
||||
html += ' class="mceLinkList" onfoc2us="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
|
||||
html += 'this.options[this.selectedIndex].value;';
|
||||
|
||||
if (typeof(onchange_func) != "undefined")
|
||||
html += onchange_func + '(\'' + target_form_element + '\',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);';
|
||||
|
||||
html += '"><option value="">---</option>';
|
||||
|
||||
for (var i=0; i<tinyMCELinkList.length; i++)
|
||||
html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
|
||||
|
||||
html += '</select>';
|
||||
|
||||
return html;
|
||||
|
||||
// tinyMCE.debug('-- image list start --', html, '-- image list end --');
|
||||
}
|
||||
|
||||
function getTargetListHTML(elm_id, target_form_element) {
|
||||
var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
|
||||
var html = '';
|
||||
|
||||
html += '<select id="' + elm_id + '" name="' + elm_id + '" onf2ocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
|
||||
html += 'this.options[this.selectedIndex].value;">';
|
||||
html += '<option value="_self">' + tinyMCEPopup.getLang('advlink_dlg.target_same') + '</option>';
|
||||
html += '<option value="_blank">' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)</option>';
|
||||
html += '<option value="_parent">' + tinyMCEPopup.getLang('advlink_dlg.target_parent') + ' (_parent)</option>';
|
||||
html += '<option value="_top">' + tinyMCEPopup.getLang('advlink_dlg.target_top') + ' (_top)</option>';
|
||||
|
||||
for (var i=0; i<targets.length; i++) {
|
||||
var key, value;
|
||||
|
||||
if (targets[i] == "")
|
||||
continue;
|
||||
|
||||
key = targets[i].split('=')[0];
|
||||
value = targets[i].split('=')[1];
|
||||
|
||||
html += '<option value="' + key + '">' + value + ' (' + key + ')</option>';
|
||||
}
|
||||
|
||||
html += '</select>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
// While loading
|
||||
preinit();
|
||||
tinyMCEPopup.onInit.add(init);
|
||||
@@ -0,0 +1,52 @@
|
||||
tinyMCE.addI18n('en.advlink_dlg',{
|
||||
title:"Insert/edit link",
|
||||
url:"Link URL",
|
||||
target:"Target",
|
||||
titlefield:"Title",
|
||||
is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?",
|
||||
is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?",
|
||||
list:"Link list",
|
||||
general_tab:"General",
|
||||
popup_tab:"Popup",
|
||||
events_tab:"Events",
|
||||
advanced_tab:"Advanced",
|
||||
general_props:"General properties",
|
||||
popup_props:"Popup properties",
|
||||
event_props:"Events",
|
||||
advanced_props:"Advanced properties",
|
||||
popup_opts:"Options",
|
||||
anchor_names:"Anchors",
|
||||
target_same:"Open in this window / frame",
|
||||
target_parent:"Open in parent window / frame",
|
||||
target_top:"Open in top frame (replaces all frames)",
|
||||
target_blank:"Open in new window",
|
||||
popup:"Javascript popup",
|
||||
popup_url:"Popup URL",
|
||||
popup_name:"Window name",
|
||||
popup_return:"Insert 'return false'",
|
||||
popup_scrollbars:"Show scrollbars",
|
||||
popup_statusbar:"Show status bar",
|
||||
popup_toolbar:"Show toolbars",
|
||||
popup_menubar:"Show menu bar",
|
||||
popup_location:"Show location bar",
|
||||
popup_resizable:"Make window resizable",
|
||||
popup_dependent:"Dependent (Mozilla/Firefox only)",
|
||||
popup_size:"Size",
|
||||
popup_position:"Position (X/Y)",
|
||||
id:"Id",
|
||||
style:"Style",
|
||||
classes:"Classes",
|
||||
target_name:"Target name",
|
||||
langdir:"Language direction",
|
||||
target_langcode:"Target language",
|
||||
langcode:"Language code",
|
||||
encoding:"Target character encoding",
|
||||
mime:"Target MIME type",
|
||||
rel:"Relationship page to target",
|
||||
rev:"Relationship target to page",
|
||||
tabindex:"Tabindex",
|
||||
accesskey:"Accesskey",
|
||||
ltr:"Left to right",
|
||||
rtl:"Right to left",
|
||||
link_list:"Link list"
|
||||
});
|
||||
@@ -0,0 +1,338 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>{#advlink_dlg.title}</title>
|
||||
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
||||
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
||||
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
||||
<script type="text/javascript" src="../../utils/validate.js"></script>
|
||||
<script type="text/javascript" src="js/advlink.js"></script>
|
||||
<link href="css/advlink.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body id="advlink" style="display: none">
|
||||
<form onsubmit="insertAction();return false;" action="#">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advlink_dlg.general_tab}</a></span></li>
|
||||
<li id="popup_tab"><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li>
|
||||
<li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li>
|
||||
<li id="advanced_tab"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="panel_wrapper">
|
||||
<div id="general_panel" class="panel current">
|
||||
<fieldset>
|
||||
<legend>{#advlink_dlg.general_props}</legend>
|
||||
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr>
|
||||
<td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td>
|
||||
<td><table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" /></td>
|
||||
<td id="hrefbrowsercontainer"> </td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr id="linklisthrefrow">
|
||||
<td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
|
||||
<td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
|
||||
<td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td>
|
||||
<td id="targetlistcontainer"><select id="targetlist"><option value=""></option></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nowrap"><label id="titlelabel" for="title">{#advlink_dlg.titlefield}</label></td>
|
||||
<td><input id="title" name="title" type="text" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label id="classlabel" for="classlist">{#class_name}</label></td>
|
||||
<td>
|
||||
<select id="classlist" name="classlist" onchange="changeClass();">
|
||||
<option value="" selected="selected">{#not_set}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="popup_panel" class="panel">
|
||||
<fieldset>
|
||||
<legend>{#advlink_dlg.popup_props}</legend>
|
||||
|
||||
<input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" />
|
||||
<label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="4">
|
||||
<tr>
|
||||
<td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label> </td>
|
||||
<td>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><input type="text" name="popupurl" id="popupurl" value="" onchange="buildOnClick();" /></td>
|
||||
<td id="popupurlbrowsercontainer"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label> </td>
|
||||
<td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nowrap"><label>{#advlink_dlg.popup_size}</label> </td>
|
||||
<td class="nowrap">
|
||||
<input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" /> x
|
||||
<input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" /> px
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nowrap" id="labelleft"><label>{#advlink_dlg.popup_position}</label> </td>
|
||||
<td class="nowrap">
|
||||
<input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" /> /
|
||||
<input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" /> (c /c = center)
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<fieldset>
|
||||
<legend>{#advlink_dlg.popup_opts}</legend>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="4">
|
||||
<tr>
|
||||
<td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
|
||||
<td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
|
||||
<td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td>
|
||||
<td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" onchange="buildOnClick();" /></td>
|
||||
<td class="nowrap"><label id="popupmenubarlabel" for="popupmenubar">{#advlink_dlg.popup_menubar}</label></td>
|
||||
<td><input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" onchange="buildOnClick();" /></td>
|
||||
<td class="nowrap"><label id="popupresizablelabel" for="popupresizable">{#advlink_dlg.popup_resizable}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" onchange="buildOnClick();" /></td>
|
||||
<td class="nowrap"><label id="popuptoolbarlabel" for="popuptoolbar">{#advlink_dlg.popup_toolbar}</label></td>
|
||||
<td><input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" onchange="buildOnClick();" /></td>
|
||||
<td class="nowrap"><label id="popupdependentlabel" for="popupdependent">{#advlink_dlg.popup_dependent}</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td>
|
||||
<td class="nowrap"><label id="popupstatuslabel" for="popupstatus">{#advlink_dlg.popup_statusbar}</label></td>
|
||||
<td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td>
|
||||
<td class="nowrap"><label id="popupreturnlabel" for="popupreturn">{#advlink_dlg.popup_return}</label></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="advanced_panel" class="panel">
|
||||
<fieldset>
|
||||
<legend>{#advlink_dlg.advanced_props}</legend>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="4">
|
||||
<tr>
|
||||
<td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td>
|
||||
<td><input id="id" name="id" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="stylelabel" for="style">{#advlink_dlg.style}</label></td>
|
||||
<td><input type="text" id="style" name="style" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="classeslabel" for="classes">{#advlink_dlg.classes}</label></td>
|
||||
<td><input type="text" id="classes" name="classes" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="targetlabel" for="target">{#advlink_dlg.target_name}</label></td>
|
||||
<td><input type="text" id="target" name="target" value="" onchange="selectByValue(this.form,'targetlist',this.value,true);" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="dirlabel" for="dir">{#advlink_dlg.langdir}</label></td>
|
||||
<td>
|
||||
<select id="dir" name="dir">
|
||||
<option value="">{#not_set}</option>
|
||||
<option value="ltr">{#advlink_dlg.ltr}</option>
|
||||
<option value="rtl">{#advlink_dlg.rtl}</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="hreflanglabel" for="hreflang">{#advlink_dlg.target_langcode}</label></td>
|
||||
<td><input type="text" id="hreflang" name="hreflang" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label id="langlabel" for="lang">{#advlink_dlg.langcode}</label></td>
|
||||
<td>
|
||||
<input id="lang" name="lang" type="text" value="" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="charsetlabel" for="charset">{#advlink_dlg.encoding}</label></td>
|
||||
<td><input type="text" id="charset" name="charset" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="typelabel" for="type">{#advlink_dlg.mime}</label></td>
|
||||
<td><input type="text" id="type" name="type" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="rellabel" for="rel">{#advlink_dlg.rel}</label></td>
|
||||
<td><select id="rel" name="rel">
|
||||
<option value="">{#not_set}</option>
|
||||
<option value="lightbox">Lightbox</option>
|
||||
<option value="alternate">Alternate</option>
|
||||
<option value="designates">Designates</option>
|
||||
<option value="stylesheet">Stylesheet</option>
|
||||
<option value="start">Start</option>
|
||||
<option value="next">Next</option>
|
||||
<option value="prev">Prev</option>
|
||||
<option value="contents">Contents</option>
|
||||
<option value="index">Index</option>
|
||||
<option value="glossary">Glossary</option>
|
||||
<option value="copyright">Copyright</option>
|
||||
<option value="chapter">Chapter</option>
|
||||
<option value="subsection">Subsection</option>
|
||||
<option value="appendix">Appendix</option>
|
||||
<option value="help">Help</option>
|
||||
<option value="bookmark">Bookmark</option>
|
||||
<option value="nofollow">No Follow</option>
|
||||
<option value="tag">Tag</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="revlabel" for="rev">{#advlink_dlg.rev}</label></td>
|
||||
<td><select id="rev" name="rev">
|
||||
<option value="">{#not_set}</option>
|
||||
<option value="alternate">Alternate</option>
|
||||
<option value="designates">Designates</option>
|
||||
<option value="stylesheet">Stylesheet</option>
|
||||
<option value="start">Start</option>
|
||||
<option value="next">Next</option>
|
||||
<option value="prev">Prev</option>
|
||||
<option value="contents">Contents</option>
|
||||
<option value="index">Index</option>
|
||||
<option value="glossary">Glossary</option>
|
||||
<option value="copyright">Copyright</option>
|
||||
<option value="chapter">Chapter</option>
|
||||
<option value="subsection">Subsection</option>
|
||||
<option value="appendix">Appendix</option>
|
||||
<option value="help">Help</option>
|
||||
<option value="bookmark">Bookmark</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="tabindexlabel" for="tabindex">{#advlink_dlg.tabindex}</label></td>
|
||||
<td><input type="text" id="tabindex" name="tabindex" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label id="accesskeylabel" for="accesskey">{#advlink_dlg.accesskey}</label></td>
|
||||
<td><input type="text" id="accesskey" name="accesskey" value="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="events_panel" class="panel">
|
||||
<fieldset>
|
||||
<legend>{#advlink_dlg.event_props}</legend>
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="4">
|
||||
<tr>
|
||||
<td class="column1"><label for="onfocus">onfocus</label></td>
|
||||
<td><input id="onfocus" name="onfocus" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onblur">onblur</label></td>
|
||||
<td><input id="onblur" name="onblur" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onclick">onclick</label></td>
|
||||
<td><input id="onclick" name="onclick" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="ondblclick">ondblclick</label></td>
|
||||
<td><input id="ondblclick" name="ondblclick" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onmousedown">onmousedown</label></td>
|
||||
<td><input id="onmousedown" name="onmousedown" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onmouseup">onmouseup</label></td>
|
||||
<td><input id="onmouseup" name="onmouseup" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onmouseover">onmouseover</label></td>
|
||||
<td><input id="onmouseover" name="onmouseover" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onmousemove">onmousemove</label></td>
|
||||
<td><input id="onmousemove" name="onmousemove" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onmouseout">onmouseout</label></td>
|
||||
<td><input id="onmouseout" name="onmouseout" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onkeypress">onkeypress</label></td>
|
||||
<td><input id="onkeypress" name="onkeypress" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onkeydown">onkeydown</label></td>
|
||||
<td><input id="onkeydown" name="onkeydown" type="text" value="" /></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="column1"><label for="onkeyup">onkeyup</label></td>
|
||||
<td><input id="onkeyup" name="onkeyup" type="text" value="" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mceActionPanel">
|
||||
<div style="float: left">
|
||||
<input type="submit" id="insert" name="insert" value="{#insert}" />
|
||||
</div>
|
||||
|
||||
<div style="float: right">
|
||||
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||