本文整理汇总了PHP中CUtil::JSEScape方法的典型用法代码示例。如果您正苦于以下问题:PHP CUtil::JSEScape方法的具体用法?PHP CUtil::JSEScape怎么用?PHP CUtil::JSEScape使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUtil
的用法示例。
在下文中一共展示了CUtil::JSEScape方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: if
?>
<td><div class="bx-separator"></div></td>
<?php
}
?>
<td><a href="javascript:void(0);" onclick="var el; if(bxGrid_<?php
echo $arParams["GRID_ID"];
?>
.IsActionEnabled() && confirm(((el=document.getElementById('actallrows_<?php
echo $arParams["GRID_ID"];
?>
')) && el.checked? '<?php
echo CUtil::JSEScape(GetMessage("interface_grid_delete"));
?>
':'<?php
echo CUtil::JSEScape(GetMessage("interface_grid_delete_checked"));
?>
'))) bxGrid_<?php
echo $arParams["GRID_ID"];
?>
.ActionDelete();" title="<?php
echo GetMessage("interface_grid_delete_title");
?>
" class="context-button icon action-delete-button-dis" id="delete_button_<?php
echo $arParams["GRID_ID"];
?>
"></a></td>
<?php
$bNeedSep = true;
}
$bShowApply = false;
示例2: function
BX.showWait();
var keywords = '<?php
echo CUtil::JSEscape(implode(', ', $arInnerKeywords));
?>
';
BX.ajax({
url: '/bitrix/tools/seo_page_parser.php?lang=<?php
echo LANGUAGE_ID;
?>
&first=Y&site=<?php
echo $site;
?>
&url=<?php
echo CUtil::JSEScape(urlencode($back_url));
?>
&callback=set_stats&sessid=' + BX.bitrix_sessid(),
data: 'keywords=' + BX.util.urlencode(keywords),
method: 'POST',
dataType: 'script',
emulateOnload: false
});
}
window.BXSetStats = function(data, stats, errors, extended)
{
BXUpdateKeywordsStats(data);
BXUpdatePageStats(stats);
BXUpdatePageErrors(errors);
示例3: function
}
window.BXCallPageStats = function()
{
BX.showWait();
var keywords = '<?echo CUtil::JSEscape(implode(', ', $arInnerKeywords));?>';
BX.ajax({
url: '/freetrix/tools/seo_page_parser.php?lang=<?php
echo LANGUAGE_ID;
?>
&first=Y&site=<?php
echo $site;
?>
&url=<?echo CUtil::JSEScape(urlencode($back_url))?>&callback=set_stats&sessid=' + BX.freetrix_sessid(),
data: 'keywords=' + BX.util.urlencode(keywords),
method: 'POST',
dataType: 'script',
emulateOnload: false
});
}
window.BXSetStats = function(data, stats, errors, extended)
{
BXUpdateKeywordsStats(data);
BXUpdatePageStats(stats);
BXUpdatePageErrors(errors);
BXUpdatePageExtendedData(extended);
示例4: Option
a = BX.util.array_values(window.arMembersList);
}
var copy_value = {};
for (i=0; i < copy.options.length; i++)
{
if (copy.options[i].selected)
copy_value[copy.options[i].value] = true;
}
while (copy.options.length > 0)
copy.remove(0);
copy.options.add(new Option('<?php
echo CUtil::JSEScape(GetMessage('ME_AGENDA_NO_RESPONSIBLE'));
?>
', 0))
for(var i = 0; i<a.length;i++)
{
var o = new Option(a[i].name, a[i].id);
o.selected = !!copy_value[a[i].id];
copy.options.add(o)
}
}
}
<?php
if ($arResult['CAN_EDIT']) {
?>
function editRow(row, bSkipFocus)
示例5: BXDeleteMeeting
</div>
</div>
</div>
<i class="r0"></i>
<i class="r1"></i>
<i class="r2"></i>
</div>
<?php
$this->EndViewTarget();
?>
<script type="text/javascript">
function BXDeleteMeeting(id)
{
BX.PopupMenu.currentItem.popupWindow.close();
if (confirm('<?php
echo CUtil::JSEScape(GetMessage('ME_DELETE_CONFIRM'));
?>
'))
{
var row = BX('meeting_row_' + id);
BX.showWait(row)
BX.ajax.get('<?php
echo CUtil::JSEscape($arParams['MEETING_URL']);
?>
?DELETE=Y&<?php
echo bitrix_sessid_get();
?>
'.replace('#MEETING_ID#', id), function()
{
BX.closeWait(row);
row.parentNode.removeChild(row);
示例6: encodeURIComponent
&url=<?echo CUtil::JSEScape(urlencode($back_url))?>&callback=' + jsUtils.urlencode(callback_name) + '&keywords=' + encodeURIComponent(keywords));
}
window.BXCallPageStats = function()
{
ShowWaitWindow();
var keywords = '<?echo CUtil::JSEscape(implode(', ', array_merge($arInnerKeywords['local'], $arInnerKeywords['section'])));?>';
jsUtils.loadJSFile('/freetrix/tools/seo_page_parser.php?lang=<?php
echo LANGUAGE_ID;
?>
&first=Y&site=<?php
echo $site;
?>
&url=<?echo CUtil::JSEScape(urlencode($back_url))?>&callback=window.BXSetStats&keywords=' + encodeURIComponent(keywords));
}
window.BXSetStats = function(data, stats, errors, extended)
{
var data_local = [], data_section = [];
for (var i = 0; i < data.length; i++)
{
if (i < <?echo count($arInnerKeywords['local'])?>)
data_local[data_local.length] = data[i];
else
data_section[data_section.length] = data[i];
}
BXUpdateKeywordsStats('local', data_local);
BXUpdateKeywordsStats('section', data_section);