
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                        Gestionar Empresa
                    </h1>
                       <ol class="breadcrumb">
                        <li><a href="<?=base_index();?>"><i class="fa fa-dashboard"></i> Inicio</a></li>
                        <li><a href="<?=base_index();?>empresa">Empresa</a></li>
                        <li class="active">Listado Empresa</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 Empresa</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();?>empresa/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>Nombre</th>
													<th>NIT</th>
													<th>Dirección</th>
													<th>Teléfono</th>
													<th>Logo</th>
													
                          <th>Acción</th>
                         
                        </tr>
                                      </thead>
                                        <tbody>
                                         <?php 
      $dtb=$db->fetch_custom("select empresa.nombre,empresa.nit,empresa.direccion,empresa.tel,empresa.logo,empresa.idempresa from empresa ");
      $i=1;
      foreach ($dtb as $isi) {
        ?><tr id="line_<?=$isi->idempresa;?>">
        <td align="center"><?=$i;?></td><td><?=$isi->nombre;?></td>
<td><?=$isi->nit;?></td>
<td><?=$isi->direccion;?></td>
<td><?=$isi->tel;?></td>
<td><?=$isi->logo;?></td>

        <td>
        <a href="<?=base_index();?>empresa/detail/<?=$isi->idempresa;?>" class="btn btn-success btn-flat"><i class="fa fa-eye"></i></a> 
        <?=($role_act["up_act"]=="Y")?'<a href="'.base_index().'empresa/edit/'.$isi->idempresa.'" 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/empresa/empresa_action.php" data-id="'.$isi->idempresa.'"><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();?>empresa/tambah" class="btn btn-primary btn-flat"><i class="fa fa-plus"></i> Nuevo</a>
                          <?php
                          } 
                       } 
}*/
?>  
                </section><!-- /.content -->
        
