EVOLUTION-MANAGER
Edit File: busqueda.blade.php
@extends('layouts.master') @section('style') <style type="text/css"> @media (min-height: : 620px){ #table_b{ height: 100%; } } .page-item.active .page-link { z-index: 1; color: #fff; background-color: #47d04c; border-color: #47d04c; } </style> @endsection @section('contenido') <?php function cortar_string ($string, $largo) { $marca = "<!--corte-->"; if (strlen($string) > $largo) { $string = wordwrap($string, $largo, $marca); $string = explode($marca, $string); $string = $string[0]; } return $string; } ?> <article class="art-post"> <div class="art-postmetadataheader"> </div> <h2 class="art-postheader" style="margin-left: 100px;margin-top: 30px;"> Resultados </h2> <div class="art-postcontent clearfix"> <div class="art-article"> <p> </p> @if($noticias->first()) <div class="content table-responsive table-full-width"> <table id="table_b" align="center" border="0" style="height: 400px; width: 947px;"> <tbody> @foreach($noticias as $noticia) <?php $length = strlen($noticia->id); ?> <tr style="height: 160px;"> <td style="width: 200px; text-align: center;"> @if(!is_null($noticia->foto)) <img alt="{{$noticia->titulo}}" height="92" src="{{asset('public/fotos-articulos/'.$noticia->foto)}}" width="162"/> @endif </td> <td style="width: 800px; text-align: justify;"> <div style="height: 95px; overflow: hidden;"> <p style="margin-top: 0px;"> <a href='{{url("noticias/".str_random(20).$noticia->id.str_random(20)).$length}}'> <span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"> <strong style="font-size: 14px;">{{$noticia->titulo}}</strong> <span id="detalle{{$noticia->id}}" style="font-size: 10pt; line-height: 107%; font-family: Arial, sans-serif;"> </span> <p id="pre_detalle{{$noticia->id}}" style="display: none;"> {{$noticia->detalle}} </p> <script type="text/javascript"> var detalle{{$noticia->id}} = $("#detalle{{$noticia->id}}"); var pre_about{{$noticia->id}} = $("#pre_detalle{{$noticia->id}}").text(); $(document).ready(function(){ detalle{{$noticia->id}}.html(pre_about{{$noticia->id}}); }); </script> </span> <span style="font-size: 10pt; font-family: Arial, sans-serif; color: #000000; background-image: initial; background-position: initial; background-repeat: initial; background-attachment: initial;"> <span style="font-size: 10pt; line-height: 107%; font-family: Arial, sans-serif;"> </span> </span> </a> </p> </div> </td> </tr> @endforeach </tbody> </table> </div> <div style="text-align: center;display: flex;justify-content: center;"> {{ $noticias->links() }} </div> @else <br><br> <div style="text-align: center;"> <h2>Sin resultados</h2> </div> <br><br><br><br><br><br> @endif <br> </div> </div> </article> @endsection