Example #1
0
foreach ($arFilemanProperties as $propertyCode => $propertyDesc) {
    if (array_key_exists($propertyCode, $arDirProperties)) {
        $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")) {
Example #2
0
$DESCRIPTION = GetMessage('PLAYLIST_TITLE_DESCRIPTION');
$back_url = $_GET["back_url"];

// Clear all pathes which not begining from '/'
if ($back_url != '' && (substr($back_url, 0, 1) != '/' || strpos($back_url, ':') !== false))
	$back_url = '';

$obJSPopup = new CJSPopup('',
	array(
		'TITLE' => $TITLE,
		'ARGS' => "lang=".urlencode($_GET["lang"])."&site=".urlencode($_GET["site"])."&back_url=".urlencode($back_url)."&path=".urlencode($_GET["path"])."&name=".urlencode($_GET["name"])
	)
);
$obJSPopup->ShowTitlebar();
?>
<?$obJSPopup->StartDescription('bx-edit-menu');?>
<p><b><?php 
echo $DESCRIPTION;
?>
</b></p>
</p>
<?
if($strWarning != "")
	$obJSPopup->ShowValidationError($strWarning);

$obJSPopup->StartContent();
if(!is_array($arTracks))
	$arTracks = Array();
?>
	<input type="hidden" name="save" value="Y" />
	<table border="0" cellpadding="2" cellspacing="0" class="bx-width100 internal">
Example #3
0
                $obJSPopup->Close();
            } else {
                $strWarning .= GetMessage("comp_prop_err_save") . "<br>";
            }
        }
    }
}
$componentPath = CComponentEngine::MakeComponentPath($_GET["component_name"]);
$arComponentDescription["ICON"] = ltrim($arComponentDescription["ICON"], "/");
$localPath = getLocalPath("components" . $componentPath);
if ($localPath !== false && $arComponentDescription["ICON"] != "" && $io->FileExists($io->RelativeToAbsolutePath($localPath . "/" . $arComponentDescription["ICON"]))) {
    $sIcon = $localPath . "/" . $arComponentDescription["ICON"];
} else {
    $sIcon = "/bitrix/images/fileman/htmledit2/component.gif";
}
$obJSPopup->StartDescription($sIcon);
if ($arComponentDescription["NAME"] != "") {
    ?>
<p title="<?php 
    echo GetMessage("comp_prop_name");
    ?>
" class="title"><?php 
    echo htmlspecialcharsbx($arComponentDescription["NAME"]);
    ?>
</p>
<?php 
}
if ($arComponentDescription["DESCRIPTION"] != "") {
    ?>
<p title="<?php 
    echo GetMessage("comp_prop_desc");
Example #4
0
if(!$bVarsFromForm)
{
	if(!$bEdit && strlen($filename)<=0)
		$filename = "untitled.php";

	$filesrc = $filesrc_tmp;
}
else
	$filesrc = $_POST['filesrc'];


/*************************************************/

$obJSPopup->ShowTitlebar(($bEdit ? GetMessage("FILEMAN_FILEEDIT_PAGE_TITLE") : GetMessage("FILEMAN_NEWFILEEDIT_TITLE")).": ".htmlspecialcharsbx($path));

$obJSPopup->StartDescription();

echo '<a href="/freetrix/admin/fileman_file_edit.php?path='.urlencode($path).'&amp;full_src=Y&amp;site='.$site.'&amp;lang='.LANGUAGE_ID.'&amp;back_url='.urlencode($_GET["back_url"]).(!$bEdit? '&amp;new=Y&amp;filename='.urlencode($filename).'&amp;template='.urlencode($template):'').($_REQUEST["templateID"]<>''? '&amp;templateID='.urlencode($_REQUEST["templateID"]):'').'" title="'.htmlspecialcharsbx($path).'">'.GetMessage("public_file_edit_edit_cp").'</a>';

$obJSPopup->StartContent();
if (CAutoSave::Allowed())
{
	echo CJSCore::Init(array('autosave'), true);
	$AUTOSAVE->Init();
?><script type="text/javascript">BX.WindowManager.Get().setAutosave();</script><?
}
?>

<input type="hidden" name="site" value="<?php 
echo htmlspecialcharsbx($site);
?>
Example #5
0
        }
        if (!isset($arLibrary["~UF_USE_EXT_SERVICES"])) {
            CWebDavIblock::checkUfUseExtServices((int) $arParams["IBLOCK_ID"]);
        }
        $arFields = array("IBLOCK_ID" => $arParams["IBLOCK_ID"], "UF_USE_BP" => $_REQUEST["UF_USE_BP"], "UF_USE_EXT_SERVICES" => $_REQUEST["UF_USE_EXT_SERVICES"]);
        $GLOBALS["UF_USE_BP"] = $arFields["UF_USE_BP"];
        $GLOBALS["USER_FIELD_MANAGER"]->EditFormAddFields("IBLOCK_" . $arParams["IBLOCK_ID"] . "_SECTION", $arFields);
        $bs = new CIBlockSection();
        $res = $bs->Update($arLibrary["ID"], $arFields);
    }
    $popupWindow->Close($bReload = true, $_REQUEST["back_url"]);
    die;
}
//HTML output
$popupWindow->ShowTitlebar(GetMessage("SN_TITLE"));
$popupWindow->StartDescription("bx-access-folder");
if (isset($strWarning) && $strWarning != "") {
    $popupWindow->ShowValidationError($strWarning);
}
?>

