本文整理汇总了PHP中CJSPopup类的典型用法代码示例。如果您正苦于以下问题:PHP CJSPopup类的具体用法?PHP CJSPopup怎么用?PHP CJSPopup使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CJSPopup类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __WDShowError
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;
}
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:19,代码来源:component.php
示例2: GetMessage
$result['errormsg'] = GetMessage("WD_ERROR_SAME_NAME");
} else {
$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;
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php
示例3: isset
<?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";
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:26,代码来源:help.php
示例4: filemtime
<script type="text/javascript" src="/freetrix/components/freetrix/player/js/playlist_edit.js?v=<?php
echo filemtime($_SERVER['DOCUMENT_ROOT'] . '/freetrix/components/freetrix/player/js/playlist_edit.js');
?>
"></script>
<?
$TITLE = GetMessage("PLAYLIST_TITLE_".($bCreate ? "CREATE" : "EDIT"));
$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();
开发者ID:ASDAFF,项目名称:open_bx,代码行数:32,代码来源:player_playlist_edit.php
示例5: define
<?
define('FX_PUBLIC_MODE', true);
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/prolog_admin_before.php");
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/prolog_admin_js.php");
// lpa is not allowed!
if (!($USER->CanDoOperation('edit_php')))
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
CUtil::JSPostUnescape();
$obJSPopup = new CJSPopup();
require_once($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/fileman/include.php");
IncludeModuleLangFile(__FILE__);
$strWarning = "";
$io = CBXVirtualIo::GetInstance();
$bVarsFromForm = false;
if (strlen($filename) > 0 && ($mess = CFileMan::CheckFileName($filename)) !== true)
{
$filename2 = $filename;
$filename = '';
$strWarning = $mess;
$bVarsFromForm = true;
}
开发者ID:ASDAFF,项目名称:open_bx,代码行数:30,代码来源:file_edit_src.php
示例6: require
<?
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/prolog_admin_before.php");
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/prolog_admin_js.php");
__IncludeLang($_SERVER['DOCUMENT_ROOT'].'/freetrix/components/freetrix/map.google.view/lang/'.LANGUAGE_ID.'/settings.php');
//if(!$USER->IsAdmin())
// $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
$obJSPopup = new CJSPopup('',
array(
'TITLE' => GetMessage('MYMV_SET_POPUP_TITLE'),
'SUFFIX' => 'google_map',
'ARGS' => ''
)
);
$arData = array();
if ($_REQUEST['MAP_DATA'])
{
CUtil::JSPostUnescape();
if (CheckSerializedData($_REQUEST['MAP_DATA']))
{
$arData = unserialize($_REQUEST['MAP_DATA']);
if (is_array($arData) && is_array($arData['PLACEMARKS']) && ($cnt = count($arData['PLACEMARKS'])))
{
for ($i = 0; $i < $cnt; $i++)
{
$arData['PLACEMARKS'][$i]['TEXT'] = str_replace('###RN###', "\r\n", $arData['PLACEMARKS'][$i]['TEXT']);
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:settings.php
示例7: require_once
$addUrl = 'lang='.LANGUAGE_ID.($logical == "Y"?'&logical=Y':'');
$useEditor3 = COption::GetOptionString('fileman', "use_editor_3", "N") == "Y";
$bFromComponent = $_REQUEST['from'] == 'main.include' || $_REQUEST['from'] == 'includefile' || $_REQUEST['from'] == 'includecomponent';
$bDisableEditor = !CModule::IncludeModule('fileman') || ($_REQUEST['noeditor'] == 'Y');
if (!($USER->CanDoOperation('fileman_admin_files') || $USER->CanDoOperation('fileman_edit_existent_files')))
{
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
require_once($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/fileman/include.php");
IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/fileman/admin/fileman_html_edit.php");
IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/public/file_edit.php");
$obJSPopup = new CJSPopup("lang=".urlencode($_GET["lang"])."&site=".urlencode($_GET["site"])."&back_url=".urlencode($_GET["back_url"])."&path=".urlencode($_GET["path"])."&name=".urlencode($_GET["name"]), array("SUFFIX"=>($_REQUEST['subdialog'] == 'Y'? 'editor':'')));
$strWarning = "";
$site_template = false;
$rsSiteTemplates = CSite::GetTemplateList($site);
while($arSiteTemplate = $rsSiteTemplates->Fetch())
{
if(strlen($arSiteTemplate["CONDITION"])<=0)
{
$site_template = $arSiteTemplate["TEMPLATE"];
break;
}
}
$io = CBXVirtualIo::GetInstance();
开发者ID:ASDAFF,项目名称:open_bx,代码行数:30,代码来源:file_edit.php
示例8: htmlspecialcharsbx
$id = htmlspecialcharsbx($arField["id"]);
$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);
?>
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:settings_admin_form.php
示例9: trim
<?php
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>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:iblock_e_rights.php
示例10: require
<?
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/prolog_admin_before.php");
IncludeModuleLangFile(__FILE__);
$popupWindow = new CJSPopup(GetMessage('FOLDER_EDIT_WINDOW_TITLE'), array("SUFFIX"=>($_GET['subdialog'] == 'Y'? 'subdialog':'')));
if (IsModuleInstalled("fileman"))
{
if (!$USER->CanDoOperation('fileman_edit_existent_folders') && !$USER->CanDoOperation('fileman_admin_folders'))
$popupWindow->ShowError(GetMessage("FOLDER_EDIT_ACCESS_DENIED"));
}
//Site ID
$site = SITE_ID;
if (isset($_REQUEST["site"]) && strlen($_REQUEST["site"]) > 0)
{
$obSite = CSite::GetByID($_REQUEST["site"]);
if ($arSite = $obSite->Fetch())
$site = $_REQUEST["site"];
}
$io = CBXVirtualIo::GetInstance();
//Folder path
$path = "";
$documentRoot = CSite::GetSiteDocRoot($site);
if (isset($_REQUEST["path"]) && strlen($_REQUEST["path"]) > 0)
{
$path = $io->CombinePath("/", $_REQUEST["path"]);
开发者ID:ASDAFF,项目名称:open_bx,代码行数:30,代码来源:folder_edit.php
示例11: Header
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
Header('Content-Type: text/html; charset=' . LANG_CHARSET);
ob_start();
if ($_REQUEST['suffix'] && !preg_match('/[^a-zA-Z0-9_]/is', $_REQUEST['suffix'])) {
$obJSPopup = new CJSPopup($APPLICATION->GetTitle(false, true), array('SUFFIX' => $_REQUEST['suffix']));
} else {
$obJSPopup = new CJSPopup($APPLICATION->GetTitle(false, true));
}
$obJSPopup->ShowTitlebar();
?>
<div id="bx_admin_form">
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:15,代码来源:prolog_jspopup_admin.php
示例12: str_replace
}
if (empty($aMsg)) {
$path = $arParams["CONVERT"] && $_REQUEST["AJAX_CALL"] != "Y" && SITE_CHARSET != "UTF-8" && $_REQUEST["popupWindow"] != "Y" ? $APPLICATION->ConvertCharset($path, SITE_CHARSET, "UTF-8") : $path;
$url = str_replace("//", "", CComponentEngine::MakePathFromTemplate($arParams["~SECTION_EDIT_URL"], array("PATH" => $path, "ACTION" => "EDIT")));
if (empty($_REQUEST["apply"])) {
$arNavChain = explode("/", $path);
array_pop($arNavChain);
$url = CComponentEngine::MakePathFromTemplate($arParams["~SECTIONS_URL"], array("PATH" => implode("/", $arNavChain)));
if ($arParams['ACTION'] == "DROP") {
$url = WDAddPageParams($url, array("result" => $arParams["SECTION_ID"] == $ob->GetMetaID('TRASH') ? "empty_trash" : "section_deleted"));
}
}
if ($_REQUEST["popupWindow"] == "Y") {
$GLOBALS['APPLICATION']->RestartBuffer();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
$popupWindow = new CJSPopup('', '');
$popupWindow->Close($bReload = true, !empty($_REQUEST["back_url"]) ? $_REQUEST["back_url"] : $url);
die;
} elseif ($_REQUEST["AJAX_CALL"] != "Y" || !empty($_REQUEST["bxajaxid"])) {
LocalRedirect($url);
} else {
$APPLICATION->RestartBuffer();
echo CUtil::PhpToJSObject(array("result" => strToLower($arParams["ACTION"] . "ed"), "url" => $url));
die;
}
} else {
$bVarsFromForm = true;
$e = new CAdminException($aMsg);
$GLOBALS["APPLICATION"]->ThrowException($e);
$oError = $GLOBALS["APPLICATION"]->GetException();
if ($oError) {
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php
示例13: require
* @copyright 2001-2013 Freetrix
*
* Freetrix vars
* @global CUser $USER
* @global CMain $APPLICATION
*/
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/prolog_admin_before.php");
require($_SERVER["DOCUMENT_ROOT"]."/freetrix/modules/main/include/prolog_admin_js.php");
if(CModule::IncludeModule("compression"))
CCompress::Disable2048Spaces();
IncludeModuleLangFile(__FILE__);
$obJSPopup = new CJSPopup(GetMessage("pub_struct_title"));
if(!$USER->CanDoOperation('fileman_view_file_structure') || !$USER->CanDoFileOperation('fm_edit_existent_folder', array(SITE_ID, "/")))
$obJSPopup->ShowError(GetMessage("ACCESS_DENIED"));
function __struct_file_sort($a, $b)
{
if($a["type"] == "D" && $b["type"] == "F")
return -1;
elseif($a["type"] == "F" && $b["type"] == "D")
return 1;
else
{
$name1 = ($a["name"] <> ''? $a["name"] : $a["file"]);
$name2 = ($b["name"] <> ''? $b["name"] : $b["file"]);
return strcmp(strtoupper($name1), strtoupper($name2));
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:structure.php
示例14: trim
<?php
#require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/interface/admin_lib.php";
$file = trim(preg_replace("'[\\\\/]+'", "/", dirname(__FILE__) . "/lang/" . LANGUAGE_ID . "/iblock_settings.php"));
__IncludeLang($file);
$iblock_id = intval($_REQUEST["IBLOCK_ID"]);
$popupWindow = new CJSPopup('', '');
if (!CModule::IncludeModule("iblock")) {
return false;
} elseif (!CModule::IncludeModule("webdav")) {
return false;
} elseif ($iblock_id <= 0) {
$popupWindow->ShowError(GetMessage("WD_IBLOCK_ID_EMPTY"));
}
$ob = new CWebDavIblock($iblock_id, '/');
if ($ob->e_rights) {
$permission = $ob->GetPermission('IBLOCK', $iblock_id);
} else {
$permission = CIBlock::GetPermission($iblock_id);
}
$arIBlock = CIBlock::GetArrayByID($iblock_id);
if ($ob->CheckRight($permission, 'iblock_rights_edit') < "X" && !$GLOBALS['USER']->CanDoOperation('webdav_change_settings')) {
$popupWindow->ShowError(GetMessage("WD_ACCESS_DENIED"));
}
$bWorkflow = CModule::IncludeModule("workflow");
$bBizproc = CModule::IncludeModule("bizproc");
/********************************************************************
Actions
********************************************************************/
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:iblock_settings.php
示例15: require
<?
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php");
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_js.php");
use Bitrix\Main\Loader;
Loader::includeModule("hotpin.lang");
IncludeModuleLangFile(__FILE__);
CUtil::JSPostUnescape();
$obJSPopup = new CJSPopup(
'', array(
'TITLE' => GetMessage("H_LANG_PAGE_NAME"),
)
);
$obJSPopup->ShowTitlebar();
$obJSPopup->StartDescription('bx-core-edit-menu');
$obJSPopup->StartContent();
$form = new \Hotpin\Lang\Form();
$arLangsFiles = $form->getRequestLangFiles();
$arIncLang = $form->getIncMessages();
$arRequestLang = $form->getRequestLang();
if (is_array($arRequestLang) && !empty($arRequestLang))
{
$form->prepareRequestLang();
$arError = $form->getError();
开发者ID:HotPiN,项目名称:bitrix.lang,代码行数:30,代码来源:public_lang_edit.php
示例16: substr
$res_log['path'] = substr($dirName, 1);
CEventLog::Log(
"content",
"MENU_EDIT",
"main",
"",
serialize($res_log)
);
}
}
return $arFound;
}
IncludeModuleLangFile(__FILE__);
$popupWindow = new CJSPopup(GetMessage("PAGE_DELETE_WINDOW_TITLE"), array("SUFFIX"=>($_GET['subdialog'] == 'Y'? 'subdialog':'')));
if (IsModuleInstalled("fileman"))
{
if (!$USER->CanDoOperation('fileman_admin_files'))
$popupWindow->ShowError(GetMessage("PAGE_DELETE_ACCESS_DENIED"));
}
$io = CBXVirtualIo::GetInstance();
//Page path
$path = "/";
if (isset($_REQUEST["path"]) && strlen($_REQUEST["path"]) > 0)
$path = $io->CombinePath("/", $_REQUEST["path"]);
//Lang
开发者ID:ASDAFF,项目名称:open_bx,代码行数:31,代码来源:file_delete.php
示例17: IncludeModuleLangFile
<?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)
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:bizproc_activity_settings.php
示例18: die
<?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";
if (!$USER->CanDoOperation('edit_php')) {
die(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
CUtil::JSPostUnescape();
$obJSPopup = new CJSPopup('', array('TITLE' => GetMessage("comp_prop_title"), 'ARGS' => 'path=' . urlencode(CUtil::addslashes($_GET["path"])) . '&template_id=' . urlencode(CUtil::addslashes($_GET["template_id"])) . '&lang=' . LANGUAGE_ID . '&src_path=' . urlencode(CUtil::addslashes($_GET["src_path"])) . '&src_line=' . intval($_GET["src_line"]) . '&action=save'));
$obJSPopup->ShowTitlebar();
$strWarning = "";
$arValues = array();
$arTemplate = false;
$aComponent = false;
$io = CBXVirtualIo::GetInstance();
if ($_SERVER["REQUEST_METHOD"] == "POST" && $_GET["action"] == "refresh") {
// parameters were changed by "ok" button
// we need to refresh the component description with new values
$arValues = $_POST;
} else {
// try to read parameters from script file
/* Try to open script containing the component call */
$src_path = $_GET["src_path"];
$src_line = intval($_GET["src_line"]);
if (!$src_path || $src_line <= 0) {
$strWarning .= GetMessage("comp_prop_err_param") . "<br>";
} else {
$abs_path = $src_path;
$f = $io->GetFile($abs_path);
$filesrc = $f->GetContents();
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:component_props.php
示例19: intval
case 'get_menu_settings':
$arUserOptions = CUserOptions::GetOption("socialnetwork", "~menu_" . $arParams["ENTITY_TYPE"] . "_" . $arParams["ENTITY_ID"], false, 0);
if (is_array($arUserOptions) && array_key_exists("MAX_ITEMS", $arUserOptions) && intval($arUserOptions["MAX_ITEMS"]) > 0) {
$MaxItems = intval($arUserOptions["MAX_ITEMS"]);
} else {
$MaxItems = $arParams["MAX_ITEMS"];
}
$strResult = '<input type="hidden" name="sm_action" value="update_menu" id="bx_sm_menusettings_action">';
$strResult .= '<table cellspacing="0" cellpadding="2">';
$strResult .= '<tr>';
$strResult .= '<td valign="top" align="right" width="50%">' . GetMessage("SONET_SM_MAX_ITEMS") . ':</td>';
$strResult .= '<td valign="top" width="50%"><input type="text" name="max_items" value="' . $MaxItems . '" size="30"></td>';
$strResult .= '</tr>';
$strResult .= '</table>';
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/interface/admin_lib.php';
$obJSPopup = new CJSPopup();
$obJSPopup->StartContent();
echo $strResult;
$obJSPopup->EndContent();
?>
<script type="text/javascript">
<?php
echo $obJSPopup->jsPopup;
?>
.SetButtons([
BX.CDialog.btnSave, BX.CDialog.btnCancel, {
title: '<?php
echo CUtil::JSEscape(GetMessage("SONET_SM_CLEAR"));
?>
',
id: 'resetbtn',
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:component.php
示例20: trim
<?php
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
if (defined('BX24_HOST_NAME')) {
die;
}
$dir = trim(preg_replace("'[\\\\/]+'", "/", dirname(__FILE__) . "/"));
__IncludeLang($dir . "lang/" . LANGUAGE_ID . "/disk_sections_tree.php");
CModule::IncludeModule("webdav");
$popupWindow = new CJSPopup('', '');
CUtil::InitJSCore(array('window', 'ajax'));
if (!function_exists("__UnEscape")) {
function __UnEscape(&$item, $key)
{
if (is_array($item)) {
array_walk($item, '__UnEscape');
} elseif (preg_match("/^.{1}/su", $item) == 1) {
$item = $GLOBALS["APPLICATION"]->ConvertCharset($item, "UTF-8", SITE_CHARSET);
}
}
}
function __WDGetSectionsTree($base, $active)
{
if (!function_exists("__sort_array_folder")) {
function __sort_array_folder($res1, $res2)
{
global $by, $order;
InitSorting();
if (empty($by)) {
$by = "NAME";
$order = "ASC";
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:disk_sections_tree.php
注:本文中的CJSPopup类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论