Пример #1
0
        $arGlobalProperties[$propertyCode] = $arDirProperties[$propertyCode];
    } else {
        $arGlobalProperties[$propertyCode] = "";
    }
    unset($arDirProperties[$propertyCode]);
    unset($arInheritProperties[strtoupper($propertyCode)]);
}
foreach ($arDirProperties as $propertyCode => $propertyValue) {
    unset($arInheritProperties[strtoupper($propertyCode)]);
}
$bPropertyExists = !empty($arGlobalProperties) || !empty($arDirProperties) || !empty($arInheritProperties);
//HTML Output
$popupWindow->ShowTitlebar(GetMessage("PAGE_NEW_WINDOW_TITLE"));
$popupWindow->StartDescription($createNewFolder ? "bx-create-new-folder" : "bx-create-new-page");
if (isset($strWarning) && $strWarning != "") {
    $popupWindow->ShowValidationError($strWarning);
}
?>

<p><?php 
echo GetMessage("PAGE_NEW_SUB_TITLE");
?>
 <b><?php 
echo htmlspecialcharsbx($path);
?>
</b></p>

<?php 
if (IsModuleInstalled("fileman")) {
    ?>
	<?php 
Пример #2
0
echo GetMessage("comp_prop_path");
?>
"><a href="/bitrix/admin/fileman_admin.php?lang=<?php 
echo LANGUAGE_ID;
?>
&amp;path=<?php 
echo urlencode($localPath);
?>
"><?php 
echo htmlspecialcharsbx($_GET["component_name"]);
?>
</a></p>
<?php 
if ($strWarning != "") {
    //ShowError($strWarning);
    $obJSPopup->ShowValidationError($strWarning);
    //echo '<script>jsPopup.AdjustShadow()</script>';
}
if (!empty($arComponentTemplates) || !empty($arComponentParameters["PARAMETERS"]) || !empty($arTemplateParameters)) {
    $obJSPopup->StartContent();
    $sSectArr = "";
    $aClosedSections = array();
    if (isset($_POST["__closed_sections"]) && $_POST["__closed_sections"] != "") {
        $sections = preg_replace("/[^a-z0-9_,]/i", "", $_POST["__closed_sections"]);
        $aClosedSections = explode(",", $sections);
        $sSectArr = "'" . implode("','", $aClosedSections) . "'";
    }
    ?>
<script>
window.__closed_sections = [<?php 
    echo $sSectArr;
Пример #3
0
$popupWindow = new CJSPopup('', '');
//HTML output
$sTitle = GetMessage("WD_EDIT_SECTION");
$sDescription = GetMessage("WD_EDIT_SECTION_DESCRIPTION");
$sTheme = "bx-property-folder";
if ($arParams["ACTION"] == "ADD") {
    $sTitle = GetMessage("WD_ADD_SECTION");
    $sDescription = GetMessage("WD_ADD_SECTION_DESCRIPTION");
    $sTheme = "bx-create-new-folder";
} elseif ($arParams["ACTION"] == "DROP") {
    $sTitle = GetMessage("WD_DROP_SECTION");
    $sDescription = GetMessage("WD_DROP_SECTION_DESCRIPTION");
    $sTheme = "bx-delete-page";
}
if (!empty($arResult["ERROR_MESSAGE"])) {
    $popupWindow->ShowValidationError($arResult["ERROR_MESSAGE"]);
    die;
}
$popupWindow->ShowTitlebar($sTitle);
$popupWindow->StartDescription();
?>
<p><?php 
echo str_replace("#PATH#", "/" . implode("/", $arResult["NAV_CHAIN"]), $sDescription);
?>
</p><?php 
$popupWindow->EndDescription();
$popupWindow->StartContent();
?>
	<input type="hidden" name="SECTION_ID" value="<?php 
echo $arParams["SECTION_ID"];
?>
Пример #4
0
     if (!$errorMessage) {
         $obJSPopup->Close();
     } else {
         $obJSPopup->ShowValidationError($errorMessage);
         $obJSPopup->Close(false);
         die;
     }
 } elseif ($_SERVER['REQUEST_METHOD'] == 'POST' && array_key_exists("sm_action", $_REQUEST) && $_REQUEST["sm_action"] == "clear_settings" && check_bitrix_sessid()) {
     CUserOptions::DeleteOption("socialnetwork", "~menu_" . $arParams["ENTITY_TYPE"] . "_" . $arParams["ENTITY_ID"], false, 0);
     $APPLICATION->RestartBuffer();
     require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/interface/admin_lib.php';
     $obJSPopup = new CJSPopup();
     if (!$errorMessage) {
         $obJSPopup->Close();
     } else {
         $obJSPopup->ShowValidationError($errorMessage);
         die;
     }
 } elseif ($_SERVER['REQUEST_METHOD'] == 'POST' && array_key_exists("sm_action", $_REQUEST) && $_REQUEST["sm_action"] == "delete" && strlen($_REQUEST["feature"]) > 0 && check_bitrix_sessid()) {
     if (!$errorMessage) {
         $dbResultTmp = CSocNetFeatures::GetList(array(), array("ENTITY_ID" => $arParams['ENTITY_ID'], "ENTITY_TYPE" => $arParams['ENTITY_TYPE'], "FEATURE" => $_REQUEST['feature']));
         $arResultTmp = $dbResultTmp->Fetch();
         if ($arResultTmp) {
             $FeatureName = $arResultTmp["FEATURE_NAME"];
         } else {
             $FeatureName = '';
         }
         $idTmp = CSocNetFeatures::SetFeature($arParams['ENTITY_TYPE'], $arParams['ENTITY_ID'], $_REQUEST["feature"], false, $FeatureName);
         if (!$idTmp && ($e = $APPLICATION->GetException())) {
             $errorMessage = $e->GetString();
         }
Пример #5
0
$arIncLang = $form->getIncMessages();

$arRequestLang = $form->getRequestLang();
if (is_array($arRequestLang) && !empty($arRequestLang))
{
	$form->prepareRequestLang();
	$arError = $form->getError();

	if (!count($arError))
	{
		$obJSPopup->Close(true, "");
		die();
	}
	else
	{
		$obJSPopup->ShowValidationError(implode("<br>", $arError));
	}
}

if (count($arIncLang))
{
	?>
	<table class="bx-width100" id="bx_folder_properties">
		<input type="hidden" name="arLangFiles" value='<?php 
echo addslashes(serialize($arLangsFiles));
?>
'>
		<input type="hidden" name="langForm" value="Y">
		<?
		foreach ($arIncLang as $file => $arFileLang)
		{