Fixed issue #20

This commit is contained in:
Rooty 2020-12-11 21:50:14 +01:00
parent eac155bcb6
commit 19937610b0

View File

@ -76,7 +76,7 @@ Class AdminGroup extends CoordinationObj
mxPageTitle("actionAdminTitlePage");
$arrayRawJs[] = "function imgPicto(){if(document.getElementById){if(document.getElementById(\"configGroup\")){document.getElementById(\"pictoObject\").src=\"data/template/".$GLOBALS['SYSTEM_TEMPLATE_DIR']."/media/picto/node/\"+document.getElementById(\"configGroup\").iconeN.options[(document.getElementById(\"configGroup\").iconeN.selectedIndex)].value;}}else if(document.all){if(document.all[\"configGroup\"]){document.all[\"pictoObject\"].src=\"data/template/".$GLOBALS['SYSTEM_TEMPLATE_DIR']."/media/picto/node/\"+document.all[\"configGroup\"].iconeN.options[(document.all[\"configGroup\"].iconeN.selectedIndex)].value;}}}";
$arrayRawJs[] = "function imgPicto(){if(document.getElementById){if(document.getElementById(\"configGroup\")){document.getElementById(\"pictoObject\").src=\"data/image/icons/node/\"+document.getElementById(\"configGroup\").iconeN.options[(document.getElementById(\"configGroup\").iconeN.selectedIndex)].value;}}else if(document.all){if(document.all[\"configGroup\"]){document.all[\"pictoObject\"].src=\"data/image/icons/node/\"+document.all[\"configGroup\"].iconeN.options[(document.all[\"configGroup\"].iconeN.selectedIndex)].value;}}}";
mxRawJs($arrayRawJs);
/* On inclus la template (voir package.template.php) */
@ -114,7 +114,7 @@ Class AdminGroup extends CoordinationObj
# Affichage de la liste déroulante
# Détermine le chemin des icones
$chemintotal = $GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."media/picto/node/";
$chemintotal = $GLOBALS['CONF_DATA_PATH']."data/image/icons/node/";
# Lecture du dossier correspondant aux icones
$handle = @opendir($chemintotal);
@ -127,9 +127,9 @@ Class AdminGroup extends CoordinationObj
}
@closedir($handle);
asort($tabIcone);
// if ( $Node->getIcone() == "") $nodeIcone = "defaultnode.gif"; else $nodeIcone = $Node->getIcone();
$GLOBALS['SYSTEM_TEMPLATE']->MxSelect("icone", "iconeN", '', $tabIcone, 'Icône du groupe', '', 'id="iconeN"', "class=\"form\" title=\"".htmlspecialchars(getMessage("TxtPictoGroup"), ENT_QUOTES)."\"", getMessage("TxtPictoGroup"));
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("pictoObject", $GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."/media/picto/node/defaultnode.gif", getMessage("PreviewPicto"));
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("pictoObject", $GLOBALS['CONF_DATA_PATH']."data/image/icons/node/defaultnode.gif", getMessage("PreviewPicto"));
for ($i=0; $i<count($tab);$i++)