<?php
  $this->load->view('includes/header.php');
  echo '<font id="breadcrumb" class="title">'.$menu_path.'</font>';
  echo '<br>';
  /* Display system message */
  $this->fungsi->disp_sys_msg();
  echo validation_errors('<p class="field_error">', '</p>');
?>
<script type="text/javascript">
  window.print();
</script>

<table width="100%">
  <tr>
    <td colspan="4" rowspan="2"><img src="<?php echo base_url('etc/images/logowgikecil.png') ?>"></td>
    <td colspan="4" rowspan="2">
      <b>PT WIRASWASTA GEMILANG INDONESIA</b><br><br>
      <b>Form Serah Terima Sample Used Oil</b><br><br>
      No. Sertifikat : <b><?php echo $row->id_sample ?></b>
    </td>
    <td width="21%" colspan="4">
      <b>FR - PPC - WGI - 034</b>
    </td>
  </tr>
  <tr>
    <td colspan="4">
      Tanggal : <?php echo date('d M Y') ?><br><br>
      No. BA : <?php echo $row->idba ?>
    </td>
  </tr>
  <tr>
    <td height="24" colspan="12"><hr></td>
  </tr>
 <tr>
      <td colspan="3">Jam Ambil Sample :</td>
    </tr>
    <tr>
      <td colspan="3">Jam Selesai Sample :</td>
    </tr>
    <tr>
      <td colspan="2">Jam QC Terima Sample :</td>
      <td width="3%">&nbsp;</td>
    </tr>
  <tr>
    <td colspan="12">
      <table width="100%">
        <tr align="center">
        
          <td>Tanggal</td>
          <td>:</td>
          <td><?php echo date('d M Y', strtotime($row->adddate)) ?></td>
          <td>Tanggal</td>
          <td>:</td>
          <td width="100"></td>
          <td>Tanggal</td>
          <td>:</td>
          <td width="100"></td>
        </tr>
        <tr align="center">
          <td>Jam</td>
          <td>:</td>
          <td><?php echo date('H:i', strtotime($row->adddate)) ?></td>
          <td>Jam</td>
          <td>:</td>
          <td></td>
          <td>Jam</td>
          <td>:</td>
          <td></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="33%" height="20"></td>
  </tr>
  <tr>
    <td colspan="12">
      <table width="100%">
        <tr align="center">
          <td>TTD</td>
          <td>TTD</td>
          <td>TTD</td>
        </tr>
        <tr>
          <td height="50"></td>
        </tr>
        <tr align="center">
          <td><?php echo $row->addby ?></td>
          <td></td>
          <td></td>
        </tr>
        <tr align="center">
          <td>PPIC</td>
          <td>LAB</td>
          <td>Security</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- START HERE
<center style="margin-top: 25px">
  <table style="outline-color: black;border: 1px; outline-style: solid;">
    <tr>
      <td colspan="3"><b>Nomor Sample : <?php echo $nomor_sample ?><b></td>
    </tr>
    <tr>
      <td>Waktu Pemeriksaan : <?php echo $data_analisis->adddate ?></td>
    </tr>
    <tr>
      <td>Status : <?php echo $data_analisis->status ?></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><b>Hasil Analisa</b></td>
    </tr>
    <tr>
      <td>Kadar Air</td>
      <td> : </td>
      <td><?php echo $data_analisis->qcair ?> %</td>
    </tr>
    <tr>
      <td>Chlorine / PCB</td>
      <td> : </td>
      <td><?php echo $data_analisis->qccl ?></td>
    </tr>
    <tr>
      <td>Berat Jenis</td>
      <td> : </td>
      <td><?php echo $data_analisis->qckg ?> (<?php echo $data_analisis->qct ?> C)</td>
    </tr>
    <tr>
      <td>Fatty Acid</td>
      <td> : </td>
      <td><?php echo $data_analisis->qctbk ?></td>
    </tr>
    <tr>
      <td>Kadar Bahan Bakar</td>
      <td> : </td>
      <td><?php echo $data_analisis->qcbakar ?> %</td>
    </tr>
    <tr>
      <td>Kadar Residu</td>
      <td> : </td>
      <td><?php echo $data_analisis->qcresidu ?> %</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><b>Informasi</b></td>
    </tr>
    <tr>
      <td><?php echo $data_analisis->inf ?></td>
    </tr>
  </table>

  <div style="margin: 20px 50px 10px 50px">
    <a id="buttonOne" onclick="window.print()" href="#"><button style="margin: 0px 25px">Print</button></a>
  </div>
</center>

END HERE -->
<?php
  if(!empty($link))
  {
  	echo '<p id="bottom_link">';
  	foreach($link as $links)
  	{
  		echo $links . ' ';
  	}
  	echo '</p>';
  }
  $this->load->view('includes/footer.php');
?>

<style type="text/css">
  @media print
  {
    @page
    {
      size: A4 portrait;
    }
  }
</style>