This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (isset($_POST['phone']) && !empty($_POST['phone'])) { | |
$phone = strip_tags($_POST['phone']); | |
$phoneFieldset = "Phone: "; | |
} | |
if (isset($_POST['message']) && !empty($_POST['message'])) { | |
$message = strip_tags($_POST['message']); | |
$messageFieldset = "Message: "; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); | |
$APPLICATION->SetTitle("Карта сайта"); | |
require($_SERVER["DOCUMENT_ROOT"] . "/local/include/page_header.php"); | |
?> | |
<h1 class="pile-content-title">Карта сайта</h1> | |
<ul> | |
<?php | |
$host = $_SERVER['HTTP_X_FORWARDED_PROTO'] . '://' . $_SERVER['HTTP_HOST'] . '/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).mouseup(function (e){ // событие клика по веб-документу | |
var div = $(".item-treatment_program_modal .bigform"); // тут указываем ID элемента | |
var parentdiv = $(".item-treatment_program_modal"); // тут указываем ID элемента | |
if (!div.is(e.target) // если клик был не по нашему блоку | |
&& div.has(e.target).length === 0) { // и не по его дочерним элементам | |
parentdiv.hide(); // скрываем его | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$title = $APPLICATION->GetPageProperty("title"); | |
$description = $APPLICATION->GetPageProperty("description"); | |
if (preg_match("#PAGEN_\d=(\d*)#", $_SERVER['REQUEST_URI'], $matches)) { | |
$APPLICATION->SetPageProperty("title", $title . ' - Страница ' . $matches[1] . '.'); | |
$APPLICATION->SetPageProperty("description", $description . ' Страница - ' . $matches[1] . '.'); | |
} | |
?> |