<?
header("Cache-control: public");
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 60*60) . " GMT");
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
$sub = substr(str_replace("obed-office.ru","",$_SERVER['SERVER_NAME']),0,-1);
?>
<!DOCTYPE html>
<html class="no-js" lang="en">
<head>
<title><?$APPLICATION->ShowTitle()?></title>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link href="<?=SITE_TEMPLATE_PATH?>/css/swiper.min.css?d<?=rand(1,100000)?>=<?=rand(1,100000)?>"" rel="stylesheet" />
<link href="<?=SITE_TEMPLATE_PATH?>/css/styles.css?d<?=rand(1,100000)?>=<?=rand(1,100000)?>"" rel="stylesheet" />
<link href="<?=SITE_TEMPLATE_PATH?>/css/site.css?d<?=rand(1,100000)?>=<?=rand(1,100000)?>" rel="stylesheet" />
<script src="<?=SITE_TEMPLATE_PATH?>/js/jquery.min.js" ></script>
<?$APPLICATION->ShowHead();?>
</head>
<body>
<?$APPLICATION->ShowPanel();?>
<header class="position-fixed">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-light ">
<div class="navbar-dop">
<button class="navbar-toggler" data-target="#navbarSupportedContent" data-toggle="collapse1" type="button">
<span class="navbar-toggler-icon">
</span>
<span class="navbar-toggler-icon">
</span>
</button>
<a class="white" href="/">
<img alt="Обеды в офис" src="https://obed-office.ru/img/logo2.png">
</a>
<a class="phone" href="tel:+74951203044">
<span>8 (495)</span> 120-30-44
</a>
<span class="icons">
<a class="user-ico" href="" data-toggle="modal" data-target="#authorization">
<svg aria-hidden="true" data-icon="user" data-prefix="fas" focusable="false" role="img" viewbox="0 0 448 512" xmlns="http://www.w3.org/2000/svg">
<path class="" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z" fill="">
</path>
</svg>
</a>
<?
if ($APPLICATION->GetCurPage() != '/personal/order/make/')
{
?>
<a class="d-flex align-items-center small-basket " data-toggle="modal" data-target="#basket" href="/">
<span class="small-basket-info">
</span>
<span class="basket-ico">
<svg aria-hidden="true" class="" data-icon="shopping-basket" data-prefix="fal" focusable="false" id="shopping-basket" role="img" viewbox="0 0 576 512" xmlns="http://www.w3.org/2000/svg">
<path class="" d="M564 192h-76.875L347.893 37.297c-5.91-6.568-16.027-7.101-22.596-1.189s-7.101 16.028-1.189 22.596L444.075 192h-312.15L251.893 58.703c5.912-6.567 5.379-16.685-1.189-22.596-6.569-5.912-16.686-5.38-22.596 1.189L88.875 192H12c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h16.444L58.25 438.603C61.546 462.334 81.836 480 105.794 480h364.412c23.958 0 44.248-17.666 47.544-41.397L547.556 224H564c6.627 0 12-5.373 12-12v-8c0-6.627-5.373-12-12-12zm-77.946 242.201c-1.093 7.867-7.906 13.799-15.848 13.799H105.794c-7.942 0-14.755-5.932-15.848-13.799L60.752 224h454.497l-29.195 210.201zM304 280v112c0 8.837-7.163 16-16 16-8.836 0-16-7.163-16-16V280c0-8.837 7.164-16 16-16 8.837 0 16 7.163 16 16zm112 0v112c0 8.837-7.163 16-16 16s-16-7.163-16-16V280c0-8.837 7.163-16 16-16s16 7.163 16 16zm-224 0v112c0 8.837-7.164 16-16 16s-16-7.163-16-16V280c0-8.837 7.164-16 16-16s16 7.163 16 16z" fill="">
</path>
</svg>
</span>
<!--span class="basket-count">
20
</span-->
</a>
<?
}
?>
</span>
</div>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle = "dropdown" href="#">
Текущая неделя
</a>
<div class="dropdown-menu">
<?
$week_days = ['Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота', 'Воскресение'];
$can_buy = strtotime("+1 day", mktime(0, 0, 0, date('n'), date('j')));
if (date('G') > 17)
{
$can_buy = strtotime("+30 day", mktime(0, 0, 0, date('n'), date('j')));
}
$i = 0;
for (
$start = strtotime('monday this week'),
$end = $start + 86400 * 6;
$start <= $end;
$start += 86400
)
{
$class = 'date-0';
$link = '';
if ($can_buy <= $start)
{
$class = 'date-1';
$link = "/catalog/tekushchaya-nedelya/?day=".date("d.m.Y", $start);
}
if ($i == 5 || $i == 6)
{
$class = 'date-2';
if ($can_buy < $start)
{
$link = "/catalog/tekushchaya-nedelya/?day=".date("d.m.Y", $start);
}
}
?>
<a class="dropdown-item <?=$class?>" href="<?=$link?>">
<?=date('d.m', $start)?> <?=$week_days[$i]?>
</a>
<?
$i++;
}
?>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">
Следующая неделя
</a>
<div class="dropdown-menu">
<?
$i = 0;
for (
$start = strtotime('monday next week'),
$end = strtotime('sunday next week');
$start <= $end;
$start += 86400
)
{
$class = 'date-1';
if ($i == 5 || $i == 6)
{
$class = 'date-2';
}
$link = "/catalog/sleduyushchaya-nedelya/?day=".date("d.m.Y", $start);
?>
<a class="dropdown-item <?=$class?>" href="<?=$link?>">
<?=date('d.m', $start)?> <?=$week_days[$i]?>
</a>
<?
$i++;
}
?>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="/catalog/kompleks-menu-tekushchaya/">Комплексные обеды</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/kontakts/">Контакты</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/dostavka-i-oplata/">Доставка и оплата</a>
</li>
</ul>
</div>
<div class="mobile-menu-hide"></div>
</nav>
</div>
</header>
<div class="nav-false">
</div>
<div class="container">
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
</div>
<footer>
<div class="container">
<div class="">
<div class="block-5">
<div class="block-2">
<div class="block-2-1 mb-1">
Стань клиентом в один клик
</div>
<div class="zvonokbot"></div>
<form method="POST" action="/form/" data-action="infoblock" onsubmit="" data-target="send-call">
<input name="NAME" id="nameformzvonok" type="hidden" value="<?=time()?>">
<input name="EVENT" value="STAT_CLIENTOM_ONE_CLICK" type="hidden">
<input name="POPUP" value="N" type="hidden">
<input name="IBLOCK_ID" value="52" type="hidden">
<input name="MSG" value="Поздравляем! <br>Вы стали нашим клиентом и сможете пользоваться всеми привилегиями и скидками для клиентов" type="hidden">
<div class="form-group">
<label for="PROPERTY_VALUES_1207">Имя<sup>*</sup></label>
<input type="text" id='PROPERTY_VALUES_1207' class="form-control" name="PROPERTY_VALUES_1207">
</div>
<div class="form-group">
<label for="PROPERTY_VALUES_1208">Телефон<sup>*</sup></label>
<input type="tel" id='PROPERTY_VALUES_1208' class="phone form-control" name="PROPERTY_VALUES_1208">
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" name="PROPERTY_VALUES_1209" value="122930" id="PROPERTY_VALUES_1209">
<label class="form-check-label" for="PROPERTY_VALUES_1209">
<span>Отправляя форму вы принимаете
<a href="/politika/">условия передачи информации</a><sup>*</sup>
</span>
</label>
</div>
<button type="submit" class="btn btn-primary">Отправить</button>
</form>
</div>
</div>
<div class="block-06">
<div class="block-6">
<div class="d-flex justify-content-around align-items-center">
<div>
<img alt="" src="https://obed-office.ru/img/logo2.png">
</div>
<div class='block-6-1'>
<p>
<a href="tel:+74951203044">
+7 (495) 120-30-44
</a>
<br>
<a href="tel:+79651059669">
+7 (965) 105-96-69
</a>
<br>
<a href="mailto:info@obed-office.ru">
info@obed-office.ru
</a>
</p>
</div>
</div>
<p>
Мы работаем в сфере организации доставки обедов и кейтеринга с 1999 года и отладили образцовый сервис доставки горячих блюд в офис, а также вкусного и сытного питания экскурсионных групп и выездного обслуживания банкетов.
</p>
<div class="copy text-muted">
<small>
© 1999 — <?=date("Y")?> «Ланч-Тайм», Москва
</small>
</div>
</div>
</div>
</div>
</footer>
</div>
</div>
</body>
</html>
<div id="button-up"></div>
<div class="mobile-menu-fade"></div>
<div class="block-filter-fade"></div>
<div class="modal" id="basket" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title ">
Дата заказа <?=date("d.m.Y")?>
</h5>
<div class="clearfix"></div>
<button aria-label="Close" class="close" data-dismiss="modal" type="button">
<span aria-hidden="true">
×
</span>
</button>
</div>
<div class="modal-body">
<div class="block-7 v1">
<div class="block-7-1 d-flex justify-content-between mb-3" id = "swiper-4">
<div class="swiper-container">
<div class="swiper-wrapper">
<?
$week_days = ['Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб', 'Вс'];
$can_buy = strtotime("+1 day", mktime(0, 0, 0, date('n'), date('j')));
if (date('G') > 17)
{
$can_buy = strtotime("+2 day", mktime(0, 0, 0, date('n'), date('j')));
}
$i = 0;
for (
$start = strtotime('monday this week'),
$end = $start + 86400 * 13;
$start <= $end;
$start += 86400
)
{
$class = 'date-0';
$link = '';
$active = '';
if ($can_buy == $start)
{
$active = 'active';
}
if ($_REQUEST['day'])
{
$active = '';
if (strtotime($_REQUEST['day']) == $start)
{
$active = 'active';
}
}
$date = date("d.m.Y", $start);
if ($can_buy <= $start)
{
$class = 'date-1';
$link = "/catalog/tekushchaya-nedelya/?day=".$date;
}
if ($i == 5 || $i == 6)
{
$class = 'date-2';
if ($can_buy < $start)
{
$link = "/catalog/tekushchaya-nedelya/?day=".$date;
}
}
if (!$week_days[$i])
{
$i = 0;
}
$date2 = substr($date,0,5);
?>
<div class="swiper-slide">
<a class="block-7-1-1 action-catalog <?=$active?> <?=$class?>" <?=$class != 'date-0' ? " href='".$link."' data-date = '".json_encode(array('1' => $date, '2' => $date2))."'" : "" ?>>
<?=$week_days[$i]?>
<br>
<?=$date2?>
</a>
</div>
<?
$i++;
}
?>
</div>
</div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</div>
<div class="block-10">
<div id="small-basket-content">
</div>
</div>
<hr>
<div class="block-7-4 mb-3">
Ваш заказ не оформлен
Предупреждение!
Ваш дневной лимит заказа
100 руб.
</div>
<a href='/personal/order/make/' class='btn btn-primary'>
В корзину
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="" data-toggle="modal" data-target="#kompleks-izm"></a>
<div class="modal" id="kompleks-izm" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<!-- <h5 class="modal-title"> -->
<!-- Вы авторизованы -->
<!-- </h5> -->
<button aria-label="Close" class="close" data-dismiss="modal" type="button">
<span aria-hidden="true">
×
</span>
</button>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
<?
if ($USER->IsAuthorized())
{
?>
<div class="modal" id="authorization" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
Вы авторизованы
</h5>
<button aria-label="Close" class="close" data-dismiss="modal" type="button">
<span aria-hidden="true">
×
</span>
</button>
</div>
<div class="modal-body">
<?
$rsUser = CUser::GetByID($USER->GetID());
$allAboutCurrentUser = $rsUser->Fetch();
echo $allAboutCurrentUser['NAME'].' '.$allAboutCurrentUser['LAST_NAME']."<br>";
echo "Компания: ".$allAboutCurrentUser['WORK_COMPANY']."<br>";
echo "<a href='?logout=yes'>Выход</a>";
//pre($allAboutCurrentUser);
?>
</div>
</div>
</div>
</div>
<?
}
else{
?>
<div class="modal" id="authorization" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
Вход
</h5>
<button aria-label="Close" class="close" data-dismiss="modal" type="button">
<span aria-hidden="true">
×
</span>
</button>
</div>
<div class="modal-body">
<div class="zvonokbot"></div>
<form class="" data-action='auth' method="POST" action="/form/">
<div class="form-group">
<label for="exampleInputEmail1">
Логин(e-mail)
</label>
<input name='login' aria-describedby="emailHelp" class="form-control" id="exampleInputEmail1" type="">
</input>
</div>
<div class="form-group">
<label for="exampleInputPassword1">
Пароль
</label>
<input name='pass' class="form-control" id="exampleInputPassword1" type="password">
</input>
</div>
<button class="btn btn-primary" type="submit">
Войти
</button>
</form>
<hr>
<a href="" data-toggle="modal" data-target="#registration">
Зарегистрироваться
</a>
<!--br>
<a href="" data-toggle="modal" data-target="#forgot_password">
Забыли пароль
</a-->
</div>
</div>
</div>
</div>
<?
}
?>
<div class="modal" id="registration" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
Регистрация
</h5>
<button aria-label="Close" class="close" data-dismiss="modal" type="button">
<span aria-hidden="true">
×
</span>
</button>
</div>
<div class="modal-body">
<div class="zvonokbot"></div>
<form action="">
<div class="alert alert-danger" id='error-reg' style='display:none'>
<div class="error" id="err2" style="display: none;">Заполните все поля c символом *</div>
<div class="error" id="err3" style="display: none;">Пароль должен быть не менее 6 знаков</div>
<div class="error" id="err4" style="display: none;">Пароли не совпадают</div>
<div class="error" id="err5" style="display: none;"></div>
</div>
<div class="otvet_script_reg alert alert-success" style="display: none;"></div>
<div class="registration-form">
<div class="form-group"></div>
<div class="form-group">
<input class="form-control inp-error" id="company" name="company" type="text" placeholder="Название компании*">
</div>
<div class="form-group">
<input class="form-control inp-error" id="name" type="text" placeholder="Имя*">
</div>
<div class="form-group">
<div class="registration-phone">
<input id="code" class="form-control code cod_phonemask inp-error" type="text" placeholder="+7(___)">
<input id="phone" class="form-control tel sostav_phonemask inp-error" type="text" placeholder="___-__-__">
</div>
</div>
<div class="form-group">
<input class="form-control inp-error" id="email" type="text" placeholder="Email*">
</div>
<div class="form-group">
<input class="form-control inp-error" id="pass" type="text" placeholder="Введите свой пароль*">
</div>
<div class="form-group">
<input class="form-control inp-error" id="confirm_pass" type="text" placeholder="Повторите пароль*">
</div>
<div class="form-group">
<input class="form-control inp-error" id="adress" type="text" placeholder="Адрес доставки*">
</div>
<div class="form-group">
<input class="form-control" id="orderstr" type="hidden" value="">
</div>
<div class="form-group">
</div>
<div class="form-group form-check">
<input class="form-check-input" type="checkbox" name="registration-politika" value="1" id="registration-politika">
<label class="form-check-label" for="registration-politika">
<span>Отправляя форму вы принимаете
<a href="/politika/">условия передачи информации</a>
</span>
</label>
</div>
<div class="form-group">
<input type="submit" class="btn btn-primary" value="Зарегистрироваться" id="reg_submit">
</div>
<p>*Поля обязательные для заполнения</p>
</div>
</form>
<hr>
<a href="" data-toggle="modal" data-target="#authorization">
Войти
</a>
<!--br>
<a href="" data-toggle="modal" data-target="#forgot_password">
Забыли пароль
</a-->
</div>
</div>
</div>
</div>
<script src="<?=SITE_TEMPLATE_PATH?>/js/popper.min.js"></script>
<script src="<?=SITE_TEMPLATE_PATH?>/js/bootstrap.min.js"></script>
<script src="<?=SITE_TEMPLATE_PATH?>/js/swiper.min.js"></script>
<script src="<?=SITE_TEMPLATE_PATH?>/js/jquery.lazy.min.js"></script>
<script src="<?=SITE_TEMPLATE_PATH?>/js/timer.js"></script>
<script src="<?=SITE_TEMPLATE_PATH?>/js/init.js?d<?=rand(1,100000)?>=<?=rand(1,100000)?>"></script>
<script src="<?=SITE_TEMPLATE_PATH?>/js/init-site.js?dd<?=rand(1,100000)?>=<?=rand(1,100000)?>"></script>
<div class="loading-vspl">
<div>
<img src="<?=SITE_TEMPLATE_PATH?>/img/47.gif" alt="">
</div>
</div>
</body>
</html>
public static function urlAddParams($url, $add_params, $options = array())
{
if(count($add_params))
{
$params = array();
foreach($add_params as $name => $value)
{
if($options["skip_empty"] && !strlen($value))
continue;
if($options["encode"])
$params[] = urlencode($name).'='.urlencode($value);
else
$params[] = $name.'='.$value;
}
if(count($params))
{
$p1 = strpos($url, "?");
if($p1 === false)
$ch = "?";
else
$ch = "&";
$p2 = strpos($url, "#");
if($p2===false)
{
$url = $url.$ch.implode("&", $params);
}
else
{
$url = substr($url, 0, $p2).$ch.implode("&", $params).substr($url, $p2);
}
}
}
return $url;
}
Что нужно на данный момент? Интегрировать верстку, так?
Можете мне по пунктам сказать что потенциально может помочь?
И если у Вас есть возможность, и это не слишком будет нагло с моей стороны, было бы здорово по скайпу позвонить, если, опять же, Вас это не затруднит
public static function urlAddParams($url, $add_params, $options = array())
{
if(count($add_params))
{
$params = array();
foreach($add_params as $name => $value)
{
if($options["skip_empty"] && !strlen($value))
continue;
if($options["encode"])
$params[] = urlencode($name).'='.urlencode($value);
else
$params[] = $name.'='.$value;
}
if(count($params))
{
$p1 = strpos($url, "?");
if($p1 === false)
$ch = "?";
else
$ch = "&";
$p2 = strpos($url, "#");
if($p2===false)
{
$url = $url.$ch.implode("&", $params);
}
else
{
$url = substr($url, 0, $p2).$ch.implode("&", $params).substr($url, $p2);
}
}
}
return $url;
}