<p><b><?php 
echo GetMessage("SN_TITLE_TITLE");
?>
</b></p>

<?php 
$popupWindow->EndDescription();
$popupWindow->StartContent();
?>
            $ar = array();
            foreach ($item as $k => $v) {
                $ar[$GLOBALS["APPLICATION"]->ConvertCharset($k, "UTF-8", LANG_CHARSET)] = BPasDecodeArrayKeys($v);
            }
            return $ar;
        } else {
            return $item;
        }
    }
    $_POST = BPasDecodeArrayKeys($_POST);
}
$activityName = $_REQUEST['id'];
$activityType = $_REQUEST['activity'];
$document_type = $_POST['document_type'];
$currentSiteId = $_REQUEST['current_site_id'];
$popupWindow->StartDescription("bx-edit-settings");
$canWrite = CBPDocument::CanUserOperateDocumentType(CBPCanUserOperateOperation::CreateWorkflow, $GLOBALS["USER"]->GetID(), array(MODULE_ID, ENTITY, $document_type));
if (!$canWrite) {
    $popupWindow->ShowError(GetMessage("ACCESS_DENIED"));
    die;
}
$runtime = CBPRuntime::GetRuntime();
$runtime->StartRuntime();
$arActivityDescription = $runtime->GetActivityDescription($activityType);
if ($arActivityDescription == null) {
    die("Bad activity type!" . htmlspecialcharsbx($activityType));
}
if ($arActivityDescription["DESCRIPTION"]) {
    echo htmlspecialcharsbx($arActivityDescription["DESCRIPTION"]);
} else {
    echo GetMessage("BIZPROC_AS_DESC");
Example #7
0
	if ($strWarning == "")
	{
		$popupWindow->Close($bReload=($_GET['subdialog'] <> 'Y'), $back_url);
		die();
	}
}

echo CJSCore::Init(array('access'), true);

//HTML output
if ($isFolder)
	$popupWindow->ShowTitlebar(GetMessage("EDIT_ACCESS_TO_FOLDER"));
else
	$popupWindow->ShowTitlebar(GetMessage("EDIT_ACCESS_TO_FILE"));

$popupWindow->StartDescription($isFolder ? "bx-access-folder" : "bx-access-page");

if ($strWarning != "")
	$popupWindow->ShowValidationError($strWarning);
?>

<p><b><?php 
echo $isFolder ? GetMessage("EDIT_ACCESS_TO_FOLDER") : GetMessage("EDIT_ACCESS_TO_FILE");
?>
</b> <?php 
echo htmlspecialcharsbx($path);
?>
</p>

