_catalogs_product.tpl 9.62 KB
<div class="products mt">
<div class="pr_t"><div class="l"><div class="r">{$product.rubric_id|rubric}</div></div></div>
 <div class="row"><div class="wrp">
      <a href="{$smarty.const.URL}uploaded/pic/catalogs/products/big/{$product.pic_big}" rel="milkbox[gall1]" title="{$product.name|stripslashes|escape:"html"}"><img src="{$smarty.const.URL}{if $product.pic}uploaded/pic/catalogs/products/{$product.pic}{else}img/picno.jpg{/if}" alt="{$product.name|escape:'html'}" title="{$product.name|escape:'html'}" border="0" class="pic" align="left" width="144" /></a>
      <div class="infor" align="center">
       {if $product.cine eq 1}

       {if $product.active>1}<div class="cine"><div class="l"><div class="r"><div class="w">{$product.active}</div></div></div></div>{/if}
       {else}
       {if $product.cine_last>0}<div><strike>{$product.cine_last}</strike></div>{/if}
       {if $product.is_cost2 eq 1}
        <div><strike>{$product.cine}</strike></div>
        <br /><div class="cine"><div class="l"><div class="r"><div class="w">{$product.cine2}</div></div></div></div>
       {else}
        <br /><div class="cine"><div class="l"><div class="r"><div class="w">{$product.cine}</div></div></div></div>
       {/if}
       {/if}
       <br /><br />
      </div>
      <div class="infob">
      <h1>{$product.name|stripslashes}</h1>
      {$product.text|stripslashes}
      {if $product.brend_pic_s}

      {elseif $product.brend_text}

       <div id="vertical_slide">
        {$product.brend_text|stripslashes}
       </div>
      {/if}
      <div class="both"></div>
      </div><div class="both"></div>
     </div>
</div></div>

<div class="both"></div>
{if count($modifications)}
{*

*}
<table cellpadding="4" cellspacing="1" border="0" align="center" width="100%" bgcolor="#969696">

{section name=i loop=$modifications}
<tr align="center" bgcolor="#ffffff"><td>{if $modifications[i].pic}<a href="{$smarty.const.URL}uploaded/pic/catalogs/modifications/big/{$modifications[i].pic_big}" rel="milkbox[gall1]" title="{$modifications[i].code|stripslashes|escape:"html"}"><img src="{$smarty.const.URL}uploaded/pic/catalogs/modifications/{$modifications[i].pic}" border="0" class="pic" alt="{$modifications[i].code|stripslashes|escape:"html"}" /></a>{else}<img src="{$smarty.const.URL}img/picno2.jpg" border="0" class="pic" alt="{$modifications[i].code|stripslashes|escape:"html"}" />{/if}</td><td>{$modifications[i].size}&nbsp;</td><td>{$modifications[i].color}&nbsp;</td><td>{$modifications[i].code}&nbsp;</td><td>{$modifications[i].code|mod_city}&nbsp;</td>
<td>
       {if $product.cine eq 1}

       {if $product.active>1}<div class="cine"><div class="l"><div class="r"><div class="w">{$product.active}</div></div></div></div>{/if}
       {else}

{/if}
</td></tr>
{/section}
</table>
{/if}

{if count($params)>0}

       <table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
        {section name=i loop=$params}
         <tr bgcolor="#ffffff"><td width="200">{$params[i].name}</td><td>{if $params[i].size}{$params[i].size} {/if}{$params[i].metka}</td></tr>
        {/section}
       </table>
{/if}

{if count($products_parent)}

{*
<div class="akciya mt">
{section name=i loop=$products_parent}
     <div class="row {if not ($smarty.section.i.rownum mod 3)}n{/if}" align="center">
      <a href="{$smarty.const.URL}catalogs/{$products_parent[i].rubric_id}/t{$products_parent[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{$products_parent[i].pic}" alt="{$products_parent[i].title|escape:'html'}" title="{$products_parent[i].title|escape:'html'}" border="0" class="pic" /></a>
      <div class="name1"><a href="{$smarty.const.URL}catalogs/{$products_parent[i].rubric_id}/t{$products_parent[i].id}/"><strong>{$products_parent[i].name|stripslashes}</strong></a></div>

     </div>{if not ($smarty.section.i.rownum mod 3)}<div class="both"></div>{/if}
{/section}<div class="both"></div>
</div>
*}

<div class="box5 mt">
<div id="SlideItMoo_outer2">
                <div id="SlideItMoo_inner2">
                        <div id="SlideItMoo_items2">
                                {section name=i loop=$products_parent}
                                <div class="SlideItMoo_element2"><div class="row" align="center">
     <div class="pic_row">
      <a href="{$smarty.const.URL}catalogs/{$products_parent[i].rubric_id}/t{$products_parent[i].id}/"><img src="{$smarty.const.URL}uploaded/pic/catalogs/products/{$products_parent[i].pic|default:'no_image2.jpg'}" alt="{$products_parent[i].title|escape:'html'}" title="{$products_parent[i].title|escape:'html'}" border="0" class="pic" /></a>
     </div>
      <div class="name2"><a href="{$smarty.const.URL}catalogs/{$products_parent[i].rubric_id}/t{$products_parent[i].id}/"><strong>{$products_parent[i].name|stripslashes}</strong></a></div>
      {if $products_parent[i].is_cost2 eq 1}
       <div><strike>{$products_parent[i].cine}</strike></div>
       <div class="cine"><div class="l"><div class="r"><div class="w">{$products_parent[i].cine2}</div></div></div></div>
      {else}
       <div class="cine"><div class="l"><div class="r"><div class="w">{$products_parent[i].cine}</div></div></div></div>
      {/if}
               </div> </div>
                {/section}

                        </div>
                </div>
        </div>
