$(document).on(" click touchstart ",".mk-quick-contact-link",function(){
var $mkquickcontact = $('#mk-quick-contact');
if ($mkquickcontact.hasClass("obtainartist")){
$mkquickcontact.removeClass("obtainartist");
}else{
$mkquickcontact.addClass("obtainartist");
}
return false;
});
$(document).on(" click touchstart ",".bakehow",function(){
var $boocrumble = $('.boocrumble');
if ($boocrumble.hasClass("active")){
$boocrumble.removeClass("active");
}else{
$boocrumble.addClass("active");
}
});
$(document).on(" click touchstart ",".aidsusd .buttondefblur",function(){
var $snailcoot = $('.snailcoot');
if ($snailcoot.hasClass("active")){
$snailcoot.removeClass("active");
}else{
$snailcoot.addClass("active");
}
});
$(document).on(" click touchstart ",".aidsusd .buttondefblur",function(){
var $snailcoot = $('.snailcootf');
if ($snailcoot.hasClass("active")){
$snailcoot.removeClass("active");
}else{
$snailcoot.addClass("active");
}
});
$(document).on(" click touchstart ",".click touchstart tar",function(){
var
$this=$(this),
$boocrumble = $($this.data("target")),
classname=$this.data("classname"),
statusxg=$this.data("status");
console.log($this.find("i"));
if(statusxg=="remove" || $boocrumble.hasClass(classname)){
$boocrumble.removeClass(classname);
$this.find("i").attr("class","fa fa-bars");
}else{
$this.find("i").attr("class","fa fa-close");
$boocrumble.addClass(classname);
}
});
$(document).on(" click touchstart ",".klicnap",function(){
$(".bakehow"). click_touchstart();
});
$(document).on(" click touchstart ",".videblossomvideblossom",function(){
var $boocrumble = $('.boocrumble');
$boocrumble.removeClass("active");
});
$(document).on(" click touchstart ",".inmessage",function(){
var city = $("#city").val(),
ksk = $("#ksk").val(),
house = $("#house").val(),
idnumber = $("#idnumber").val(),
fmessage = $("#fmessage").val()
;
$.post( "/components/SMPT/Send_Mail.php", { city: city, ksk: ksk, house: house, idnumber: idnumber, fmessage: fmessage}).done(function(){
$(".inSuccess").html("Ваше сообщение было отправлено!");
});
});
$(document).on(" click touchstart ",".ottoplane",function(){
var sname = $(".sname").val(),
stelephone = $(".stelephone").val(),
saddress = $(".saddress").val(),
stype = $(".skeltonfatigue option:selected" ).text()
;
$.post( "/components/SMPT/Send_Mail.php", { sname: sname, stelephone: stelephone, saddress: saddress, stype: stype}).done(function(){
$(".ssuccess").html("Ваше сообщение было отправлено!");
});
});
$lang="ru";
$title="Анкета";
$keywords="";
$description="";
//require($_SERVER["DOCUMENT_ROOT"]."/incom/template/header.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<title>Racion.kz - доставка здорового питания в Алматы</title>
<meta name="viewport" content="width=480, maximum-scale=1">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/wp-content/themes/racion/css/normalize.min.css">
<link rel="stylesheet" href="/wp-content/themes/racion/css/owl.carousel.css">
<link rel="stylesheet" href="/wp-content/themes/racion/css/jquery.fancybox.css">
<link rel="stylesheet" href="/wp-content/themes/racion/css/main.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js"></script>
</head>
<body>
<div id="wrap">
<div class="content">
<form>
<ol class="question_list" style="padding-left: 0;">
<p>
<label>1. Как Вас зовут?</label><br>
<input type="text" value="" class="" id="list_name" placeholder="Ф.И.О. *">
</p>
<p>
<label>2. Дата рождения?</label><br>
<input type="date" value="" class="" id="list_date" placeholder="дд.мм.гггг *">
</p>
<p>
<label>3. Ваш номер телефона?</label><br>
<input type="text" value="" class="" id="list_number" placeholder="Ваш номер телефона *">
</p>
<p>
<label>4. Ваш email?</label><br>
<input type="text" value="" class="" id="list_email" placeholder="Ваш email">
</p>
<p>
<label>5. Ваш вес?</label><br>
<input type="text" value="" class="" id="list_weight" placeholder="кг">
</p>
<p>
<label>6. Ваш рост?</label><br>
<input type="text" value="" class="" id="list_height" placeholder="см">
</p>
<p>
<label>7. Какого результата хотели бы достичь?</label><br>
<input type="text" value="" class="" id="list_weight_want" placeholder="кг">
</p>
<p>
<label>8. Адрес доставки в будние дни?</label><br>
<input type="text" value="" class="" id="list_adress_weekdays" placeholder="Подробно: район/улица/дом/квартира/этаж *">
</p>
<p>
<label>9. Время доставки в будние дни?</label><br>
<ul class="ss-choices">
<li class="ss-choice-item">
<label>
<span class="">
<input type="radio" name="time1" value="6:00 - 7:00" id="" class="">
</span>
<span class="">6:00 - 7:00</span>
</label>
</li>
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time1" value="7:00 - 8:00" id="" class="">
</span> <span class="">7:00 - 8:00</span> </label>
</li>
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time1" value="8:00 - 9:00" id="" class="">
</span> <span class="">8:00 - 9:00</span> </label>
</li>
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time1" value="9:00 - 10:00" id="" class="">
</span> <span class="">9:00 - 10:00</span> </label>
</li>
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time1" value="10:00 - 11:00" id="" class="">
</span> <span class="">10:00 - 11:00</span> </label>
</li>
</ul>
</p>
<p>
<label>10. Адрес доставки в выходные дни?</label><br>
<input type="text" value="" class="" id="list_adress_weekend" placeholder="Подробно: район/улица/дом/квартира/этаж *">
</p>
<p>
<label>11. Время доставки в выходные дни?</label><br>
<ul class="ss-choices">
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time2" value="6:00 - 7:00" id="" class="" aria-label="6:00 - 7:00">
</span> <span class="">6:00 - 7:00</span> </label>
</li>
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time2" value="7:00 - 8:00" id="" class="" aria-label="7:00 - 8:00">
</span> <span class="">7:00 - 8:00</span> </label>
</li>
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time2" value="8:00 - 9:00" id="" class="" aria-label="8:00 - 9:00">
</span> <span class="">8:00 - 9:00</span> </label>
</li>
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time2" value="9:00 - 10:00" id="" class="" aria-label="9:00 - 10:00">
</span> <span class="">9:00 - 10:00</span> </label>
</li>
<li class="ss-choice-item">
<label><span class="">
<input type="radio" name="time2" value="10:00 - 11:00" id="" class="" aria-label="10:00 - 11:00">
</span> <span class="">10:00 - 11:00</span> </label>
</li>
</ul>
</p>
<p>
<label>12. Перечислите продукты-аллергены</label><br>
<textarea name="" rows="8" cols="0" class="" id="list_allergy" placeholder=""></textarea>
</p>
<p>
<label>13. Что бы Вы хотели исключить из рациона?</label><br>
<textarea name="" rows="8" cols="0" class="" id="list_iskliuchit" placeholder=""></textarea>
</p>
<p>
<label>14 Характер работы?</label><br>
<ul class="ss-choices">
<li class="ss-choice-item">
<label>
<span class=""><input type="radio" name="work_character" value="Сидячий" id="" class=""></span>
<span class="">Сидячий</span>
</label>
</li>
<li class="ss-choice-item">
<label>
<span class=""><input type="radio" name="work_character" value="Подвижный" id="" class=""></span>
<span class="">Подвижный</span> </label>
</li>
</ul>
</p>
<p>
<label>15. Занимаетесь ли Вы спортом? Как часто?</label><br>
<input type="text" name="" value="" class="" id="list_sport" placeholder="Занимаетесь ли Вы спортом? Как часто? ">
</p>
<p>
<label>16. Как часто желаете получать звонок обратной связи?</label><br>
<ul class="ss-choices">
<li class="ss-choice-item">
<label>
<span class="">
<input type="radio" name="call_back" value="1 раз в неделю" id="" class="" >
</span>
<span class="">1 раз в неделю</span>
</label>
</li>
<li class="ss-choice-item">
<label>
<span class="">
<input type="radio" name="call_back" value="3 раза в неделю" id="" class="">
</span>
<span class="">3 раза в неделю</span>
</label>
</li>
<li class="ss-choice-item">
<label>
<span class="">
<input type="radio" name="call_back" value="Ежедневно" id="" class="">
</span>
<span class="">Ежедневно</span>
</label>
</li>
</ul>
</p>
<p>
<label>17. Как Вы узнали о нашем проекте?</label><br>
<ul class="ss-choices" role="radiogroup">
<li class="ss-choice-item">
<label>
<span class="">
<input type="radio" name="anounce" value="Друзья/Родственники" id="" class="" >
</span>
<span class="">Друзья/Родственники</span>
</label>
</li>
<li class="ss-choice-item">
<label>
<span class="">
<input type="radio" name="anounce" value="Социальные сети" id="" class="" >
</span>
<span class="">Социальные сети</span>
</label>
</li>
<li class="ss-choice-item">
<label>
<span class="">
<input type="radio" name="anounce" value="СМИ" id="" class="" >
</span>
<span class="">СМИ</span>
</label>
</li>
<li class="ss-choice-item">
<label>
<span class="">
<input type="radio" name="anounce" value="Другое" id="" class="" required aria-required="true">
</span>
<span class="">Другое:</span>
</label>
<span class="ss-q-other-container goog-inline-block">
<input type="text" name="anounce" value="" class="" id="">
</span>
</li>
</ul>
</p>
<br/>
<div id="form_protocol"></div>
<br/>
<a id="do_survey_form" style="display: block;" class="button btn btn-large">Отправить</a>
</ol>
</form>
</div>
<script type="text/javascript">
function EmailCheck(value)
{
var re = /^\w+([\.-]?\w+)*@(((([a-z0-9]{2,})|([a-z0-9][-][a-z0-9]+))[\.][a-z0-9])|([a-z0-9]+[-]?))+[a-z0-9]+\.([a-z]{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/i;
if(re.test(value))
{
return true;
} else {
return false;
}
}
jQuery(document).ready(function()
{
jQuery("#do_survey_form").click(function()
{
var error_msg = "";
var focused = 0;
jQuery("#feedback_msg").html("").hide();
if (jQuery("#list_name").val() == '')
{
error_msg = error_msg+"<span style=\"color:red;\">Введите имя</span><br />";
jQuery("#list_name").css("border", "1px solid red");
if (focused == 0) {
focused = 1;
jQuery("#list_name").focus();
}
}
else
{
jQuery("#list_name").css("border", "1px solid green");
}
if ((jQuery("#list_email").val() == '') || (EmailCheck(jQuery("#list_email").val()) == false))
{
error_msg = error_msg+ "<span style=\"color:red\">Не верно указан E-Mail</span><br />";
jQuery("#list_email").css("border", "1px solid red");
if (focused == 0) { focused = 1; jQuery("#list_email").focus(); }
}
else
{
jQuery("#list_email").css("border", "1px solid green");
}
if (jQuery("#list_number").val() == ''){
error_msg = error_msg+"<span style=\"color:red;\">Введите телефон</span><br />";
jQuery("#list_number").css("border", "1px solid red");
if (focused == 0) {
focused = 1; jQuery("#list_number").focus();
}
}
else
{
jQuery("#list_number").css("border", "1px solid green");
}
var time1 = jQuery("form input[name=time1]").val();
var time2 = jQuery("form input[name=time2]").val();
var work_character = jQuery("form input[name=work_character]").val();
var call_back = jQuery("form input[name=call_back]").val();
var anounce = jQuery("form input[name=anounce]").val();
//alert (time1);
// Ошибок нет
if (error_msg == "")
{
jQuery.ajax(
{
url: "<?=$_SERVER["PHP_SELF"]?>",
data: "do=send&list_name="+jQuery("#list_name").val()+"&list_date="+jQuery("#list_date").val()+"&list_number="+jQuery("#list_number").val()+"&list_email="+jQuery("#list_email").val()+"&list_weight="+jQuery("#list_weight").val()+"&list_height="+jQuery("#list_height").val()+"&list_weight_want="+jQuery("#list_weight_want").val()+"&list_adress_weekdays="+jQuery("#list_adress_weekdays").val()+"&list_adress_weekend="+jQuery("#list_adress_weekend").val()+"&list_allergy="+jQuery("#list_allergy").val()+"&list_iskliuchit="+jQuery("#list_iskliuchit").val()+"&list_sport="+jQuery("#list_sport").val()+"&time1="+time1+"&time2="+time2+"&work_character="+work_character+"&call_back="+call_back+"&anounce="+anounce+"&x=secure",
type: "POST",
dataType : "html",
cache: false,
success: function(data) { jQuery("#form_protocol").html(data); },
error: function() { jQuery("#form_protocol").html("<p style=\"color:red;\">Невозможно связаться с сервером!</p>"); }
});
} else {
jQuery("#form_protocol").html(error_msg).slideDown(700);
}
});
});
</script>
<style type="text/css">
.question_list p label{
color: #58c56f;
font-weight: bold;
margin-top: 20px;
}
.question_list p input, .question_list p textarea{
padding: 3px 5px;
border: 1px solid darkgrey;
border-radius: 5px;
width: 100%;
max-width: 300px;
}
.content {
max-width: 900px;
margin: 40px auto;
}
.content form{
max-width: 300px;
margin: 0 auto;
}
</style>
</div>
</body>
</html>