本文整理汇总了PHP中osc_current_admin_theme_js_url函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_current_admin_theme_js_url函数的具体用法?PHP osc_current_admin_theme_js_url怎么用?PHP osc_current_admin_theme_js_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_current_admin_theme_js_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: customHead
function customHead()
{
echo '<script type="text/javascript" src="' . osc_current_admin_theme_js_url('jquery.validate.min.js') . '"></script>';
?>
<script type="text/javascript">
$(document).ready(function() {
$("#dialog-widget-delete").dialog({
autoOpen: false,
modal: true,
title: '<?php
echo osc_esc_js(__('Delete widget'));
?>
'
});
});
// dialog delete function
function delete_dialog(widget_id) {
$("#dialog-widget-delete input[name='id']").attr('value', widget_id);
$("#dialog-widget-delete").dialog('open');
return false;
}
</script>
<?php
}
示例2: customHead
function customHead()
{
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.treeview.js');
?>
"></script>
<script type="text/javascript">
// check all the categories
function checkAll(id, check) {
aa = $('#' + id + ' input[type=checkbox]').each(function() {
$(this).attr('checked', check) ;
}) ;
}
function checkCat(id, check) {
aa = $('#cat' + id + ' input[type=checkbox]').each(function() {
$(this).attr('checked', check) ;
}) ;
}
$(document).ready(function(){
$("#plugin_tree").treeview({
animated: "fast",
collapsed: true
});
});
</script>
<?php
}
示例3: customHead
function customHead()
{
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('tiny_mce/tiny_mce.js');
?>
"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
skin: "cirkuit",
width: "100%",
height: "340px",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_align : "left",
theme_advanced_toolbar_location : "top",
plugins : "color",
entity_encoding : "raw",
theme_advanced_buttons1_add : "forecolorpicker,fontsizeselect",
theme_advanced_disable : "styleselect,anchor,image"
});
</script>
<?php
}
示例4: customHead
function customHead()
{
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.validate.min.js');
?>
"></script>
<script type="text/javascript">
$(document).ready(function(){
// Code for form validation
$("form[name=currency_form]").validate({
rules: {
pk_c_code: {
required: true,
minlength: 3,
maxlength: 3
},
s_name: {
required: true,
minlength: 1
}
},
messages: {
pk_c_code: {
required: '<?php
echo osc_esc_js(__('Currency code: this field is required'));
?>
.',
minlength: '<?php
echo osc_esc_js(__('Currency code: this field is required'));
?>
.',
maxlength: '<?php
echo osc_esc_js(__('Currency code: this field is required'));
?>
.'
},
s_name: {
required: '<?php
echo osc_esc_js(__('Name: this field is required'));
?>
.',
minlength: '<?php
echo osc_esc_js(__('Name: this field is required'));
?>
.'
}
},
wrapper: "li",
errorLabelContainer: "#error_list",
invalidHandler: function(form, validator) {
$('html,body').animate({ scrollTop: $('h1').offset().top }, { duration: 250, easing: 'swing'});
}
});
});
</script>
<?php
}
示例5: customHead
function customHead()
{
echo '<script type="text/javascript" src="' . osc_current_admin_theme_js_url('jquery.validate.min.js') . '"></script>';
?>
<script type="text/javascript">
$(document).ready(function(){
// Code for form validation
$.validator.addMethod('customrule', function(value, element) {
if($('input:radio[name=purge_searches]:checked').val()=='custom') {
if($("#custom_queries").val()=='') {
return false;
}
}
return true;
});
$("form[name=searches_form]").validate({
rules: {
custom_queries: {
digits: true,
customrule: true
}
},
messages: {
custom_queries: {
digits: '<?php
echo osc_esc_js(__('Custom number: this field must only contain numeric characters'));
?>
.',
customrule: '<?php
echo osc_esc_js(__('Custom number: this field cannot be left empty'));
?>
.'
}
},
wrapper: "li",
errorLabelContainer: "#error_list",
invalidHandler: function(form, validator) {
$('html,body').animate({ scrollTop: $('h1').offset().top }, { duration: 250, easing: 'swing'});
}
});
}) ;
</script>
<?php
}
示例6: customHead
function customHead()
{
$info = __get("info");
$widget = __get("widget");
if (Params::getParam('action') == 'edit_widget') {
$title = __('Edit widget');
$edit = true;
$button = osc_esc_html(__('Save changes'));
} else {
$title = __('Add widget');
$edit = false;
$button = osc_esc_html(__('Add widget'));
}
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('tiny_mce/tiny_mce.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.validate.min.js');
?>
"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
skin: "cirkuit",
width: "500px",
height: "340px",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_align : "left",
theme_advanced_toolbar_location : "top",
plugins : "media",
entity_encoding : "raw",
theme_advanced_buttons1_add : "media",
theme_advanced_disable : "styleselect",
extended_valid_elements : "script[type|src|charset|defer]"
});
</script>
<script type="text/javascript">
$(document).ready(function(){
// Code for form validation
$("form[name=widget_form]").validate({
rules: {
description: {
required: true
}
},
messages: {
description: {
required: '<?php
echo osc_esc_js(__("Description: this field is required"));
?>
.'
}
},
errorLabelContainer: "#error_list",
wrapper: "li",
invalidHandler: function(form, validator) {
$('html,body').animate({ scrollTop: $('h1').offset().top }, { duration: 250, easing: 'swing'});
}
});
});
</script>
<?php
}
示例7: osc_current_admin_locale
" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-language" content="<?php
echo osc_current_admin_locale();
?>
" />
<script src="<?php
echo osc_current_admin_theme_js_url('jquery.min.js');
?>
"></script>
<script src="<?php
echo osc_current_admin_theme_js_url('jquery-ui-1.8.20.min.js');
?>
"></script>
<script src="<?php
echo osc_current_admin_theme_js_url('ui-osc.js');
?>
"></script>
<!-- styles
================================================== -->
<link href="<?php
echo osc_current_admin_theme_styles_url('jquery-ui/jquery-ui-1.8.20.custom.css');
?>
" rel="stylesheet">
<link href="<?php
echo osc_current_admin_theme_styles_url('main.css');
?>
" rel="stylesheet">
<!-- favicons
================================================== -->
示例8: customHead
function customHead()
{
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.validate.min.js');
?>
"></script>
<script type="text/javascript">
document.write('<style type="text/css"> .tabber{ display:none; } </style>') ;
$(document).ready(function(){
$("#userId").bind('change', function() {
if($(this).val() == '') {
$("#contact_info").show() ;
} else {
$("#contact_info").hide() ;
}
}) ;
if( $("#userId").val() == '') {
$("#contact_info").show() ;
} else {
$("#contact_info").hide() ;
}
<?php
if (osc_locale_thousands_sep() != '' || osc_locale_dec_point() != '') {
?>
$("#price").blur(function(event) {
var price = $("#price").attr("value");
<?php
if (osc_locale_thousands_sep() != '') {
?>
while(price.indexOf('<?php
echo osc_esc_js(osc_locale_thousands_sep());
?>
')!=-1) {
price = price.replace('<?php
echo osc_esc_js(osc_locale_thousands_sep());
?>
', '');
}
<?php
}
?>
<?php
if (osc_locale_dec_point() != '') {
?>
var tmp = price.split('<?php
echo osc_esc_js(osc_locale_dec_point());
?>
');
if(tmp.length>2) {
price = tmp[0]+'<?php
echo osc_esc_js(osc_locale_dec_point());
?>
'+tmp[1];
}
<?php
}
?>
$("#price").attr("value", price);
});
<?php
}
?>
});
</script>
<?php
ItemForm::location_javascript_new('admin');
?>
<?php
if (osc_images_enabled_at_items()) {
ItemForm::photos_javascript();
}
?>
<?php
}
示例9: customHead
function customHead()
{
?>
<script type="text/javascript">
$(document).ready(function(){
// dialog delete
$("#dialog-location-delete").dialog({
autoOpen: false,
modal: true,
title: '<?php
echo osc_esc_js(__('Delete location'));
?>
'
});
});
var base_url = '<?php
echo osc_admin_base_url();
?>
';
var s_close = '<?php
echo osc_esc_js(_e('Close'));
?>
';
var s_view_more = '<?php
echo osc_esc_js(_e('View more'));
?>
';
var addText = '<?php
echo osc_esc_js(_e('Add'));
?>
';
var cancelText = '<?php
echo osc_esc_js(_e('Cancel'));
?>
';
var editText = '<?php
echo osc_esc_js(_e('Edit'));
?>
';
var editNewCountryText = '<?php
echo osc_esc_js(__('Edit country'));
?>
';
var addNewCountryText = '<?php
echo osc_esc_js(__('Add new country'));
?>
';
var editNewRegionText = '<?php
echo osc_esc_js(__('Edit region'));
?>
';
var addNewRegionText = '<?php
echo osc_esc_js(__('Add new region'));
?>
';
var editNewCityText = '<?php
echo osc_esc_js(__('Edit city'));
?>
';
var addNewCityText = '<?php
echo osc_esc_js(__('Add new city'));
?>
';
// dialog delete function
function delete_dialog(item_id, item_type) {
$("#dialog-location-delete input[name='type']").attr('value', item_type);
$("#dialog-location-delete input[name='id']").attr('value', item_id);
$("#dialog-location-delete").dialog('open');
return false;
}
</script>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('location.js');
?>
"></script>
<?php
}
示例10: _e
_e('Hide filters');
?>
') ;
$(this).attr('data-showed', 'true') ;
}
$('.items-filters').toggle() ;
}) ;
}) ;
</script>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('datatables.post_init.js');
?>
"></script>
<!-- /datatables js -->
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.validate.min.js');
?>
"></script>
<?php
ItemForm::location_javascript_new('admin');
?>
<script type="text/javascript">
// autocomplete users
$(document).ready(function(){
$('#user').attr( "autocomplete", "off" );
$('#user').live('keyup.autocomplete', function(){
$('#userId').val('');
$( this ).autocomplete({
source: "<?php
echo osc_admin_base_url(true);
?>
示例11: define
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
define('ABS_PATH', str_replace('\\', '/', dirname(dirname($_SERVER['SCRIPT_FILENAME'])) . '/'));
define('OC_ADMIN', true);
require_once ABS_PATH . 'oc-load.php';
if (file_exists(ABS_PATH . '.maintenance')) {
define('__OSC_MAINTENANCE__', true);
}
// register admin scripts
osc_register_script('admin-osc', osc_current_admin_theme_js_url('osc.js'), 'jquery');
osc_register_script('admin-ui-osc', osc_current_admin_theme_js_url('ui-osc.js'), 'jquery');
osc_register_script('admin-location', osc_current_admin_theme_js_url('location.js'), 'jquery');
// enqueue scripts
osc_enqueue_script('jquery');
osc_enqueue_script('jquery-ui');
osc_enqueue_script('admin-osc');
osc_enqueue_script('admin-ui-osc');
osc_add_hook('admin_footer', array('FieldForm', 'i18n_datePicker'));
// enqueue css styles
osc_enqueue_style('jquery-ui', osc_assets_url('css/jquery-ui/jquery-ui.css'));
osc_enqueue_style('admin-css', osc_current_admin_theme_styles_url('main.css'));
switch (Params::getParam('page')) {
case 'items':
require_once osc_admin_base_path() . 'items.php';
$do = new CAdminItems();
$do->doModel();
break;
示例12: osc_current_admin_theme_js_url
?>
"></script>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('tabber-minimized.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('tiny_mce/tiny_mce.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.validate.min.js');
?>
"></script>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.dataTables.min.js');
?>
"></script>
<script type="text/javascript">
$(function() {
$("#menu").accordion({
active: false,
collapsible: true,
navigation: true,
autoHeight: false,
icons: { 'header': 'ui-icon-plus', 'headerSelected': 'ui-icon-minus' }
});
if (jQuery.browser.msie && jQuery.browser.version.substr(0,1)<7) {
jQuery('#accordion *').css('zoom', '1');
示例13: osc_esc_js
?>
';
var editNewCityText = '<?php
echo osc_esc_js(__('Edit city'));
?>
';
var addNewCityText = '<?php
echo osc_esc_js(__('Add new city'));
?>
';
</script>
<?php
osc_current_admin_theme_path('head.php');
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('location.js');
?>
"></script>
</head>
<body>
<?php
osc_current_admin_theme_path('header.php');
?>
<!-- container -->
<div id="content">
<?php
osc_current_admin_theme_path('include/backoffice_menu.php');
?>
<!-- right container -->
<div class="right">
示例14: osc_current_admin_theme_path
?>
">
<head>
<?php
osc_current_admin_theme_path('head.php');
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.validate.min.js');
?>
"></script>
<link rel="stylesheet" media="screen" type="text/css" href="<?php
echo osc_current_admin_theme_js_url('colorpicker/css/colorpicker.css');
?>
" />
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('colorpicker/js/colorpicker.js');
?>
"></script>
<script type="text/javascript">
$(document).ready(function(){
// Code for form validation
$.validator.addMethod('regexp', function(value, element, param) {
return this.optional(element) || value.match(param);
},
'<?php
echo osc_esc_js(__('Size is not in the correct format'));
?>
');
$("form[name=media_form]").validate({
rules: {
示例15: customHead
function customHead()
{
echo '<script type="text/javascript" src="' . osc_current_admin_theme_js_url('jquery.validate.min.js') . '"></script>';
?>
<script type="text/javascript">
$(document).ready(function(){
// Code for form validation
$("form[name=comments_form]").validate({
rules: {
num_moderate_comments: {
required: true,
digits: true
},
comments_per_page: {
required: true,
digits: true
}
},
messages: {
num_moderate_comments: {
required: '<?php
echo osc_esc_js(__("Moderated comments: this field is required"));
?>
.',
digits: '<?php
echo osc_esc_js(__("Moderated comments: this field must only contain numeric characters"));
?>
.'
},
comments_per_page: {
required: '<?php
echo osc_esc_js(__("Comments per page: this field is required"));
?>
.',
digits: '<?php
echo osc_esc_js(__("Comments per page: this field must only contain numeric characters"));
?>
.'
}
},
wrapper: "li",
errorLabelContainer: "#error_list",
invalidHandler: function(form, validator) {
$('html,body').animate({ scrollTop: $('h1').offset().top }, { duration: 250, easing: 'swing'});
}
});
if( !$('input[name="moderate_comments"]').is(':checked') ) {
$('.comments_approved').css('display', 'none') ;
}
$('input[name="moderate_comments"]').bind('change', function() {
if( $(this).is(':checked') ) {
$('.comments_approved').css('display', '') ;
} else {
$('.comments_approved').css('display', 'none') ;
}
}) ;
}) ;
</script>
<?php
}