<?php

$locale = Lang::getLocale();
PackageManager::add('elfinder')->js('elfinder.lib', resources_url('/libs/elfinder/js/elfinder.min.js'), 'global')->js("elfinder.{$locale}", resources_url("/libs/elfinder/js/i18n/elfinder.{$locale}.js"), 'elfinder.lib')->css('elfinder.lib', resources_url('/libs/elfinder/css/elfinder.min.css'));
?>
/js/plugins/tableexport_my/tableExport.js"></script>
        <!-- END THIS PAGE PLUGINS-->  
        
        <!-- START TEMPLATE -->
        <script type="text/javascript" src="<?php 
echo resources_url();
?>
/js/settings.js"></script>
        
        <script type="text/javascript" src="<?php 
echo resources_url();
?>
/js/plugins.js"></script>        
        <script type="text/javascript" src="<?php 
echo resources_url();
?>
/js/actions.js"></script>        
        <!-- END TEMPLATE -->
    <!-- END SCRIPTS --> 
    <script>

            $(function(){

            //部门表格初始化
                var oTable3 = $("#department_table").dataTable({
                    aoColumnDefs: [{
                        bSortable: false,
                        aTargets: [-1]
                    }]
                  });
<?php

$locale = Lang::getLocale();
PackageManager::add('libraries')->js(null, resources_url('/js/libraries.js'))->js("moment-{$locale}", resources_url("/libs/moment/js/{$locale}.js"), 'libraries');
PackageManager::add('core')->css('global', resources_url('/css/app.css'))->js(null, resources_url('/js/backend.js'), 'libraries');
PackageManager::add('jquery')->js(null, resources_url('/libs/jquery/js/jquery.min.js'));
PackageManager::add('bootstrap')->css(null, resources_url('/libs/bootstrap/css/bootstrap.min.css'))->js(null, resources_url('/libs/bootstrap/js/bootstrap.min.js'), 'jquery');
PackageManager::add('bootstrap-theme')->css(null, resources_url('/libs/bootstrap/css/bootstrap-theme.min.css'), 'bootstrap');
PackageManager::add('underscore')->js(null, resources_url('/libs/underscore/js/underscore-min.js'), 'jquery');
PackageManager::add('backbone')->js(null, resources_url('/libs/backbone/js/backbone-min.js'), 'underscore');
PackageManager::add('jquery-ui')->js(null, resources_url('/libs/jquery-ui/js/jquery-ui.min.js'), 'jquery')->css(null, resources_url('/css/jquery-ui.css'));
PackageManager::add('fontawesome')->css(null, resources_url('/libs/font-awesome/css/font-awesome.min.css'));
PackageManager::add('jquery-tagsinput')->js(null, resources_url('/libs/jquery.tagsinput/js/jquery.tagsinput.js'), ['jquery', 'jquery-ui'])->css(null, resources_url('/libs/jquery.tagsinput//css/jquery.tagsinput.css'));
PackageManager::add('dropzone')->js(null, resources_url('/libs/dropzone/js/dropzone.min.js'), ['jquery', 'libraries'])->css('dropzone-basic', resources_url('/libs/dropzone/css/basic.min.css'))->css(null, resources_url('/libs/dropzone/css/dropzone.min.css'));
PackageManager::add('datepicker')->js(null, resources_url('/libs/datetimepicker/js/jquery.datetimepicker.min.js'), ['jquery', 'libraries'])->css(null, resources_url('/libs/datetimepicker/css/jquery.datetimepicker.css'));
PackageManager::add('bootstrap-multiselect')->js(null, resources_url('/libs/bootstrap-multiselect/js/bootstrap-multiselect.js'), ['jquery', 'libraries'])->css(null, resources_url('/libs/bootstrap-multiselect/css/bootstrap-multiselect.css'));
PackageManager::add('editable')->js(null, resources_url('/libs/x-editable/js/bootstrap-editable.min.js'), ['jquery', 'bootstrap'])->css(null, resources_url('/libs/x-editable/css/bootstrap-editable.css'));
PackageManager::add('nestable')->js(null, resources_url('/libs/nestable/js/jquery.nestable.js'), ['jquery', 'libraries']);
PackageManager::add('steps')->js(null, resources_url('/libs/jquery.steps/js/jquery.steps.min.js'), ['jquery', 'libraries']);
PackageManager::add('noty')->js(null, resources_url('/libs/noty/js/jquery.noty.packaged.min.js'), ['jquery', 'libraries']);
PackageManager::add('select2')->js(null, resources_url('/libs/select2/js/select2.min.js'), ['jquery', 'libraries'])->js("select2-{$locale}", resources_url("/libs/select2/js/i18n/{$locale}.js"), 'select2')->css(null, resources_url('/libs/select2/css/select2.min.css'));
PackageManager::add('sortable')->js(null, resources_url('/libs/Sortable/js/Sortable.min.js'), ['jquery', 'libraries'])->js('sortable-binding', resources_url('/libs/Sortable/js/jquery.binding.js'), ['jquery', 'libraries']);
PackageManager::add('validate')->js(null, resources_url('/libs/jquery-validation/js/jquery.validate.min.js'), ['jquery', 'libraries'])->js("validate-{$locale}", resources_url("/libs/jquery-validation/js/messages_{$locale}.js"), 'validate');
PackageManager::add('moment')->js(null, resources_url('/libs/moment/js/moment.min.js'), ['jquery', 'libraries'])->js("moment-{$locale}", resources_url("/libs/moment/js/{$locale}.js"), 'moment');
PackageManager::add('ckeditor')->js('ckeditor-library', resources_url('/libs/ckeditor/ckeditor.js'), ['jquery', 'libraries'])->js(null, resources_url('/js/wysiwyg/ckeditor.js'), 'ckeditor-library')->js("ckeditor-{$locale}", resources_url("/libs/ckeditor/lang/{$locale}.js"), 'ckeditor-library');
PackageManager::add('ace')->js('ace-library', resources_url('/libs/ace/src-min/ace.js'), ['jquery', 'libraries'])->js(null, resources_url('/js/wysiwyg/ace.js'), 'ace-library');
PackageManager::add('diff')->js(null, resources_url('/libs/jsdiff/js/diff.js'));
PackageManager::add('datatables')->js(null, resources_url('/libs/datatables/js/jquery.dataTables.min.js'), ['jquery', 'libraries'])->js('datatables.bootstrap', resources_url('/libs/datatables/js/datatables.bootstrap.js'), 'datatables')->css(null, resources_url('/libs/datatables/css/datatables.bootstrap.css'));
WYSIWYG::add('ace', 'Ace', null, null, WYSIWYG::code());
WYSIWYG::add('ckeditor', 'CKEditor');
 public function registerMedia()
 {
     $errors = view()->shared('errors');
     $this->templateScripts = ['CURRENT_URL' => $this->request->url(), 'SITE_URL' => url()->current(), 'BASE_URL' => backend_url(), 'BACKEND_PATH' => backend_url_segment(), 'BACKEND_RESOURCES' => resources_url(), 'PUBLIC_URL' => url()->current(), 'LOCALE' => Lang::getLocale(), 'ROUTE' => !is_null($this->getRouter()) ? $this->getRouter()->currentRouteAction() : null, 'ROUTE_PATH' => $this->getRouterPath(), 'REQUEST_TYPE' => $this->requestType, 'USER_ID' => backend_auth()->id(), 'MESSAGE_ERRORS' => !is_null($errors) ? $errors->getBag('default') : [], 'MESSAGE_SUCCESS' => (array) $this->session->get('success', [])];
 }
<?php

PackageManager::add('cron')->js(null, resources_url('/libs/jquery-cron/js/jquery-cron-min.js'), 'jquery');
Exemple #6
0
//AssetManager::addStyle('admin::default/css/formitems/datetime/bootstrap-datetimepicker.min.css');
//AssetManager::addStyle('admin::default/css/formitems/datetime/style.css');
//AssetManager::addScript('admin::default/js/formitems/datetime/moment-with-locales.min.js');
//AssetManager::addScript('admin::default/js/formitems/datetime/s_bootstrap-datetimepicker.min.js');
//AssetManager::addScript('admin::default/js/formitems/datetime/init.js');
PackageManager::add(KodiCMS\SleepingOwlAdmin\FormItems\BaseDateTime::class)->js(null, resources_url('sleepingowl/default/js/formitems/datetime/init.js'), 'datepicker');
/********************************************
 * Columns
 ********************************************/
PackageManager::add(KodiCMS\SleepingOwlAdmin\Columns\Column\Checkbox::class)->js(null, resources_url('sleepingowl/default/columns/checkbox.js'));
//AssetManager::addScript('admin::default/js/bootbox.js');
//AssetManager::addScript('admin::default/js/columns/control.js');
PackageManager::add(KodiCMS\SleepingOwlAdmin\Columns\Column\Control::class)->js(null, resources_url('sleepingowl/default/columns/control.js'));
//AssetManager::addStyle('admin::default/css/ekko-lightbox.min.css');
//AssetManager::addScript('admin::default/js/ekko-lightbox.min.js');
//AssetManager::addScript('admin::default/js/columns/image.js');
PackageManager::add(KodiCMS\SleepingOwlAdmin\Columns\Column\Image::class)->js(null, resources_url('sleepingowl/default/columns/image.js'));
/********************************************
 * Display
 ********************************************/
//addScript('admin::default/js/jquery.nestable.js');
//addScript('admin::default/js/nestable.js');
//addStyle('admin::default/css/jquery.nestable.css');
PackageManager::add(KodiCMS\SleepingOwlAdmin\Display\DisplayTree::class)->js(null, resources_url('sleepingowl/default/js/nestable.js'), 'nestable');
//AssetManager::addScript('admin::default/js/datatables/jquery.dataTables.min.js');
//AssetManager::addScript('admin::default/js/datatables/jquery.dataTables_bootstrap.js');
//AssetManager::addScript('admin::default/js/notify-combined.min.js');
//AssetManager::addScript('admin::default/js/datatables/init.js');
//AssetManager::addStyle('admin::default/css/dataTables.bootstrap.css');
PackageManager::add(KodiCMS\SleepingOwlAdmin\Display\DisplayDatatables::class)->js(null, resources_url('sleepingowl/default/js/datatables/init.js'));
<?php

PackageManager::add('page-wysiwyg')->js('page-wysiwyg-libraries', resources_url('/js/page-wysiwyg-libraries.js'), 'jquery')->js(null, resources_url('/js/page-wysiwyg.js'), ['page-wysiwyg-libraries'])->css(null, resources_url('/css/page-wysiwyg.css'));
<?php

PackageManager::add('weather')->js(null, resources_url('/libs/weather/js/weather.js'), 'jquery');
PackageManager::add('gridster')->js(null, resources_url('/libs/gridster/js/jquery.gridster.min.js'), 'jquery')->css(null, resources_url('/libs/gridster/css/jquery.gridster.min.css'));
<?php

$locale = Lang::getLocale();
PackageManager::add('query-builder')->js(null, resources_url('/libs/query-builder/query-builder.js'), 'libraries')->css(null, resources_url("/libs/query-builder/query-builder.css"));