?PNG  IHDR ? f ??C1 sRGB ?? gAMA ? a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
$(document).ready(function() { $.validator.addMethod("phonecheck", function(value, element) { return /^([\+]+)*[0-9\x20\x28\x29\-]{9,20}$/.test(value); }, 'Введен неправильный номер' ); $.validator.addMethod("fiocheck", function(value, element) { return /^[а-яА-ЯёЁa-zA-Z ]{3,20}$/.test(value); }, 'Имя введено некорректно' ); $.validator.addMethod("emailcheck", function(value, element) { //if(value=='') return true; return /^[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,4}$/.test(value); }, 'Введите email' ); $("form").each(function() { $(this).validate({ errorPlacement: function (error, element) { element.attr('title', error.text()); }, success: function (label, element) { $(element).removeAttr('title'); }, rules: { phone:{ required: true, phonecheck: true, }, name:{ required: true, fiocheck: true, }, email:{ required: true, emailcheck: true, }, }, messages: { name:{ required: 'Введите ваше имя', fiocheck: 'Имя введено некорректно' }, phone:{ required: 'Введите ваш телефон', phonecheck: 'Введен неправильный номер' }, }, submitHandler : function (form) { var name = $(form).find('input[name="name"]'); var phone = $(form).find('input[name="phone"]'); var email = $(form).find('input[name="email"]'); var comment = $(form).find('input[name="comment"]'); var currentUrl = location.href.substring(0, location.href.lastIndexOf("/")) + "/send.php"; //$('.book-link').click(); jQuery.ajax({ url: currentUrl, data: {name: name.val(), phone: phone.val(), email: email.val(), comment: comment.val() }, dataType: 'json', success: function(data){ $('.modal').modal('hide'); $('#succesForm').modal('show'); if($(form).hasClass('down-book')){ window.location.href = "download.php"; } }, error: function(){ $('.modal').modal('hide'); $('#succesForm').modal('show'); }, }); return false; } }); }); });