2011-02-16 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_visual_map.php: fixed the edit to set items with empty
	names.
	
	* include/ajax/visual_console_builder.ajax.php: fixed the position of
	items "icons".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3873 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2011-02-16 13:26:28 +00:00
parent 5d8e10d087
commit 94211191ea
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_visual_map.php: fixed the edit to set items with empty
names.
* include/ajax/visual_console_builder.ajax.php: fixed the position of
items "icons".
2011-02-16 Miguel de Dios <miguel.dedios@artica.es> 2011-02-16 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: fixed check "<>" in other case as the ajax * include/functions_db.php: fixed check "<>" in other case as the ajax

View File

@ -36,7 +36,7 @@ $id_element = get_parameter('id_element', null);
$image = get_parameter('image', null); $image = get_parameter('image', null);
$background = get_parameter('background', null); $background = get_parameter('background', null);
$label = get_parameter('label', null); $label = get_parameter('label', '');
$left = get_parameter('left', null); $left = get_parameter('left', null);
$top = get_parameter('top', null); $top = get_parameter('top', null);
$agent = get_parameter('agent', null); $agent = get_parameter('agent', null);

View File

@ -135,7 +135,7 @@ function printItemInVisualConsole($layoutData) {
$sizeStyle = 'width: ' . $width . 'px; height: ' . $height . 'px;'; $sizeStyle = 'width: ' . $width . 'px; height: ' . $height . 'px;';
$imageSize = 'width="' . $width . '" height="' . $height . '"'; $imageSize = 'width="' . $width . '" height="' . $height . '"';
} }
echo '<div id="' . $id . '" class="item icon" style="text-align: center; color: ' . $color . '; position: absolute; ' . $sizeStyle . ' margin-top: ' . $top . 'px; margin-left: ' . $left . 'px;">'; echo '<div id="' . $id . '" class="item icon" style="left: 0px; top: 0px; text-align: center; color: ' . $color . '; position: absolute; ' . $sizeStyle . ' margin-top: ' . $top . 'px; margin-left: ' . $left . 'px;">';
if ($layoutData['image'] != null) { if ($layoutData['image'] != null) {
if (($width != 0) && ($height != 0)) if (($width != 0) && ($height != 0))