<?php
include("../config.php");
?>

<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8" />
      <title></title>
     <!-- Main CSS -->
      <!--<link rel="stylesheet" href="../css/bootstrap.min.css">
      <link rel="stylesheet" href="../css/main.css">-->
      <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
   <style>

    body {
      background-color: #fbfeff;
    }

    .fixed-top {
      border-bottom: 1PX solid #b3b3b3;
    }

    .navbar-brand:hover {
      color: #fff;
    }

    .navbar-dark .navbar-brand {
      color: #635b5b;
    }

    .navbar-dark .navbar-brand:hover {
      color: #635b5b;
    }

   </style>
   </head>
   <body>

    <nav class="navbar navbar-expand-md navbar-dark fixed-top border-turquesa">
      <a class="navbar-brand" href="#">SEMINARIO INTERNACIONAL UDEP - GESTIÓN DE LA REPUTACIÓN</a>
    </nav>
    
    <main>
      <div class="container mt-5">
        <div class="row">
          <div class="col mt-5" style="margin-left:0;margin-right: 0">
            <br> <br>
             <?php $sql ="SELECT count(*) as 'contador' FROM 2018_seminario_internacional_udep_30_mayo";
                  $result_edi=mysqli_query($con,$sql);
                  if($result_edi){
                    $filas=mysqli_num_rows($result_edi);
                    if($filas >0){
                     while ($fila_edi =mysqli_fetch_assoc($result_edi)) {
                        if ($fila_edi['contador'] == 0){                        
                        echo "<div style='color:#fff'>No hay datos en su Base de datos</div>";
                        }else{
                          ?>
                            <a href="exportar.php" class="btn btn-info rounded "> Generar reporte en Excel</a>
                          <?php
                        }
                      } 
                    } 
                  }?>            
          </div>
        </div>
      </div>
     </main> 
   </body>
</html>