<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Indo Asia | Tabel GALIC</title>
<?php include 'application/views/komponen/header.php'; //meta, css, js ?>
</head>
<body>
<?php include 'application/views/komponen/navbar.php'; //navbar ?>
<div class="container text-center">
<div class="row content">
<div class="col-sm-12 text-left">
<h2>Tabel GALIC</h2>
<hr>
<form class="form" action="<?php echo base_url() ?>menu/cari_galic" method="POST">
<div class="form-row">
<div class="form-group col-md-2">
<label for="label_hs">HS:</label>
<input type="text" class="form-control form-control" name="hs" placeholder="Kode HS" />
</div>
<div class="form-group col-md-4">
<label for="label_importir">Importir:</label>
<input type="text" class="form-control form-control" name="importir" placeholder="Nama Importir" />
</div>
<!--datepicker awal-->
<div class="form-group col-md-2">
<label for="label_tglawal">Tanggal Awal:</label>
<div class="input-daterange" id="datepicker">
<input type="text" class="form-control form-control" name="tglawal" placeholder="MM/DD/YYYY" />
</div>
</div>
<div class="form-group col-md-2">
<label for="label_tglakhir">Tanggal Akhir:</label>
<div class="input-daterange" id="datepicker">
<input type="text" class="form-control form-control" name="tglakhir" placeholder="MM/DD/YYYY" />
</div>
</div>
<!--datepicker akhir-->
</div>
<button type="submit" class="btn btn-primary" id="tabel" value="cari">Cari</button>
</form>
<br />
<div class="table-responsive">
<table class="table table-hover table-bordered">
<thead class="thead-dark">
<tr>
<th>No</th>
<th>NoPengajuan</th>
<th>TanggalPIB</th>
<th>TanggalBLAWB</th>
<th>PelabuhanAsal</th>
<th>PelabuhanTujuan</th>
<th>NPWP</th>
<th>Importir</th>
<th>AlamatImportir</th>
<th>PPJK</th>
<th>AlamatPPJK</th>
<th>Pemasok</th>
<th>AlamatPemasok</th>
<th>NegaraPemasok</th>
<th>HS</th>
<th>UraianBarang</th>
<th>Quantity</th>
<th>KodeSatuan</th>
<th>Berat</th>
<th>HargaCIF</th>
<th>MataUang</th>
</tr>
</thead>
<?php
$no=1;
foreach($hasil->result() as $baris)
{
?>
<tbody>
<tr>
<td align="right"><?php echo number_format($no++,0,",",".")?></td>
<td><?php echo $baris->NoPengajuan; ?></td>
<td><?php echo $baris->TanggalPIB; ?></td>
<td><?php echo $baris->TanggalBLAWB; ?></td>
<td><?php echo $baris->PelabuhanAsal; ?></td>
<td><?php echo $baris->PelabuhanTujuan; ?></td>
<td><?php echo $baris->NPWP; ?></td>
<td><?php echo $baris->Importir; ?></td>
<td><?php echo $baris->AlamatImportir; ?></td>
<td><?php echo $baris->PPJK; ?></td>
<td><?php echo $baris->AlamatPPJK; ?></td>
<td><?php echo $baris->Pemasok; ?></td>
<td><?php echo $baris->AlamatPemasok; ?></td>
<td><?php echo strtoupper($this->kode_negara->list_negara($baris->NegaraPemasok)); ?></td>
<td><?php echo $baris->HS; ?></td>
<td><?php echo $baris->UraianBarang; ?></td>
<td align="right"><?php echo number_format($baris->Quantity,0,",","."); ?></td>
<td><?php echo $baris->KodeSatuan; ?></td>
<td align="right"><?php echo number_format($baris->Berat,0,",","."); ?></td>
<td align="right"><?php echo number_format($baris->HargaCIF,2,",","."); ?></td>
<td><?php echo $baris->MataUang; ?></td>
</tr>
</tbody>
<?php
}
?>
</table>
</div>
<?php
echo '<p>'.$this->db->count_all_results('galic'/*nama tabel*/).' record(s) ditampilkan</p>';
echo $this->pagination->create_links();
?>
</div>
</div>
</div>
<?php include 'application/views/komponen/footer.php'; //footer ?>
</body>
</html>