本文整理匯總了PHP中func::escapeJSInAttribute方法的典型用法代碼示例。如果您正苦於以下問題:PHP func::escapeJSInAttribute方法的具體用法?PHP func::escapeJSInAttribute怎麽用?PHP func::escapeJSInAttribute使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類func
的用法示例。
在下文中一共展示了func::escapeJSInAttribute方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: count
$paging = Func::makePaging($page, $pageCount, count($plugins));
?>
<script type="text/javascript">
var pluginTing = [];
<?php
foreach ($plugins as $plugin) {
echo "\t\tpluginTing['{$plugin['name']}'] = [];\n";
echo "\t\tpluginTing['{$plugin['name']}']['title'] = '".func::escapeJSInAttribute($plugin['title'])."';\n";
echo "\t\tpluginTing['{$plugin['name']}']['config'] = '{$plugin['config']}';\n";
foreach ($plugin['ting'] as $ting) {
echo "\t\tpluginTing['{$plugin['name']}']['{$ting['event']}'] = [];\n";
echo "\t\tpluginTing['{$plugin['name']}']['{$ting['event']}']['type'] = '{$ting['type']}';\n";
echo "\t\tpluginTing['{$plugin['name']}']['{$ting['event']}']['text'] = '".func::escapeJSInAttribute($ting['text'])."';\n";
}
}
?>
function showPluginConfig(pluginName, type, height) {
if (($('#pluginStatus'+pluginName).val() == 'off') && type =='config')
return false;
if($("#pluginDetail" + pluginName).length==0) {
$("#pluginConfigView" + pluginName + " td").append($("<div>").attr('id', 'pluginDetail' + pluginName).css ( {
"width":"100%",
"height":height+"px"
} )).addClass('pluginDetail');
$('<iframe frameborder="0" scrolling="no">').attr('id', 'pluginDetailFrame' + pluginName).css( {
"width":"100%",