<head>
<base href="../" target="_self">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<?php include "../panel_de_busquedas_head.php";?>

<table width="95%">
<tr>
<td>
<div class="panel paddmin">
<table>
<tr>
<td>


<form action="modelo/panel_de_busquedas_reactivar_db.php" method="post">
<div class="container">

  <div class="panel-group">
  <h2>Reabrir Búsquedas</h2>
    <?php 
	foreach($resultBusq as $busq){
		?>
		<div class="panel panel-default" id="<?php echo "".$busq['referencia'];?>">
		  <div class="panel-heading"><?php echo "".$busq['titulo'];?></div>
		  <div class="panel-body"><?php echo "".$busq['fecha'];?></div>
		  <div class="panel-body"><?php echo "".$busq['referencia'];?></div>
		  <div class="panel-body"><?php echo "".$busq['requisitos'];?></div>
		  <div class="panel-body"><?php echo "".$busq['descripcionCorta'];?></div>		  		  
		  <div class="panel-body"><?php echo "".$busq['tecnologiasExcluyentes'];?></div>
		  <div class="panel-body"><?php echo "".$busq['tecnologiasDeseables'];?></div>
		  <div class="panel-body">Zona: <?php echo "".$busq['zonaTrabajo'];?></div>
		  <div class="panel-body"><?php echo "".$busq['beneficiosOfrecidos'];?></div>
		</div>
	        <div class="form-group">
		   <label><input type="checkbox" name="reactivar[]" value="<?php echo "".str_replace(' ', '', $busq['referencia']);?>"> Reabrir búsqueda </label>
	        </div>		
		<hr/>
	<?php 
	} ?>

  </div>
  <button type="submit" class="button">Aceptar</button> 
  <hr width="700px">
</div>

</form>	

</td>
</tr>
<tr>
<td>
<?php
for ( $i = 1 ; $i <= 4 -  count($resultBusq) ; $i++ ){ 
?>
<div class="paddmax"></div>
<?php
}
?>
</td>    
</tr>
</table>

<?php include "../panel_de_busquedas_foot.php";?>