Задать вопрос
  • Как убрать меню битрикса?

    @vikti Автор вопроса
    Получился такой вариант, есть варик всю панель убрать и только для этой страницы?

    5a059d309d97d430703078.png

    Еще раз код:
    require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php");
    global $USER;
    // print_r ($USER->getId() );
    if ($USER-> getId() != 960) {
    $APPLICATION->ShowPanel();
    }

    $connectSite = ImFP::getInstanceFP();
    try {
    $stmt = $connectSite->prepare("SELECT ID, NAME, CODE FROM b_iblock_property WHERE IBLOCK_ID = 7 ORDER BY SORT ASC");
    $stmt->execute();
    $stmt->setFetchMode(PDO::FETCH_ASSOC);
    while ($prop = $stmt->fetch()):
    if ($prop["CODE"] == "CML2_LINK"):
    $prop["NAME"] = "Изделие";
    $prop["LIST"] = array(
    "320" => array("VALUE" => "Листовка", "XML_ID" => "leaflet"),
    "3324" => array("VALUE" => "Визитка", "XML_ID" => "visiting_card"),
    "346064" => array("VALUE" => "Евробуклет", "XML_ID" => "eurobooklet"),
    "323" => array("VALUE" => "Буклет с 1 сгибом", "XML_ID" => "booklet_1"),
    "321" => array("VALUE" => "Буклет с 2 сгибами", "XML_ID" => "eurobooklet"),
    "327" => array("VALUE" => "Плакат", "XML_ID" => "poster"),
    "328" => array("VALUE" => "Флаер", "XML_ID" => "flyer"),
    "326" => array("VALUE" => "Открытка", "XML_ID" => "postcard"),
    "3256" => array("VALUE" => "Календарь карманный", "XML_ID" => "calendar_pocket"),
    "3314" => array("VALUE" => "Календарь Домик самосборный", "XML_ID" => "calendar_selfconstruct"),
    );
    endif;
    $PROPS[$prop["ID"]] = $prop;
    endwhile;
    } catch (PDOException $e) {
    $errors = "Ошибка подключения к БД" . ": " . $e->getMessage() . ", Line: " . $e->getLine();
    }
    if ($PROPS):
    try {
    $stmt = $connectSite->prepare("SELECT ID, PROPERTY_ID, VALUE, XML_ID FROM b_iblock_property_enum WHERE PROPERTY_ID IN (" . implode(",", array_keys($PROPS)) . ") ORDER BY SORT ASC");
    $stmt->execute();
    $stmt->setFetchMode(PDO::FETCH_ASSOC);
    while ($prop = $stmt->fetch()):
    $PROPS[$prop["PROPERTY_ID"]]["LIST"][$prop["ID"]] = array("VALUE" => $prop["VALUE"], "XML_ID" => $prop["XML_ID"]);
    endwhile;
    } catch (PDOException $e) {
    $errors = "Ошибка подключения к БД" . ": " . $e->getMessage() . ", Line: " . $e->getLine();
    }
    else:
    $errors = "Ошибка подключения к БД: не найдены параметры сборников";
    endif;
    ?>