mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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
954e68f510
commit
8a3b04672f
@ -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>
|
2010-06-09 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
* godmode/agentes/module_manager_editor_wmi.php: Added missing '_'.
|
* 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][0] = __('Agent icon');
|
||||||
$table->data[12][1] = print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) .
|
$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" />' .
|
' ' . __('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" />' .
|
' ' . __('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" />' .
|
' ' . __('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" />' .
|
' ' . __('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" />';
|
' ' . __('Warning') . ': <img id="icon_warning" src="' . $path . $icon_path . 'warning.png" style="display:none;" />';
|
||||||
|
|
||||||
if ($config['activate_gis']) {
|
if ($config['activate_gis']) {
|
||||||
$table->data[13][0] = __('Ignore new GIS data:');
|
$table->data[13][0] = __('Ignore new GIS data:');
|
||||||
@ -244,7 +244,7 @@ require_jquery_file ('autocomplete');
|
|||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
|
||||||
//Use this function for change 3 icons when change the selectbox
|
//Use this function for change 3 icons when change the selectbox
|
||||||
function changeIcons() {
|
function changeIcons() {
|
||||||
icon = $("#icon_path :selected").val();
|
icon = $("#icon_path :selected").val();
|
||||||
@ -256,18 +256,23 @@ function changeIcons() {
|
|||||||
$("#icon_warning").attr("src", "images/spinner.png");
|
$("#icon_warning").attr("src", "images/spinner.png");
|
||||||
|
|
||||||
if (icon.length == 0) {
|
if (icon.length == 0) {
|
||||||
$("#icon_without_status").attr("src", "");
|
$("#icon_without_status").attr("style", "display:none;");
|
||||||
$("#icon_default").attr("src", "");
|
$("#icon_default").attr("style", "display:none;");
|
||||||
$("#icon_ok").attr("src", "");
|
$("#icon_ok").attr("style", "display:none;");
|
||||||
$("#icon_bad").attr("src", "");
|
$("#icon_bad").attr("style", "display:none;");
|
||||||
$("#icon_warning").attr("src", "");
|
$("#icon_warning").attr("style", "display:none;");
|
||||||
}
|
}
|
||||||
else {
|
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_default").attr("src", "<?php echo $path; ?>" + icon + ".default.png");
|
||||||
$("#icon_ok").attr("src", "<?php echo $path; ?>" + icon + ".ok.png");
|
$("#icon_ok").attr("src", "<?php echo $path; ?>" + icon + ".ok.png");
|
||||||
$("#icon_bad").attr("src", "<?php echo $path; ?>" + icon + ".bad.png");
|
$("#icon_bad").attr("src", "<?php echo $path; ?>" + icon + ".bad.png");
|
||||||
$("#icon_warning").attr("src", "<?php echo $path; ?>" + icon + ".warning.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 +
|
//$("#icon_default").attr("src", "<?php echo $path; ?>" + icon +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user