<title>Bus Image</title>
<div id="pagetitle">BUS IMAGE</div>
<div id="bataspadding">
	<div id="tableres">
		<table width="100%" border="0" class="display" id="example">
			<thead>
				<tr>
					<th>NO</th>
					<th></th>
					<th>BUS</th>
					<th></th>
				</tr>
			</thead>
			<?php
				$nomor = 1;
				$query=mysqli_query($koneksi, "SELECT * FROM cmas_busimg ORDER BY bus_id DESC");
				while($data = mysqli_fetch_array($query)) {
				
				if ($data['busimg_status'] == "Non-Aktif") {
					$busimg_status = "<img src='assets/images/icons/icon_no.png' width='20'>";
				} else {
					$busimg_status = "<img src='assets/images/icons/icon_yes.png' width='20'>";
				}
			?>
				<tr>
					<td align="center" width="1%">
						<?php echo $nomor; ?>
					</td>
					<td align="center" width="1%">
						<img src="assets/images/galeri/<?php echo $data['busimg_image']; ?>" width="100">
					</td>
					<td>
						<?php echo $data['bus_nama']; ?>
					</td>
					<td align="center" width="1%">
						<a href="?m=busimg_hapus&id=<?php echo $data['busimg_id']; ?>" onclick="return confirm('DATA AKAN DIHAPUS, ANDA YAKIN ?');">
							<img src="assets/images/icons/icon_delete.png" width="20">
						</a>
					</td>
				</tr>
			<?php $nomor++; } ?>
		</table>
	</div>
</div>