"); } else { print(""); } ?>
'/>
$theme) { $js .= "case '$themeName' :\n"; foreach($theme['styles'] as $style) { $js .= "\taddOption(styleSelect, '$style');\n"; } $js .= "\tbreak;\n"; } $js .=' } } function updateSquelette(themeName) { var styleSelect = document.getElementById(\'squeletteSelect\'); clearOption(squeletteSelect); switch(themeName) { '; foreach($themes as $themeName => $theme) { $js .= "case '$themeName' :\n"; foreach($theme['squelettes'] as $squelette) { $js .= "\taddOption(squeletteSelect, '$squelette');\n"; } $js .= "\tbreak;\n"; } $js .=' } } themeSelect.onchange = function() { updateStyle(themeSelect.value); updateSquelette(themeSelect.value); }'; $GLOBALS['wiki']->addJavascript($js); ?>