Minahito
minah****@users*****
2006年 1月 15日 (日) 21:13:22 JST
Index: xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html:1.1.2.6 xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html:1.1.2.7 --- xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html:1.1.2.6 Sun Jan 15 03:31:15 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html Sun Jan 15 21:13:22 2006 @@ -1,6 +1,13 @@ <h3>» <{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_MANAGE}></h3> <h4><{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_SET_LIST}></h4> +<div style="text-align:right;"> +<form action="index.php" method="GET">*テンプレート検索* : + <input type="hidden" name="action" value="TplfileList" /> + <input type="text" name="tpl_file" /> + <input class="formButton" type="submit" value="<{$smarty.const._SEARCH}>" /> +</form> +</div> <{if count($objects) == 1 }> <div class="tip"><{$smarty.const._AD_LEGACYRENDER_TIPS_TEMPLATE_MANAGE_1}></div> @@ -57,7 +64,8 @@ </td> <td style="text-align:center;"> <{if $activeTemplateSet == $obj->getVar('tplset_name')}> - <b style="color:red;">[*active*]</b><br /><br /> + <img src="<{"icons/active.gif"|theme}>" alt="*active*" /><br /><br /> +<{* <b style="color:red;">[*active*]</b><br /><br /> *}> <{else}> <form action="./index.php?action=TplsetList" method="POST"> <{xoops_token name=$actionForm->getTokenName() value=$actionForm->getToken()}> @@ -81,3 +89,48 @@ </table> <br /> <div style="text-align:center;"><{xoops_pagenavi pagenavi=$pageNavi}></div> + +<hr /> + +<h4><{$smarty.const._AD_LEGACYRENDER_LANG_RECENT_MODIFY_FILES}></h4> + +<table class="outer" cellspacing="1"> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_ID}></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_MODULE}></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TPLSET}></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_FILE}></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_LASTMODIFIED}></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_LASTIMPORTED}></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TYPE}></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}></th> + </tr> + <{foreach item=obj from=$recentObjects}> + <{if $obj->getVar('tpl_type') == "block"}> + <tr class="<{cycle values='odd,even'}>" style="color:#0000ff;"> + <{else}> + <tr class="<{cycle values='odd,even'}>"> + <{/if}> + <td><{$obj->getVar('tpl_id')}></td> + <td><{$obj->getVar('tpl_module')}></td> + <td><{$obj->getVar('tpl_tplset')}></td> + <td><b><{$obj->getVar('tpl_file')}></b><br /> + <{$obj->getVar('tpl_desc')}></td> + <td><{$obj->getVar('tpl_lastmodified')|xoops_formattimestamp:l}></td> + <td><{$obj->getVar('tpl_lastimported')|xoops_formattimestamp:l}></td> + <td><{$obj->getVar('tpl_type')}></td> + <td> + <{if $obj->getVar('tpl_tplset') == "default"}> + <a href="index.php?action=TplfileView&tpl_id=<{$obj->get('tpl_id')}>" title="*view*"><img src="<{"icons/view.gif"|theme}>" alt="*view*" /></a> + <{else}> + <a href="index.php?action=TplfileEdit&tpl_id=<{$obj->get('tpl_id')}>" title="<{$smarty.const._EDIT}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" /></a> + <{/if}> + </td> + </tr> + <{/foreach}> + <tr> + <td class="foot" style="text-align:center;" colspan="8"> + <a href="index.php?action=TplfileList&sort=-7"><{$smarty.const._MORE}></a> + </td> + </tr> +</table> Index: xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.4 --- xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.3 Sun Jan 15 03:31:15 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html Sun Jan 15 21:13:22 2006 @@ -1,8 +1,53 @@ <h3>» <{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_MANAGE}></h3> -<h4><{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_FILE_LIST}></h4> +<h4><{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_FILE_LIST}> +<{if is_object($filterForm->mTplset)}> + - [ <{$filterForm->mTplset->get('tplset_name')}> ] +<{/if}> +<{if is_object($filterForm->mModule)}> + - <{$filterForm->mModule->get('name')}>(<{$filterForm->mModule->get('dirname')}>) +<{/if}> +</h4> +<div style="text-align:right;"> +<form action="index.php" method="GET">*テンプレート検索* : + <{$pageNavi->renderHidden('tpl_file')}> + <input type="hidden" name="action" value="TplfileList" /> + <input type="text" name="tpl_file" /> + <input class="formButton" type="submit" value="<{$smarty.const._SEARCH}>" /> +</form> +</div> +<div style="text-align:center;"> +<form action="./index.php" method="GET"> + <input type="hidden" name="action" value="TplfileList" /> + <{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TPLSET}> : + <select name="tpl_tplset"> + <{foreach from=$tplsets item=tplset}> + <{if is_object($filterForm->mTplset)}> + <option value="<{$tplset->getVar('tplset_name')}>" <{if $filterForm->mTplset->get('tplset_name') == $tplset->getVar('tplset_name')}>selected<{/if}> > + <{$tplset->getVar('tplset_name')}></option> + <{else}> + <option value="<{$tplset->getVar('tplset_name')}>"> + <{$tplset->getVar('tplset_name')}></option> + <{/if}> + <{/foreach}> + </select> + <{$smarty.const._AD_LEGACYRENDER_LANG_TPL_MODULE}> : + <select name="tpl_module"> + <{foreach from=$modules item=module}> + <{if is_object($filterForm->mModule)}> + <option value="<{$module->getVar('dirname')}>" <{if $filterForm->mModule->get('dirname') == $module->getVar('dirname')}>selected<{/if}> > + <{$module->getVar('name')}>(<{$module->getVar('dirname')}>)</option> + <{else}> + <option value="<{$module->getVar('dirname')}>"> + <{$module->getVar('name')}>(<{$module->getVar('dirname')}>)</option> + <{/if}> + <{/foreach}> + </select> + <input class="formButton" type="submit" value="<{$smarty.const._SUBMIT}>" /> +</form> +</div> <table class="outer" cellspacing="1"> <tr> @@ -30,7 +75,11 @@ <th><{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}></th> </tr> <{foreach item=obj from=$objects}> - <tr class="<{cycle values='odd,even'}>"> + <{if $obj->getVar('tpl_type') == "block"}> + <tr class="<{cycle values='odd,even'}>" style="color:#0000ff;"> + <{else}> + <tr class="<{cycle values='odd,even'}>"> + <{/if}> <td><{$obj->getVar('tpl_id')}></td> <td><{$obj->getVar('tpl_module')}></td> <td><{$obj->getVar('tpl_tplset')}></td> @@ -39,7 +88,13 @@ <td><{$obj->getVar('tpl_lastmodified')|xoops_formattimestamp:l}></td> <td><{$obj->getVar('tpl_lastimported')|xoops_formattimestamp:l}></td> <td><{$obj->getVar('tpl_type')}></td> - <td><a href="index.php?action=TplfileEdit&tpl_id=<{$obj->get('tpl_id')}>" title="<{$smarty.const._EDIT}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" /></a></td> + <td> + <{if $obj->getVar('tpl_tplset') == "default"}> + <a href="index.php?action=TplfileView&tpl_id=<{$obj->get('tpl_id')}>" title="*view*"><img src="<{"icons/view.gif"|theme}>" alt="*view*" /></a> + <{else}> + <a href="index.php?action=TplfileEdit&tpl_id=<{$obj->get('tpl_id')}>" title="<{$smarty.const._EDIT}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" /></a> + <{/if}> + </td> </tr> <{/foreach}> </table> Index: xoops2jp/html/modules/legacyRender/admin/templates/tplfile_edit.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/tplfile_edit.html:1.1.2.1 xoops2jp/html/modules/legacyRender/admin/templates/tplfile_edit.html:1.1.2.2 --- xoops2jp/html/modules/legacyRender/admin/templates/tplfile_edit.html:1.1.2.1 Sat Jan 14 02:32:35 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplfile_edit.html Sun Jan 15 21:13:22 2006 @@ -1,3 +1,44 @@ +<h3>» <{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_MANAGE}></h3> + +<h4><{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_FILE_EDIT}></h4> + +<script type="text/javascript"> +<!-- + +function expandEditor( id, mode, height ) +{ + var element = document.getElementById( id ); + if( element ) + + element.style.height = height + "px"; + + + element = document.getElementById( id + "_iframe" ); + if( element ) + element.style.height = height + "px"; + + if( mode == 'expand' ) { + element = document.getElementById( id + "_expand" ); + if( element ) + element.style.display = "none"; + element = document.getElementById( id + "_contract" ); + if( element ) + element.style.display = "block"; + } else if( mode == 'contract' ) { + element = document.getElementById( id + "_expand" ); + if( element ) + element.style.display = "block"; + element = document.getElementById( id + "_contract" ); + if( element ) + element.style.display = "none"; + } + + return false; +} +// --> +</script> + + <{if $actionForm->hasError()}> <ul> <{foreach item=message from=$actionForm->getErrorMessages()}> @@ -10,20 +51,35 @@ <{xoops_input type=hidden name=tpl_id value=$actionForm->getVar('tpl_id')}> <table class="outer" cellspacing="1"> <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TPLSET}></th> + <td class="<{cycle values="odd,even"}>"><b><{$object->getVar('tpl_tplset')}></b></td> + </tr> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_MODULE}></th> + <td class="<{cycle values="odd,even"}>"><b><{$object->getVar('tpl_module')}></b></td> + </tr> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_FILE}></th> + <td class="<{cycle values="odd,even"}>"><b><{$object->getVar('tpl_file')}></b></td> + </tr> + <tr> <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_DESC}></th> - <td class="<{cycle values="odd,even"}>"> - <{xoops_input type=text name=tpl_desc value=$actionForm->getVar('tpl_desc') size=15 maxlength=255}> - </td> + <td class="<{cycle values="odd,even"}>"><{$actionForm->getVar('tpl_desc')}></td> </tr> <tr> <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_SOURCE}></th> <td class="<{cycle values="odd,even"}>"> - <{xoops_textarea cols=50 rows=10 name=tpl_source value=$actionForm->getVar('tpl_source')}> + <div> + <a href="javascript:void(0);" onclick="return expandEditor( 'tpl_source', 'contract', '400' );">*小さく*</a> + << == >> + <a href="javascript:void(0);" onclick="return expandEditor( 'tpl_source', 'expand', '600' );">*大きく*</a> + </div> + <textarea name=tpl_source id=tpl_source style="width:600px;height:400px;"><{$actionForm->getVar('tpl_source')}></textarea> </td> </tr> <tr class="foot"> <td colspan="2" style="text-align:center;"> - <input class="formButton" type="submit" value="<{$smarty.const._MD_LEGACYRENDER_LANG_SUBMIT}>" /> + <input class="formButton" type="submit" value="<{$smarty.const._EDIT}>" /> </td> </tr> </table> Index: xoops2jp/html/modules/legacyRender/admin/templates/theme_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/theme_list.html:1.1.2.8 xoops2jp/html/modules/legacyRender/admin/templates/theme_list.html:1.1.2.9 --- xoops2jp/html/modules/legacyRender/admin/templates/theme_list.html:1.1.2.8 Sun Jan 15 03:31:15 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/theme_list.html Sun Jan 15 21:13:22 2006 @@ -54,7 +54,8 @@ <input name="choose[<{$theme->get('name')|escape}>]" type="submit" value="<{$smarty.const._SELECT}>" class="formButton" /> <{else}> <{* [ <b style="color:red;"><{$smarty.const._AD_LEGACYRENDER_LANG_SELECTED}></b> ] *}> - <b style="color:red;">[Active]</b> + <img src="<{"icons/active.gif"|theme}>" alt="*active*" /> +<{* <b style="color:red;">[Active]</b> *}> <{/if}> <img src="<{'icons/info.gif'|theme}>" alt="<{$smarty.const._AD_LEGACYRENDER_LANG_INFORMATION}>" align="absmiddle" /> </td> Index: xoops2jp/html/modules/legacyRender/admin/templates/tplset_delete.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/tplset_delete.html:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/templates/tplset_delete.html:1.1.2.3 --- xoops2jp/html/modules/legacyRender/admin/templates/tplset_delete.html:1.1.2.2 Sat Jan 14 02:36:04 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplset_delete.html Sun Jan 15 21:13:22 2006 @@ -1,12 +1,39 @@ -<h3>» *テンプレート管理*</h3> +<h3>» <{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_MANAGE}></h3> -<h4>*テンプレートセット削除*</h4> +<h4><{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_SET_DELETE}></h4> <ul> - <li>Do you delete <b><{$object->getVar('tplset_name')}></b> ?</li> + <li>*Do you delete* <b><{$object->getVar('tplset_name')}></b> ?</li> </ul> -<form action="" method="post"> - <{xoops_token form=$actionForm}> - <{xoops_input type=hidden name=tplset_id value=$actionForm->get('tplset_id')}> - <input type="submit" value="<{$smarty.const._DELETE}>" class="formButton" /> -</form> +<table class="outer" cellspacing="1"> + <tr> + <th style="width:30%;"><{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_ID}></th> + <td class="<{cycle values="odd,even"}>"><{$object->getVar('tplset_id')}></td> + </tr> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_NAME}></th> + <td class="<{cycle values="odd,even"}>"><b><{$object->getVar('tplset_name')}></b></td> + </tr> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_DESC}></th> + <td class="<{cycle values="odd,even"}>"><{$object->getVar('tplset_desc')}></td> + </tr> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_CREDITS}></th> + <td class="<{cycle values="odd,even"}>"><{$object->get('tplset_credits')|escape|nl2br}></td> + </tr> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_CREATED}></th> + <td class="<{cycle values="odd,even"}>"><{$object->getVar('tplset_created')|xoops_formattimestamp:l}></td> + </tr> + <tr> + <td class="foot" colspan="2" style="text-align:center;"><br /> + <form action="index.php?action=TplsetDelete" method="post"> + <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=tplset_id value=$actionForm->get('tplset_id')}> + <input type="submit" value="<{$smarty.const._DELETE}>" class="formButton" /> + </form> + </td> + </tr> +</table> +