<!DOCTYPE html>
<html>
  
<head>
    <title>
      se7en - Dashboard
    </title>
   
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
  </head>
  <body>
    <div class="row">
          <div class="col-lg-12">
            <div class="widget-container fluid-height clearfix">
              <div class="heading">
                <a href="<?php echo base_URL(); ?>admin/manage_admin/add"> <i class="icon-table"> </i>Tambah Data Akun </a>
			
              </div>
			  <?php echo $this->session->flashdata("k");?>
              <div class="widget-content padded clearfix">
                <table class="table table-bordered table-striped" id="dataTable1">
                  <thead>
                   <th>
                      ID
                    </th>
                    <th>
                      Username
                    </th>
                    <th>
                      Nama, NIP
                    </th>
                    <th class="hidden-xs">
                      Level
                    </th>
                    <th class="hidden-xs">
                      Detail Level
                    </th>
               
                    <th>
					Aksi
					</th>
                  </thead>
                  <tbody>
                    <tr>
					<?php 
		if (empty($data)) {
			echo "<tr></tr>";
		} else {
			$no 	= ($this->uri->segment(4) + 1);
			foreach ($data as $b) {
		?>
                     <td>
                       <?php echo $b->id?>
                      </td>
					  <td>
                       <?=$b->username?>
                      </td>
                      <td>
                       <?=$b->nama."<br>".$b->nip?>
                      </td>
                     <td class="hidden-xs">
                        <?=$b->level?>
                      </td>
                      <td class="hidden-xs">
                        <?=$b->detail_level?>
                      </td>
                     
                      <td class="actions">
                        <div class="action-buttons">
                        
						  <a class="table-actions" href="<?=base_URL()?>admin/manage_admin/edt/<?=$b->id?>"><i class="icon-pencil"></i></a>
						  <a class="table-actions" href="<?=base_URL()?>admin/manage_admin/del/<?=$b->id?>"><i class="icon-trash" onclick="return confirm('Anda Yakin..?')"></i></a>
                        </div>
                      </td>
                    </tr>
                  
                    
              	
				<?php 
			$no++;
			}
		}
		?>
         
               
                   
                 
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
  </body>

</html>