PProductsdetail_Detail-produktu{assign var='products' value=$mod}
{* Whiski - odsud podobné jako ve výpisu produktů - SYNCHRONIZOVAT!!! *}
{$entry->product_name}

{$entry->product_name}

SLOŽENÍ

{$entry->details}

HMOTNOST

{$entry->weight} {$weight_units}

{* Whiski - konec stejného jako ve výpisu produktů - SYNCHRONIZOVAT!!! *}
C\Hٛ H oProducts#byhierarchy_hierarchie-prvni-urovne. {* hierarchy report template *} {if !isset($hdepth)} {*

Hierarchy Data for {$hierarchy_item.name} ({$hierarchy_item.id})

zakomentoval Whiski *} {/if} {if isset($hierdata)} {if !isset($hdepth)}{assign var='hdepth' value='0'}{/if} {* // create a nested set of unordered lists // if the active_hierarchy smarty variable exists // and matches the current hierarchy id // the active class will be given // to the ul. You may want to modify your summary template // to set this variable *} {foreach from=$hierdata key='key' item='item'} {strip} {if $key == $datakey} {* it is a node we display it *}
  • {if $item.count gt 0}{$item.name} ({$item.count}){else}{$item.name} ({$item.count}){/if} {if $item.image <> ''}{/if}
  • {else} {* it is a child -- call this template again with the node *} {/if} {/strip} {/foreach} {else} {* old hierarchy stuff -- deprecated *} {* if using usenewhierarchy this code can be deleted *} {if isset($upurl)}

    {$mod->Lang('parent')}

    {/if} {assign var='prodmod' value=$mod} {if isset($parent)}

    This Node

    Name: {$parent.name} Description: {$parent.description}
    {/if}

    Child Nodes

    {if isset($child_nodes) && count($child_nodes)} {foreach from=$child_nodes item='node'}
    {if isset($node.downurl)} {$node.name} {else} {$node.name} {/if}
    {if !empty($node.image)} {capture assign='image'}{$hierarchy_image_location}/{$node.image}{/capture} {capture assign='name'}{$node.name}{/capture} {if !empty($node.thumbnail)} {capture assign='thumb'}{$hierarchy_image_location}/{$node.thumbnail}{/capture} {$name} {else} {$name} {/if} {/if} {if !empty($node.description)}

    Description: {$node.description}

    {/if}

    {/foreach} {/if}
    Products matching this location in hierarchy
    {Products hierarchyid=$hierarchy_item.id} {/if}{* old hierarchy stuff *} ҳHH MenuManager horni_menu{* CSS classes used in this template: #menuwrapper - The id for the
    that the menu is wrapped in. Sets the width, background etc. for the menu. #primary-nav - The id for the
    {/if} HMHPrinting linktemplate{if isset($imgsrc)} {capture assign='image'} {$linktext} {/capture} {$image} {else} {$image}{$linktext} {/if} }YH}YHzPrinting printtemplateO Printing {title} {stylesheet media='print' templateid=$templateid} {if $overridestylesheet!=''} {/if} {$content} {$printscript} }YH}YHFPrinting pdftemplate

    {$title}

    {$content} }YH}YHnSearch displaysearchE{$startform} Vyhledat  |   {if isset($hidden)}{$hidden}{/if} {$endform}}YHg|H CGExtensions cg_errormsgi{* original template for displaying frontend errors *}
    {$cg_errormsg}
    ^KH^KHSearch displayresult

    {$searchresultsfor} "{$phrase}"

    {if $itemcount > 0} {else}

    {$noresultsfound}

    {/if}}YHA\H CGExtensionssortablelists_Sample{* sortable list template *} {* This template provides one example of using javascript in a CMS module template. The javascript is left here as an example of how one can interact with smarty in javascript. You may infact want to put most of these functions into a seperate .js file and include it somewhere in your head section. You are free to modify this javascript and this template. However, the php driver scripts look for a field named in the smarty variable {$selectarea_prefix}, and expect that to be a comma seperated list of values. *} {literal} {/literal}
    {* left column - for the selected items *} {$label_left}

    {* center column - for the add/delete buttons *}



    {* right column - for the master list *} {$label_right}
    ^KH^KHProductssummary_Sample}{if isset($catformstart)} {$catformstart} {$catdropdown}{$catbutton} {$catformend} {/if} {if isset($pagecount) && $pagecount gt 1} {$firstlink} {$prevlink}  {$pagetext} {$curpage} {$oftext} {$pagecount}  {$nextlink} {$lastlink} {/if} {foreach from=$items item=entry} {* the summary template has access to custom fields via the $entry->fields hash and to categories via the $entry->categories array of objects. Also attribute information is available via $entry->attributes. you should use the get_template_vars and the print_r modifier to see what is available *}
    {$entry->product_name} ({$entry->weight}{$weight_units})  {$currency_symbol}{$entry->price} {if isset($entry->categories)} Categories:  {foreach from=$entry->categories item='category'} {$category->name},  {/foreach}
    {/if}
    {* include the cart {if isset($cart_module_tag)}
    {eval var=$cart_module_tag}
    {/if} *} {/foreach} KHKH Products detail_Sample {* this is a sample product detail template *} {assign var='products' value=$mod}
    {if is_array($entry->breadcrumb)} Breadcrumb: {' >> '|implode:$entry->breadcrumb}
    {/if} Name: {$entry->product_name}
    File Location: {$entry->file_location}
    {if $entry->weight ne ''} Weight {$weight_units}: {$entry->weight}
    {/if} Breadcrumb: {$entry->breadcrumb} {if $entry->details ne ''} Details:
    {$entry->details}
    {/if} {* uncomment the following line if the Promotions module is installed *} {* promo_get_prod_discount product_id=$entry->id assign='foo' *} {if isset($foo.promo_id)} Discount: {$currency_symbol}{$foo.discount|number_format:2} ({$foo.percentage|number_format:2}%)
    {if $entry->price ne ''} Price {$currency_symbol}: {$entry->price * $foo.decimal|number_format:2}
    {/if} {elseif $entry->price ne ''} Price {$currency_symbol}: {$entry->price}
    {/if} {* accessing all of the fields in a list *} {if count($entry->fields)}

    Custom Fields

    {foreach from=$entry->fields key='name' item='field'}

    {$mod->Lang('name')}: {$name}
    {$mod->lang('type')}: {$field->type}
    {$mod->lang('value')}: {$field->value}
    {if $field->type == 'image' && isset($field->thumbnail)} {$field->value} {/if}

    {/foreach} {/if} {* print out attributes *} {if isset($entry->attributes)}

    Attributes

    {foreach from=$entry->attributes key='name' item='attribset'}
    {$name}

    {foreach from=$attribset key='label' item='adjustment'} {$label}: {$adjustment}
    {/foreach}

    {/foreach} {/if} {* print out the categories *} {if isset($entry->categories)}

    Categories

    {foreach from=$entry->categories item='category'}

    {$mod->Lang('id')}: {$category->id}
    {$mod->Lang('name')}: {$category->name}
    {* if there are data fields associated with this category, display them too *} {if isset($category->data) && count($category->data)}

    {$mod->Lang('data')}
    {foreach from=$category->data item='onedataitem'}
    {if $onedataitem.field_type == 'image'} thumb {elseif $onedataitem.field_type == 'file'} {$onedataitem.field_value} {else} {$onedataitem.field_prompt}: {$onedataitem.field_value}
    {/if}
    {/foreach}
    {/if}

    {/foreach} {/if} {* include the cart *} {* include the cart *} {cge_have_module m='CGEcommerceBase' assign='tmp'} {if $tmp}
    {cgecomm_form_addtocart product=$entry->id}
    {/if} {* create a link back to the top of the page *} {anchor anchor='product_name' text=$products->Lang('return_to_top') title=$products->Lang('return_to_top')}
    KHKH VProductsbyhierarchy_Sample& {* hierarchy report template *} {if !isset($hdepth)}

    Hierarchy Data for {$hierarchy_item.name} ({$hierarchy_item.id})

    {/if} {if isset($hierdata)} {if !isset($hdepth)}{assign var='hdepth' value='0'}{/if} {* // create a nested set of unordered lists // if the active_hierarchy smarty variable exists // and matches the current hierarchy id // the active class will be given // to the ul. You may want to modify your summary template // to set this variable *} {foreach from=$hierdata key='key' item='item'} {strip} {if $key == $datakey} {* it's a node we display it *}
  • {if $item.count gt 0}{$item.name} ({$item.count}){else}{$item.name} ({$item.count}){/if} {if $item.image <> ''}{/if}
  • {else} {* it's a child -- call this template again with the node *} {/if} {/strip} {/foreach} {else} {* old hierarchy stuff -- deprecated *} {* if using usenewhierarchy this code can be deleted *} {if isset($upurl)}

    {$mod->Lang('parent')}

    {/if} {assign var='prodmod' value=$mod} {if isset($parent)}

    This Node

    Name: {$parent.name} Description: {$parent.description}
    {/if}

    Child Nodes

    {if isset($child_nodes) && count($child_nodes)} {foreach from=$child_nodes item='node'}
    {if isset($node.downurl)} {$node.name} {else} {$node.name} {/if}
    {if !empty($node.image)} {capture assign='image'}{$hierarchy_image_location}/{$node.image}{/capture} {capture assign='name'}{$node.name}{/capture} {if !empty($node.thumbnail)} {capture assign='thumb'}{$hierarchy_image_location}/{$node.thumbnail}{/capture} {$name} {else} {$name} {/if} {/if} {if !empty($node.description)}

    Description: {$node.description}

    {/if}

    {/foreach} {/if}
    Products matching this location in hierarchy
    {Products hierarchyid=$hierarchy_item.id} {/if}{* old hierarchy stuff *} KHHProductscategorylist_Sample
    {foreach from=$categorylist item='obj'}
    {* category fields are available as an array in $obj->fields *} {* i.e: $obj->fields.fieldname.field_value *} {if isset($obj->fields)} {foreach from=$obj->fields key='field_name' item='fielddata'}
    {$fielddata.field_prompt} = {$fielddata.field_value}
    {/foreach} {/if} {if isset($obj->detail_url)} Details For {$obj->name}   {/if} Products Matching {$obj->name}({$obj->count})
    {/foreach}
    KHKH Products search_Sample {* search template *} {* valid fields are: {$actionid}cd_submit - (string) for a submit button {$actionid}cd_cancel - (string) for a cancel button {$actionid}cd_prodname - (string) for text field to search against product name {$actionid}cd_proddesc - (string) for text field to search against product description. {$actionid}cd_propprice - (select) for price searching. options must be of type string with high low limits separated by a : i.e: 1000:2000 a special value of -1 can be used to indicate any price. {$actionid}cd_allany - (int) to indicate wether all of the conditions much match, or if any one of them may. {$actionid}cd_propvalue - (string) property values. *}
    {$formstart}

    {$mod->Lang('search_expr')}:

    {$mod->Lang('search_name')}:

    {$mod->Lang('search_description')}:

    {$mod->Lang('search_price')}:

    {if isset($searchprops)} {foreach from=$searchprops key='propname' item='obj'}

    {$obj->prompt}:

    {if $obj->type == 'text'} {else if $obj->type == 'dropdown'} {/if}

    {/foreach} {/if}

    {$formend}
    {* prod_searchform *}KHKHProducts summary_Vypisc{if isset($catformstart)} {$catformstart} {$catdropdown}{$catbutton} {$catformend} {/if} {if isset($pagecount) && $pagecount gt 1} {$firstlink} {$prevlink}  {$pagetext} {$curpage} {$oftext} {$pagecount}  {$nextlink} {$lastlink} {/if} {generuj_produkty} {html_table loop=$produkty cols=2 table_attr="id='produkty'" td_attr=$td_classes} ]NHfH MenuManager sortiment{if $count > 0} {generuj_sortiment} {html_table loop=$sortiment cols=3 table_attr='border="0" id="sortiment_list"'} {/if}MHIYH