Esempio n. 1
0
 function show_array() {
     if($GLOBALS['USER']->isAdmin()) {
         $arArgs = func_get_args();
         foreach($arArgs as $arArg) {
             _show_array($arArg);
         }
     }
 }
Esempio n. 2
0
     }
     if ((empty($arParams["REQUIRED_FIELDS"]) || in_array("EMAIL", $arParams["REQUIRED_FIELDS"])) && strlen($_POST["user_email"]) <= 1) {
         $arResult["ERROR_MESSAGE"][] = GetMessage("MF_REQ_EMAIL");
     }
     if ((empty($arParams["REQUIRED_FIELDS"]) || in_array("MESSAGE", $arParams["REQUIRED_FIELDS"])) && strlen($_POST["MESSAGE"]) <= 3) {
         $arResult["ERROR_MESSAGE"][] = GetMessage("MF_REQ_MESSAGE");
     }
 }
 if (!strlen($_POST["user_phone"])) {
     $arResult["ERROR_MESSAGE"][] = GetMessage("MF_PHONE_NOT_VALID");
 }
 if (empty($arResult["ERROR_MESSAGE"])) {
     _show_array('4');
     $arFields = array("AUTHOR" => $_POST["user_name"], "AUTHOR_PHONE" => $_POST["user_phone"], "AUTHOR_EMAIL" => $_POST["user_email"], "EMAIL_TO" => $arParams["EMAIL_TO"], "TEXT" => $_POST["MESSAGE"]);
     if (!empty($arParams["EVENT_MESSAGE_ID"])) {
         _show_array('5');
         foreach ($arParams["EVENT_MESSAGE_ID"] as $v) {
             if (IntVal($v) > 0) {
                 CEvent::Send($arParams["EVENT_NAME"], SITE_ID, $arFields, "N", IntVal($v));
             }
         }
     } else {
         CEvent::Send($arParams["EVENT_NAME"], SITE_ID, $arFields);
     }
     $_SESSION["MF_NAME"] = htmlspecialcharsbx($_POST["user_name"]);
     $_SESSION["MF_EMAIL"] = htmlspecialcharsbx($_POST["user_email"]);
     $_SESSION["MF_PHONE"] = htmlspecialcharsbx($_POST["user_phone"]);
     LocalRedirect($APPLICATION->GetCurPageParam("success=" . $arResult["PARAMS_HASH"], array("success")));
 }
 $arResult["MESSAGE"] = htmlspecialcharsbx($_POST["MESSAGE"]);
 $arResult["AUTHOR_NAME"] = htmlspecialcharsbx($_POST["user_name"]);
Esempio n. 3
0
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */
$this->setFrameMode(true);
?>
<div class="promo-list">
    <?foreach($arResult["ITEMS"] as $arItem) {
        $this->AddEditAction($arItem['ID'], $arItem['EDIT_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_EDIT"));
        $this->AddDeleteAction($arItem['ID'], $arItem['DELETE_LINK'], CIBlock::GetArrayByID($arItem["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BNL_ELEMENT_DELETE_CONFIRM')));
        _show_array($arItem);?>
    <div class="promo-item">
        <div class="row">
            <div class="col-sm-4">
                <div class="promo-item__image">

                        <img src="<?php 
echo $arItem["PREVIEW_PICTURE"]["SRC"];
?>
" class="img-responsive" alt="">

                </div>
            </div>
            <div class="col-sm-8">
                <div class="promo-item__info">
                    <span class="promo-item__info-link"><?php 
Esempio n. 4
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
_show_array($arResult);
?>
<div class="contacts-feedback">
	<p class="contacts-feedback__title">Обратная связь</p>
	<form class="form col-lg-9 col-md-9 col-sm-9 col-xs-12" action="<?php 
echo POST_FORM_ACTION_URI;
?>
" method="POST">
		<?php 
echo bitrix_sessid_post();
?>
		<div class="row">
			<?php 
if (!empty($arResult["ERROR_MESSAGE"])) {
    ?>
				<div class="form-field col-lg-12 col-md-12 col-sm-12 col-xs-12">
					<?php 
    foreach ($arResult["ERROR_MESSAGE"] as $v) {
        ShowError($v);
    }
    ?>
				</div>
				<?php 
}
if (strlen($arResult["OK_MESSAGE"]) > 0) {
    ?>
Esempio n. 5
0
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Настройки пользователя");

$template = 'main';

if (!empty($_REQUEST['EDIT']) && $_REQUEST['EDIT'] = 'Y') {
    $template = 'edit';
}
_show_array($template);
?><?$APPLICATION->IncludeComponent(
    "kefirok:main.profile",
    $template,
    Array(
        "SET_TITLE" => "Y",
        "COMPONENT_TEMPLATE" => "main",
        "AJAX_MODE" => "N",
        "AJAX_OPTION_JUMP" => "N",
        "AJAX_OPTION_STYLE" => "Y",
        "AJAX_OPTION_HISTORY" => "N",
        "AJAX_OPTION_ADDITIONAL" => "",
        "USER_PROPERTY" => array("EMAIL","NAME","LAST_NAME","PERSONAL_PHONE","PERSONAL_CITY"),
        "SEND_INFO" => "N",
        "CHECK_RIGHTS" => "N",
        "USER_PROPERTY_NAME" => ""
    )
);?><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>