<?
$popupWindow->EndDescription();
Example #8
0
$obJSPopup = new CJSPopup('',
	array(
		'TITLE' => GetMessage('MENU_EDIT_TITLE'),
		'ARGS' => "lang=".urlencode($_GET["lang"])."&site=".urlencode($_GET["site"])."&back_url=".urlencode($_GET["back_url"])."&path=".urlencode($_GET["path"])."&name=".urlencode($_GET["name"])
	)
);

// ======================== Show titlebar ============================= //
$obJSPopup->ShowTitlebar();
?>
<script src="/freetrix/js/main/dd.js" type="text/javascript"></script>

<?
// ======================== Show description ============================= //
$obJSPopup->StartDescription('bx-core-edit-menu');
?>
<p class="title"><?php 
echo $TITLE;
?>
</p>
<p class="note"><?php 
echo $DESCRIPTION;
?>
</p><p>
<a href="/freetrix/admin/fileman_menu_edit.php?<?php 
echo "lang=" . urlencode($_GET["lang"]) . "&site=" . urlencode($_GET["site"]) . "&back_url=" . urlencode($_GET["back_url"]) . "&path=" . urlencode($_GET["path"]) . "&name=" . urlencode($_GET["name"]);
?>
"><?php 
echo GetMessage('MENU_EDIT_OLD_STYLE');
?>
Example #9
0
		CUndo::ShowUndoMessage($ID);

		//CUndo::Escape($ID);

		$popupWindow->Close($bReload=($_GET['subdialog'] <> 'Y'), $back_url);
	}
	else
	{
		$strWarning = GetMessage("PAGE_DELETE_ERROR_OCCURED");
	}
}

//HTML Output
$popupWindow->ShowTitlebar(GetMessage("PAGE_DELETE_WINDOW_TITLE"));
$popupWindow->StartDescription("bx-delete-page");
?>
<p><?php 
echo str_replace("#FILENAME#", htmlspecialcharsbx($path), GetMessage("PAGE_DELETE_CONFIRM_TEXT"));
?>
</p>
<?
$popupWindow->EndDescription("bx-delete-page");
$popupWindow->StartContent();
if (isset($strWarning) && $strWarning != "")
	$popupWindow->ShowValidationError($strWarning);
?>
<?if (IsModuleInstalled("fileman")):?>
	<input type="checkbox" name="delete_from_menu" value="Y" id="bx_delete_from_menu" <?php 
echo $deleteFromMenu ? "checked" : "";
?>
Example #10
0
    default:
        $arFilter = false;
}
?>
<body class="dialogcontent">

