Guest User

Untitled

a guest
Oct 26th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. @extends('template.main')
  2. @section('contenido')
  3. <div class="contenido">
  4. <div class="contenedor-titulo">
  5. <h4 class="text-center">Reporte</h4>
  6. <h3 class="text-center">{{ "Nro Archivo"." ".$id_archivo}}</h4>
  7. </div>
  8. <div class="row">
  9.  
  10. <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
  11. <table class="table table-bordered" style="font-size: 10px;">
  12. <tr>
  13. <td colspan="4">
  14.  
  15.  
  16. <?php
  17. $conexion= pg_connect("user=xxxxxx password=xxxxxxx dbname=xxxxx host=xxxxxx port=5723");
  18. $idarchivo=$Datoarchivo->id;
  19. $query = pg_query($conexion, "SELECT nombre FROM t_fotografia WHERE id_archivo = $idarchivo");
  20. $raw = pg_fetch_result($query, 'nombre');
  21. header('Content-type: image/jpg');
  22. $foto=pg_unescape_bytea($raw);
  23. echo "<img src='Content-type: image/jpg; base64,'".base64_encode($foto)."height='20%' class='img-responsive'>";
  24.  
  25.  
  26. ?>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td class="table-active td-titulo">Nombre</td>
  31. <td class="td-contenido">{{ $Datoarchivo->nombre }}</td>
  32. <td class="table-active td-titulo">Apellido</td>
  33. <td class="td-contenido">{{ $Datoarchivo->apellido }}</td>
  34. </tr>
  35. <tr>
  36. <td class="table-active td-titulo">Documento</td>
  37. <td class="td-contenido">{{ $Datoarchivo->nro_documento }}</td>
  38. <td class="table-active td-titulo">Provincia:</td>
  39. <td class="td-contenido">{{ $Datoarchivo->provincia }}</td>
  40. </tr>
  41.  
  42. </table>
  43. </div>
  44.  
  45. @endsection
Add Comment
Please, Sign In to add comment