procesa

mail@pastecode.io avatar
unknown
html
a year ago
3.0 kB
3
Indexable
Never
<html lang="es">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Metadatos -->
    <meta name="description" content="Capacitaciones fraudulentas MiauCem">
    <meta name="robots" content="index"/>
    <title>MiauCem</title>

    <!-- BOOTSTRAP -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
    
    <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="style.css">

    <!-- JS -->
    <script src="cargaLibros.js"></script>
  </head>


  <body class="d-flex h-100 text-center text-bg-success">
    
    <?php 
	include("conexion.php");
	$v=$_POST["empresa"];
	$sql="SELECT * FROM empleado p JOIN empresa e ON p.idEmpresa=e.idEmpresa WHERE e.nombre=UPPER('".$v."')";
	//$sql="SELECT * FROM empleado";
	$rs=odbc_exec($conexion,$sql);
    ?>

    <div class="cover-container d-flex w-100 h-100 p-3 mx-auto flex-column">
      <header class="mb-auto">
        <div>
          <h3 class="float-md-start mb-0 text-white">MiauCem</h3>
          <nav class="nav nav-masthead justify-content-center float-md-end">
          </nav>
        </div>
      </header>

    <div class="container">
      <!-- UP -->
      <img class="mb-4" src="imagenes/logoGato.png" alt="" width="150" height="100">
      <a href="index.php"><button type="button" class="w-100 btn btn-lg btn-warning">Regresar a Inicio</button></a><br>
      
      <h2 class="text-start text-white">Resultados</h2>
      
      <p class="text-md-start fs-2 text-white" id = "empresa"><?php echo $_POST["empresa"]; ?></p>
      
    
      <table class="table">
	<thead class="table table-bordered table-dark">
		<tr>
		        <th scope="col">NOMBRE</th>
		        <th scope="col">PATERNO</th>
		        <th scope="col">MATERNO</th>
        		<th scope="col">PUESTO</th>
		        <th scope="col">CURP</th>
		</tr>
	</thead>
	<tbody>
		<?php
			while(odbc_fetch_row($rs)){
		?>
		<tr>
			<td><?php echo odbc_result($rs,"nombre")?></td>
			<td><?php echo odbc_result($rs,"paterno")?></td>
			<td><?php echo odbc_result($rs,"materno")?></td>
			<td><?php echo odbc_result($rs,"puesto")?></td>
			<td><?php echo odbc_result($rs,"curp")?></td>
		</tr>
		<?php
			}
		?>
	</tbody>
      </table>

      <?php
	odbc_close_all();
      ?>

      
    <div class ="container">
      <br>
      <a href="index.php"><button type="button" class="w-100 btn btn-lg btn-warning">Regresar a Inicio</button></a>  
    </div>
    
      
      <footer class="py-3 my-4 text-bg-dark">
        <p class="text-center text-white">© 2022 MiauCem, Inc. All rights reserved.</p>
      </footer>
    </div>

    <!-- Script B5 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.min.js" integrity="sha384-IDwe1+LCz02ROU9k972gdyvl+AESN10+x7tBKgc9I5HFtuNz0wWnPclzo6p9vxnk" crossorigin="anonymous"></script>
  </body>
  
</html>