2011-07-19 Sergio Martin <sergio.martin@artica.es>

* godmode/agentes/agent_manager.php: Fixed agent icons
	in agent editor advanced options



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4589 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-07-19 16:24:10 +00:00
parent b6a926c4db
commit 08a9219083
2 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2011-07-19 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/agent_manager.php: Fixed agent icons
in agent editor advanced options
2011-07-19 Sergio Martin <sergio.martin@artica.es>
* godmode/admin_access_logs.php: Deleted old include

View File

@ -231,16 +231,21 @@ $arraySelectIcon = array();
foreach ($listIcons as $index => $value) $arraySelectIcon[$index] = $index;
$path = 'images/gis_map/icons/'; //TODO set better method the path
$table->data[4][0] = __('Agent icon');
if($icon_path == '') {
$display_icons = 'none';
}
else {
$display_icons = '';
}
$table->data[4][1] = html_print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) .
'&nbsp;' . __('Without status') . ': ' . html_print_image($path . $icon_path . "default.png", true, array("id" => "icon_without_status", "style" => "display:none;")) .
'&nbsp;' . __('Default') . ': ' . html_print_image($path . $icon_path . "default.png", true, array("id" => "icon_default", "style" => "display:none;")) .
'&nbsp;' . __('Ok') . ': ' . html_print_image($path . $icon_path . "ok.png", true, array("id" => "icon_ok", "style" => "display:none;")) .
'&nbsp;' . __('Without status') . ': ' . html_print_image($path . $icon_path . ".default.png", true, array("id" => "icon_without_status", "style" => "display:".$display_icons.";")) .
'&nbsp;' . __('Default') . ': ' . html_print_image($path . $icon_path . ".default.png", true, array("id" => "icon_default", "style" => "display:".$display_icons.";")) .
'&nbsp;' . __('Ok') . ': ' . html_print_image($path . $icon_path . ".ok.png", true, array("id" => "icon_ok", "style" => "display:".$display_icons.";")) .
'&nbsp;' . __('Bad') . ': ' . html_print_image($path . $icon_path . "bad.png", true, array("id" => "icon_bad", "style" => "display:none;")) .
'&nbsp;' . __('Bad') . ': ' . html_print_image($path . $icon_path . ".bad.png", true, array("id" => "icon_bad", "style" => "display:".$display_icons.";")) .
'&nbsp;' . __('Warning') . ': ' . html_print_image($path . $icon_path . "warning.png", true, array("id" => "icon_warning", "style" => "display:none;"));
'&nbsp;' . __('Warning') . ': ' . html_print_image($path . $icon_path . ".warning.png", true, array("id" => "icon_warning", "style" => "display:".$display_icons.";"));
if ($config['activate_gis']) {
$table->data[5][0] = __('Ignore new GIS data:');