1
0
Fork 0

correccion html

This commit is contained in:
humano 2018-10-24 05:50:07 -05:00
parent 3373ee1dd1
commit be2c3d71d1
1 changed files with 23 additions and 5 deletions

View File

@ -3120,7 +3120,7 @@ if($accion =="enviar" OR $accion =="preview" ) {
$web = remplacetas("empresa","id",$id_empresa,"web","");
$slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-utf-8\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "From: $razon_social[0] ".$administrador[0]."\r\n";
$headers .= "Reply-To: $razon_social[0] ".$email[0]."\r\n";
$headers .= "Return-path: $email[0]\r\n";
@ -3821,6 +3821,8 @@ while( $row = mysqli_fetch_array( $datos_consulta ) ) {
if( !is_null($row['orden'])) { $orden_multiple ="and orden ='$row[orden]' ";}else { $orden_multiple ="";}
$contenido = remplacetas('form_datos','form_id',"$row[form_id]",'contenido'," id_campo ='$row[id_campo]' and control ='$identificador' $orden_multiple ") ;
$contenido[0]= str_replace('\n','<br>',$contenido[0]);
$contenido[0]= stripslashes($contenido[0]);
//$contenido[0] = "mas $contenido[0]";
if($contenido[0] !="" AND $privado !="1") {
$tipo_campo = remplacetas('form_campos','id',"$row[id_campo]",'campo_tipo',"") ;
@ -3834,9 +3836,18 @@ while( $row = mysqli_fetch_array( $datos_consulta ) ) {
if($tipo_campo[0]=='10'){
$render = relacion_render("$row[form_id]","$row[id_campo]",$contenido[0],'5','');
$contenido[0] = "$valor_actual";}
else {$render=html_entity_decode($contenido[0]);}
else {
$render=html_entity_decode($contenido[0]);}
if($tipo_campo[0]=='24' or $tipo_campo[0]=='30'){ $render= json_render("$contenido[0]","html","$control");}
/*if($tipo_campo[0] =='2'){
$render="$contenido[0] xxx";
//$contenido[0]="$contenido[0] xxx";
$contenido[0]= str_replace('\"','"',$contenido[0]);
$contenido[0]= str_replace("\'","'",$contenido[0]);
$contenido[0]="$contenido[0] xxx";
}
*/
$json_array[$row['campo_nombre']."_titulo"] = "$contenido[0]";
//imprimir_buscador_campo($id_campo,$valor)
@ -13016,6 +13027,8 @@ if (mysqli_num_rows($sql)!='0'){
$campo_tipo =$campo_tipo[0];
$contenido = formulario_valor_campo("$id","$row[id_campo]","","$control",'',"$timestamp");
//$contenido= nl2br($contenido);
$contenido_array = $contenido;
$contenido_multiple= $contenido[10];
// $contenido = formulario_valor_campo("$id","$row[id_campo]","","$control");
@ -13026,6 +13039,7 @@ if (mysqli_num_rows($sql)!='0'){
if($campo_tipo =='15' AND $tipo==""){if($contenido !=""){
$contenido = "<img class='img img-responsive' style='width:100%' src='$_SESSION[url]milfs/images/secure/?file=600/$contenido'>
<a href='milfs/images/secure/?file=full/$contenido' target='imagen'>Mostrar <i class='glyphicon glyphicon-search-plus'></i></a>
@ -13114,7 +13128,11 @@ if (mysqli_num_rows($sql)!='0'){
<iframe width='100%' height='100%' class= 'iframe-media' src=\"$contenido\" frameborder='0' allowFullScreen ></iframe>";
}
}
elseif(($campo_tipo=='2' OR $campo_tipo=='7')AND $contenido !=""){
$contenido= html_entity_decode(stripslashes("$contenido"));
}
else {
$html ="$contenido";
@ -16326,7 +16344,7 @@ while( $row = mysqli_fetch_array( $sql ) ) {
$existe[]= $control;
$existe[] = $timestamp;
$existe[] = $consulta;
$existe[] = "$contenido";
$existe[] = $contenido;
$existe[] = $md5_contenido;
$existe[] = $orden;
$existe[] = $id_usuario;