
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Gestionar Categoria
                    </h1>
                       <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Inicio</a></li>
                        <li><a href="<?=base_index();?>categoria">Categoria</a></li>
                        <li class="active">Listado Categoria</li>
                    </ol>
                </section>

                <!-- Main content -->
                <section class="content">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="box">
                                <div class="box-header">
                                  <h3 class="box-title">Lista Categoria</h3>
                                  <?php
       foreach ($db->fetch_all("sys_menu") as $isi) {
                      if ($path_url==$isi->url) {
                          if ($role_act["insert_act"]=="Y") {
                    ?>
          <a href="<?=base_index();?>categoria/tambah" class="btn btn-primary btn-flat col-lg-offset-9 col-md-offset-8 col-sm-offset-6 col-xs-offset-6"><i class="fa fa-plus"></i> Nuevo</a>
                          <?php
                          } 
                       } 
}
?> 
                                </div><!-- /.box-header -->
                                <div class="box-body table-responsive">
                                    <table id="dtb_manual" class="table table-bordered table-striped">
                                   <thead>
                                     <tr>
                           <th style="width:25px" align="center">No</th>
                          <th>Categoría</th>
													
                          <th>Acción</th>
                         
                        </tr>
                                      </thead>
                                        <tbody>
                                         <?php 
      $dtb=$db->fetch_custom("select categoria.categoria,categoria.idcategoria from categoria ");
      $i=1;
      foreach ($dtb as $isi) {
        ?><tr id="line_<?=$isi->idcategoria;?>">
        <td align="center"><?=$i;?></td><td><?=$isi->categoria;?></td>

        <td>
        <a href="<?=base_index();?>categoria/detail/<?=$isi->idcategoria;?>" class="btn btn-success btn-flat"><i class="fa fa-eye"></i></a> 
        <?=($role_act["up_act"]=="Y")?'<a href="'.base_index().'categoria/edit/'.$isi->idcategoria.'" class="btn btn-primary btn-flat"><i class="fa fa-pencil"></i></a>':"";?>  
        <?=($role_act["del_act"]=="Y")?'<button class="btn btn-danger hapus btn-flat" data-uri="'.base_admin().'modul/categoria/categoria_action.php" data-id="'.$isi->idcategoria.'"><i class="fa fa-trash-o"></i></button>':"";?>
        </td>
        </tr>
        <?php
        $i++;
      }
      ?>
                                        </tbody>
                                    </table>
                                </div><!-- /.box-body -->
                            </div><!-- /.box -->
                        </div>
                    </div>
        <?php
       /*foreach ($db->fetch_all("sys_menu") as $isi) {
                      if ($path_url==$isi->url) {
                          if ($role_act["insert_act"]=="Y") {
                    ?>
          <a href="<?=base_index();?>categoria/tambah" class="btn btn-primary btn-flat"><i class="fa fa-plus"></i> Nuevo</a>
                          <?php
                          } 
                       } 
}*/
?>  
                </section><!-- /.content -->
        
