diff --git a/data/template/lcube6/object_coordination/adminnode/configuration.mxt b/data/template/lcube6/object_coordination/adminnode/configuration.mxt index 25f9749..a63ae56 100755 --- a/data/template/lcube6/object_coordination/adminnode/configuration.mxt +++ b/data/template/lcube6/object_coordination/adminnode/configuration.mxt @@ -1,108 +1,100 @@ -
- - - -
-
-
-

()

-
- +
+ -
-
-

-
- -
-
Picto
- -
- - - + +
+ + + + +
+
+

()

-
-
- -
-
-
-
- -
-
-
-
- -

preview
+
+
+
+
+ +
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+
+
+ +
+
+ +
-
- +
+

+
+
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+
+
+ +
+ +
+
+
+
+ + preview
+
+
+
+
+ -
-
+ +
- - diff --git a/lib/object_coordination/adminnode/adminnode.php b/lib/object_coordination/adminnode/adminnode.php index b4fa8f1..a3acad9 100755 --- a/lib/object_coordination/adminnode/adminnode.php +++ b/lib/object_coordination/adminnode/adminnode.php @@ -861,14 +861,14 @@ Class AdminNode extends CoordinationObj { if (in_array($file, $tabTpl ) || count($tabTpl)==0 ) { - if($file !="" && $file !="." && $file !=".." && (strpos("CACHE",$file)===FALSE) && is_dir($chemintotal.$file)) + if($file !="" && $file !="." && $file !=".." && (strpos("CACHE,cache",$file)===FALSE) && is_dir($chemintotal.$file)) { $tabIcone[$file]=$file; } } } @closedir($handle); - $GLOBALS['SYSTEM_TEMPLATE']->MxSelect("TEMPLATE_ADMIN", "template", $tabTemplate, $tabIcone, '', 15, ' onchange="javascript:imgTemplate();" id="TEMPLATE_ADMIN"'); + $GLOBALS['SYSTEM_TEMPLATE']->MxSelect("TEMPLATE_ADMIN", "template", $tabTemplate, $tabIcone, '', 8, ' onchange="javascript:imgTemplate();" id="TEMPLATE_ADMIN"'); /* Fin Affichage des templates */ return $end; @@ -969,6 +969,9 @@ Class AdminNode extends CoordinationObj */ function __updateObject($url, $urlReturn, $groupIdPass, $nodeIdPass, $tabForbiddenPass) { + $arrayRawJs[] = "function imgTemplate(){if (document.getElementById){if (document.getElementById(\"TEMPLATE_ADMIN\")){var obj=document.getElementById(\"TEMPLATE_ADMIN\");document.screenTemplate.src=\"data/template/\"+obj.options[(obj.selectedIndex)].value+\"/preview.png\";}}else if(document.all){if(document.all[\"TEMPLATE_ADMIN\"]){var obj=document.all[\"TEMPLATE_ADMIN\"];document.screenTemplate.src=\"data/template/\"+obj.options[(obj.selectedIndex)].value+\"/preview.png\";}}}imgTemplate();"; + mxRawJs($arrayRawJs); + withBlocPath("AdminNode", "configuration"); $end=$this->configurePrint($url, $urlReturn, $groupIdPass, $nodeIdPass, $tabForbiddenPass); exitBloc();