{* $Id: event_view.tpl 2636 2006-12-05 08:28:29Z imac $ *} {capture name="mainbox"} {foreach from=$event_fields item=field key=f_id} {/foreach}
{$lang.title}:  {$event_data.title}
{$lang.name}:  {$event_data.owner}
{$lang.start_date}:  {$event_data.start_date|date_format:$settings.Appearance.date_format}
{$lang.end_date}:  {$event_data.end_date|date_format:$settings.Appearance.date_format}
{$field.description}:  {if $field.field_type == 'S' || $field.field_type == 'R'} {assign var="i" value=$event_data.fields.$f_id} {$field.variants.$i.description} {elseif $field.field_type == 'C'} {if $event_data.fields.$f_id =='Y'}{$lang.yes}{else}{$lang.no}{/if} {elseif $field.field_type == 'I' || $field.field_type == 'T'} {$event_data.fields.$f_id} {elseif $field.field_type == 'V'} {$event_data.fields.$f_id|date_format:$settings.Appearance.date_format} {/if}

{include file="common_templates/subheader.tpl" title=$lang.defined_desired_products} {if $event_data.products}
{foreach from=$event_data.products item="product" key="key"} {/foreach}
{include file="common_templates/image.tpl" image_width=$settings.Appearance.thumbnail_width obj_id=$key images=$product.main_pair object_type="product"}
{$product.product|escape:html}  {if $product.product_code}
{$lang.sku}: {$product.product_code}
{/if}

{$product.short_description|truncate:200:"..."}

{if $product.product_options}

{$lang.product_options}:
{foreach from=$product.product_options_ids item=v key=k} {/foreach} {include file="common_templates/options_info.tpl" product_options=$product.product_options} {/if}

{$lang.price} {$lang.desired_amount} {$lang.bought_amount} {$lang.amount}
{if $product.discounts} {include file="common_templates/price.tpl" value=$product.discounted_price span_id="discounted_price_`$key`" class="main-text"} {else} {include file="common_templates/price.tpl" value=$product.price span_id="original_price_`$key`" class="main-text"} {/if} {$product.amount} {$product.ordered_amount} {if $product.avail_amount} {assign var="range" value=1|range:$product.avail_amount} {assign var="show_add_to_cart" value="Y"} {else}  -  {/if}

 

{if $show_add_to_cart == 'Y'} {if $settings.DHTML.ajax_add_to_cart == 'Y' && !$no_ajax} {include file="buttons/add_to_cart.tpl" but_text=$lang.add_to_cart but_onclick="javascript: fn_http_request('ca', fn_form_get_request('event_products_form') + 'ajax=cart_status');"} {else} {include file="buttons/add_to_cart.tpl" but_text=$lang.add_to_cart but_onclick="javascript: document.event_products_form.submit();"} {/if} {/if}
{else}


{$lang.text_no_products_defined}
 

{/if} {/capture} {include file="common_templates/mainbox.tpl" title=$lang.view content=$smarty.capture.mainbox} {if $settings.Modules.discussion == 'Y'} {include file="addons/discussion/discussion.tpl" object_id=$event_data.event_id object_type="G" title=$lang.discussion_title_giftreg} {/if}