catalogs_compare.tpl 3.63 KB
<div class="title3 mt mb"><div class="l"><div class="r"><div class="w">Ñðàâíèòü òîâàðû</div></div></div></div>
{if $products[0].id>0 || $products[1].id>0}
<table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
<tr bgcolor="#ffffff" valign="top">
      <td width="50%">{if $products[0].id>0}
      <img src="{$smarty.const.URL}{if $products[0].pic}uploaded/pic/catalogs/products/{$products[0].pic}{else}img/picno.jpg{/if}" alt="{$products[0].name|escape:'html'}" title="{$products[0].name|escape:'html'}" border="0" class="pic right" align="left" />
      <strong><a href="{$smarty.const.URL}catalogs/{$products[0].rubric_id}/t{$products[0].id}/" style="text-transform:uppercase;">{$products[0].name|stripslashes}</a></strong>
      <p>{$products[0].about|stripslashes}</p>
      {/if}</td>
      <td width="50%">{if $products[1].id>0}
      <img src="{$smarty.const.URL}{if $products[1].pic}uploaded/pic/catalogs/products/{$products[1].pic}{else}img/picno.jpg{/if}" alt="{$products[1].name|escape:'html'}" title="{$products[1].name|escape:'html'}" border="0" class="pic right" align="left" />
      <strong><a href="{$smarty.const.URL}catalogs/{$products[1].rubric_id}/t{$products[1].id}/" style="text-transform:uppercase;">{$products[1].name|stripslashes}</a></strong>
      <p>{$products[1].about|stripslashes}</p>
      {/if}</td>
</tr>
<tr bgcolor="#ffffff" valign="top">
      <td>
      {if count($products[0].params)>0}
       <table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
        {section name=i loop=$products[0].params}
         <tr bgcolor="#ffffff"><td width="200">{$products[0].params[i].name}</td><td>{if $products[0].params[i].size}{$products[0].params[i].size} {/if}{$products[0].params[i].metka}</td></tr>
        {/section}
       </table>
      {/if}
      </td>
      <td>
      {if count($products[1].params)>0}
       <table bgcolor="#C7C7C7" cellpadding="2" cellspacing="1" width="100%">
        {section name=i loop=$products[1].params}
         <tr bgcolor="#ffffff"><td width="200">{$products[1].params[i].name}</td><td>{if $products[1].params[i].size}{$products[1].params[i].size} {/if}{$products[1].params[i].metka}</td></tr>
        {/section}
       </table>
      {/if}
      </td>
      </tr>
<tr bgcolor="#ffffff" align="center" valign="top">
 <td>{if $products[0].id>0}
      {if $products[0].is_cost2 eq 1}
       <div><strike>{$products[0].cine}</strike></div>
       <div class="cine"><div class="l"><div class="r"><div class="w">{$products[0].cine2}</div></div></div></div>
      {else}
       {if $products[0].cine_last>0}<div><strike>{$products[0].cine_last}</strike></div>{/if}
       <div class="cost">{$products[0].cine} ãðí.</div>
      {/if}<br />
       <a href="{$smarty.const.URL}catalogs/{$products[0].rubric_id}/t{$products[0].id}/" class="link_kupit">Êóïèòü</a><br />
       <a href="{$smarty.const.URL}catalogs/compare/?deleteID={$products[0].id}" onClick="return Basket.delete_c();">Óäàëèòü òîâàð</a>
 {/if}</td>
 <td>{if $products[1].id>0}
      {if $products[1].is_cost2 eq 1}
       <div><strike>{$products[1].cine}</strike></div>
       <div class="cine"><div class="l"><div class="r"><div class="w">{$products[1].cine2}</div></div></div></div>
      {else}
       {if $products[1].cine_last>0}<div><strike>{$products[1].cine_last}</strike></div>{/if}
       <div class="cost">{$products[1].cine} ãðí.</div>
      {/if}<br />
       <a href="{$smarty.const.URL}catalogs/{$products[1].rubric_id}/t{$products[1].id}/" class="link_kupit">Êóïèòü</a><br />
       <a href="{$smarty.const.URL}catalogs/compare/?deleteID={$products[1].id}" onClick="return Basket.delete_c();">Óäàëèòü òîâàð</a>
 {/if}</td>
</tr>
</table>
{/if}