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

<!--body wrapper start-->
<div class="wrapper">
	<section class="panel">
		<header class="panel-heading">
			Data Petugas
		</header>
		<div class="panel-body">
			<table class="table responsive-data-table data-table">
				<thead>
					<tr>
						<th>ID Petugas</th>
						<th>Nama Petugas</th>
						<th>Alamat</th>
						<th>Telp</th>
						<th width="150">Action</th>
					</tr>
				</thead>
				<tbody>
					<?php
						$no = 1;
						$mk = mysql_query("SELECT * FROM petugas");
			
						while($r=mysql_fetch_array($mk))
						{
							echo "
								<tr>
									<td>$r[0]</td>
									<td>$r[1]</td>
									<td>$r[2]</td>
									<td>$r[3]</td>
									<td>
										<a class='btn btn-sm btn-danger' href='index.php?act=petugas_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-->