Minahito
minah****@users*****
2006年 5月 12日 (金) 19:14:43 JST
Index: xoops2jp/html/modules/base/admin/templates/preference_edit.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/preference_edit.html:1.1.2.1 --- /dev/null Fri May 12 19:14:43 2006 +++ xoops2jp/html/modules/base/admin/templates/preference_edit.html Fri May 12 19:14:43 2006 @@ -0,0 +1,171 @@ +<{if $actionForm->hasError()}> + <ul> + <{foreach item=message from=$actionForm->getErrorMessages()}> + <li><{$message|escape}></li> + <{/foreach}> + </ul> +<{/if}> +<form action="" method="post"> + <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=$actionForm->mKeyName value=$actionForm->mKeyValue}> + + <table class="outer"> + + <{foreach item=config from=$objectArr}> + <tr valign='top' align='left'> + <td class='head'> + <{$config->getTitle()|escape}> + <{if $config->get('conf_desc') != null}> + <br /><br /> + <span style="font-weight:normal;"><{$config->getDesc()|escape}></span> + <{/if}> + </td> + <td class='<{cycle values="odd,even"}>'> + <{if $config->get('conf_formtype') == 'textarea'}> + <{xoops_textarea name=$config->getVar('conf_name') id=$config->getVar('conf_name') rows=5 cols=50 value=$actionForm->get($config->get('conf_name'))}> + + + <{elseif $config->get('conf_formtype') == 'select'}> + <select name='<{$config->getVar('conf_name')}>' id='<{$config->getVar('conf_name')}>'> + <{foreach item=option from=$config->getOptionItems()}> + <option value='<{$option->getOptionKey()|escape}>' <{if $actionForm->get($config->get('conf_name')) == $option->getOptionKey()}>selected<{/if}>><{$option->getOptionLabel()|escape}></option> + <{/foreach}> + </select> + + + <{elseif $config->get('conf_formtype') == 'select_multi'}> + <select name='<{$config->getVar('conf_name')}>[]' id='<{$config->getVar('conf_name')}>' size='5' multipul> + <{assign var=flag value=0}> + <{foreach item=selected from=$actionForm->get($config->get('conf_name'))}> + <{if $option->getOptionKey() == $selected}><{assign var=flag value=1}><{/if}> + <{/foreach}> + <option value="<{$option->getOptionKey()|escape}>" <{if $flag}>selected<{/if}>><{$option->getOptionLabel()|escape}></option> + </select> + + + <{elseif $config->get('conf_formtype') == 'yesno'}> + <{xoops_input type=radio name=$config->get('conf_name') id=$config->get('conf_name') value=1 default=$actionForm->get($config->get('conf_name'))}><{$smarty.const._YES}> + <{xoops_input type=radio name=$config->get('conf_name') id=$config->get('conf_name') value=0 default=$actionForm->get($config->get('conf_name'))}><{$smarty.const._NO}> + + + <{elseif $config->get('conf_formtype') == 'theme'}> + <select name='<{$config->getVar('conf_name')}>' id='<{$config->getVar('conf_name')}>'> + <{foreach item=theme from=$themeArr}> + <option value="<{$theme|escape}>" <{if $actionForm->get($config->get('conf_name')) == $theme}>selected<{/if}>><{$theme|escape}></option> + <{/foreach}> + </select> + + + <{elseif $config->get('conf_formtype') == 'theme_multi'}> + <select name='<{$config->getVar('conf_name')}>[]' id='<{$config->getVar('conf_name')}>' size='5' multipul> + <{foreach item=theme from=$themeArr}> + <{assign var=flag value=0}> + <{foreach item=selected from=$actionForm->get($config->get('conf_name'))}> + <{if $theme == $selected}><{assign var=flag value=1}><{/if}> + <{/foreach}> + <option value="<{$theme|escape}>" <{if $selected}>selected<{/if}>><{$theme|escape}></option> + <{/foreach}> + </select> + + + <{elseif $config->get('conf_formtype') == 'tplset'}> + <select name='<{$config->getVar('conf_name')}>' id='<{$config->getVar('conf_name')}>'> + <{xoops_optionsArray value=tplset_id label=tplset_name from=$tplsetArr default=$actionForm->get($config->get('conf_name')}> + </select> + + + <{elseif $config->get('conf_formtype') == 'timezone'}> + <select name='<{$config->getVar('conf_name')}>' id='<{$config->getVar('conf_name')}>'> + <{xoops_optionsArray value=offset label=zone_name from=$timezoneArr default=$actionForm->get($config->get('conf_name')}> + </select> + + + <{elseif $config->get('conf_formtype') == 'language'}> + <select name='<{$config->getVar('conf_name')}>' id='<{$config->getVar('conf_name')}>'> + <{foreach item=language from=$languageArr}> + <option value="<{$language|escape}>" <{if $actionForm->get($config->get('conf_name')) == $language}>selected<{/if}>><{$language|escape}></option> + <{/foreach}> + </select> + + + <{elseif $config->get('conf_formtype') == 'startpage'}> + <select name='<{$config->getVar('conf_name')}>' id='<{$config->getVar('conf_name')}>'> + <option value="--"><{$smary.const._MD_AM_NONE}></option> + <{xoops_optionsArray value=mid label=name from=$moduleArr default=$actionForm->get($config->get('conf_name')}> + </select> + + + <{elseif $config->get('conf_formtype') == 'group'}> + <select name='<{$config->getVar('conf_name')}>' id='<{$config->getVar('conf_name')}>'> + <{xoops_optionsArray value=groupid label=name from=$groupArr default=$actionForm->get($config->get('conf_name'))}> + </select> + + + <{elseif $config->get('conf_formtype') == 'group_multi'}> + <select name='<{$config->getVar('conf_name')}>[]' id='<{$config->getVar('conf_name')}>' size='3' multiple> + <{foreach item=group from=$groupArr}> + <{assign var=flag value=0}> + <{foreach item=selected from=$actionForm->get($config->get('conf_name'))}> + <{if $group->get('groupid') == $selected}><{assign var=flag value=1}><{/if}> + <{/foreach}> + <option value="<{$group->getVar('groupid')}>" <{if $flag}>selected<{/if}>><{$group->getVar('name')}></option> + <{/foreach}> + </select> + + + <{elseif $config->get('conf_formtype') == 'user'}> + <select name='<{$config->getVar('conf_name')}>' id='<{$config->getVar('conf_name')}>'> + <{foreach key=value item=label from=$userArr}> + <option value="<{$value|escape}>" <{if $value == $actionForm->get($config->get('conf_name'))}>selected<{/if}>><{$label|escape}></option> + <{/foreach}> + </select> + + + <{elseif $config->get('conf_formtype') == 'user_multi'}> + <select name='<{$config->getVar('conf_name')}>[]' id='<{$config->getVar('conf_name')}>' size='3' multiple> + <{foreach key=value item=label from=$userArr}> + <{assign var=flag value=0}> + <{foreach item=selected from=$actionForm->get($config->get('conf_name'))}> + <{if $value == $selected}><{assign var=flag value=1}><{/if}> + <{/foreach}> + <option value="<{$value|escape}>" <{if $flag}>selected<{/if}>><{$label|escape}></option> + <{/foreach}> + </select> + + + <{elseif $config->get('conf_formtype') == 'module_cache'}> + <{foreach item=module from=$moduleArr}> + <{$module->getVar('name')}> + <select name="<{$config->getVar('conf_name')}>[<{$module->getVar('mid')}>]"> + <{foreach item=cachetime from=$cachetimeArr}> + <{if $actionForm->get($config->get('conf_name'), $module->get('mid')) == $cachetime->get('cachetime')}> + <option value="<{$cachetime->getVar('cachetime')}>" selected><{$cachetime->getVar('label')}></option> + <{else}> + <option value="<{$cachetime->getVar('cachetime')}>"><{$cachetime->getVar('label')}></option> + <{/if}> + <{/foreach}> + </select> + <br/> + <{/foreach}> + + + <{elseif $config->get('conf_formtype') == 'password'}> + <{xoops_input type=password name=$config->get('conf_name') id=$config->get('conf_name') size=50 maxlength=255 value=$actionForm->get($config->get('conf_name'))}> + + + <{elseif $config->get('conf_formtype') == 'textbox'}> + <{xoops_input type=text name=$config->get('conf_name') id=$config->get('conf_name') size=50 maxlength=255 value=$actionForm->get($config->get('conf_name'))}> + + + <{/if}> + </td> + </tr> + <{/foreach}> + <tr> + <td colspan="2" class="foot"> + <input class="formButton" type="submit" value="<{$smarty.const._SUBMIT}>" /> + <input type="button" value="<{$smarty.const._BACK}>" onclick="javascript:history.back()" class="formButton" /> + </td> + </tr> + </table> +</form> Index: xoops2jp/html/modules/base/admin/templates/preference_list.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/preference_list.html:1.1.2.1 --- /dev/null Fri May 12 19:14:43 2006 +++ xoops2jp/html/modules/base/admin/templates/preference_list.html Fri May 12 19:14:43 2006 @@ -0,0 +1,28 @@ +<div class="adminnavi"> + <a href="./index.php"><{$smarty.const._MI_BASE_NAME}></a> + »» <a href="./index.php?action=ImagecategoryList"><{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_LIST}></a> +</div> + +<h3><{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_LIST}></h3> + +<div style="text-align:right;">[ <a href="index.php?action=ImagecategoryEdit"><{$smarty.const._AD_BASE_LANG_CREATE_NEW}></a> ]</div> +<br/> + +<table class="outer" cellspacing="1"> + <tr> + <th><{$smarty.const._AD_BASE_LANG_CONFCAT_ID}></th> + <th><{$smarty.const._AD_BASE_LANG_CONFCAT_NAME}></th> + <th><{$smarty.const._AD_BASE_LANG_CONTROL}></th> + </tr> + <{foreach item=obj from=$objects}> + <tr class="<{cycle values='odd,even'}>"> + <td><{$obj->getVar('confcat_id')}></td> + <td><{$obj->getVar('confcat_name')}></td> + <td> + <a href="./index.php?action=PreferenceEdit&confcat_id=<{$obj->getVar('confcat_id')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" /></a> + </td> + </tr> + <{/foreach}> +</table> +<br /> +<div style="text-align:center;"><{xoops_pagenavi pagenavi=$pageNavi}></div>