Minahito
minah****@users*****
2006年 5月 17日 (水) 20:16:05 JST
Index: xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.8 xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.9 --- xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.8 Wed May 17 16:21:21 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html Wed May 17 20:16:05 2006 @@ -54,83 +54,105 @@ </form> </div> -<table class="outer"> - <tr> - <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_ID}><br /> - <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_ID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> - <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_ID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> - <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_MODULE}><br /> - <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_MODULE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> - <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_MODULE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> - <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TPLSET}><br /> - <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_TPLSET}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> - <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_TPLSET}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> - <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_FILE}><br /> - <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_FILE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> - <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_FILE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> - <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_LASTMODIFIED}><br /> - <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_LASTMODIFIED}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> - <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_LASTMODIFIED}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> - <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_LASTIMPORTED}><br /> - <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_LASTIMPORTED}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> - <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_LASTIMPORTED}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> - <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TYPE}><br /> - <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_TYPE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> - <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_TYPE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> - <th><{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}></th> - </tr> - <{foreach item=obj from=$objects}> - <{if $obj->mOverride == null && $targetTplset != null && $targetTplset != 'default'}> - <tr class="<{cycle values='odd,even'}>" style="color:#ff0000;" style="text-align:center;"> - <{elseif $obj->getVar('tpl_type') == "block"}> - <tr class="<{cycle values='odd,even'}>" style="color:#0000ff;" style="text-align:center;"> - <{else}> - <tr class="<{cycle values='odd,even'}>" style="text-align:center;"> - <{/if}> - <td> - <{if $obj->mOverride != null}> - <{$obj->mOverride->getVar('tpl_id')}> - <{else}> - <{$obj->getVar('tpl_id')}> - <{/if}> - </td> - <td><{$obj->getVar('tpl_module')}></td> - <td> - <{if $obj->mOverride != null}> - <{$obj->mOverride->getVar('tpl_tplset')}> - <{else}> - <{$obj->getVar('tpl_tplset')}> - <{/if}> - </td> - <td style="text-align:left;"><b><{$obj->getVar('tpl_file')}></b><br /> - <{$obj->getVar('tpl_desc')}></td> - <td> - <{if $obj->mOverride != null}> - <{$obj->mOverride->getVar('tpl_lastmodified')|xoops_formattimestamp:l}> - <{else}> - <{$obj->getVar('tpl_lastmodified')|xoops_formattimestamp:l}> - <{/if}> - </td> - <td> - <{if $obj->mOverride != null}> - <{$obj->mOverride->getVar('tpl_lastimported')|xoops_formattimestamp:l}> - <{else}> - <{$obj->getVar('tpl_lastimported')|xoops_formattimestamp:l}> - <{/if}> - </td> - <td><{$obj->getVar('tpl_type')}></td> - <td> - <{if $targetTplset == 'default'}> - <a href="index.php?action=TplfileView&tpl_id=<{$obj->getVar('tpl_id')}>"><img src="<{"icons/view.gif"|theme}>" alt="<{$smarty.const._AD_LEGACYRENDER_LANG_VIEW}>" title="<{$smarty.const._AD_LEGACYRENDER_LANG_VIEW}>" /></a> - <{elseif $obj->mOverride != null}> - <a href="index.php?action=TplfileEdit&tpl_id=<{$obj->mOverride->getVar('tpl_id')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a> - <a href="index.php?action=TplfileDelete&tpl_id=<{$obj->mOverride->getVar('tpl_id')}>"><img src="<{"icons/delete.gif"|theme}>" alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /></a> - <{else}> - <a href="index.php?action=TplfileClone&tpl_id=<{$obj->getVar('tpl_id')}>&tpl_tplset=<{$targetTplset|escape}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a> - <{/if}> - </td> +<{if $actionForm->hasError()}> + <ul> + <{foreach item=message from=$actionForm->getErrorMessages()}> + <li><{$message|escape}></li> + <{/foreach}> + </ul> +<{/if}> + +<form action="./index.php?action=TplfileList" method="post" enctype="multipart/form-data"> + <{xoops_token form=$actionForm}> + <table class="outer"> + <tr> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_ID}><br /> + <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_ID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> + <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_ID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_MODULE}><br /> + <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_MODULE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> + <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_MODULE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TPLSET}><br /> + <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_TPLSET}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> + <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_TPLSET}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_FILE}><br /> + <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_FILE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> + <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_FILE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_LASTMODIFIED}><br /> + <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_LASTMODIFIED}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> + <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_LASTMODIFIED}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_LASTIMPORTED}><br /> + <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_LASTIMPORTED}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> + <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_LASTIMPORTED}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TYPE}><br /> + <a href="<{$pageNavi->renderSortUrl()}>&sort=<{$smarty.const.TPLFILE_SORT_KEY_TPL_TYPE}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a> + <a href="<{$pageNavi->renderSortUrl()}>&sort=-<{$smarty.const.TPLFILE_SORT_KEY_TPL_TYPE}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a></th> + <th><{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}></th> </tr> - <{/foreach}> -</table> + <{foreach item=obj from=$objects}> + <{if $obj->mOverride == null && $targetTplset != null && $targetTplset != 'default'}> + <tr class="<{cycle values='odd,even'}>" style="color:#ff0000;" style="text-align:center;"> + <{elseif $obj->getVar('tpl_type') == "block"}> + <tr class="<{cycle values='odd,even'}>" style="color:#0000ff;" style="text-align:center;"> + <{else}> + <tr class="<{cycle values='odd,even'}>" style="text-align:center;"> + <{/if}> + <td> + <{if $obj->mOverride != null}> + <{$obj->mOverride->getVar('tpl_id')}> + <{else}> + <{$obj->getVar('tpl_id')}> + <{/if}> + </td> + <td><{$obj->getVar('tpl_module')}></td> + <td> + <{if $obj->mOverride != null}> + <{$obj->mOverride->getVar('tpl_tplset')}> + <{else}> + <{$obj->getVar('tpl_tplset')}> + <{/if}> + </td> + <td style="text-align:left;"><b><{$obj->getVar('tpl_file')}></b><br /> + <{$obj->getVar('tpl_desc')}></td> + <td> + <{if $obj->mOverride != null}> + <{$obj->mOverride->getVar('tpl_lastmodified')|xoops_formattimestamp:l}> + <{else}> + <{$obj->getVar('tpl_lastmodified')|xoops_formattimestamp:l}> + <{/if}> + </td> + <td> + <{if $obj->mOverride != null}> + <{$obj->mOverride->getVar('tpl_lastimported')|xoops_formattimestamp:l}> + <{else}> + <{$obj->getVar('tpl_lastimported')|xoops_formattimestamp:l}> + <{/if}> + </td> + <td><{$obj->getVar('tpl_type')}></td> + <td nowrap> + <{if $targetTplset == 'default'}> + <a href="index.php?action=TplfileView&tpl_id=<{$obj->getVar('tpl_id')}>"><img src="<{"icons/view.gif"|theme}>" alt="<{$smarty.const._AD_LEGACYRENDER_LANG_VIEW}>" title="<{$smarty.const._AD_LEGACYRENDER_LANG_VIEW}>" /></a> + [<a href="index.php?action=TplfileDownload&tpl_id=<{$obj->getVar('tpl_id')}>">Download</a> ] + <{elseif $obj->mOverride != null}> + <a href="index.php?action=TplfileEdit&tpl_id=<{$obj->mOverride->getVar('tpl_id')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a> + <a href="index.php?action=TplfileDelete&tpl_id=<{$obj->mOverride->getVar('tpl_id')}>"><img src="<{"icons/delete.gif"|theme}>" alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /></a> + [<a href="index.php?action=TplfileDownload&tpl_id=<{$obj->mOverride->getVar('tpl_id')}>">Download</a> ] + <{xoops_input type=file name=upload key=$obj->mOverride->getVar('tpl_id')}> + <{else}> + <a href="index.php?action=TplfileClone&tpl_id=<{$obj->getVar('tpl_id')}>&tpl_tplset=<{$targetTplset|escape}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a> + [<a href="index.php?action=TplfileDownload&tpl_id=<{$obj->getVar('tpl_id')}>">Download</a> ] + <{/if}> + </td> + </tr> + <{/foreach}> + </table> + + <{if $targetTplset != null && $targetTplset != 'default'}> + <{xoops_input type=hidden name=tpl_tplset value=$targetTplset}> + <{xoops_input type=hidden name=tpl_module value=$targetModule}> + <input type="submit" /> + <{/if}> + +</form> <div class="pagenavi"><{xoops_pagenavi pagenavi=$pageNavi}></div>