• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP osc_current_admin_theme_js_url函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 
}
开发者ID:semul,项目名称:Osclass,代码行数:26,代码来源:widgets.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 
}
开发者ID:semul,项目名称:Osclass,代码行数:30,代码来源:configuration.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 
}
开发者ID:semul,项目名称:Osclass,代码行数:25,代码来源:frm.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 
}
开发者ID:semul,项目名称:Osclass,代码行数:58,代码来源:currency_form.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 
}
开发者ID:semul,项目名称:Osclass,代码行数:46,代码来源:searches.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 
}
开发者ID:semul,项目名称:Osclass,代码行数:66,代码来源:add_widget.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
        ================================================== -->
开发者ID:semul,项目名称:Osclass,代码行数:31,代码来源:header.php


示例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 
}
开发者ID:ranjithinnergys,项目名称:OSClass,代码行数:77,代码来源:frm.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 
}
开发者ID:semul,项目名称:Osclass,代码行数:79,代码来源:locations.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);
?>
开发者ID:randomecho,项目名称:OSClass,代码行数:31,代码来源:index.php


示例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;
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:index.php


示例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');
开发者ID:nsswaga,项目名称:OSClass,代码行数:31,代码来源:head.php


示例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">
开发者ID:randomecho,项目名称:OSClass,代码行数:30,代码来源:locations.php


示例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: {
开发者ID:randomecho,项目名称:OSClass,代码行数:31,代码来源:media.php


示例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 
}
开发者ID:semul,项目名称:Osclass,代码行数:62,代码来源:comments.php


示例16: customHead

function customHead()
{
    echo '<script type="text/javascript" src="' . osc_current_admin_theme_js_url('jquery.validate.min.js') . '"></script>';
}
开发者ID:semul,项目名称:Osclass,代码行数:4,代码来源:themes.php


示例17: osc_esc_html

                        },
                        {
                            "sTitle": "<?php 
echo osc_esc_html(__('E-mail'));
?>
"
                        }
                    ]
                });

                $('.length-menu').append( $("#bulk_actions") ) ;
                $('.filter').append( $("#add_admin_button") ) ;
            });
        </script>
        <script type="text/javascript" src="<?php 
