2010-06-09 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/agent_manager.php: Fixed the agent icons on agent setup for bug: 3013426 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2883 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
0feb793bc6
commit
837c1af2b4
|
@ -1,3 +1,8 @@
|
|||
2010-06-09 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/agentes/agent_manager.php: Fixed the agent icons on
|
||||
agent setup for bug: 3013426
|
||||
|
||||
2010-06-09 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* godmode/agentes/module_manager_editor_wmi.php: Added missing '_'.
|
||||
|
|
|
@ -212,11 +212,11 @@ $path = 'images/gis_map/icons/'; //TODO set better method the path
|
|||
|
||||
$table->data[12][0] = __('Agent icon');
|
||||
$table->data[12][1] = print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) .
|
||||
' ' . __('Without status') . ': <img id="icon_without_status" src="' . $path . $icon_path . 'none.png" />' .
|
||||
' ' . __('Default') . ': <img id="icon_default" src="' . $path . $icon_path . 'default.png" />' .
|
||||
' ' . __('Ok') . ': <img id="icon_ok" src="' . $path . $icon_path . 'ok.png" />' .
|
||||
' ' . __('Bad') . ': <img id="icon_bad" src="' . $path . $icon_path . 'bad.png" />' .
|
||||
' ' . __('Warning') . ': <img id="icon_warning" src="' . $path . $icon_path . 'warning.png" />';
|
||||
' ' . __('Without status') . ': <img id="icon_without_status" src="' . $path . $icon_path . 'default.png" style="display:none;" />' .
|
||||
' ' . __('Default') . ': <img id="icon_default" src="' . $path . $icon_path . 'default.png" style="display:none;" />' .
|
||||
' ' . __('Ok') . ': <img id="icon_ok" src="' . $path . $icon_path . 'ok.png" style="display:none;" />' .
|
||||
' ' . __('Bad') . ': <img id="icon_bad" src="' . $path . $icon_path . 'bad.png" style="display:none;" />' .
|
||||
' ' . __('Warning') . ': <img id="icon_warning" src="' . $path . $icon_path . 'warning.png" style="display:none;" />';
|
||||
|
||||
if ($config['activate_gis']) {
|
||||
$table->data[13][0] = __('Ignore new GIS data:');
|
||||
|
@ -244,7 +244,7 @@ require_jquery_file ('autocomplete');
|
|||
?>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
|
||||
|
||||
//Use this function for change 3 icons when change the selectbox
|
||||
function changeIcons() {
|
||||
icon = $("#icon_path :selected").val();
|
||||
|
@ -256,18 +256,23 @@ function changeIcons() {
|
|||
$("#icon_warning").attr("src", "images/spinner.png");
|
||||
|
||||
if (icon.length == 0) {
|
||||
$("#icon_without_status").attr("src", "");
|
||||
$("#icon_default").attr("src", "");
|
||||
$("#icon_ok").attr("src", "");
|
||||
$("#icon_bad").attr("src", "");
|
||||
$("#icon_warning").attr("src", "");
|
||||
$("#icon_without_status").attr("style", "display:none;");
|
||||
$("#icon_default").attr("style", "display:none;");
|
||||
$("#icon_ok").attr("style", "display:none;");
|
||||
$("#icon_bad").attr("style", "display:none;");
|
||||
$("#icon_warning").attr("style", "display:none;");
|
||||
}
|
||||
else {
|
||||
$("#icon_without_status").attr("src", "<?php echo $path; ?>" + icon + ".png");
|
||||
$("#icon_without_status").attr("src", "<?php echo $path; ?>" + icon + ".default.png");
|
||||
$("#icon_default").attr("src", "<?php echo $path; ?>" + icon + ".default.png");
|
||||
$("#icon_ok").attr("src", "<?php echo $path; ?>" + icon + ".ok.png");
|
||||
$("#icon_bad").attr("src", "<?php echo $path; ?>" + icon + ".bad.png");
|
||||
$("#icon_warning").attr("src", "<?php echo $path; ?>" + icon + ".warning.png");
|
||||
$("#icon_without_status").attr("style", "");
|
||||
$("#icon_default").attr("style", "");
|
||||
$("#icon_ok").attr("style", "");
|
||||
$("#icon_bad").attr("style", "");
|
||||
$("#icon_warning").attr("style", "");
|
||||
}
|
||||
|
||||
//$("#icon_default").attr("src", "<?php echo $path; ?>" + icon +
|
||||
|
|
Loading…
Reference in New Issue