This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/host_registrar_plugin/search_show.tpl

49 lines
1.7 KiB
Smarty
Raw Normal View History

2009-08-03 04:10:16 +00:00
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
2009-08-03 04:10:16 +00:00
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
2009-08-03 04:10:16 +00:00
{include file='file:../core/search_show_pre.tpl'}
2009-08-03 04:10:16 +00:00
<!-- BEGIN THE RESULTS CONTENT AREA -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<!-- DISPLAY THE SEARCH HEADING -->
<tr valign="middle" align="center" class="table_heading">
<td class="table_heading" style="width: 20px;">&nbsp;</td>
<td class="table_heading">{translate module=host_registrar_plugin}field_name{/translate}</td>
<td class="table_heading">&nbsp;</td>
</tr>
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$host_registrar_plugin item=record}
<tr class="{$record._C}">
<td>
{if $record.status == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="Enabled" width="16" height="16" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="Disabled" width="16" height="16" style="border: 0px;"/>
{/if}
</td>
<td>{$record.name}</td>
<td style="text-align: center;">
{if $record.status == '1'}
<a href="?_page=host_registrar_plugin:view&amp;id={$record.id}">{t}View / Edit Plugin{/t}</a>
{else}
<a href="?_page=host_registrar_plugin:add&amp;host_registrar_plugin_file={$record.name}">{t}Install Plugin{/t}</a>
{/if}
</td>
</tr>
{/foreach}
<!-- END OF RESULT LOOP -->
</table>
</td>
</tr>
</table>
</form>
{/if}
</div>