
<div id="panel"></div>
<div class="body_wrapper_wrapper">
    <table class="body_wrapper" width="100%" cellspacing="0" cellpadding="0" heigth="100%">
        <tr>
            <td heigth="100%" align="center">
                <table class="root_table" width="100%" cellspacing="0" cellpadding="0">
                    <tr valign="top">
                        <td class="root_table__top" align="center" width="260">
                            <a href="/"><div class="logotype"></div></a>
                        </td>
                        <td class="root_table__top" align="center">
                            <div class="er_header">
                                <div class="max_width">
                                    <div id="head_wrapper" align="center">
                                        <table cellspacing="0" cellpadding="0" width="100%">
                                            <tr>
                                                <td align="center">
                                                    <div class="max_width">
                                                        <table cellspacing="0" cellpadding="0" width="100%" class="fs_14">
                                                            <tr valign="middle">
                                                                <td class="">
                                                                    <div class="zt_header__auth" onclick="event.stopPropagation();">
                                                                        <?php
                                                                        //include_component('pages', 'subMenu', array('marking' => 'top'));
                                                                        ?>
                                                                    </div>
                                                                </td>
                                                                <td width="1%">
                                                                    <a href="/personal/cart/" class="er_header__cart green_button basket_button" style="min-width: 192px;">
                                                                        <nobr>
                                                                            <?php
                                                                                //include_component('basket', 'counter');
                                                                            ?>
                                                                        </nobr>
                                                                    </a>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                            </div>

                            <table class="header_search_authorize_section" width="100%" cellspacing="0" cellpadding="0">
                                <tr valign="top">
                                    <td>

                                        <div class="er_content__main__search">
                                            <form class="search_form" action="<?php echo url_for('@search') ?>">
                                                <table cellpadding="0" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td style="height: 63px; border: none">
                                                            <div class="search_form_inp__wrap">
                                                                <input id="title-search-input" type="text" name="query" value="<?php include_slot('search_query') ?>
" onkeyup="search.quickSearch($(this).val())" autocomplete="off" placeholder="Поиск" />
                                                                <button id="search-submit-button" type="submit" class="er_content__main__search__btn"></button>

                                                                <div class="search_result">
                                                                    <div id="search_div" class="title-search-result sq_ct"></div>
                                                                </div>

                                                            </div>

                                                            <input type="hidden" name="offset" id="search_offset" value="0" />


                                                        </td>
                                                    </tr>
                                                </table>
                                            </form>
                                        </div>

                                    </td>
                                    <td valign="middle" width="350px">
                                        <div class="header_authorize_wrap">

                                            <?php

                                            if ($this->context->getUser()->isAuthenticated())
                                            {
                                                echo '<div class="personal_avatar"></div><a class="personal" href="'. url_for('@personal_profile') .'">'. $this->context->getUser()->getAccount()->getOrganization() .'</a><a href="'. url_for('@personal_login') .'?exit">Выход</a>';
                                            }
                                            else
                                            {
                                                echo '<a href="'. url_for('@registration') .'">Зарегистрироваться</a>';
                                                ?>


                                                <a href="" onclick="$(this).next().toggleClass('zt_header__auth__block_active');return false;">
                                                    <nobr>Войти</nobr>
                                                </a>
                                                <div class="zt_header__auth__block">
                                                    <div class="bx-system-auth-form">

                                                        <?php
                                                        //include_component('personal_area', 'loginForm', array('view' => 'header'))
                                                        ?>

                                                    </div>
                                                </div>



                                                <?php
                                            }


                                            ?>

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


                        </td>
                    </tr>
                    <tr valign="top">
                        <td class="root_table__middle" align="center" height="100%" colspan="2">
                            <div class="er_content">
                                <div class="max_width">
