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/search_show.tpl
2011-05-03 09:49:01 +10:00

60 lines
2.5 KiB
Smarty

{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/search_show_pre.tpl'}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
{$method->exe_noauth($meth.0,'tpl_search_show')}
{foreach from=$search_show item=record}
{include file='file:../core/search_show_tr_record.tpl'}
<td>{$record.sku}</td>
<td>{$list->format_currency($record.price_base,'')}</td>
<td>
{if $record.active == '1'}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="Status" width="16" height="16" style="border: 0px;"/>
{else}
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="Status" width="16" height="16" style="border: 0px;"/>
{/if}
</td>
<td>
{if $list->translate('product_translate','name,description_short','id',$record.id,'name')}
{$name.name|truncate:50}
{else}
---
{/if}
</td>
<td>
{if {$name.short_description != ''}
{assign var="descshort" value=$name.description_short|strip_tags}
<a href="javascript:showTranslations({$record.id},'{$smarty.const.DEFAULT_LANGUAGE}')" {if $descshort != ""}{popup capcolor="ffffff" textcolor="333333" bgcolor="506DC7" fgcolor="FFFFFF" sticky=false width="250" caption="Short Description" text="$descshort" snapx=1 snapy=1 sticky=1}{/if}><img src="themes/{$THEME_NAME}/images/icons/edit_16.gif" alt="Edit" width="16" height="16" style="border: 0px;"/></a>
{/if}
</td>
</tr>
{/foreach}
</table>
</td>
</tr>
</table>
{include file='file:../core/search_show_post-1.tpl'}
{include file='file:../core/search_show_post-2.tpl'}
<script type="text/javascript">
<!--
{literal}
function showTranslations(product_id,language_id) {
var url = '?_page=core:search_iframe&module=product_translate&product_translate_language_id='+language_id+'&product_translate_product_id='+product_id+'&_escape=1&_escape_next=1&_next_page_one=view&_next_page_none=add&name_id1=product_translate_product_id&val_id1='+product_id+'&name_id2=product_translate_language_id&val_id2='+language_id;
window.open(url,'ProductLanguage','scrollbars=yes,toolbar=no,status=no,width=700,height=600');
}
{/literal}
//-->
</script>
{/if}