{* Шаблон главной оболочки магазина *}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
{* подключение файла заголовков *}
{include file="head.tpl.html"}
<body>
{if $admlink}{assign var="adminbild" value=1}{/if}
{if $smarty.const.CONF_SHOP_BILD eq 1 and $adminbild ne 1}

{* Сообщение о профилактике *}

<table cellspacing="0" cellpadding="0" width="100%" height="100%">
  <tr>
    <td class="profi arc" valign="middle" align="center"><img src="design/user/{$smarty.const.TEMPLATE_GO}/images/bild.gif" alt=""><br><br>{$smarty.const.STRING_BILD}<br>{$smarty.const.STRING_BILD_DES}</td>
  </tr>
</table>

{else}

<table cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" align="left">

{* панель отладочной информации *}

{if $smarty.const.CONF_DISPLAY_INFO eq 1 and $admlink}
<table cellspacing="0" cellpadding="0" width="100%" class="print"><tr class="mid">
<td style="background: url(design/admin/images/fonbot.gif); height: 23px;"><img src="design/admin/images/sep.gif" alt=""></td>
<td width="100%" style="background: url(design/admin/images/fonbot.gif); height: 23px;">
<table cellspacing="0" cellpadding="0" width="100%"><tr class="mid">
<td style="padding-bottom: 2px;" nowrap="nowrap" class="stat">&nbsp;&nbsp;{$smarty.const.STRING_EXE_DATA}:&nbsp;<span id="tgenexe"></span>&nbsp;{$smarty.const.TIME_SEK}</td>
<td nowrap="nowrap"><img src="design/admin/images/sep2.gif" alt=""></td>
<td style="padding-bottom: 2px;" nowrap="nowrap" class="stat">{$smarty.const.STRING_PREEXE_DATA}:&nbsp;<span id="tgencompile"></span>&nbsp;{$smarty.const.TIME_SEK}</td>
<td nowrap="nowrap"><img src="design/admin/images/sep2.gif" alt=""></td>
<td style="padding-bottom: 2px;" nowrap="nowrap" class="stat">{$smarty.const.BD_DO_TIME}:&nbsp;<span id="tgendb"></span>&nbsp;{$smarty.const.TIME_SEK}</td>
<td nowrap="nowrap"><img src="design/admin/images/sep2.gif" alt=""></td>
<td style="padding-bottom: 2px;" nowrap="nowrap" class="stat">{$smarty.const.STRING_ALL_EXETIME}:&nbsp;<span id="tgenall"></span>&nbsp;{$smarty.const.TIME_SEK}</td>
<td nowrap="nowrap"><img src="design/admin/images/sep2.gif" alt=""></td>
<td width="95%" style="padding-bottom: 2px;" nowrap="nowrap" class="stat">{$smarty.const.STRING_DO_COUNT}:&nbsp;<span id="tgensql"></span></td></tr></table>
</td></tr></table>
{/if}

{* вывод сообщений об ошибках *}
{if $exploerrors ne ""}{$exploerrors}{/if}

{* меню *}

<div class="fix print"></div>
<table cellspacing="0" cellpadding="0" width="100%" class="print">
  <tr>
   <td class="headlink bf" align="left"><a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}index.html{else}index.php{/if}">Главная</a><span class="delm">|</span><a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}news.html{else}index.php?news=yes{/if}">Новости</a><span class="delm">|</span><a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}price.html{else}index.php?show_price=yes{/if}">Прайс-лист</a><span class="delm">|</span><a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}page_1.html{else}index.php?show_aux_page=1{/if}">О магазине</a><span class="delm">|</span><a href="index.php?links_exchange=yes">Cсылки</a><span class="delm">|</span><a href="{if $smarty.const.CONF_OPEN_SHOPPING_CART_IN_NEW_WINDOW eq 1}javascript:open_window('cart.php',500,300);{else}{if $smarty.const.CONF_MOD_REWRITE eq 1}cart.html{else}index.php?shopping_cart=yes{/if}{/if}">Корзина</a><span class="delm">|</span><a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}feedback.html{else}index.php?feedback=yes{/if}">Контакты</a></td>
  </tr>
</table>

{* шапка *}

<table cellspacing="0" cellpadding="0" width="100%" class="print">
  <tr>
   <td class="htba" valign="middle" align="left"><span class="fonta">Название магазина</span><br><span class="fontb">Описание или слоган вашего интернет-магазина</span></td>
   <td class="htbb" valign="middle" align="center"></td>
  </tr>
</table>

{* форма поиска товаров *}

<table cellspacing="0" cellpadding="0" width="100%" class="print">
 <tr>
 <td class="poisk">
 <form action="index.php" method="get" name="formpoisk" id="formpoisk">
  <table cellspacing="0" cellpadding="0">
   <tr class="mid">
    <td class="poisk1"><b>{$smarty.const.STRING_SEARCH}</b></td>
    <td>{section name=sert loop=$searchstrings}<input type="hidden" name='search_string_{$smarty.section.sert.index}' value='{$searchstrings[sert]}'>{/section}<input type="text" name="searchstring" class="pform" value="{$searchstring}"></td>
    <td style="padding: 0px 20px 0px 10px;"><input type="image" src="design/user/{$smarty.const.TEMPLATE_GO}/images/srg.gif"></td>
    <td><input type="checkbox" name="inside" {if $search_in_results}checked{/if}></td>
    <td style="padding: 0px 34px 0px 4px; color: #ffffff;"><b>{$smarty.const.STRING_SEARCH_IN_RESULTS}</b></td>
    <td><a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}wide_search.html{else}index.php?search_with_change_category_ability=yes{/if}"><b>{$smarty.const.ADVANCED_SEARCH_LINK}</b></a>
    </td>
   </tr>
  </table>
 </form>
 </td>
 </tr>
</table>

{* центральная часть *}

<table cellspacing="0" cellpadding="0" width="100%">
 <tr>
  <td class="container">
   <table cellspacing="0" cellpadding="0" width="100%">
    <tr>
     {if $count_left_blocks > 0}<td id="left" valign="top" align="center" class="print"><div class="fil1 white"></div>{include file="left_blocks.tpl.html"}<img src="design/user/{$smarty.const.TEMPLATE_GO}/images/pixel.gif" class="fixwidth" alt=""></td>{/if}
     <td class="center" align="left" valign="top">{include file="top_blocks.tpl.html"}{include file="$main_content_template"}{include file="bottom_blocks.tpl.html"}</td>
     {if $count_right_blocks > 0}<td id="right" valign="top" align="center" class="print"><div class="fil1 white"></div>{include file="right_blocks.tpl.html"}<img src="design/user/{$smarty.const.TEMPLATE_GO}/images/pixel.gif" class="fixwidth" alt=""></td>{/if}
    </tr>
   </table>
  </td>
 </tr>
</table>

{* подвал *}

<table cellspacing="0" cellpadding="0" width="100%" class="print">
 <tr>
  <td>
    <div class="fix" style="border-bottom: 1px solid #ffffff;"></div>
    <table cellspacing="0" cellpadding="0" width="100%"><tr><td class="btbl">© 2009 Интернет-магазин</td></tr></table>
  </td>
 </tr>
</table>

</td></tr></table>

{* прорисовка скрытого ajax бокса *}
<script type="text/javascript">printcart();</script>

{/if}