<!doctype html>
<html><head>
<meta charset="utf-8">
<title>Castillo de chancay</title>

<?php include("head.php");?>
</head>
<body>
 

<?php include("header.php");?>

<div class="container mt-3 center" >
	<div class="card" style="width: 18rem;">
  		<div class="card-body">
    		<h5 class="card-title">Agregar codigo de cupon</h5>

<?php 
if(isset($_GET['error'])){
$errorx=$_GET['error'];
}else{
$errorx='0';
}
if(isset($_GET['exito'])){
  $exito=$_GET['exito'];
  }else{
  $exito='0';
  }

?>
      
      <?php if($errorx=='1'){?>
     <div class="alert alert-danger">Codigo Qr invalido </div> 
      <?php }?>
      <?php if($exito=='1'){?>
     <div class="alert alert-success">Operacion exitosa </div> 
      <?php }?>
      


            <form action="<?=ruta?>procesar_cupon" method="post">
            
            <input type="text"  class="form-control" name="codigo" autocomplete="off" placeholder="Codigo" ><br>

            	<input type="hidden" name="procesar_cupon" value="ok">
             
                <button type="submit" class="btn btn-primary btn-block">Encontrar</button>
            </form>
  		</div>
	</div>
</div>



</body>
</html>