本文整理汇总了PHP中GetMessageJS函数的典型用法代码示例。如果您正苦于以下问题:PHP GetMessageJS函数的具体用法?PHP GetMessageJS怎么用?PHP GetMessageJS使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetMessageJS函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wdPrintAccessTab
function wdPrintAccessTab(array $arResult, $printButtons = true)
{
return '
<div class="bx-webdav-invite-access">
<form onsubmit="BX.PreventDefault();" action="' . $arResult['URL_TO_SHARE_FOLDER'] . '" name="webdav-invite-share" id="webdav-invite-share" method="POST">
<div class="bx-webdav-invite-access-title">' . GetMessage('DISK_FOLDER_LIST_INVITE_MODAL_TITLE_SHARING') . ' "' . $arResult['OBJECT']['NAME'] . '"</div>
<div class="bx-webdav-invite-cont">
<div class="bx-webdav-invite-whom">
<div class="bx-webdav-invite-whom-l">' . GetMessage('DISK_FOLDER_LIST_INVITE_MODAL_DESTINATION') . '</div>
<div id="feed-add-post-destination-container-post" class="bx-webdav-invite-whom-r">
<span id="feed-add-post-destination-item"></span>
<span class="feed-add-destination-input-box" id="feed-add-post-destination-input-box">
<input autocomplete="off" type="text" value="" class="feed-add-destination-inp" id="feed-add-post-destination-input"/>
</span>
<a href="#" class="feed-add-destination-link" id="bx-destination-tag">' . GetMessageJS("DISK_FOLDER_LIST_INVITE_MODAL_DESTINATION_1") . '</a>
</div>
</div>
<textarea name="invite_description" id="inviteDescription" class="bx-webdav-invite-textar" placeholder="' . GetMessage('DISK_FOLDER_LIST_INVITE_MODAL_PLACEHOLDER') . '"></textarea>
<div class="bx-webdav-invite-checkbox-wrap">
<input name="can_edit" type="checkbox" class="bx-webdav-invite-checkbox" id="canEdit" checked="checked"/><label for="canEdit" class="bx-webdav-invite-label">' . GetMessage('DISK_FOLDER_LIST_INVITE_MODAL_CAN_EDIT') . '</label>
</div>
</div>
' . ($printButtons ? wdPrintAccessTabButtons($arResult) : '') . '
</div>
';
}
示例2: MULChangeOnlineStatus
function MULChangeOnlineStatus($USER_ID = false, $HTML_ID = false)
{
static $arUserList, $arUserListID, $arUserListHTML_ID;
static $bNotFirstCall;
if (!$bNotFirstCall) {
$GLOBALS["APPLICATION"]->AddBufferContent("MULChangeOnlineStatus");
$bNotFirstCall = true;
}
if (intval($USER_ID) > 0) {
if (!$HTML_ID) {
$HTML_ID = "main_" . $USER_ID;
}
$arUserListID[] = $USER_ID;
$arUserListHTML_ID[] = "'" . $HTML_ID . "'";
$arUserList[] = array("USER_ID" => $USER_ID, "HTML_ID" => $HTML_ID);
} else {
$arUserListIDUnique = array_unique($arUserListID);
$strUserListID = implode("|", $arUserListIDUnique);
$rsUser = CUser::GetList($by = "id", $order = "desc", array("ID" => $strUserListID));
$arUserListOnlineHTML_ID = array();
while ($arUser = $rsUser->Fetch()) {
if (time() - intval(MakeTimeStamp($arUser["LAST_ACTIVITY_DATE"], "YYYY-MM-DD HH-MI-SS")) < 120) {
foreach ($arUserList as $arTmp) {
if ($arUser["ID"] == $arTmp["USER_ID"]) {
$arUserListOnlineHTML_ID[] = "'" . $arTmp["HTML_ID"] . "'";
}
}
}
}
return '<script type="text/javascript">
BX.ready(function() {
var arMULUserList = [' . implode(",", $arUserListHTML_ID) . '];
var arMULUserListOnline = [' . implode(",", $arUserListOnlineHTML_ID) . '];
for(var i=0; i<arMULUserList.length; i++)
{
var elOnline = document.getElementById(arMULUserList[i]);
if(elOnline)
{
if (BX.util.in_array(arMULUserList[i], arMULUserListOnline))
{
elOnline.className = "bx-user-info-online";
elOnline.title = "' . GetMessageJS("MAIN_UL_ONLINE") . '";
}
else
{
elOnline.className = "bx-user-info-offline";
elOnline.title = "";
}
}
}
});
</script>';
}
}
示例3: GetMessageJS
",
createBlankFileUrl: "<?php
echo CUtil::JSUrlEscape($arResult['CLOUD_DOCUMENT']['CREATE_BLANK_FILE_URL']);
?>
",
renameBlankFileUrl: "<?php
echo CUtil::JSUrlEscape($arResult['CLOUD_DOCUMENT']['RENAME_BLANK_FILE_URL']);
?>
",
<?php
}
?>
targetFolderId: "<?php
echo $arParams['FOLDER_ID'];
?>
"
});
BX.message({
'BX_FPD_LINK_1':'<?php
echo GetMessageJS("EC_DESTINATION_1");
?>
',
'BX_FPD_LINK_2':'<?php
echo GetMessageJS("EC_DESTINATION_2");
?>
'
});
});
</script>
示例4: array
}
}
if ($bContinue) {
continue;
}
}
$arReports[] = array("TEXT" => $rep_title, "ONCLICK" => "window.open('/bitrix/admin/sale_order_print_new.php?&ORDER_ID=" . $ID . "&doc=" . substr($file, 0, strlen($file) - 4) . "&" . bitrix_sessid_get() . "', '_blank');");
}
}
}
closedir($handle);
}
}
$aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_TO_PRINT"), "TITLE" => Loc::getMessage("SALE_OVIEW_TO_PRINT_TITLE"), "LINK" => "/bitrix/admin/sale_order_print.php?ID=" . $ID . "&lang=" . LANGUAGE_ID . GetFilterParams("filter_"), "MENU" => $arReports);
$aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_ORDER_COPY"), "TITLE" => Loc::getMessage("SALE_OVIEW_ORDER_COPY_TITLE"), "LINK" => '/bitrix/admin/sale_order_create.php?lang=' . LANGUAGE_ID . "&SITE_ID=" . $saleOrder->getSiteId() . "&ID=" . $ID . "&" . bitrix_sessid_get() . GetFilterParams("filter_"));
$aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_DELETE"), "TITLE" => Loc::getMessage("SALE_OVIEW_DELETE_TITLE"), "LINK" => "javascript:if(confirm('" . GetMessageJS("SALE_OVIEW_DEL_MESSAGE") . "')) window.location='sale_order.php?ID=" . $ID . "&action=delete&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get() . urlencode(GetFilterParams("filter_")) . "'", "WARNING" => "Y");
$context = new CAdminContextMenu($aMenu);
$context->Show();
//prepare blocks order
$defaultBlocksOrder = array("statusorder", "buyer", "delivery", "financeinfo", "payment", "additional", "basket");
$formId = "sale_order_view";
$orderBasket = new Admin\Blocks\OrderBasket($saleOrder, "BX.Sale.Admin.OrderBasketObj", "sale_order_basket", true, Admin\Blocks\OrderBasket::VIEW_MODE);
echo Admin\OrderEdit::getScripts($saleOrder, $formId);
echo Admin\Blocks\OrderInfo::getScripts();
echo Admin\Blocks\OrderBuyer::getScripts();
echo Admin\Blocks\OrderPayment::getScripts();
echo Admin\Blocks\OrderStatus::getScripts($saleOrder, $USER->GetID());
echo Admin\Blocks\OrderAdditional::getScripts();
echo Admin\Blocks\OrderFinanceInfo::getScripts();
echo Admin\Blocks\OrderShipment::getScripts();
echo Admin\Blocks\OrderAnalysis::getScripts();
示例5: GetMessageJS
<script type="text/javascript">
BX.ready(
function()
{
BX.CrmWidget.messages =
{
"legend" : "<?php
echo GetMessageJS("CRM_WGT_RATING_LEGEND");
?>
",
"nomineeRatingPosition" : "<?php
echo GetMessageJS("CRM_WGT_RATING_NOMINEE_POSITION");
?>
",
"ratingPosition" : "<?php
echo GetMessageJS("CRM_WGT_RATING_POSITION");
?>
"
};<?php
$width = 100;
if ($layout === '70/30') {
$width = 70;
} elseif ($layout === '50/50') {
$width = 50;
} elseif ($layout === '30/70') {
$width = 30;
}
$qty = count($settings);
for ($i = 0; $i < $qty; $i++) {
$setting = $settings[$i];
$id = "{$quid}_{$i}";
示例6: GetMessageJS
?>
',
SGMSubscribeButtonHintOn: '<?php
echo GetMessageJS("SONET_SGM_T_NOTIFY_HINT_ON");
?>
',
SGMSubscribeButtonHintOff: '<?php
echo GetMessageJS("SONET_SGM_T_NOTIFY_HINT_OFF");
?>
',
SGMSubscribeButtonTitleOn: '<?php
echo GetMessageJS("SONET_SGM_T_NOTIFY_TITLE_ON");
?>
',
SGMSubscribeButtonTitleOff: '<?php
echo GetMessageJS("SONET_SGM_T_NOTIFY_TITLE_OFF");
?>
'
});
</script><?php
CUtil::InitJSCore(array("ajax", "popup"));
$GLOBALS["APPLICATION"]->AddHeadScript("/bitrix/components/bitrix/socialnetwork.group_menu/templates/.default/script.js");
$GLOBALS["APPLICATION"]->SetAdditionalCSS("/bitrix/components/bitrix/socialnetwork.group_menu/templates/.default/style.css");
if (strpos(SITE_TEMPLATE_ID, "stretchy") === 0 || strpos(SITE_TEMPLATE_ID, "taby") === 0) {
$this->SetViewTarget("sidebar", 5);
?>
<style>
#sidebar { position: relative; }
#sidebar .content-title { padding-right: 23px; }
</style>
<a id="group_menu_subscribe_button" class="profile-menu-notify-btn<?php
示例7: GetMessageJS
echo CUtil::JSEscape($template);
?>
',
"JERROR_NO_MESSAGE" : '<?php
echo GetMessageJS("JERROR_NO_MESSAGE");
?>
',
"BLOG_C_HIDE" : '<?php
echo GetMessageJS("BLOG_C_HIDE");
?>
',
JQOUTE_AUTHOR_WRITES : '<?php
echo GetMessageJS("JQOUTE_AUTHOR_WRITES");
?>
',
FC_ERROR : '<?php
echo GetMessageJS("B_B_PC_COM_ERROR");
?>
'
<?php
if (IsModuleInstalled("socialnetwork")) {
?>
, "MPL_WORKGROUPS_PATH" : '<?php
echo CUtil::JSEscape(COption::GetOptionString("socialnetwork", "workgroups_page", SITE_DIR . "workgroups/", SITE_ID));
?>
'
<?php
}
?>
});
</script>
示例8: empty
',
extranetUser : <?php
echo $arParams["DESTINATION"]["EXTRANET_USER"] == 'Y' ? 'true' : 'false';
?>
,
initDestination : <?php
echo $arParams["DESTINATION_SHOW"] == "Y" ? "true" : "false";
?>
,
items : {
users : <?php
echo empty($arParams["DESTINATION"]['USERS']) ? '{}' : CUtil::PhpToJSObject($arParams["DESTINATION"]['USERS']);
?>
,
groups : <?php
echo $arParams["DESTINATION"]["EXTRANET_USER"] == 'Y' || array_key_exists("DENY_TOALL", $arParams["DESTINATION"]) && $arParams["DESTINATION"]["DENY_TOALL"] ? '{}' : "{'UA' : {'id':'UA','name': '" . (!empty($arParams["DESTINATION"]['DEPARTMENT']) ? GetMessageJS("MPF_DESTINATION_3") : GetMessageJS("MPF_DESTINATION_4")) . "'}}";
?>
,
sonetgroups : <?php
echo empty($arParams["DESTINATION"]['SONETGROUPS']) ? '{}' : CUtil::PhpToJSObject($arParams["DESTINATION"]['SONETGROUPS']);
?>
,
department : <?php
echo empty($arParams["DESTINATION"]['DEPARTMENT']) ? '{}' : CUtil::PhpToJSObject($arParams["DESTINATION"]['DEPARTMENT']);
?>
,
departmentRelation : <?php
echo empty($arParams["DESTINATION"]['DEPARTMENT_RELATION']) ? "false" : CUtil::PhpToJSObject($arParams["DESTINATION"]['DEPARTMENT_RELATION']);
?>
,
contacts : <?php
示例9: intval
?>
" <?php
?>
class="<?php
echo $className;
echo $isActive ? " " . $className . "-active" : "";
?>
" style="white-space:nowrap;"><?php
echo $arPresetFilter["NAME"];
?>
<sup id="sonet_log_counter_preset"><?php
echo intval($arResult["LOG_COUNTER"]) > 0 ? $arResult["LOG_COUNTER"] : "";
?>
</sup><?php
?>
</a><?php
$cnt++;
}
}
}
?>
</span><?php
?>
<span class="crm-feed-filter-btn" id="lenta-sort-button" onclick="return showLentaMenuBody(this);"><?php
echo $buttonName !== false ? $buttonName : "";
echo $isFiltered ? $buttonName ? " (" . GetMessageJS("SONET_C30_T_FILTER_TITLE") . ")" : GetMessageJS("SONET_C30_T_FILTER_TITLE") : "";
?>
</span><?php
?>
</span><?php
}
示例10: GetMessageJS
?>
',
"MPL_IS_EXTRANET_SITE": '<?php
echo CModule::IncludeModule("extranet") && CExtranet::IsExtranetSite() ? 'Y' : 'N';
?>
',
JQOUTE_AUTHOR_WRITES : '<?php
echo GetMessageJS("JQOUTE_AUTHOR_WRITES");
?>
',
FC_ERROR : '<?php
echo GetMessageJS("B_B_PC_COM_ERROR");
?>
',
MPL_SAFE_EDIT : '<?php
echo GetMessageJS('MPL_SAFE_EDIT');
?>
'
<?
if (IsModuleInstalled("socialnetwork"))
{
?>
, "MPL_WORKGROUPS_PATH" : '<?php
echo CUtil::JSEscape(COption::GetOptionString("socialnetwork", "workgroups_page", SITE_DIR . "workgroups/", SITE_ID));
?>
'
<?
}
?>
});
</script>
示例11: GetMessage
if ($STAT_RIGHT < "W") {
echo "disabled";
}
?>
name="cleanup" value="<?php
echo GetMessage("STAT_OPT_OPTIMIZE_BUTTON");
?>
" OnClick="javascript: OptimizeSubmit();"><input type="hidden" name="optimize" value="Y"><input type="hidden" name="lang" value="<?php
echo LANGUAGE_ID;
?>
">
<SCRIPT LANGUAGE="JavaScript">
function OptimizeSubmit()
{
if(confirm('<?php
echo GetMessageJS("STAT_OPT_OPTIMIZE_CONFIRMATION");
?>
')) document.optimizeform.submit();
}
</SCRIPT>
</td>
</tr>
<?php
$tabControl2->EndTab();
?>
<?php
if (strlen($_REQUEST["back_url_settings"]) > 0) {
?>
<input type="hidden" name="back_url_settings" value="<?php
echo htmlspecialcharsbx($_REQUEST["back_url_settings"]);
?>
示例12: GetMessageJS
?>
',
sonetLCounterType: '<?php
echo CUtil::JSEscape($arResult["COUNTER_TYPE"]);
?>
',
sonetLIsB24: '<?php
echo SITE_TEMPLATE_ID == "bitrix24" ? "Y" : "N";
?>
',
sonetRatingType : '<?php
echo CUtil::JSEscape($arParams["RATING_TYPE"]);
?>
',
sonetLErrorSessid : '<?php
echo GetMessageJS("SONET_ERROR_SESSION");
?>
',
sonetLIsCRM : '<?php
echo CUtil::JSEscape($arParams["IS_CRM"]);
?>
',
sonetLCanDelete : '<?php
echo $arResult["CAN_DELETE"] ? 'Y' : 'N';
?>
',
sonetLForumID : <?php
echo intval($arParams["FORUM_ID"]);
?>
,
sonetLFirstPageLastTS : <?php
示例13: GetMessageJS
?>
');
jsSelectUtils.addNewOption(activeCheckbox, '300', '<?php
echo GetMessageJS("PERFMON_OPT_INTERVAL_300_SEC");
?>
');
jsSelectUtils.addNewOption(activeCheckbox, '600', '<?php
echo GetMessageJS("PERFMON_OPT_INTERVAL_600_SEC");
?>
');
jsSelectUtils.addNewOption(activeCheckbox, '1800', '<?php
echo GetMessageJS("PERFMON_OPT_INTERVAL_1800_SEC");
?>
');
jsSelectUtils.addNewOption(activeCheckbox, '3600', '<?php
echo GetMessageJS("PERFMON_OPT_INTERVAL_3600_SEC");
?>
');
}
}
}
BX.ready(function(){
BX.bind(BX('slow_sql_log'), 'click', slow_sql_log_check);
slow_sql_log_check();
});
</script>
<?php
if (!empty($arNotes)) {
echo BeginNote();
foreach ($arNotes as $i => $str) {
?>
示例14: editBarCode
arTrBarCode[i].style.display = "table-row";
}
}
}
}
function editBarCode()
{
var obEditBarCode = BX('CAT_BARCODE_EDIT_Y');
var obBarCode = BX('CAT_BARCODE');
if (!bReadOnly && !!obEditBarCode && !!obBarCode)
{
if (obEditBarCode.checked)
{
if (confirm('<?php
echo GetMessageJS("CAT_BARCODE_EDIT_CONFIRM");
?>
'))
{
obBarCode.disabled = false;
}
else
{
obEditBarCode.checked = false;
obBarCode.disabled = true;
}
}
else
{
obBarCode.disabled = true;
}
示例15: BX
window.location = BX('popup-params-product').value;
}
else
{
var res = eval( '('+BX('popup-params-product').value+')' );
fAddToBasketMoreProduct(res['type'], res['id']);
}
wind.close();
}
}
}
}),
new BX.PopupWindowButton({
text : '<?php
echo GetMessageJS('NEWO_POPUP_CLOSE');
?>
',
id : "popup_sku_cancel",
events : {
click : function() {
wind.close();
}
}
})
]
});
function fAddToBasketMoreProductSku(arSKU, arProperties, type, message)
{
BX.message(message);