本文整理汇总了PHP中CJSPopup::ShowTitlebar方法的典型用法代码示例。如果您正苦于以下问题:PHP CJSPopup::ShowTitlebar方法的具体用法?PHP CJSPopup::ShowTitlebar怎么用?PHP CJSPopup::ShowTitlebar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CJSPopup
的用法示例。
在下文中一共展示了CJSPopup::ShowTitlebar方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CJSPopup
function __WDShowError($sError)
{
if (isset($_REQUEST["use_light_view"]) || isset($_REQUEST["use_hidden_view"])) {
$GLOBALS['APPLICATION']->RestartBuffer();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$popupWindow = new CJSPopup('', '');
$popupWindow->ShowTitlebar(GetMessage("WD_UPLOAD_ERROR_TITLE"));
$popupWindow->StartContent();
}
if (strpos($sError, "<") > 0) {
echo "<p><font class=\"errortext\">" . $sError . "</font></p>\n";
} else {
ShowError($sError);
}
if (isset($_REQUEST["use_light_view"]) || isset($_REQUEST["use_hidden_view"])) {
$popupWindow->ShowStandardButtons(array("close"));
die;
}
}
示例2: GetMessage
$arGlobalProperties = array();
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
示例3: str_replace
<?php
$inDialog = isset($_REQUEST["dialog"]) && strtoupper($_REQUEST["dialog"]) == "Y";
if ($inDialog) {
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
$GLOBALS['APPLICATION']->RestartBuffer();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
} else {
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php";
}
IncludeModuleLangFile(__FILE__);
if ($inDialog) {
$popupWindow = new CJSPopup('', '');
$popupWindow->ShowTitlebar(GetMessage("DAV_HELP_NAME"));
$popupWindow->StartContent();
} else {
$APPLICATION->SetTitle(GetMessage("DAV_HELP_NAME"));
}
echo str_replace("#SERVER#", $_SERVER["SERVER_NAME"], GetMessage('DAV_HELP_TEXT'));
if ($inDialog) {
$popupWindow->StartButtons();
$popupWindow->ShowStandardButtons(array('close'));
$popupWindow->EndButtons();
} else {
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php";
}
示例4: PageParams
function PageParams($bUrlEncode = true)
{
$amp = $bUrlEncode ? '&' : '&';
return 'component_name=' . urlencode(CUtil::addslashes($_GET["component_name"])) . $amp . 'component_template=' . urlencode(CUtil::addslashes($_GET["component_template"])) . $amp . 'template_id=' . urlencode(CUtil::addslashes($_GET["template_id"])) . $amp . 'lang=' . urlencode(CUtil::addslashes(LANGUAGE_ID)) . $amp . 'src_path=' . urlencode(CUtil::addslashes($_GET["src_path"])) . $amp . 'src_line=' . intval($_GET["src_line"]) . $amp . 'src_page=' . urlencode(CUtil::addslashes($_GET["src_page"])) . $amp . 'src_site=' . urlencode(CUtil::addslashes($_GET["src_site"]));
}
$io = CBXVirtualIo::GetInstance();
$src_path = $io->CombinePath("/", $_GET["src_path"]);
$src_line = intval($_GET["src_line"]);
if (!$USER->CanDoOperation('edit_php') && !$USER->CanDoFileOperation('fm_lpa', array($_GET["src_site"], $src_path))) {
die(GetMessage("ACCESS_DENIED"));
}
$bLimitPhpAccess = !$USER->CanDoOperation('edit_php');
IncludeModuleLangFile(__FILE__);
CUtil::JSPostUnescape();
$obJSPopup = new CJSPopup('', array('TITLE' => GetMessage("comp_prop_title")));
$obJSPopup->ShowTitlebar();
$strWarning = "";
$arValues = array();
$arTemplate = false;
$arComponent = false;
$arComponentDescription = false;
$arParameterGroups = array();
$filesrc = "";
$abs_path = "";
$curTemplate = "";
if (!CComponentEngine::CheckComponentName($_GET["component_name"])) {
$strWarning .= GetMessage("comp_prop_error_name") . "<br>";
}
if ($strWarning == "") {
// try to read parameters from script file
/* Try to open script containing the component call */
示例5: GetMessage
__wd_check_uf_use_bp_property($arParams["IBLOCK_ID"]);
}
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();
?>
示例6: GetMessage
$obJSPopup->ShowValidationError($strWarning);
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).'&full_src=Y&site='.$site.'&lang='.LANGUAGE_ID.'&back_url='.urlencode($_GET["back_url"]).(!$bEdit? '&new=Y&filename='.urlencode($filename).'&template='.urlencode($template):'').($_REQUEST["templateID"]<>''? '&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
示例7: htmlspecialcharsbx
$strWarning = $e->msg;
}
//Close window
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);
?>
示例8: substr
else
$new_filesrc .= '#PHP'.str_pad(++$php_count, 4, "0", STR_PAD_LEFT).'#';
}
$new_filesrc .= substr($filesrc,$end);
$filesrc = $new_filesrc;
}
}
$bEditProps = (strpos($res["PROLOG"], "prolog_before")>0 || strpos($res["PROLOG"], "header.php")>0);
$title = $res["TITLE"];
if((CFileman::IsPHP($filesrc) || $isScriptExt) && !($USER->CanDoOperation('edit_php') || $limit_php_access))
$strWarning = GetMessage("FILEMAN_FILEEDIT_CHANGE_ACCESS");
}
$obJSPopup->ShowTitlebar(GetMessage('PUBLIC_EDIT_TITLE'.($bFromComponent ? '_COMP' : '')).': '.htmlspecialcharsex($_GET['path']));
$obJSPopup->StartContent(
array(
'style' => "0px; height: 500px; overflow: hidden;",
'class' => "bx-content-editor"
)
);
?>
</form>
<iframe src="javascript:void(0)" name="file_edit_form_target" height="0" width="0" style="display: none;"></iframe>
<form action="/freetrix/admin/public_file_edit.php" name="editor_form" method="post" enctype="multipart/form-data" target="file_edit_form_target" style="margin: 0px; padding: 0px; ">
<?
if (CAutoSave::Allowed())
{
示例9: htmlspecialcharsbx
$label = htmlspecialcharsbx(rtrim(trim($arField["content"]), " :"));
if ($arField["delimiter"]) {
$ar["FIELDS"][$id] = "--" . $label;
} else {
$ar["FIELDS"][$id] = ($arField["required"] ? "*" : " ") . $label;
}
unset($arAvailableFields[$id]);
}
}
$arCustomFields[$arTab["DIV"]] = $ar;
unset($arAvailableTabs[$arTab["DIV"]]);
}
}
$arFormEditMess = array("admin_lib_sett_tab_prompt" => GetMessage("admin_lib_sett_tab_prompt"), "admin_lib_sett_tab_default_name" => GetMessage("admin_lib_sett_tab_default_name"), "admin_lib_sett_sec_prompt" => GetMessage("admin_lib_sett_sec_prompt"), "admin_lib_sett_sec_default_name" => GetMessage("admin_lib_sett_sec_default_name"), "admin_lib_sett_sec_rename" => GetMessage("admin_lib_sett_sec_rename"), "admin_lib_sett_tab_rename" => GetMessage("admin_lib_sett_tab_rename"));
$obJSPopup = new CJSPopup(GetMessage("admin_lib_sett_tab_title"));
$obJSPopup->ShowTitlebar(GetMessage("admin_lib_sett_tab_title"));
$obJSPopup->StartContent();
?>
<script type="text/javascript">
var arSystemTabsFields = <?php
echo CUtil::PhpToJSObject($arSystemTabsFields);
?>
;
var arSystemTabs = <?php
echo CUtil::PhpToJSObject($arSystemTabs);
?>
;
var arSystemFields = <?php
echo CUtil::PhpToJSObject($arSystemFields);
?>
;
示例10: CJSPopup
<?php
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_js.php";
include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/bizproc/include.php";
IncludeModuleLangFile(__FILE__);
$popupWindow = new CJSPopup(GetMessage("BIZPROC_AS_TITLE"));
$popupWindow->ShowTitlebar(GetMessage("BIZPROC_AS_TITLE"));
CUtil::DecodeUriComponent($_POST);
/*if(LANG_CHARSET != "UTF-8" && is_array($_POST["arWorkflowParameters"]))
{
foreach($_POST["arWorkflowParameters"] as $name=>$param)
{
if(is_array($_POST["arWorkflowParameters"][$name]["Options"]))
{
$newarr = Array();
foreach($_POST["arWorkflowParameters"][$name]["Options"] as $k=>$v)
$newarr[$GLOBALS["APPLICATION"]->ConvertCharset($k, "UTF-8", LANG_CHARSET)] = $v;
$_POST["arWorkflowParameters"][$name]["Options"] = $newarr;
}
}
}
if(LANG_CHARSET != "UTF-8" && is_array($_POST["arWorkflowVariables"]))
{
foreach($_POST["arWorkflowVariables"] as $name=>$param)
{
if(is_array($_POST["arWorkflowVariables"][$name]["Options"]))
{
$newarr = Array();
foreach($_POST["arWorkflowVariables"][$name]["Options"] as $k=>$v)
示例11: str_replace
$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"];
?>
" />
<input type="hidden" name="edit_section" value="Y" />
<input type="hidden" name="popupWindow" value="Y" />
示例12: trim
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$file = trim(preg_replace("'[\\\\/]+'", "/", dirname(__FILE__) . "/lang/" . LANGUAGE_ID . "/iblock_e_rights.php"));
__IncludeLang($file);
$iblock_id = intval($_REQUEST["IBLOCK_ID"]);
$popupWindow = new CJSPopup(GetMessage("WD_POPUP_PERMISSIONS"));
//$popupWindow = new CJSPopup(GetMessage("WD_POPUP_PERMISSIONS"));
if (!CModule::IncludeModule("iblock")) {
return false;
} elseif (!CModule::IncludeModule("webdav")) {
return false;
}
//elseif ($iblock_id <= 0)
//$popupWindow->ShowError(GetMessage("WD_IBLOCK_ID_EMPTY"));
//HTML output
$popupWindow->ShowTitlebar();
if (isset($strWarning) && $strWarning != "") {
$popupWindow->ShowValidationError($strWarning);
}
$popupWindow->StartContent();
$APPLICATION->IncludeComponent("bitrix:webdav.iblock.rights", ".default", array("IBLOCK_ID" => $_REQUEST['IBLOCK_ID'], "ENTITY_TYPE" => $_REQUEST['ENTITY_TYPE'], "ENTITY_ID" => $_REQUEST['ENTITY_ID'], "SOCNET_TYPE" => $_REQUEST['SOCNET_TYPE'], "SOCNET_ID" => $_REQUEST['SOCNET_ID'], "TAB_ID" => 'tab_permissions', "SET_TITLE" => "N", "SET_NAV_CHAIN" => "N", "DO_NOT_REDIRECT" => true, "POPUP_DIALOG" => true), null, array("HIDE_ICONS" => "Y"));
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$popupWindow->Close($bReload = true, $_REQUEST["back_url"]);
die;
}
?>
<div class="buttons">
<input type="hidden" name="save" value="Y" />
</div>
<?php
示例13: GetMessage
$arGlobalProperties = Array();
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")):?>
示例14: WDClearComponentCache
$_REQUEST["GROUP"][$group_id] = $_REQUEST["GROUP_ADD_PERMISSION"][$key];
}
}
CIBlock::SetPermission($iblock_id, $_REQUEST["GROUP"]);
WDClearComponentCache(array("webdav.element.edit", "webdav.element.hist", "webdav.element.upload", "webdav.element.view", "webdav.menu", "webdav.section.edit", "webdav.section.list"));
}
$popupWindow->Close($bReload = true, $_REQUEST["back_url"]);
die;
}
}
}
/********************************************************************
/Actions
********************************************************************/
//HTML output
$popupWindow->ShowTitlebar($arIBlock["NAME"]);
if (isset($strWarning) && $strWarning != "") {
$popupWindow->ShowValidationError($strWarning);
}
$popupWindow->StartContent();
?>
<div class="webdav_iblock_settings_loader"></div>
<div class="webdav_iblock_settings">
<?php
$arIBlockForm = $arIBlock;
if ($bVarsFromForm) {
foreach ($arIBlockForm as $key => $val) {
if (array_key_exists($key, $_REQUEST)) {
$arIBlockForm[$key] = $_REQUEST[$key];
}
}
示例15: GetMessage
$result['permission'] = true;
$result['okmsg'] = GetMessage("WD_WARNING_SAME_NAME", array("#LINK#" => 'class="ajax" onclick="WDUploadExpand();"'));
}
} elseif ($arParams['ELEMENT_ID'] !== 0 && $arResult['ELEMENT']['FILE_EXTENTION'] != strToLower(strrchr($fileName, "."))) {
$result['permission'] = false;
$result['errormsg'] = GetMessage("WD_WARNING_EXTENSIONS_DONT_MATCH");
} else {
$result['permission'] = true;
$result['okmsg'] = '';
}
echo CUtil::PhpToJSObject($result);
die;
}
$popupWindow = new CJSPopup('', '');
if ($arParams['ELEMENT_ID'] != 0) {
$popupWindow->ShowTitlebar(TruncateText(GetMessage("WD_UPLOAD_VERSION_TITLE", array("#NAME#" => $arResult["ELEMENT"]["NAME"])), 75));
} else {
$popupWindow->ShowTitlebar(GetMessage("WD_UPLOAD_TITLE"));
}
$popupWindow->StartContent();
?>
</form>
<table id="wd_messages" style="display:none;" cellpadding="0" cellspacing="0" width="100%"> <tr><td>
<div id="wd_upload_error_message" style="color:#dd0000;"></div>
<div id="wd_upload_ok_message" style="color:#009900;"></div>
</td></tr></table>
<iframe id="upload_iframe" name="upload_iframe" style="display:none;"> </iframe>
<form method="post" name='wd_upload_form' id="wd_upload_form" target="upload_iframe" action="<?php
echo POST_FORM_ACTION_URI;
?>
" enctype="multipart/form-data">