Minahito
minah****@users*****
2006年 5月 17日 (水) 16:21:21 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.7 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.7 Thu Apr 13 00:11:20 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html Wed May 17 16:21:21 2006 @@ -80,24 +80,53 @@ <th><{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}></th> </tr> <{foreach item=obj from=$objects}> - <{if $obj->getVar('tpl_type') == "block"}> + <{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><{$obj->getVar('tpl_id')}></td> + <td> + <{if $obj->mOverride != null}> + <{$obj->mOverride->getVar('tpl_id')}> + <{else}> + <{$obj->getVar('tpl_id')}> + <{/if}> + </td> <td><{$obj->getVar('tpl_module')}></td> - <td><{$obj->getVar('tpl_tplset')}></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><{$obj->getVar('tpl_lastmodified')|xoops_formattimestamp:l}></td> - <td><{$obj->getVar('tpl_lastimported')|xoops_formattimestamp:l}></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 $obj->getVar('tpl_tplset') == "default"}> - <a href="index.php?action=TplfileView&tpl_id=<{$obj->get('tpl_id')}>"><img src="<{"icons/view.gif"|theme}>" alt="<{$smarty.const._AD_LEGACYRENDER_LANG_VIEW}>" title="<{$smarty.const._AD_LEGACYRENDER_LANG_VIEW}>" /></a> + <{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=TplfileEdit&tpl_id=<{$obj->get('tpl_id')}>"><img src="<{"icons/edit.gif"|theme}>" alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /></a> + <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> </tr>