<!DOCTYPE html>
<html>
    
    <head>
      
    </head>
    
    <body>
        
        <div class="container-fluid">
            
                    
                    

                    

                    

                    

                    

                    

                     <div class="row-fluid">
                        <!-- block -->
                        <div class="block">
                            <div class="navbar navbar-inner block-header">
                                <div class="muted pull-left">Bootstrap dataTables</div>
                            </div>
                            <div class="block-content collapse in">
                                <div class="span12">
                                    
  									<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
										<thead>
											<tr>
												<th>ID</th>
												<th>Username</th>
												<th>Nama, NIP</th>
												<th>Level</th>
												<th>Komoditi</th>
												<th>Aksi</th>
											</tr>
										</thead>
										<tbody>
											<?php 
		if (empty($data)) {
			echo "<tr><td colspan='5'  style='text-align: center; font-weight: bold'>--Data tidak ditemukan--</td></tr>";
		} else {
			$no 	= ($this->uri->segment(4) + 1);
			foreach ($data as $b) {
		?>
		<tr>
			<td class="ctr"><?php echo $b->id;?></td>
			<td><?=$b->username?></td>
			<td><?=$b->nama."<br>".$b->nip?></td>
			<td><?=$b->level?></td>
			<td><?=$b->jenis?></td>
			<td class="ctr">
				<div class="btn-group">
					<a href="<?=base_URL()?>admin/manage_admin/edt/<?=$b->id?>" class="btn btn-success btn-sm" title="Edit Data"><i class="icon-edit icon-white"> </i> Edt</a>
					
					<a href="<?=base_URL()?>admin/manage_admin/del/<?=$b->id?>" class="btn btn-warning btn-sm" title="Hapus Data" onclick="return confirm('Anda Yakin..?')"><i class="icon-trash icon-remove">  </i> Del</a>		
				</div>					
			</td>
		</tr>
		<?php 
			$no++;
			}
		}
		?>
										</tbody>
									</table>
                                </div>
                            </div>
                        </div>
                        <!-- /block -->
                    </div>

                     
              
            <hr>
            <footer>
                <p>&copy; Vincent Gabriel 2013</p>
            </footer>
        </div>
        <!--/.fluid-container-->

      
        
    </body>

        