Minahito
minah****@users*****
2006年 1月 15日 (日) 21:13:53 JST
Index: xoops2jp/html/modules/legacyRender/admin/templates/tplfile_view.html diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/templates/tplfile_view.html:1.1.2.1 --- /dev/null Sun Jan 15 21:13:53 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplfile_view.html Sun Jan 15 21:13:53 2006 @@ -0,0 +1,68 @@ +<h3>» <{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_MANAGE}></h3> + +<h4><{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE_FILE_VIEW}></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> + +<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"}>"><{$object->getVar('tpl_desc')}></td> + </tr> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_SOURCE}></th> + <td class="<{cycle values="odd,even"}>"> + <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;"><{$object->Source->get('tpl_source')|escape}></textarea> + </td> + </tr> +</table>