echo osc_current_admin_theme_js_url('datatables.post_init.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">
                <div class="header_title">
开发者ID:randomecho,项目名称:OSClass,代码行数:31,代码来源:index.php


示例18: customHead

function customHead()
{
    ?>
<script type="text/javascript" src="<?php 
    echo osc_current_admin_theme_js_url('jquery.treeview.js');
    ?>
"></script>
<script type="text/javascript">
    function show_iframe(class_name, id) {
        if($('.content_list_'+id+' .custom-field-frame').length == 0){
            $('.custom-field-frame').remove();
            var name = 'frame_'+ id ; 
            var id_  = 'frame_'+ id ;
            var url  = '<?php 
    echo osc_admin_base_url(true);
    ?>
?page=ajax&action=field_categories_iframe&id=' + id ;
            $.ajax({
                url: url,
                context: document.body,
                success: function(res){
                    $('div.'+class_name).html(res) ;
                    $('div.'+class_name).fadeIn("fast") ;
                }
            }) ;
        } else {
            $('.custom-field-frame').remove();
        }
        return false ;
    }

    function delete_field(id) {
        $("#dialog-delete-field").attr('data-field-id', id);
        $("#dialog-delete-field").dialog('open');
        return false ;
    }

    // check all the categories
    function checkAll(id, check) {
        aa = $('#' + id + ' input[type=checkbox]').each(function() {
            $(this).attr('checked', check) ;
        }) ;
    }

    $(document).ready(function() {
        $('.cfield-div').live('mouseenter',function(){
            $(this).addClass('cfield-hover');
        }).live('mouseleave',function(){
            $(this).removeClass('cfield-hover');
        });

        // dialog delete
        $("#dialog-delete-field").dialog({
            autoOpen: false,
            modal: true
        });
        $("#field-delete-submit").click(function() {
            var id  = $("#dialog-delete-field").attr('data-field-id');
            var url = '<?php 
    echo osc_admin_base_url(true);
    ?>
?page=ajax&action=delete_field&id=' + id;
            $.ajax({
                url: url,
                context: document.body,
                success: function(res){
                    var ret = eval( "(" + res + ")");
                    var message = "";
                    if(ret.error) { 
                        message += ret.error; 
                    }
                    if(ret.ok){
                        message += ret.ok;
                        
                        $('#list_'+id).fadeOut("slow");
                        $('#list_'+id).remove();
                    }
                    
                    $(".jsMessage").css('display', 'block') ;
                    $(".jsMessage p").html(message) ;
                },
                error: function(){
                    $(".jsMessage").css('display', 'block') ;
                    $(".jsMessage p").html('<?php 
    echo osc_esc_js(__("Ajax error, try again."));
    ?>
') ;
                }
            });
            $('#dialog-delete-field').dialog('close');
            return false;
        });

        $("#add-button, .add-button").bind('click', function() {
            $.ajax({
                url: '<?php 
    echo osc_admin_base_url(true);
    ?>
?page=ajax&action=add_field',
                context: document.body,
//.........这里部分代码省略.........
开发者ID:ranjithinnergys,项目名称:OSClass,代码行数:101,代码来源:index.php


示例19: 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=settings_form]").validate({
            rules: {
                pageTitle: {
                    required: true,
                    minlength: 1
                },
                contactEmail: {
                    required: true,
                    email: true
                },
                num_rss_items: {
                    required: true,
                    digits: true
                },
                max_latest_items_at_home: {
                    required: true,
                    digits: true
                },
                default_results_per_page: {
                    required: true,
                    digits: true
                }
            },
            messages: {
                pageTitle: {
                    required: '<?php 
    echo osc_esc_js(__("Page title: this field is required"));
    ?>
.',
                    minlength: '<?php 
    echo osc_esc_js(__("Page title: this field is required"));
    ?>
.'
                },
                contactEmail: {
                    required: '<?php 
    echo osc_esc_js(__("Email: this field is required"));
    ?>
.',
                    email: '<?php 
    echo osc_esc_js(__("Invalid email address"));
    ?>
.'
                },
                num_rss_items: {
                    required: '<?php 
    echo osc_esc_js(__("Listings shown in RSS feed: this field is required"));
    ?>
.',
                    digits: '<?php 
    echo osc_esc_js(__("Listings shown in RSS feed: this field must only contain numeric characters"));
    ?>
.'
                },
                max_latest_items_at_home: {
                    required: '<?php 
    echo osc_esc_js(__("Latest listings shown: this field is required"));
    ?>
.',
                    digits: '<?php 
    echo osc_esc_js(__("Latest listings shown: this field must only contain numeric characters"));
    ?>
.'
                },
                default_results_per_page: {
                    required: '<?php 
    echo osc_esc_js(__("The search page shows: this field is required"));
    ?>
.',
                    digits: '<?php 
    echo osc_esc_js(__("The search page shows: 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'});
            }
        });
    });

    function custom_date(date_format) {
        $.getJSON(
            "<?php 
    echo osc_admin_base_url(true);
    ?>
?page=ajax&action=date_format",
            {"format" : date_format},
            function(data){
                if(data.str_formatted!='') {
                    $("#custom_date").html(' <?php 
//.........这里部分代码省略.........
开发者ID:semul,项目名称:Osclass,代码行数:101,代码来源:index.php


示例20: osc_current_admin_theme_path

 * License along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    <head>
        <?php 
osc_current_admin_theme_path('head.php');
?>
        <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>
    </head>
    <body>
        <?php 
osc_current_admin_theme_path('header.php');
?>
        <div id="update_version" style="display:none;"></div>
        <div class="Header"><?php 
_e('Media settings');
?>
</div>
        <div id="content">
            <div id="separator"></div>
            <?php 
开发者ID:acharei,项目名称:OSClass,代码行数:31,代码来源:media.php



注:本文中的osc_current_admin_theme_js_url函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP osc_current_admin_theme_path函数代码示例发布时间:2022-05-15
下一篇:
PHP osc_current_admin_locale函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap