1
0
Fork 0

escapado en json

This commit is contained in:
humano 2018-11-05 06:30:59 -05:00
parent 5a368faa7a
commit 1a48ab6f64
1 changed files with 8 additions and 6 deletions

View File

@ -13536,8 +13536,8 @@ if($contenido_original !="") {
$resultado .= "
<div id='contenedor_$row[id_campo]' class='container-fluid contenedor_campo text-left'>
<pdata-toc-skip class='campo_contenido' id='contenido_$row[id_campo]'>
<span type= '$campo_tipo' class='col-lg-2 campo_titulo campo_nombre' id='nombre_$row[id_campo]'>$campo_nombre[0]:</span>
<p class='contenido_item col-lg-10 '><b>$contenido</b>
<span type= '$campo_tipo' class='col-md-2 campo_titulo campo_nombre' id='nombre_$row[id_campo]'>$campo_nombre[0]:</span>
<p class='contenido_item col-md-10 '><b>$contenido</b>
<span class=' pull-right'> $metadatos </span>
</p>
</div>";
@ -16178,7 +16178,8 @@ function campo_tabla($array,$control,$tipo){
//return print_r($valor);
// start table
$html = "<table class='table table-bordered table-condensed tabla_campo_tabla'>";
//$json=json_encode($array,true);
$html = "<table class='table table-bordered table-striped table-condensed tabla_campo_tabla'>";
// header row
$html .= '<thead><tr>';
foreach($array[0] as $key=>$value){
@ -16190,7 +16191,7 @@ function campo_tabla($array,$control,$tipo){
foreach( $array as $key=>$value){
$html .= '<tr>';
foreach($value as $key2=>$value2){
$html .= '<td>' . htmlspecialchars($value2) . '</td>';
$html .= '<td>'.$value2.'</td>';
}
$html .= '</tr>';
}
@ -16198,7 +16199,7 @@ function campo_tabla($array,$control,$tipo){
// finish table and return it
$html .= '</table>';
$resultado ="<div class='table-responsive'>$html</div>";
$resultado ="<div class='container-fluid table-responsive'>$html</div>";
return $resultado;
}
@ -16958,7 +16959,8 @@ if (is_array($v) ){
$V=array();
$V[$c]=$v;
$V = json_encode($V);
$V = json_encode($V,JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE);
//$campo_valor = json_encode($contenido_array,JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE);
}
if($V != '') {