<div id="page-wrapper">
	<div class="main-page">
		<div class="forms">
			<div class=" form-grids row form-grids-right">
				<div class="widget-shadow " data-example-id="basic-forms"> 
					<div class="form-title">
						<h4>Master Unit Kerja</h4>
					</div>
				</div>
			</div>
		</div>
		<div class="tables">
			<div class="table-responsive bs-example widget-shadow">
				<p class="col-md-9">&nbsp;</p>
				<a href="<?php echo base_url();?>Admin/masterUKAdd" class="col-md-3 btn btn-md btn-success">
					<i class="fa fa-plus"></i> Tambah Unit Kerja
				</a>
				<div class="clearfix"> </div>
				<br>
				<table class="table table-bordered">
					<thead>
						<tr>
							<th>No</th>
							<th>Unit Kerja</th>
							<th>Aksi</th>
						</tr>
					</thead>
					<tbody>
						<?php
							if($masterUK == NULL)
							{
								?>
								<tr>
									<td colspan="3"><center>Tidak ada data unit kerja.</center></td>
								</tr>
								<?php
							}
							else
							{
								$no = 0;
								foreach($masterUK as $a)
								{
									$no++;
									?>
									<tr>
										<td><?php echo $no;?></td>
										<td><?php echo $a['unit_kerja'];?></td>
										<td style="font-size:10px !important;">
											<a href="<?php echo base_url();?>Admin/masterUKEdit/<?php echo $a['id_unit_kerja'];?>" class="btn btn-xs btn-warning" title="Ubah">
												<i class="fa fa-pencil"></i>
											</a>
											<a href="<?php echo base_url();?>Admin/masterUKDelete/<?php echo $a['id_unit_kerja'];?>" class="btn btn-xs btn-danger" onclick="return confirm('Anda yakin akan menghapus unit kerja ini?');" title="Hapus">
												<i class="fa fa-trash"></i>
											</a>
										</td>
									</tr>
									<?php
								}
							}
						?>
					</tbody> 
				</table>
			</div>
		</div>
	</div>
</div>