49 lines
1.6 KiB
Smarty
49 lines
1.6 KiB
Smarty
{assign var=meth value=':'|explode:$VAR._page}
|
|
<!-- {$meth.0}:{$meth.1} -->
|
|
|
|
{$method->exe($meth.0,'view')}
|
|
{if ($method->result == false)}
|
|
{$block->display('core:method_error')}
|
|
{else}
|
|
|
|
<form id="view" method="post" action="" enctype="multipart/form-data">
|
|
|
|
<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&plugin={$VAR.plugin}&action={$record.name}&do[]=import:do_action">{t}{$record.status}{/t}</a>
|
|
{elseif $record.status == 'done'}
|
|
<a href="?_page=import:import&plugin={$VAR.plugin}&action={$record.name}&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}
|