top_old.php 7.4 KB
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125

<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">