<?php 
header("Content-Type: text/html;charset=utf-8");
session_start();
require('connect.php');
mysqli_set_charset($connection,'utf8');





?>





<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" >
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" >

<link rel="stylesheet" href="styles.css" >

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

</head>

</html>

<body class="bootstrap">  
  <div class="container">
      <div class="row">
          <div class="col-12" style="text-align:center">
              <img src='../reporte/img/compo.png'>
          </div> 
        </div>
  </div>


  <form class="form-signin" method="POST" action="administracion.php">
      
    <h2 class="form-signin-heading">Ingreso administrativo</h2>

    <div class="form-control">
  
    <!-- <input type="text" name="username" class="form-control" placeholder="Login" required> -->

    <label for="sel1">Seleccione un lugar:</label>
      <select class="form-control" id="sel1" name="username">
        <option>
          Seleccione un lugar
        </option>
        <option>
                <?php 
                header("Content-Type: text/html;charset=utf-8");
                  $result=mysqli_query($connection,'SELECT * FROM `login`'); 
                    while($row=mysqli_fetch_assoc($result)) { 
                    echo "<option value='$row[login]'>$row[login]</option>"; 
                  } 
                 ?> 
        </option>
      </select>
 
    <hr>

      <label for="inputPassword">Ingrese la clave:</label>
     
    <input type="password" name="password" id="inputPassword" class="form-control" placeholder="Clave" required>

    <button class="btn btn-lg btn-primary btn-block" type="submit">Ingresar</button>

  </div>
  </form>






</body>