</div>
{/if}

{if $product.video_code}

       <center>{$product.video_code|stripslashes}</center>
{/if}


{if count($gallery)>0 or count($video)>0}


       {if count($gallery)>0}
       {section name=i loop=$gallery}
        <div class="box_pic">
        <p><a href="{$smarty.const.URL}uploaded/pic/catalogs/gallery/big/{$gallery[i].pic_big}" rel="milkbox[galls2]" title="{$gallery[i].name|stripslashes|escape:"html"}"><strong>{$gallery[i].name}</strong></a></p>
        <a href="{$smarty.const.URL}uploaded/pic/catalogs/gallery/big/{$gallery[i].pic_big}" rel="milkbox[galls1]" title="{$gallery[i].name|stripslashes|escape:"html"}"><img src="{$smarty.const.URL}uploaded/pic/catalogs/gallery/{$gallery[i].pic}" border="0" alt="{$gallery[i].name}" title="{$gallery[i].name}" class="pic" /></a>
        </div>
        {if not ($smarty.section.i.rownum mod 3)}<div class="both"></div>{/if}
       {/section}<div class="both"></div>


       {if count($video)>0}
        {section name=i loop=$video}
        <div id="video_{$video[i].id}" class="ct">{if $video[i].type eq "code"}{$video[i].code|stripslashes}{/if}</div>
        <p class="ct">{$video[i].name}</p>
   {if $video[i].type eq "video"}
   <script type="text/javascript">{literal}
   var obj = new Swiff('{/literal}{$smarty.const.URL}{literal}js/player.swf', {
    width:  500,
    height: 300,
    container: $('video_{/literal}{$video[i].id}{literal}'),
params: {
        allowfullscreen: 'true',
        allowscriptaccess: 'always',
        wmode: 'transparent',
        flashvars: 'file={/literal}{$smarty.const.URL}uploaded/pic/catalogs/video/{$video[i].video}{literal}'
    },
    events: {
        onLoad: function() {
            alert("Flash is loaded!")
        }
    }
});{/literal}</script>
    {/if}
        {/section}

{/if}


{if count($params)>0}

      {if count($articles)>0}
      {section name=i loop=$articles}
       <p><a href="{$smarty.const.URL}articles/{$articles[i].id}/">{$articles[i].title}</a></p>
      {/section}
      {else}

      {/if}
{/if}

{if $product.doc}

{$product.doc|stripslashes}
{/if}

{*
<div class="bots">

</div>
<div class="bot_content">
     <div class="feature">{if $product.params}{$product.params|stripslashes}{/if}
      {if count($params)>0}
       <table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
        {section name=i loop=$params}
         <tr bgcolor="#ffffff"><td width="200">{$params[i].name}</td><td>{if $params[i].size}{$params[i].size} {/if}{$params[i].metka}</td></tr>
        {/section}
       </table>
      {/if}
     </div>
     <div class="feature">

       {if count($gallery)>0}
       {section name=i loop=$gallery}
        <div class="box_pic">
        <p><a href="{$smarty.const.URL}uploaded/pic/catalogs/gallery/big/{$gallery[i].pic_big}" rel="milkbox[galls2]" title="{$gallery[i].name|stripslashes|escape:"html"}"><strong>{$gallery[i].name}</strong></a></p>
        <a href="{$smarty.const.URL}uploaded/pic/catalogs/gallery/big/{$gallery[i].pic_big}" rel="milkbox[galls1]" title="{$gallery[i].name|stripslashes|escape:"html"}"><img src="{$smarty.const.URL}uploaded/pic/catalogs/gallery/{$gallery[i].pic}" border="0" alt="{$gallery[i].name}" title="{$gallery[i].name}" class="pic" /></a>
        </div>
        {if not ($smarty.section.i.rownum mod 3)}<div class="both"></div>{/if}
       {/section}<div class="both"></div>


       {if count($video)>0}
        {section name=i loop=$video}
        <div id="video_{$video[i].id}" class="ct">{if $video[i].type eq "code"}{$video[i].code|stripslashes}{/if}</div>
        <p class="ct">{$video[i].name}</p>
   {if $video[i].type eq "video"}
   <script type="text/javascript">{literal}
   var obj = new Swiff('{/literal}{$smarty.const.URL}{literal}js/player.swf', {
    width:  500,
    height: 300,
    container: $('video_{/literal}{$video[i].id}{literal}'),
params: {
        allowfullscreen: 'true',
        allowscriptaccess: 'always',
        wmode: 'transparent',
        flashvars: 'file={/literal}{$smarty.const.URL}uploaded/pic/catalogs/video/{$video[i].video}{literal}'
    },
    events: {
        onLoad: function() {
            alert("Flash is loaded!")
        }
    }
});{/literal}</script>
    {/if}
        {/section}

     </div>
     <div class="feature">
      {if count($articles)>0}
      {section name=i loop=$articles}
       <p><a href="{$smarty.const.URL}articles/{$articles[i].id}/">{$articles[i].title}</a></p>
      {/section}
      {else}

      {/if}
     </div>

</div>
*}