<?php include 'concha.php';

$busqueda = $_GET['busqueda'];
$donde = "titulo";


?>




<?php include 'arriba_full.php' ;?>

<div class="news-summary <? if ($estiloweb == 4 || 61) { ?> col-lg-8 col-md-8<? } else { ?>col-lg-9 col-md-9 <? } ?> col-sm-12 col-12 p-0" >

           <div class="widget-head col-12 col-sm-12 col-md-12 col-lg-12" style="margin-bottom:15px;">

                    <h3 class="widget-title" style="">

                        <span><? echo $lang_100106?></span>

                    </h3>

            </div>

            <div class=" col-lg-12 col-12"  style="margin-bottom:10px;">
                    <form id="form1" name="form1" method="GET" action="buscar.php" style="padding-top:30px;">

                      <span style=";font-family:<?php echo $style_titulo ?>;font-size:20px;color:<?php echo $d_color_titulo?>;">BUSCADOR:</span>
                      <input name="busqueda" type="text" class="form-control" size="30" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
                      <input name="Submit" type="submit" class="btn btn-outline-primary my-2 my-sm-0" value="<? echo $lang_buscar ?>" />
                    </form>
                  <hr />
              </div>
<?php           if ($busqueda == NULL) {} else {
          ?>




          <div class="grid">


        <?

//NOMBRE DEL ARCHIVO PHP
$pagina = "buscar.php";
//NOMBRE DE LA TABLA ADONDE SE QUIERE REALIZAR LA CONSULTA
$tabla = "notas";
//CANTIDAD DE RESULTADOS POR TABLA
$c = 15;


$ID = (int)$_GET['ID'];
$i = $_GET['i'];
$p = $_GET['p'];
if ($i == NULL) {$i = 1; $p = 1;} else {};

include('concha.php');


$sql = "SELECT *
FROM  `notas`
WHERE  `titulo` LIKE '%$busqueda%'
OR  `bajada` LIKE '%$busqueda%'
OR  `texto` LIKE '%$busqueda%' LIMIT 20";


$consulta = $conn->query($sql);
while ($row = $consulta->fetch_assoc())
{

    $ID = $row["ID"];
    $i_publi = $i_publi + 1;
    $titulo = $row["titulo"];
    $bajada = $row["bajada"];
    $texto = $row["texto"];
    $audio = $row["audio"];
    $youtube  = $row["youtube"];
    $d = $row["d"];
    $m = $row["m"];
    $a = $row["a"];
    $fecha = "$d - $m - $a";
    $carpetafoto = $row["carpetafoto"];
    $foto = $row["foto"];
    $ext_img = $row["ext_img"];

?>

    <div class="grid-item col-12 mb-3 border-bottom">

        <div class="news-summary">

            <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">

                <div class="container-fluid p-0">

                    <div class="row">
                        <? if ($foto == '') {} else { ?>

                        <div class="col-12 col-sm-6 p-0"><? /* 1 */ if ($domold != '') { $dom_bandera = $dom; $dom = $domold; }; ?>

                             <img class="img-fluid" src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" style="display: block;">
  <? /* 2 */ $dom = $dom_bandera; ?>
                        </div>
                        <? }; ?>
                        <div class="col-12 <? if ($foto == '') {} else {?>col-sm-6<? }?>">
                            <h4 class="colorTitulo"><?php if ($utf == 1) {echo utf8_decode($titulo);} else {echo $titulo;};?></h4>

                            <p><?php if ($utf == 1) {echo utf8_decode($bajada);} else {echo $bajada;};?></p>
                        </div>

                    </div>

                </div>
            </a>

        </div>

    </div>

</hr>

<?


 }
$consulta->free_result();

?>
</div>





  <?php };?>

</div>

<?php include 'abajo_full.php' ;?>
