<!-- page head start-->
<div class="page-head">
	<h3>
		Data Ikan Laut
	</h3>
</div>
<!-- page head end-->

<!--body wrapper start-->
<div class="wrapper">
	<section class="panel">
		<header class="panel-heading">
			Data Ikan Laut
		</header>
		<div class="panel-body">
			<table class="table responsive-data-table data-table">
				<thead>
					<tr>
						<th width="50">No</th>
						<th>Nama Ikan</th>
						<th width="150">Gambar</th>
						<th width="150">Action</th>
					</tr>
				</thead>
				<tbody>
					<?php
						$no = 1;
						$mk = mysql_query("SELECT * FROM ikan");
			
						while($r=mysql_fetch_array($mk))
						{
							echo "
								<tr>
									<td>$no</td>
									<td>$r[1]</td>
									<td><img src='img/ikan/$r[3]' width='100'/></td>
									<td>
										<a class='btn btn-sm btn-warning' href='index.php?act=ikan_edit&id=$r[0]'><i class=\"fa fa-edit\"></i></a>
										<a class='btn btn-sm btn-danger' href='index.php?act=ikan_delete&id=$r[0]' onclick='return confirm(\"Apakah ingin menghapus data ini?\")'><i class=\"fa fa-trash\"></i></a>
									</td>
								</tr>
							";
							$no++;
						}
					
					
					?>
					
				</tbody>
			</table>
		</div>
	</section>
</div>
<!--body wrapper end-->