diff --git a/frontend/views/modal/forgot_password_form_model_window.php b/frontend/views/modal/forgot_password_form_model_window.php
new file mode 100644
index 0000000..6b5c79a
--- /dev/null
+++ b/frontend/views/modal/forgot_password_form_model_window.php
@@ -0,0 +1,27 @@
+
\ No newline at end of file
diff --git a/frontend/views/modal/login_window_model_window.php b/frontend/views/modal/login_window_model_window.php
new file mode 100644
index 0000000..496e6f7
--- /dev/null
+++ b/frontend/views/modal/login_window_model_window.php
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+ Url::toRoute('site/login'),
+ ]); ?>
+
+ = $form->field(new LoginForm(), 'email' )->textInput(['autofocus' => true]) ?>
+
+ = $form->field(new LoginForm(), 'password')->passwordInput() ?>
+
+
+
+ = $form->field(new LoginForm(), 'rememberMe')->checkbox() ?>
+
+
+ = Html::a(Yii::t('app', 'forgot_password'), ['site/request-password-reset'],['class'=>'forgot_pass_link']) ?>
+
+
+
+ = Html::submitButton(Yii::t('app','enter'), ['class' => 'my_cust_btn', 'name' => 'login-button']) ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/views/modal/my_callback_modal_window.php b/frontend/views/modal/my_callback_modal_window.php
new file mode 100644
index 0000000..1356a6a
--- /dev/null
+++ b/frontend/views/modal/my_callback_modal_window.php
@@ -0,0 +1,35 @@
+
\ No newline at end of file
diff --git a/frontend/views/modal/registration_window_model_window.php b/frontend/views/modal/registration_window_model_window.php
new file mode 100644
index 0000000..1456a03
--- /dev/null
+++ b/frontend/views/modal/registration_window_model_window.php
@@ -0,0 +1,60 @@
+
+
\ No newline at end of file
diff --git a/frontend/web/css/comments.css b/frontend/web/css/comments.css
index 7587ab6..75cb160 100755
--- a/frontend/web/css/comments.css
+++ b/frontend/web/css/comments.css
@@ -1 +1 @@
-@import "https://fonts.googleapis.com/css?family=Roboto:400,700,500&subset=cyrillic-ext,latin,cyrillic,latin-ext";.input_bl,.area_bl,.form-comm-wr,.user_name,.user_txt,.comment-panel,.answer-form,.comments-start input,.comments-start textarea,.submit_btn button,.input_bl label{box-sizing:border-box}.comments-border{width:100%;margin-top:25px;margin-bottom:27px;height:1px;background:#d2d2d2}.comments-start{width:730px;margin:0 auto;font-family:'Roboto',sans-serif;font-weight:400;color:#333}.form-comm-wr{width:100%;background:#f5f5f5;padding:20px;float:left}.input_bl{margin-top:15px;float:left}.area_bl,.input_bl{position:relative}.input_bl input,.input_bl textarea,.answer-form textarea{width:258px;height:30px;border:1px solid #d2d2d2;background:#fff;outline:none!important;border-radius:4px;padding-left:10px}.area_bl textarea,.answer-form textarea{resize:none!important;height:140px;width:585px;padding-top:7px}.input_bl input:focus,.input_bl textarea:focus,.answer-form textarea:focus{box-shadow:1px 2px 2px 0 rgba(215,215,215,0.75) inset;transition:.1s}.input_bl label{font-size:12px;color:#7d7d7d;font-weight:400;text-transform:uppercase;position:relative;width:105px;float:left;text-align:right;padding-right:10px;margin-top:9px}.input_bl:nth-child(2) label{width:69px}.submit_btn{float:right;margin-top:27px}.submit_btn button,.answer-form button{padding:0 17px;height:32px;font-weight:500;font-size:15px;color:#fff;border-top:0;border-left:0;border-right:0;border-bottom:2px solid #799920;background:#95ba2f;border-radius:4px;cursor:pointer;outline:none!important}.submit_btn button:hover,.answer-form button:hover{border-bottom:2px solid #95ba2f}.submit_btn button:active,.answer-form button:active{border-bottom:2px solid #799920;background:#799920}.answer-form button{float:right;margin-top:27px}.comments-wr,.comment-answer{min-height:64px;position:relative;float:left;width:100%}.answer-form{float:left;width:100%}.user-ico{width:80px;height:80px;float:left;overflow:hidden;border-radius:50%;position:absolute;top:0;left:0}.user-ico img{width:100%;height:100%}.user_data{margin-top:-2px;font-size:12px;color:#636363}.user_name{margin-top:6px;font-weight:700;font-size:15px}.user_name,.user_txt,.comment-panel,.answer-form,.user_data{width:100%;float:left;padding-left:100px}.user_txt{margin-top:8px;font-size:13px;line-height:18px}.comment-panel{width:100%;float:left;margin-top:11px}.comment-panel a:first-child{margin-left:0}.btn-comm-answer,.btn-comm-delete{font-size:13px;color:#799920;border-bottom:1px dotted #799920}.btn-comm-answer,.btn-comm-delete,.btn-comm-like,.btn-comm-dislike{float:left;margin-left:10px;text-decoration:none}.btn-comm-answer,.btn-comm-delete{height:16px;line-height:16px}.btn-comm-answer:hover,.btn-comm-delete:hover{text-decoration:none;border-bottom:0}.btn-comm-like,.btn-comm-dislike{width:14px;height:16px;background-image:url(../images/like_dislike.png);background-repeat:no-repeat}.btn-comm-like{background-position:0 0}.btn-comm-like:hover{background-position:0 -16px}.btn-comm-dislike:hover{background-position:-14px -16px}.btn-comm-dislike{background-position:-14px 0}.btn-comm-like:active,.btn-comm-dislike:active{opacity:.7}.comment-answer{margin-top:40px}.comment-answer .user-ico{left:100px}.comment-answer .user_name,.comment-answer .user_txt,.comment-answer .comment-panel,.comment-answer .answer-form,.comment-answer .user_data{padding-left:200px}.comments-wr{margin-top:40px}.answer-form{margin-top:20px}.answer-form textarea{width:100%;height:90px}.input_bl.has-error input,.input_bl.has-error textarea,.answer-form .has-error textarea{box-shadow:1px 2px 2px 0 rgba(212,0,0,0.2) inset}.required label{color:#d40000}.input_bl .help-block,.answer-form .help-block{display:none}.required label:before{display:block;content:"*";color:#d40000;position:absolute;top:0;right:-7px}.comments-start ul.pagination{list-style:none;text-align:center;margin-top:40px;width:100%;float:left}.comments-start ul.pagination li{display:inline}.comments-start ul.pagination li.prev.disabled span{display:none}.comments-start ul.pagination li a{padding:3px;color:#82a02f;font-size:15px;margin:0;text-decoration:none}.comments-start ul.pagination li.active a{color:#333}
\ No newline at end of file
+@import "https://fonts.googleapis.com/css?family=Roboto:400,700,500&subset=cyrillic-ext,latin,cyrillic,latin-ext";.input_bl,.area_bl,.form-comm-wr,.user_name,.user_txt,.comment-panel,.answer-form,.comments-start input,.comments-start textarea,.submit_btn button,.input_bl label{box-sizing:border-box}.comments-border{width:100%;margin-top:25px;margin-bottom:27px;height:1px;background:#d2d2d2}.comments-start{width:730px;margin:0 auto;font-family:'Roboto',sans-serif;font-weight:400;color:#333}.form-comm-wr{width:100%;background:#f5f5f5;padding:20px;float:left}.input_bl{margin-top:15px;float:left}.area_bl,.input_bl{position:relative}.input_bl input,.input_bl textarea,.answer-form textarea{width:258px;height:30px;border:1px solid #d2d2d2;background:#fff;outline:none!important;border-radius:4px;padding-left:10px}.area_bl textarea,.answer-form textarea{resize:none!important;height:140px;width:585px;padding-top:7px}.input_bl input:focus,.input_bl textarea:focus,.answer-form textarea:focus{box-shadow:1px 2px 2px 0 rgba(215,215,215,0.75) inset;transition:.1s}.input_bl label{font-size:12px;color:#7d7d7d;font-weight:400;text-transform:uppercase;position:relative;width:105px;float:left;text-align:right;padding-right:10px;margin-top:9px}.input_bl:nth-child(2) label{width:69px}.submit_btn{float:right;margin-top:27px}.submit_btn button,.answer-form button{padding:0 17px;height:32px;font-weight:500;font-size:15px;color:#fff;border-top:0;border-left:0;border-right:0;border-bottom:2px solid #799920;background:#95ba2f;border-radius:4px;cursor:pointer;outline:none!important}.submit_btn button:hover,.answer-form button:hover{border-bottom:2px solid #95ba2f}.submit_btn button:active,.answer-form button:active{border-bottom:2px solid #799920;background:#799920}.answer-form button{float:right;margin-top:27px}.comments-wr,.comment-answer{min-height:64px;position:relative;float:left;width:100%}.answer-form{float:left;width:100%}.user-ico{width:80px;height:80px;float:left;overflow:hidden;border-radius:50%;position:absolute;top:0;left:0}.user-ico img{width:100%;height:100%}.user_data{margin-top:-2px;font-size:12px;color:#636363}.user_name{margin-top:6px;font-weight:700;font-size:15px}.user_name,.user_txt,.comment-panel,.answer-form,.user_data{width:100%;float:left;padding-left:100px}.user_txt{margin-top:8px;font-size:13px;line-height:18px}.comment-panel{width:100%;float:left;margin-top:11px}.comment-panel a:first-child{margin-left:0}.btn-comm-answer,.btn-comm-delete{font-size:13px;color:#799920;border-bottom:1px dotted #799920}.btn-comm-answer,.btn-comm-delete,.btn-comm-like,.btn-comm-dislike{float:left;margin-left:10px;text-decoration:none}.btn-comm-answer,.btn-comm-delete{height:16px;line-height:16px}.btn-comm-answer:hover,.btn-comm-delete:hover{text-decoration:none;border-bottom:0}.btn-comm-like,.btn-comm-dislike{width:14px;height:16px;background-image:url(../images/like_dislike.png);background-repeat:no-repeat}.btn-comm-like{background-position:0 0}.btn-comm-like:hover{background-position:0 -16px}.btn-comm-dislike:hover{background-position:-14px -16px}.btn-comm-dislike{background-position:-14px 0}.btn-comm-like:active,.btn-comm-dislike:active{opacity:.7}.comment-answer{margin-top:40px}.comment-answer .user-ico{left:100px}.comment-answer .user_name,.comment-answer .user_txt,.comment-answer .comment-panel,.comment-answer .answer-form,.comment-answer .user_data{padding-left:200px}.comments-wr{margin-top:40px}.answer-form{margin-top:20px}.answer-form textarea{width:100%;height:90px}.input_bl.has-error input,.input_bl.has-error textarea,.answer-form .has-error textarea{box-shadow:1px 2px 2px 0 rgba(212,0,0,0.2) inset}.input_bl .help-block,.answer-form .help-block{display:none}.required label:before{display:block;content:"*";position:absolute;top:0;right:-7px}.comments-start ul.pagination{list-style:none;text-align:center;margin-top:40px;width:100%;float:left}.comments-start ul.pagination li{display:inline}.comments-start ul.pagination li.prev.disabled span{display:none}.comments-start ul.pagination li a{padding:3px;color:#82a02f;font-size:15px;margin:0;text-decoration:none}.comments-start ul.pagination li.active a{color:#333}
\ No newline at end of file
diff --git a/frontend/web/js/js_head.js b/frontend/web/js/js_head.js
old mode 100755
new mode 100644
index 1b354e4..632fe8b
--- a/frontend/web/js/js_head.js
+++ b/frontend/web/js/js_head.js
@@ -1478,132 +1478,7 @@ function IsContain(needle, s) {
var base_url = $("base").attr("href");
tmp = $("link[rel=stylesheet]").attr("href");
if (!empty(tmp)) var domain_url = tmp.substr(0, tmp.indexOf("res/"));
-$(document).ready(function() {
- function searchValid(searchStr, len) {
- regex = /^[a-zA-Z\u0430-\u044f\u0410-\u042f\u0451\u04010-9 ]+$/;
- regexlen = /^[a-zA-Z\u0430-\u044f\u0410-\u042f\u0451\u04010-9 ]{3,}$/;
- if (len) isValid = regexlen.test(searchStr) && (searchStr != ' \u041f\u043e\u0438\u0441\u043a');
- else isValid = regex.test(searchStr) && (searchStr != ' \u041f\u043e\u0438\u0441\u043a');
- if (!isValid) $('#searchMsg').fadeIn().click(function() {
- $('#searchMsg').fadeOut();
- return false;
- });
- else $('#searchMsg').fadeOut();
- return isValid;
- }
- $('form.search').submit(function() {
- return searchValid($('#searchField').val(), true);
- }).after('
');
- position = $('form.search').offset();
- $('#searchField').focus(function() {
- if ($(this).val() == ' \u041f\u043e\u0438\u0441\u043a') $(this).val('')
- }).keyup(function() {
- searchValid($('#searchField').val(), false);
- });
- $(".menu_line a, .menu_line .h2 span.no_link").each(function() {
- var td_el = $("table td", $(this));
- var src_el = $(this);
- $(td_el).click(function() {
- var href = $(src_el).attr("href");
- if (empty(href)) href = $(src_el).attr("lang");
- location.href = href;
- });
- });
- $(".search_panel input").each(function() {
- var val = $(this).val();
- if (val == "") $(this).val($(this).attr("title"));
- $(this).attr("lang", $(this).attr("name"));
- }).bind("focus", function() {
- var val = $(this).val();
- if (!empty(val) && val.toLowerCase() == $(this).attr("title")) $(this).val('');
- }).bind("blur", function() {
- var val = $(this).val();
- if (empty(val) || val == "") $(this).val($(this).attr("title"));
- });
- $(".search_panel_wide button[type='submit']").bind("click", function() {
- var el_feeder = $('.search_panel_wide #model');
- if ($(el_feeder).val() == $(el_feeder).attr('title')) {
- $(el_feeder).focus();
- return false;
- }
- });
- if (typeof(am) != 'undefined' && am)
- $('div.photo').each(function() {
- var title = $(this).attr("lang");
- if (!empty(title)) $(this).attr("title", title);
- });
- if (location.href) var href_curr = location.href;
- if (!empty(href_curr)) {
- if (href_curr.indexOf("#accessories") > 0) {} else $("#acsr").hide();
- }
- $('.acessories a').click(function() {
- $("#acsr").show();
- });
- $('.instant_suggest').each(function() {
- var dt = $(this).attr("lang");
- if (!empty(dt))
- $(this).instant_suggest('hr_gate.php?test=500&r=' + Math.random(), {
- disableHighlight: true,
- dataType: dt,
- sendConnected: true,
- minchars: 1,
- onSelect: function() {
- return false;
- }
- });
- $(this).focus(function() {});
- });
- $('.suggest').each(function() {
- var dt = $(this).attr("lang");
- if (!empty(dt))
- $(this).suggest('hr_gate.php?test=500&r=' + Math.random(), {
- disableHighlight: true,
- dataType: dt,
- minchars: 1,
- onSelect: function() {
- $("#qs_sel").val($(this).attr('lang'));
- return false;
- }
- });
- $(this).focus(function() {
- setTimeout(function() {
- $(".ac_results").hide();
- }, 500);
- });
- });
- $(".search_panel #price_from, .search_panel #price_to").bind("keyup", function() {
- var val = parseFloat($(this).val());
- if (isNaN(val)) val = '';
- $(this).val(val);
- });
- $(".search_panel button[type=reset]").bind("click", function() {
- $(".search_panel input").each(function() {
- $(this).val($(this).attr("title"));
- });
- return false;
- });
- $(".set_homepage").bind("click", function() {
- var url = location.href;
- if (!empty(url)) {
- $.setHomepage(url);
- }
- return false;
- });
- $('.toolbar-style').change(function(event) {
- style = $(this).val();
- if (style == 'list') {
- $('#centrit .prodBox').addClass('list');
- style = 1;
- } else {
- $('#centrit .prodBox').removeClass('list');
- style = 2;
- }
- JsHttpRequest.query('hr_gate.php?test=500&r=' + Math.random(), {
- 'sp': "prod_list_style",
- 'style': style
- }, function(result, errors) {}, true);
- });
-});
+
jQuery.extend({
setHomepage: function(url) {
if (document.all) {
@@ -2702,618 +2577,7 @@ $(document).ready(function() {
});
});;
-function JsHttpRequest() {
- var t = this;
- t.onreadystatechange = null;
- t.readyState = 0;
- t.responseText = null;
- t.responseXML = null;
- t.status = 200;
- t.statusText = "OK";
- t.responseJS = null;
- t.caching = false;
- t.loader = null;
- t.session_name = "PHPSESSID";
- t._ldObj = null;
- t._reqHeaders = [];
- t._openArgs = null;
- t._errors = {
- inv_form_el: "Invalid FORM element detected: name=%, tag=%",
- must_be_single_el: "If used,