Files
Antrean-Reguler/application/views/print/print_ranap/print_ranap.php
T
2025-05-14 12:02:52 +07:00

55 lines
1.4 KiB
PHP

<?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');?>