Fixed issue #21

This commit is contained in:
Rooty 2020-12-11 21:59:27 +01:00
parent 19937610b0
commit 0586872f1a

View File

@ -222,7 +222,7 @@ Class AdminGroup extends CoordinationObj
mxPageTitle("updateAdminTitlePage");
$arrayRawJs[] = "function imgPicto(){if(document.getElementById){if(document.getElementById(\"modifGroup\")){document.getElementById(\"pictoObject\").src=\"data/template/".$GLOBALS['SYSTEM_TEMPLATE_DIR']."/media/picto/node/\"+document.getElementById(\"modifGroup\").iconeN.options[(document.getElementById(\"modifGroup\").iconeN.selectedIndex)].value;}}else if(document.all){if(document.all[\"modifGroup\"]){document.all[\"pictoObject\"].src=\"data/template/".$GLOBALS['SYSTEM_TEMPLATE_DIR']."/media/picto/node/\"+document.all[\"modifGroup\"].iconeN.options[(document.all[\"modifGroup\"].iconeN.selectedIndex)].value;}}}";
$arrayRawJs[] = "function imgPicto(){if(document.getElementById){if(document.getElementById(\"modifGroup\")){document.getElementById(\"pictoObject\").src=\"data/image/icons/node/\"+document.getElementById(\"modifGroup\").iconeN.options[(document.getElementById(\"modifGroup\").iconeN.selectedIndex)].value;}}else if(document.all){if(document.all[\"modifGroup\"]){document.all[\"pictoObject\"].src=\"data/image/icons/node/\"+document.all[\"modifGroup\"].iconeN.options[(document.all[\"modifGroup\"].iconeN.selectedIndex)].value;}}}";
mxRawJs($arrayRawJs);
/* On inclus la template (voir package.template.php) */
@ -252,7 +252,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/";
/* -- Affichage des Group d'ajout */
printTabTreeGroup($tabTreeGroup, $group_id, "GROUP", "group_id", false, "", "", "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("TxtDeplacer"), ENT_QUOTES)."\"");
@ -277,8 +277,9 @@ Class AdminGroup extends CoordinationObj
}
@closedir($handle);
asort($tabIcone);
$GLOBALS['SYSTEM_TEMPLATE']->MxSelect("ToHidde".".icone", "iconeN", $Group->getIcone(), $tabIcone, '', '', 'id="iconeN"', "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeIcon"), ENT_QUOTES)."\"", getMessage("txtNodeIcon"));
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("ToHidde.pictoObject", $GLOBALS['SYSTEM_TEMPLATE_PATH'].$GLOBALS['SYSTEM_TEMPLATE_DIR']."media/picto/node/".$Group->getIcone(), getMessage("PreviewPicto"));
if ( $Group->getIcone() == "") $groupIcone = "defaultnode.gif"; else $groupIcone = $Group->getIcone();
$GLOBALS['SYSTEM_TEMPLATE']->MxSelect("ToHidde".".icone", "iconeN", $groupIcone, $tabIcone, '', '', 'id="iconeN"', "class=\"form\" title=\"".htmlspecialchars(getMessage("txtNodeIcon"), ENT_QUOTES)."\"", getMessage("txtNodeIcon"));
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("ToHidde.pictoObject", $GLOBALS['CONF_DATA_PATH']."data/image/icons/node/".$groupIcone, getMessage("PreviewPicto"));
for ($i=0; $i<count($tab);$i++)
{