first commit
This commit is contained in:
@@ -0,0 +1,195 @@
|
||||
<?php
|
||||
|
||||
//phpinfo();
|
||||
$idpp = "";
|
||||
$klinik = "";
|
||||
$tglperiksa = "";
|
||||
$shift = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$tgldaftar = "";
|
||||
$rekamedik = "";
|
||||
$nodafonline= "";
|
||||
$pembayaran = "";
|
||||
$namapembayaran = "";
|
||||
|
||||
foreach ($dp as $datapasien){
|
||||
$idpp =$datapasien->pp_id;
|
||||
$klinik =$datapasien->mk_nama;
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$shift =$datapasien->pp_shift;
|
||||
$noantrian =$datapasien->pp_nomor_antrian;
|
||||
$barcode =$datapasien->pp_barcode;
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$tgldaftar =date("d/m/Y", strtotime($datapasien->pp_tanggal_datang));
|
||||
$rekamedik =$datapasien->pp_rekamedik;
|
||||
$nodafonline=$datapasien->pp_pendaftaran_online;
|
||||
$pembayaran =$datapasien->pp_pembayaran;
|
||||
if($pembayaran==1){$namapembayaran="UMUM/DLL";}
|
||||
if($pembayaran==2){$namapembayaran="JKN";}
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
$pelayanan = "";
|
||||
foreach ($lk as $dataloket){
|
||||
$pecahpelayanan = explode(",",$dataloket->ml_pelayanan);
|
||||
$jumlayanan = count($pecahpelayanan);
|
||||
for ($x = 0; $x < $jumlayanan; $x++){
|
||||
if($pecahpelayanan[$x]==$idklinik){
|
||||
if($pembayaran==$dataloket->ml_pembayaran){
|
||||
$pelayanan=$pelayanan." | ".$dataloket->ml_nama;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$pelayanan=$pelayanan." | ";
|
||||
|
||||
?>
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Klinik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $klinik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($ket==3){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Rekamedik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $rekamedik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Daftar Online
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $nodafonline;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($ket==2){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Pesan
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tgldaftar;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Ket.
|
||||
</th>
|
||||
<th>:</th>
|
||||
<th>
|
||||
<u>FASTTRACK</u>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Pembayaran
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $namapembayaran;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3"><?php echo $pelayanan; ?></td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3"><?php echo '<img src="'.base_url().'/assets/php-barcode-master/barcode.php?text='.$barcode.'&print=true&size=30" />';?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3">Jangan sampai hilang, tidak dapat di cetak ulang</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
<input hidden="" id="ket" value="<?php echo $ket;?>" />
|
||||
<input hidden="" id="idpp" value="<?php echo $idpp;?>" />
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
var ket = document.getElementById("ket").value;
|
||||
var idpp = document.getElementById("idpp").value;
|
||||
|
||||
window.print();
|
||||
var ket = document.getElementById("ket").value;
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
// window.location = url+"index.php/ps_anjungan/print_pengantar/"+idpp+"/"+ket;
|
||||
if(ket==3){
|
||||
window.location = url+"index.php/ps_anjungan/admin_anjungan";
|
||||
}else{
|
||||
window.location = url+"index.php/ps_anjungan";
|
||||
}
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
if(ket==3){
|
||||
window.location = url+"index.php/ps_anjungan/admin_anjungan";
|
||||
}else{
|
||||
window.location = url+"index.php/ps_anjungan";
|
||||
|
||||
}
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
<?php //redirect('index.php/ps_anjungan');?>
|
||||
@@ -0,0 +1,163 @@
|
||||
<?php
|
||||
|
||||
//phpinfo();
|
||||
$idpp = "";
|
||||
$klinik = "";
|
||||
$tglperiksa = "";
|
||||
$shift = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$tgldaftar = "";
|
||||
$rekamedik = "";
|
||||
$nodafonline= "";
|
||||
$idklinik = "";
|
||||
$pembayaran = "";
|
||||
$namapembayaran = "";
|
||||
|
||||
foreach ($cu as $datapasien){
|
||||
$idpp =$datapasien->pp_id;
|
||||
$klinik =$datapasien->mk_nama;
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$shift =$datapasien->pp_shift;
|
||||
$noantrian =$datapasien->pp_nomor_antrian;
|
||||
$barcode =$datapasien->pp_barcode;
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$tgldaftar =date("d/m/Y", strtotime($datapasien->pp_tanggal_datang));
|
||||
$rekamedik =$datapasien->pp_rekamedik;
|
||||
$nodafonline=$datapasien->pp_pendaftaran_online;
|
||||
$idklinik =$datapasien->mk_id;
|
||||
$pembayaran =$datapasien->pp_pembayaran;
|
||||
if($pembayaran==1){$namapembayaran="UMUM/DLL";}
|
||||
if($pembayaran==2){$namapembayaran="JKN";}
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
$pelayanan = "";
|
||||
foreach ($lk as $dataloket){
|
||||
$pecahpelayanan = explode(",",$dataloket->ml_pelayanan);
|
||||
$jumlayanan = count($pecahpelayanan);
|
||||
for ($x = 0; $x < $jumlayanan; $x++){
|
||||
if($pecahpelayanan[$x]==$idklinik){
|
||||
if($pembayaran==$dataloket->ml_pembayaran){
|
||||
$pelayanan=$pelayanan." | ".$dataloket->ml_nama;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$pelayanan=$pelayanan." | ";
|
||||
|
||||
?>
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Klinik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $klinik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Rekamedik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $rekamedik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Keterangan
|
||||
</th>
|
||||
<th>:</th>
|
||||
<th>
|
||||
<u>FASTTRACK</u>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Pembayaran
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $namapembayaran;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3"><?php echo $pelayanan; ?></td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3"><?php echo '<img src="'.base_url().'/assets/php-barcode-master/barcode.php?text='.$barcode.'&print=true&size=30" />';?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3">Jangan sampai hilang, tidak dapat di cetak ulang</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
<input hidden="" id="idpp" value="<?php echo $idpp;?>" />
|
||||
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
var idpp = document.getElementById("idpp").value;
|
||||
window.print();
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
//window.location = url+"index.php/ps_anjungan/print_pengantar/"+idpp+"/5";
|
||||
window.location = url+"index.php/ps_fasttrack";
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
window.location = url+"index.php/ps_fasttrack";
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
<?php //redirect('index.php/ps_anjungan');?>
|
||||
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
//phpinfo();
|
||||
|
||||
$tglperiksa = "";
|
||||
$klinik = "";
|
||||
$shift = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$tgldaftar = "";
|
||||
$rekamedik = "";
|
||||
$nodafonline= "";
|
||||
|
||||
foreach ($dp as $datapasien){
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$shift =$datapasien->pp_shift;
|
||||
$klinik =$datapasien->mk_nama;
|
||||
$noantrian =$datapasien->pp_nomor_antrian;
|
||||
$barcode ="99".substr($datapasien->pp_barcode,2);
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$tgldaftar =date("d/m/Y", strtotime($datapasien->pp_tanggal_datang));
|
||||
$rekamedik =$datapasien->pp_rekamedik;
|
||||
$nodafonline=$datapasien->pp_pendaftaran_online;
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
?>
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Klinik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $klinik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($ket==4){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Ket.
|
||||
</th>
|
||||
<th>:</th>
|
||||
<th>
|
||||
<u>FASTTRACK</u>
|
||||
</th>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<?php if($ket==5){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Ket.
|
||||
</th>
|
||||
<th>:</th>
|
||||
<th>
|
||||
<u>FASTTRACK</u>
|
||||
</th>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th style="text-align: center;" colspan="3"><u>| PENUNGGU PASIEN |</u></th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3"><?php echo '<img src="'.base_url().'/assets/php-barcode-master/barcode.php?text='.$barcode.'&print=true&size=30" />';?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3">Jangan sampai hilang, tidak dapat di cetak ulang</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
<input hidden="" id="ket" value="<?php echo $ket;?>" />
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
|
||||
window.print();
|
||||
var ket = document.getElementById("ket").value;
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
if(ket==3){
|
||||
window.location = url+"index.php/ps_anjungan/admin_anjungan";
|
||||
} else if(ket==5){
|
||||
window.location = url+"index.php/ps_fasttrack";
|
||||
}
|
||||
else{
|
||||
window.location = url+"index.php/ps_anjungan";
|
||||
}
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
if(ket==3){
|
||||
window.location = url+"index.php/ps_anjungan/admin_anjungan";
|
||||
} else if(ket==5){
|
||||
window.location = url+"index.php/ps_fasttrack";
|
||||
}
|
||||
else{
|
||||
window.location = url+"index.php/ps_anjungan";
|
||||
}
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
<?php //redirect('index.php/ps_anjungan');?>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
//phpinfo();
|
||||
$idpp = "";
|
||||
$klinik = "";
|
||||
$tglperiksa = "";
|
||||
$shift = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$pembayaran = "";
|
||||
$namapembayaran = "";
|
||||
|
||||
foreach ($dp as $datapasien){
|
||||
$idpp =$datapasien->pp_id;
|
||||
$klinik =$datapasien->mk_nama;
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$shift =$datapasien->pp_shift;
|
||||
$noantrian =$datapasien->pp_nomor_antrian;
|
||||
$barcode =$datapasien->pp_barcode;
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$pembayaran =$datapasien->pp_pembayaran;
|
||||
if($pembayaran==1){$namapembayaran="UMUM/DLL";}
|
||||
if($pembayaran==2){$namapembayaran="JKN";}
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
$pelayanan = "";
|
||||
foreach ($lk as $dataloket){
|
||||
$pecahpelayanan = explode(",",$dataloket->ml_pelayanan);
|
||||
$jumlayanan = count($pecahpelayanan);
|
||||
for ($x = 0; $x < $jumlayanan; $x++){
|
||||
if($pecahpelayanan[$x]==$idklinik){
|
||||
if($pembayaran==$dataloket->ml_pembayaran){
|
||||
$pelayanan=$pelayanan." | ".$dataloket->ml_nama;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$pelayanan=$pelayanan." | ";
|
||||
|
||||
?>
|
||||
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<!--tr>
|
||||
<th style="text-align: left;">
|
||||
No. Antrian
|
||||
</th>
|
||||
<th>:</th>
|
||||
<th style="text-align: left;">
|
||||
<?php echo $noantrian;?>
|
||||
</th>
|
||||
</tr-->
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Klinik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $klinik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tanggal Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Pembayaran
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $namapembayaran;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3"><?php echo $pelayanan; ?></td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3"><?php echo '<img src="'.base_url().'/assets/php-barcode-master/barcode.php?text=' . $barcode . '&print=true&size=30" />';?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3">Jangan sampai hilang, tidak dapat di cetak ulang</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
<input hidden="" id="ket" value="<?php echo $ket;?>" />
|
||||
<input hidden="" id="idpp" value="<?php echo $idpp;?>" />
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
var ket = document.getElementById("ket").value;
|
||||
var idpp = document.getElementById("idpp").value;
|
||||
|
||||
window.print();
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
//window.location = url+"index.php/ps_anjungan/print_pengantar/"+idpp+"/"+ket;
|
||||
window.location = url+"index.php/ps_anjungan";
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
window.location = url+"index.php/ps_anjungan";
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
<?php //redirect('index.php/ps_anjungan');?>
|
||||
@@ -0,0 +1,193 @@
|
||||
<?php
|
||||
|
||||
//phpinfo();
|
||||
|
||||
$tglperiksa = "";
|
||||
$klinik = "";
|
||||
$shift = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$tgldaftar = "";
|
||||
$rekamedik = "";
|
||||
$nodafonline= "";
|
||||
$idklinik = "";
|
||||
$pembayaran = "";
|
||||
$namapembayaran = "";
|
||||
|
||||
foreach ($cu as $datapasien){
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$klinik =$datapasien->mk_nama;
|
||||
$shift =$datapasien->pp_shift;
|
||||
$noantrian =$datapasien->pp_nomor_antrian;
|
||||
$barcode =$datapasien->pp_barcode;
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$tgldaftar =date("d/m/Y", strtotime($datapasien->pp_tanggal_datang));
|
||||
$rekamedik =$datapasien->pp_rekamedik;
|
||||
$nodafonline=$datapasien->pp_pendaftaran_online;
|
||||
$idklinik =$datapasien->mk_id;
|
||||
$pembayaran =$datapasien->pp_pembayaran;
|
||||
if($pembayaran==1){$namapembayaran="UMUM/DLL";}
|
||||
if($pembayaran==2){$namapembayaran="JKN";}
|
||||
if($datapasien->pp_pendaftaran_online==null){$online=1;}else{$online=2;}
|
||||
|
||||
if($ket==2){
|
||||
$barcode ="99".substr($datapasien->pp_barcode,2);
|
||||
}
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
$pelayanan = "";
|
||||
foreach ($lk as $dataloket){
|
||||
// if($online==2){
|
||||
// if($dataloket->ml_online==2){
|
||||
// $pelayanan=$pelayanan." | ".$dataloket->ml_nama;
|
||||
// }
|
||||
// }else{
|
||||
$pecahpelayanan = explode(",",$dataloket->ml_pelayanan);
|
||||
$jumlayanan = count($pecahpelayanan);
|
||||
for ($x = 0; $x < $jumlayanan; $x++){
|
||||
if($pecahpelayanan[$x]==$idklinik){
|
||||
if($pembayaran==$dataloket->ml_pembayaran){
|
||||
$pelayanan=$pelayanan." | ".$dataloket->ml_nama;
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
$pelayanan=$pelayanan." | ";
|
||||
|
||||
?>
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Klinik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $klinik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($nodafonline!=null){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Rekamedik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $rekamedik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Daftar Online
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $nodafonline;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Pesan
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tgldaftar;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($ket==2){
|
||||
?>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th style="text-align: center;" colspan="3"><u>| PENUNGGU PASIEN |</u></th>
|
||||
</tr>
|
||||
<?php
|
||||
}else{
|
||||
?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Pembayaran
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $namapembayaran;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3"><?php echo $pelayanan; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}?>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3"><?php echo '<img src="'.base_url().'/assets/php-barcode-master/barcode.php?text='.$barcode.'&print=true&size=30" />';?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3"><strong>Tiket ini cetakan ulang.</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
|
||||
window.print();
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
window.location = url+"index.php/ps_anjungan/admin_anjungan";
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
window.location = url+"index.php/ps_anjungan/admin_anjungan";
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
<?php //redirect('index.php/ps_anjungan');?>
|
||||
@@ -0,0 +1,195 @@
|
||||
<?php
|
||||
|
||||
//phpinfo();
|
||||
$idpp = "";
|
||||
$klinik = "";
|
||||
$tglperiksa = "";
|
||||
$shift = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$tgldaftar = "";
|
||||
$rekamedik = "";
|
||||
$nodafonline= "";
|
||||
$pembayaran = "";
|
||||
$namapembayaran = "";
|
||||
$online = "";
|
||||
|
||||
foreach ($dp as $datapasien){
|
||||
$idpp =$datapasien->pp_id;
|
||||
$klinik =$datapasien->mk_nama;
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$shift =$datapasien->pp_shift;
|
||||
$noantrian =$datapasien->pp_nomor_antrian;
|
||||
$barcode =$datapasien->pp_barcode;
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$tgldaftar =date("d/m/Y", strtotime($datapasien->pp_tanggal_datang));
|
||||
$rekamedik =$datapasien->pp_rekamedik;
|
||||
$nodafonline=$datapasien->pp_pendaftaran_online;
|
||||
$pembayaran =$datapasien->pp_pembayaran;
|
||||
if($pembayaran==1){$namapembayaran="UMUM/DLL";}
|
||||
if($pembayaran==2){$namapembayaran="JKN";}
|
||||
if($datapasien->pp_pendaftaran_online==null){$online=1;}else{$online=2;}
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
$pelayanan = "";
|
||||
|
||||
foreach ($lk as $dataloket){
|
||||
// if($online==2){
|
||||
// if($dataloket->ml_online==2){
|
||||
// $pelayanan=$pelayanan." | ".$dataloket->ml_nama;
|
||||
// }
|
||||
// }else{
|
||||
$pecahpelayanan = explode(",",$dataloket->ml_pelayanan);
|
||||
$jumlayanan = count($pecahpelayanan);
|
||||
for ($x = 0; $x < $jumlayanan; $x++){
|
||||
if($pecahpelayanan[$x]==$idklinik){
|
||||
if($pembayaran==$dataloket->ml_pembayaran){
|
||||
$pelayanan=$pelayanan." | ".$dataloket->ml_nama;
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
$pelayanan=$pelayanan." | ";
|
||||
|
||||
?>
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Klinik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $klinik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($ket==3){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Rekamedik
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $rekamedik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Daftar Online
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $nodafonline;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if($ket==2){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Pesan
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tgldaftar;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Pembayaran
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $namapembayaran;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3"><?php echo $pelayanan; ?></td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3"><?php echo '<img src="'.base_url().'/assets/php-barcode-master/barcode.php?text='.$barcode.'&print=true&size=30" />';?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3">Jangan sampai hilang, tidak dapat di cetak ulang</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
<input hidden="" id="ket" value="<?php echo $ket;?>" />
|
||||
<input hidden="" id="idpp" value="<?php echo $idpp;?>" />
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
|
||||
window.print();
|
||||
var ket = document.getElementById("ket").value;
|
||||
var idpp = document.getElementById("idpp").value;
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
// window.location = url+"index.php/ps_anjungan/print_pengantar/"+idpp+"/"+ket;
|
||||
if(ket==3){
|
||||
window.location = url+"index.php/ps_anjungan/admin_anjungan";
|
||||
}else{
|
||||
window.location = url+"index.php/ps_anjungan";
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
if(ket==3){
|
||||
window.location = url+"index.php/ps_anjungan/admin_anjungan";
|
||||
}else{
|
||||
window.location = url+"index.php/ps_anjungan";
|
||||
|
||||
}
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
<?php //redirect('index.php/ps_anjungan');?>
|
||||
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
$id = "";
|
||||
$tglperiksa = "";
|
||||
$shift = "";
|
||||
$noanlok = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$tgldaftar = "";
|
||||
$rekamedik = "";
|
||||
$nodafonline= "";
|
||||
$namaklinik = "";
|
||||
$fasttrack = "";
|
||||
$pembayaran = "";
|
||||
$namapembayaran = "";
|
||||
|
||||
foreach ($pp as $datapasien){
|
||||
$id =$datapasien->pp_id;
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$shift =$datapasien->pp_shift;
|
||||
$noanlok =$datapasien->pp_nomor_antrian;
|
||||
$noantrian =$datapasien->pp_nomor_antrian_klinik;
|
||||
$barcode =$datapasien->pp_barcode;
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$tgldaftar =date("d/m/Y", strtotime($datapasien->pp_tanggal_datang));
|
||||
$rekamedik =$datapasien->pp_rekamedik;
|
||||
$nodafonline=$datapasien->pp_pendaftaran_online;
|
||||
$namaklinik =$datapasien->mk_nama;
|
||||
$fasttrack =$datapasien->pp_fasttrack;
|
||||
$pembayaran =$datapasien->pp_pembayaran;
|
||||
if($pembayaran==1){$namapembayaran="UMUM";}
|
||||
if($pembayaran==2){$namapembayaran="JKN";}
|
||||
if($pembayaran==3){$namapembayaran="LAINNYA";}
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
$pelayanan = "";
|
||||
|
||||
?>
|
||||
<input hidden="" id="idpp" name="idpp" value="<?php echo $id;?>" />
|
||||
<input hidden="" id="namaloket" name="namaloket" value="<?php echo $namaloket;?>" />
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Loket
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $noanlok;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. RM
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $rekamedik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if(isset($nodafonline)){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Daftar Online
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $nodafonline;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if(isset($fasttrack)){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Ket.
|
||||
</th>
|
||||
<th>:</th>
|
||||
<th><u>FASTTRACK</u></th>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Pembayaran
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $namapembayaran;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td></tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3">|Klinik <?php echo $namaklinik;//echo $namaloket; ?>|</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3">Jangan sampai hilang, tidak dapat di cetak ulang</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
|
||||
window.print();
|
||||
// window.addEventListener('afterprint', (event) => {
|
||||
// var id = document.getElementById('idpp').value;
|
||||
// var nama = document.getElementById('namaloket').value;
|
||||
// window.location = url+"index.php/ps_loket_admin/proses_pengunjung_berkas/"+id+"/"+nama;
|
||||
// });
|
||||
//
|
||||
// setTimeout(function(){
|
||||
// window.location = url+"index.php/ps_loket_admin/proses_pengunjung_berkas/"+id+"/"+nama;
|
||||
// }, 1000);
|
||||
|
||||
|
||||
setTimeout(function(){
|
||||
window.location = url+"index.php/ps_loket_admin";
|
||||
}, 1000);
|
||||
</script>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
$tglperiksa = "";
|
||||
$shift = "";
|
||||
$noanlok = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$tgldaftar = "";
|
||||
$rekamedik = "";
|
||||
$nodafonline= "";
|
||||
$namaklinik = "";
|
||||
$fasttrack = "";
|
||||
$pembayaran = "";
|
||||
$namapembayaran = "";
|
||||
|
||||
foreach ($pp as $datapasien){
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$shift =$datapasien->pp_shift;
|
||||
$noanlok =$datapasien->pp_nomor_antrian;
|
||||
$noantrian =$datapasien->pp_nomor_antrian_klinik;
|
||||
$barcode =$datapasien->pp_barcode;
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$tgldaftar =date("d/m/Y", strtotime($datapasien->pp_tanggal_datang));
|
||||
$rekamedik =$datapasien->pp_rekamedik;
|
||||
$nodafonline=$datapasien->pp_pendaftaran_online;
|
||||
$namaklinik =$datapasien->mk_nama;
|
||||
$fasttrack =$datapasien->pp_fasttrack;
|
||||
$pembayaran =$datapasien->pp_pembayaran;
|
||||
if($pembayaran==1){$namapembayaran="UMUM";}
|
||||
if($pembayaran==2){$namapembayaran="JKN";}
|
||||
if($pembayaran==3){$namapembayaran="LAINNYA";}
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
$pelayanan = "";
|
||||
|
||||
?>
|
||||
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Loket
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $noanlok;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. RM
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $rekamedik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if(isset($nodafonline)){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Daftar Online
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $nodafonline;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if(isset($fasttrack)){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Ket.
|
||||
</th>
|
||||
<th>:</th>
|
||||
<th><u>FASTTRACK</u></th>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Pembayaran
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $namapembayaran;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td></tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3">|Klinik <?php echo $namaklinik; //$hasil = str_replace("%20", " " , $namaloket); echo $hasil; ?>|</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3"><b><u>JADIKAN SATU PADA BERKAS TRACER</b></u></td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
|
||||
window.print();
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
window.location = url+"index.php/ps_loket_admin";
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
window.location = url+"index.php/ps_loket_admin";
|
||||
}, 1000);
|
||||
</script>
|
||||
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
$tglperiksa = "";
|
||||
$shift = "";
|
||||
$noanlok = "";
|
||||
$noantrian = "";
|
||||
$loket = "";
|
||||
$jambuka = "";
|
||||
$barcode = "";
|
||||
$tgldaftar = "";
|
||||
$rekamedik = "";
|
||||
$nodafonline= "";
|
||||
$namaklinik = "";
|
||||
$fasttrack = "";
|
||||
$pembayaran = "";
|
||||
$namapembayaran = "";
|
||||
|
||||
foreach ($pp as $datapasien){
|
||||
$tglperiksa =date("d/m/Y", strtotime($datapasien->pp_tanggal_periksa));
|
||||
$shift =$datapasien->pp_shift;
|
||||
$noanlok =$datapasien->pp_nomor_antrian;
|
||||
$noantrian =$datapasien->pp_nomor_antrian_klinik;
|
||||
$barcode =$datapasien->pp_barcode;
|
||||
$jambuka =$datapasien->mk_jam_shift;
|
||||
$tgldaftar =date("d/m/Y", strtotime($datapasien->pp_tanggal_datang));
|
||||
$rekamedik =$datapasien->pp_rekamedik;
|
||||
$nodafonline=$datapasien->pp_pendaftaran_online;
|
||||
$namaklinik =$datapasien->mk_nama;
|
||||
$fasttrack =$datapasien->pp_fasttrack;
|
||||
$pembayaran =$datapasien->pp_pembayaran;
|
||||
if($pembayaran==1){$namapembayaran="UMUM";}
|
||||
if($pembayaran==2){$namapembayaran="JKN";}
|
||||
}
|
||||
|
||||
$pecahjambuka = explode("|",$jambuka);
|
||||
|
||||
$pelayanan = "";
|
||||
|
||||
?>
|
||||
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
Nomor Antrian
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1><?php echo $noantrian;?></h1></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Loket
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $noanlok;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. Shift
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
SHIFT <?php echo $shift;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
No. RM
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $rekamedik;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if(isset($nodafonline)){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Daftar Online
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $nodafonline;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Shift Buka
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $pecahjambuka[($shift-1)];?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $tglperiksa;?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if(isset($fasttrack)){?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Ket.
|
||||
</th>
|
||||
<th>:</th>
|
||||
<th><u>FASTTRACK</u></th>
|
||||
</tr>
|
||||
<?php }?>
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Pembayaran
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo $namapembayaran;?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td></td></tr>
|
||||
<tr>
|
||||
<td style="text-align: center;" colspan="3">|Klinik <?php echo $namaklinik; ?>|</td>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3">Jangan sampai hilang, tidak dapat di cetak ulang</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
|
||||
window.print();
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
window.location = url+"index.php/ps_loket_admin";
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
window.location = url+"index.php/ps_loket_admin";
|
||||
}, 1000);
|
||||
</script>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
<table style="margin-left: auto; margin-right: auto; font-family: arial; ">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
NOMOR ANTRIAN RAWAT INAP
|
||||
</th>
|
||||
</tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr><td> </td></tr>
|
||||
<tr>
|
||||
<th colspan="3"><h1 style="font-size: 80px;"><?php echo $dp->row('ppr_nomor_antrian');?></h1></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th style="text-align: left;">
|
||||
Tgl Periksa
|
||||
</th>
|
||||
<th>:</th>
|
||||
<td>
|
||||
<?php echo date("d M Y", strtotime($dp->row('ppr_tanggal_periksa')));?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 11px; text-align: center;" colspan="3">Jangan sampai hilang, tidak dapat di cetak ulang</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">Tgl Cetak : <?php echo date('d/m/Y H:i:s')?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-size: 10px; text-align: center;" colspan="3">RSUD Dr. Saiful Anwar Malang</td>
|
||||
</tr>
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
<script>
|
||||
var url="<?php echo base_url();?>";
|
||||
|
||||
window.print();
|
||||
window.addEventListener('afterprint', (event) => {
|
||||
window.location = url+"index.php/ps_ranap_admin";
|
||||
});
|
||||
|
||||
setTimeout(function(){
|
||||
window.location = url+"index.php/ps_ranap_admin";
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
<?php //redirect('index.php/ps_anjungan');?>
|
||||
Reference in New Issue
Block a user