<th>Tanggal</th> <th>Status Resep</th> <th>Packing Barang</th> <th>Kekuatan Obat</th> <th>Dosis</th> <th>Sediaan</th> <th>Cara Pemakaian</th> <th>Jumlah</th> <th>Dokter</th> <th>SIP</th> <th>Alamat</th> <th>Keterangan</th> </tr> <?php $param = array('id' => '', 'awal' => '', 'pasien' => $_GET['id_pasien']); $list_data = load_data_resep($param); foreach ($list_data['data'] as $key => $data) { ?> <tr valign="top" bgcolor="<?php echo $key % 2 == 0 ? '#ffffe0' : '#ffffff'; ?> "> <td><?php echo datetimefmysql($data->waktu); ?> </td> <td align="center"><?php echo count($list_data) > 1 ? 'Lama' : 'Baru'; ?> </td> <td><?php
<link rel="stylesheet" href="../themes/theme_default/theme-print.css" /> <script type="text/javascript"> window.onunload = refreshParent; function refreshParent() { //window.opener.location.reload(); } function cetak() { window.print(); setTimeout(function(){ window.close();},300); } </script> <body onload="cetak();" class="default-printing"> <?php echo header_surat(); $param = array('id' => $_GET['id']); $attr_array = load_data_resep($param); $label = get_bottom_label(); $apa = get_apa_from_karyawan(); foreach ($attr_array['data'] as $rows) { } ?> <h2 style="text-align: center">SALINAN RESEP</h2> <table width="100%" style="border-bottom: 1px solid #000;"> <tr><td>No. Resep: </td><td colspan="3" align="left"><?php echo $rows->id; ?> </td> </tr> <tr><td>Dari Dokter: </td><td colspan="3"><?php echo $rows->dokter; ?> </td> </tr>