mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch '1206-Problemas-Consola-Visual-4--el-regreso-dev' into 'develop'
Fixed See merge request !731
This commit is contained in:
commit
395c68450c
@ -1531,32 +1531,22 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//$io_safe_output_text = str_replace(array('_VALUE_','_value_'), $value, $io_safe_output_text);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(get_parameter('action') == 'edit'){
|
if(get_parameter('action') == 'edit'){
|
||||||
//html_debug($layoutData);
|
if( (strip_tags($io_safe_output_text) != '_VALUE_') || (strip_tags($io_safe_output_text) != '(_VALUE_)') ) {
|
||||||
//echo 'Data value';
|
|
||||||
if( (strip_tags($io_safe_output_text) != '_VALUE_') || (strip_tags($io_safe_output_text) != '(_VALUE_)') ){
|
|
||||||
echo $io_safe_output_text;
|
echo $io_safe_output_text;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
echo "<img style='width:".$layoutData['width']."px;' src='images/console/signes/data_image.png'>";
|
echo "<img style='width:".$layoutData['width']."px;' src='images/console/signes/data_image.png'>";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if(strrpos(strip_tags($io_safe_output_text),'(_VALUE_)') !== false || (strip_tags($io_safe_output_text) == '(_VALUE_)')) {
|
||||||
|
echo str_replace(array("(_VALUE_)","(_value_)"), $value, $io_safe_output_text);
|
||||||
}
|
}
|
||||||
else{
|
elseif(strrpos(strip_tags($io_safe_output_text),'_VALUE_') !== false || (strip_tags($io_safe_output_text) == '_VALUE_')) {
|
||||||
if(strip_tags($io_safe_output_text) == '_VALUE_'){
|
|
||||||
echo str_replace(array('_VALUE_','_value_'), $value, $io_safe_output_text);
|
echo str_replace(array('_VALUE_','_value_'), $value, $io_safe_output_text);
|
||||||
}
|
} else {
|
||||||
elseif(strip_tags($io_safe_output_text) == '(_VALUE_)'){
|
|
||||||
echo str_replace(array('_VALUE_','_value_'), $value, $io_safe_output_text);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
echo str_replace('>', ' style="width:'.$layoutData['width'].'px">',$value);
|
echo str_replace('>', ' style="width:'.$layoutData['width'].'px">',$value);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Restore db connection
|
//Restore db connection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user