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/import/import.tpl

49 lines
1.6 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,'view')}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
2009-08-03 04:10:16 +00:00
<form id="view" method="post" action="" enctype="multipart/form-data">
2009-08-03 04:10:16 +00:00
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{$name}</td>
</tr>
<tr valign="top">
<td>{$instructions}</td>
</tr>
<!-- Loop through each record -->
{foreach from=$import item=record}
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 75%;">{$record.desc}</td>
<td style="width: 25%;">
{if $record.status == 'ready'}
<a href="?_page=core:blank&amp;plugin={$VAR.plugin}&amp;action={$record.name}&amp;do[]=import:do_action">{t}{$record.status}{/t}</a>
{elseif $record.status == 'done'}
<a href="?_page=import:import&amp;plugin={$VAR.plugin}&amp;action={$record.name}&amp;do[]=import:undo_action">{t}{$record.status}{/t} ({$record.records})</a>
{elseif $record.status == 'pending' }
{t}{$record.status}{/t}
{/if}
</td>
</tr>
</table>
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
</form>
{/if}