<table style="margin-top: -10px; width: 100%;">
<tr>
<td style="margin-top: -10px; width: 20%;"><img src="<?= base_url('images/logo.png'); ?>" width="70" height="50"></td>
<td style="margin-top: -10px; width: 80%; text-align:center;">
<b style='font-size:18px;'><?= $abdulradjak['NamaPerusahaan']; ?></b><br>
<?= $abdulradjak['AlamatPerusahaan']; ?><br>
<small>Telp. <?= $abdulradjak['TeleponPerusahaan']; ?>, Fax : <?= $abdulradjak['FaxPerusahaan']; ?></small>
</td>
</tr>
</table>
<hr><br><br>
<table>
    <tr>
        <td>Yth. TS Dokter Poli/UGD</td>
        <td>&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;</td>
        <td><?= $qdata['poli_tujuan']; ?></td>
    </tr>
    <tr>
        <td>Di RS</td>
        <td>&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;</td>
        <td><?= $qdata['instansi_tujuan']; ?></td>
    </tr>
</table>
<br>
Mohon pemeriksaan dan pengobatan lebih lanjut terhadap penderita,
<br><br>
<table>
    <tr>
        <td>Nama Pasien</td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;</td>
        <td><?= $qdata['Description']; ?></td>
    </tr>
    <tr>
        <td>Jenis Kelamin</td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;</td>
        <td>
        <?php if($qdata['Sex'] == 2) { ?>
                Perempuan
                <?php }else{ ?>
                    Laki - Laki
                  <?php } ?>  
        </td>
    </tr>
    <tr>
        <td>Umur</td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;</td>
        <td><?= $qdata['Age']; ?> Thn</td>
    </tr>
    <tr>
        <td>No.Telpon</td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;</td>
        <td><?= $qdata['CellPhone']; ?></td>
    </tr>
    <tr>
        <td>Alamat Rumah</td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;</td>
        <td><?= $qdata['HomeAddress1']; ?></td>
    </tr>
</table>
<br>
<b><u>Anammesa</u></b>
<table style="width:100%">
    <tr>
        <td style="width: 20%;">Keluhan</td>
        <td style="width: 3%;" valign="top">:</td>
        <td style="width: 76%;"><?= $qdata['keluhan_utama']; ?></td>
    </tr>
    <tr>
        <td style="width: 20%;">Pemeriksaan Fisik</td>
        <td style="width: 3%;" valign="top">:</td>
        <td style="width: 76%;"><?= $qdata['pemeriksaan_fisik']; ?></td>
    </tr>
    <tr>
        <td style="width: 20%;">Diagnosa Sementara</td>
        <td style="width: 3%;" valign="top">:</td>
        <td style="width: 76%;"><?= $qdata['DESCRPTION']; ?></td>
    </tr>
    <tr>
        <td style="width: 20%;">Terapi/Obat yang telah diberikan</td>
        <td style="width: 3%;" valign="top">:</td>
        <td style="width: 76%;"><?= $qdata['obat']; ?></td>
    </tr>
</table>
<br><br>
<p>Demikian surat rujukan ini kami kirim, atas perhatiannya kami ucapkan terima Kasih.</p>
<br><br><br><br>
<?php $tgl = date('Y-m-d'); ?>
<p style="text-align:right;">Jakarta, <?= $tgl; ?></p>
<p style="text-align:right;margin-top: -10px;">Dokter Klinik Dr.Abdul Radjak
<br style="margin-top: -10px;">Unit Sudirman,</p>
<br><br>
<p style="text-align:right;"><b><u><?= $qdata['FirstName'].' . '.$qdata['LastName']; ?></u></b></p>