

<?php

require 'menu.php';

?>



<!DOCTYPE html>
<html>
<<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link type="text/css" rel="shortcut icon" href="img/logo-mywebsite-urian-viera.svg"/>
  <title>Cómo Importar Excel a MYSQL con PHP sin Libreria de forma Fácil :: WebDeveloper Urian Viera</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css">
  <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="css/cargando.css">
  <link rel="stylesheet" type="text/css" href="css/cssGenerales.css">
</head>
<body>

<div class="cargando">
    <div class="loader-outter"></div>
    <div class="loader-inner"></div>
</div>


<nav class="navbar navbar-expand-lg navbar-light navbar-dark fixed-top" style="background-color: #563d7c !important;">
    <ul class="navbar-nav mr-auto collapse navbar-collapse">
      <li class="nav-item active">
        <a href="index.php"> 
          <img src="img/logo-mywebsite-urian-viera.svg" alt="Web Developer Urian Viera" width="120">
        </a>
      </li>
    </ul>
    <div class="my-2 my-lg-0">
      <h5 class="navbar-brand">Web Developer Urian Viera </h5>
    </div>
</nav>


<div class="container">

<h1 class="text-center">
    
</h1>


 <div class="row">
    <div class="col-md-10">
      <form action="recibe_excel_validando.php" method="POST" enctype="multipart/form-data"/>
        <div class="file-input text-center">
            <input  type="file" name="dataCliente" id="file-input" class="file-input__input"/>
            <label class="file-input__label" for="file-input">
              <i class="zmdi zmdi-upload zmdi-hc-2x"></i>
              <span>Elegir Archivo Excel</span></label>
         
      
          <input type="submit" name="subir" class="btn-enviar" value="Subir Excel"/>
      </div>
      </form>
    </div>
</div>
    

    <div class="">
  <?php
  
  include('config.php');
  $sqlClientes = ("SELECT * FROM clientes WHERE estado ='PENDIENTE' ORDER BY id ASC");
  $queryData   = mysqli_query($con, $sqlClientes);
  $total_client = mysqli_num_rows($queryData);
  ?>




<br>
    <br>
      <h6 class="text-center">
        RUC cargados <strong>(<?php echo $total_client; ?>)</strong>
      </h6>

       <table class="table table-striped table-hover">
          <thead>
            <tr>
              <th>#</th>
               <th>RUC</th>
               <tH>DV</tH>
              <th>DIGITAL</th>
              <th>PRECLASIFICACION</th>
              <th>ESTADO</th>
              <th>FECHA DE REGISTRO</th>
              <th>INSTRUCCION</th>
              <tH>ACCCION</tH>
            </tr>
          </thead>
          <tbody>
            <?php 
            $i = 1;
            while ($data = mysqli_fetch_array($queryData)) { ?>
            <tr>
              <th scope="row"><?php echo $i++; ?></th>
              <td><?php echo $data['nombre']; ?></td>
             <td> <?php echo $resultado = substr($data['nombre'], -1);?></td>
              <td><?php echo $data['correo']; ?></td>
              <td><?php echo $data['celular']; ?></td>
               <td><?php echo $data['estado']; ?></td>
              <td><?php echo $data['fecha']; ?></td>
                <?php  



?>


   <td> <?php  echo '<td><a href=borraruser.php?e='.$data['id'].' class="btn btn-danger"</a><strong>X</strong></td>';    ?></td>
   <td> <?php  echo '<td><a href=update.php?e='.$data['id'].' class="btn btn-danger"</a><strong>E</strong></td>';?></td>
    
           
          <?php } ?>

          
          </tbody>
        </table>

    </div>
  </div>

</div> 


<script src="js/jquery.min.js"></script>
<script src="'js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<script type="text/javascript">
    $(document).ready(function() {
        $(window).load(function() {
            $(".cargando").fadeOut(500);
        });      
});
</script>

</body>
</html>