本文整理汇总了PHP中PMA_printJsValue函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_printJsValue函数的具体用法?PHP PMA_printJsValue怎么用?PHP PMA_printJsValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PMA_printJsValue函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PMA_printJsValue
}
$response = Response::getInstance();
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('config.js');
require 'libraries/user_preferences.inc.php';
if ($error) {
if (!$error instanceof Message) {
$error = Message::error($error);
}
$error->display();
}
?>
<script type="text/javascript">
<?php
PMA_printJsValue("PMA_messages['strSavedOn']", __('Saved on: @DATE@'));
?>
</script>
<div id="maincontainer">
<div id="main_pane_left">
<div class="group">
<?php
echo '<h2>', __('Import'), '</h2>', '<form class="group-cnt prefs-form disableAjax" name="prefs_import"', ' action="prefs_manage.php" method="post" enctype="multipart/form-data">', Util::generateHiddenMaxFileSize($GLOBALS['max_upload_size']), PMA_URL_getHiddenInputs(), '<input type="hidden" name="json" value="" />', '<input type="radio" id="import_text_file" name="import_type"', ' value="text_file" checked="checked" />', '<label for="import_text_file">' . __('Import from file') . '</label>', '<div id="opts_import_text_file" class="prefsmanage_opts">', '<label for="input_import_file">', __('Browse your computer:'), '</label>', '<input type="file" name="import_file" id="input_import_file" />', '</div>', '<input type="radio" id="import_local_storage" name="import_type"', ' value="local_storage" disabled="disabled" />', '<label for="import_local_storage">', __('Import from browser\'s storage'), '</label>', '<div id="opts_import_local_storage" class="prefsmanage_opts disabled">', '<div class="localStorage-supported">', __('Settings will be imported from your browser\'s local storage.'), '<br />', '<div class="localStorage-exists">', __('Saved on: @DATE@'), '</div>', '<div class="localStorage-empty">';
Message::notice(__('You have no saved settings!'))->display();
echo '</div>', '</div>', '<div class="localStorage-unsupported">';
Message::notice(__('This feature is not supported by your web browser'))->display();
echo '</div>', '</div>', '<input type="checkbox" id="import_merge" name="import_merge" />', '<label for="import_merge">', __('Merge with current configuration') . '</label>', '<br /><br />', '<input type="submit" name="submit_import" value="', __('Go') . '" />', '</form>', '</div>';
if (file_exists('setup/index.php')) {
// show only if setup script is available, allows to disable this message
// by simply removing setup directory
?>
示例2: PMA_printJsValue
/* l10n: Display text for previous month link in calendar */
PMA_printJsValue("\$.datepicker.regional['']['prevText']", _pgettext('Previous month', 'Prev'));
/* l10n: Display text for next month link in calendar */
PMA_printJsValue("\$.datepicker.regional['']['nextText']", _pgettext('Next month', 'Next'));
/* l10n: Display text for current month link in calendar */
PMA_printJsValue("\$.datepicker.regional['']['currentText']", __('Today'));
PMA_printJsValue("\$.datepicker.regional['']['monthNames']", array(__('January'), __('February'), __('March'), __('April'), __('May'), __('June'), __('July'), __('August'), __('September'), __('October'), __('November'), __('December')));
PMA_printJsValue("\$.datepicker.regional['']['monthNamesShort']", array(__('Jan'), __('Feb'), __('Mar'), __('Apr'), _pgettext('Short month name', 'May'), __('Jun'), __('Jul'), __('Aug'), __('Sep'), __('Oct'), __('Nov'), __('Dec')));
PMA_printJsValue("\$.datepicker.regional['']['dayNames']", array(__('Sunday'), __('Monday'), __('Tuesday'), __('Wednesday'), __('Thursday'), __('Friday'), __('Saturday')));
PMA_printJsValue("\$.datepicker.regional['']['dayNamesShort']", array(__('Sun'), __('Mon'), __('Tue'), __('Wed'), __('Thu'), __('Fri'), __('Sat')));
PMA_printJsValue("\$.datepicker.regional['']['dayNamesMin']", array(__('Su'), __('Mo'), __('Tu'), __('We'), __('Th'), __('Fr'), __('Sa')));
/* l10n: Column header for week of the year in calendar */
PMA_printJsValue("\$.datepicker.regional['']['weekHeader']", __('Wk'));
PMA_printJsValue("\$.datepicker.regional['']['showMonthAfterYear']", __('calendar-month-year') == 'calendar-year-month');
/* l10n: Year suffix for calendar, "none" is empty. */
$year_suffix = _pgettext('Year suffix', 'none');
PMA_printJsValue("\$.datepicker.regional['']['yearSuffix']", $year_suffix == 'none' ? '' : $year_suffix);
?>
$.extend($.datepicker._defaults, $.datepicker.regional['']);
} /* if ($.datepicker) */
<?php
echo "if (\$.timepicker) {\n";
PMA_printJsValue("\$.timepicker.regional['']['timeText']", __('Time'));
PMA_printJsValue("\$.timepicker.regional['']['hourText']", __('Hour'));
PMA_printJsValue("\$.timepicker.regional['']['minuteText']", __('Minute'));
PMA_printJsValue("\$.timepicker.regional['']['secondText']", __('Second'));
?>
$.extend($.timepicker._defaults, $.timepicker.regional['']);
} /* if ($.timepicker) */