<?php
$k = $katlist->listkategori();
?>
<div class="page-content">
	<div class="row">
		<div class="col-xs-12">
			<div class="row">
				<div class="col-xs-12">
					<h3 class="header smaller lighter blue">Data Module List</h3>
					<div class="clearfix">
						<a href="index.php?module=list&act=tambah" role="button" class="blue" data-toggle="modal">
							<button class="btn btn-white btn-info btn-bold">
								<i class="ace-icon fa fa-plus bigger-120 blue"></i>
								Tambah
							</button>
						</a>
						<div class="pull-right tableTools-container"></div>
					</div>
					<div>
						<table id="dynamic-table" class="table table-striped table-bordered table-hover">
							<thead>
								<tr>
									<th>Nama Kategori</th>
									<th></th>
								</tr>
							</thead>
							<tbody>
								<?php
									while($i<count($k)){
										?>
											<tr>
												<td><?php echo"".$k[$i][nama].""; ?></td>
												<td>
													<div class="hidden-sm hidden-xs action-buttons">
														<a class="green" href="index.php?module=list&act=edit&id=<?php echo"".$k[$i][id].""; ?>">
															<i class="ace-icon fa fa-pencil bigger-130"></i>
														</a>
														<a class="red" href="view/view/modul/mod_list/aksi_list.php?aksi=delete&id=<?php echo"".$k[$i][id].""; ?>">
															<i class="ace-icon fa fa-trash-o bigger-130"></i>
														</a>
													</div>
												</td>
											</tr>
										<?php
	                                   	$i++;
	                             	}
                                   	unset($i);
                             	?>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div><!-- /.col -->
	</div><!-- /.row -->
</div><!-- PAGE CONTENT ENDS -->