<?php 
$popupWindow = new CJSPopup(GetMessage("BIZPROC_AS_TITLE"));
$popupWindow->ShowTitlebar(GetMessage("BIZPROC_AS_TITLE_TOOLBAR"));
?>
<style>
.dialogt {width:100% !important; }
.adm-workarea .dialogt option {padding: 0px;}
</style>
<?php 
$popupWindow->StartDescription("");
echo GetMessage("BIZPROC_SEL_TITLEBAR_DESC");
$popupWindow->EndDescription();
$popupWindow->StartContent();
?>
<script>
var BPSLastId = false;
function BPSHideShow(id)
{
	if(BPSLastId)
		document.getElementById(BPSLastId).style.display = 'none';

	if(BPSLastId==id)
		BPSLastId = false;
	else
	{
Example #11
0
	else
		$arGlobalProperties[$propertyCode] = "";

	unset($arDirProperties[$propertyCode]);
	unset($arInheritProperties[strtoupper($propertyCode)]);
}

foreach ($arDirProperties as $propertyCode => $propertyValue)
	unset($arInheritProperties[strtoupper($propertyCode)]);
?>


<?
//HTML Output
$popupWindow->ShowTitlebar(GetMessage("PAGE_PROP_WINDOW_TITLE"));
$popupWindow->StartDescription("bx-property-page");

if ($strWarning != "")
	$popupWindow->ShowValidationError($strWarning);
?>

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

<?if (IsModuleInstalled("fileman")):?>
	<p><a href="/freetrix/admin/fileman_html_edit.php?lang=<?php 
Example #12
0
            } else {
                $code = "<" . "?" . ($arRes["VARIABLE"] ? $arRes["VARIABLE"] . "=" : "") . "\$APPLICATION->IncludeFile(\"" . $_GET["path"] . "\");?" . ">";
            }
            $filesrc_for_save = substr($filesrc, 0, $aComponent[0]) . $code . substr($filesrc, $aComponent[1]);
            if ($APPLICATION->SaveFileContent($abs_path, $filesrc_for_save)) {
                $obJSPopup->Close();
            } else {
                $strWarning .= GetMessage("comp_prop_err_save") . "<br />";
            }
        }
    }
}
if ($arTemplate["ICON"] == "" || !is_file($_SERVER["DOCUMENT_ROOT"] . $arTemplate["ICON"])) {
    $arTemplate["ICON"] = "/bitrix/images/fileman/htmledit2/component.gif";
}
$obJSPopup->StartDescription($arTemplate['ICON']);
if ($arTemplate["NAME"] != "") {
    ?>
<p title="<?php 
    echo GetMessage("comp_prop_name");
    ?>
"><b><?php 
    echo htmlspecialcharsbx($arTemplate["NAME"]);
    ?>
</b></p>
<?php 
}
if ($arTemplate["DESCRIPTION"] != "") {
    ?>
<p title="<?php 
    echo GetMessage("comp_prop_desc");
Example #13
0
foreach ($arFilemanProperties as $propertyCode => $propertyDesc)
{
	if (array_key_exists($propertyCode, $arDirProperties))
		$arGlobalProperties[$propertyCode] = $arDirProperties[$propertyCode];
	else
		$arGlobalProperties[$propertyCode] = "";

	unset($arDirProperties[$propertyCode]);
	unset($arInheritProperties[strtoupper($propertyCode)]);
}

foreach ($arDirProperties as $propertyCode => $propertyValue)
	unset($arInheritProperties[strtoupper($propertyCode)]);

$popupWindow->ShowTitlebar(GetMessage('FOLDER_EDIT_WINDOW_TITLE'));
$popupWindow->StartDescription("bx-property-folder");

if($strWarning != "")
	$popupWindow->ShowValidationError($strWarning);
?>

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

	<?if (IsModuleInstalled("fileman")):?>
		<p><a href="/freetrix/admin/fileman_folder.php?lang=<?php 
Example #14
0
echo freetrix_sessid_get();
?>
');

	return true;
};

jsDD.Reset();
//jsDD.registerContainer(BX.findParent(window.structPopup.GetContent(), {tag: 'DIV'}));
jsDD.registerContainer(BX.WindowManager.Get().GetContent());

</script>

<?
$obJSPopup->ShowTitlebar();
$obJSPopup->StartDescription('bx-structure');
?>
<p><b><?echo GetMessage("pub_struct_desc_title")?></b></p>
<div class="bx-struct-settings" onclick="structShowSettingsMenu(this)" onmouseover="this.className+=' bx-struct-settings-over'" onmouseout="this.className=this.className.replace(/\s*bx-struct-settings-over/ig, '')" title="<?echo GetMessage("pub_struct_settings_title")?>"><?echo GetMessage("pub_struct_settings")?></div>
<div class="bx-struct-settings bx-struct-button" onclick="structOpenDirs(this)" onmouseover="this.className+=' bx-struct-settings-over'" onmouseout="this.className=this.className.replace(/\s*bx-struct-settings-over/ig, '')" title="<?echo GetMessage("pub_struct_folders_title")?>"><?echo GetMessage("pub_struct_folders_button")?></div>
<br />
<br style="clear:both;" />
<?
$obJSPopup->StartContent();
?>
<div id="structure_content">
<?
//display first level tree
$arRoot = __struct_get_file_info($DOC_ROOT, "/");
echo __struct_show_files(array($arRoot), $DOC_ROOT, "", _normalizePath($_GET["path"]));
?>