NobuNobu
nobun****@users*****
2006年 3月 24日 (金) 22:05:46 JST
Index: xoops2jp/html/modules/legacyRender/blocks/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/blocks/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:05:46 2006 +++ xoops2jp/html/modules/legacyRender/blocks/index.html Fri Mar 24 22:05:46 2006 @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Index: xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php diff -u /dev/null xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php:1.1.2.1 --- /dev/null Fri Mar 24 22:05:46 2006 +++ xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php Fri Mar 24 22:05:46 2006 @@ -0,0 +1,41 @@ +<?php +function b_legacyRender_themes_show($options) +{ + global $xoopsConfig; + $theme_options = array(); + foreach ($xoopsConfig['theme_set_allowed'] as $theme) { + $theme_option['name'] = $theme; + if ($theme == $xoopsConfig['theme_set']) { + $theme_option['selected'] = 'selected="selected"'; + } else { + $theme_option['selected'] = ''; + } + $theme_options[] = $theme_option; + } + $block = array(); + $block['count'] = count($xoopsConfig['theme_set_allowed']); + $block['mode'] = $options[0]; + $block['width'] = $options[1]; + $block['theme_options'] = $theme_options; + return $block; +} + +function b_legacyRender_themes_edit($options) +{ + + $chk = ""; + $form = _MB_LEGACYRENDER_THSHOW." "; + if ( $options[0] == 1 ) { + $chk = ' checked="checked"'; + } + $form .= '<input type="radio" name="options[0]" value="1"'.$chk.' /> '._YES; + $chk = ""; + if ( $options[0] == 0 ) { + $chk = ' checked="checked"'; + } + $form .= ' <input type="radio" name="options[0]" value="0"'.$chk.' />'._NO; + $form .= '<br />'._MB_LEGACYRENDER_THWIDTH.' '; + $form .= '<input type="text" name="options[1]" value="'.$options[1].'" />'; + return $form; +} +?>