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/product_img/view.tpl

56 lines
1.9 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
{$block->display('core:top_clean')}
2009-08-03 04:10:16 +00:00
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/view_pre.tpl'}
<!-- Display the field validation -->
{if $form_validation}
{$block->display('core:alert_fields')}
{/if}
<!-- Display each record -->
<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 width="65%" class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="middle" align="left">
<td width="65%" align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td width="28%"><a href="?_page=product_img:add&product_img_product_id={$record.product_id}&_escape=1&_escape_next=1">{translate module=product_img}title_add{/translate}</a></td>
<td width="35%" align="right"><a href="?_page=core:search_iframe&module=product_img&product_img_product_id={$record.product_id}&_next_page_none=add&name_id1=product_img_product_id&val_id1={$record.product_id}&_escape=1&_escape_next=1&do[]=product_img:delete&id={$record.id}">{translate module=product_img}title_delete{/translate}</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div style="text-align: center;"><br/>
{if $record.type == '0'}
<img src="{$URL}{$smarty.const.URL_IMAGES}prod_img_{$record.id}.{$record.url}"/>
{else}
<img src="{$record.url}"/>
{/if}
</div>
2009-08-03 04:10:16 +00:00
{include file='file:../core/view_post.tpl'}
</form>
{/if}