当前位置: 首页>>代码示例>>PHP>>正文


PHP Assets::add_module_js方法代码示例

本文整理汇总了PHP中Assets::add_module_js方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::add_module_js方法的具体用法?PHP Assets::add_module_js怎么用?PHP Assets::add_module_js使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Assets的用法示例。


在下文中一共展示了Assets::add_module_js方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 /**
  * Displays a list of all core language files, as well as a list of
  * modules that the user can choose to edit.
  *
  * @access public
  *
  * @return void
  */
 public function index($trans_lang = 'english')
 {
     Assets::add_module_js('translate', 'translate.js');
     // Selecting a different language?
     if ($this->input->post('select_lang')) {
         $trans_lang = $this->input->post('trans_lang');
         // Other?
         if ($trans_lang == 'other') {
             $trans_lang = $this->input->post('new_lang');
         }
     }
     //end if
     if (!in_array($trans_lang, $this->langs)) {
         $this->langs[] = $trans_lang;
     }
     $all_lang_files = list_lang_files();
     Template::set('languages', $this->langs);
     Template::set('lang_files', $all_lang_files['core']);
     // check that we have custom modules
     if (isset($all_lang_files['custom'])) {
         Template::set('modules', $all_lang_files['custom']);
     }
     Template::set('trans_lang', $trans_lang);
     Template::set('toolbar_title', lang('tr_translate_title') . ' to ' . ucfirst($trans_lang));
     Template::render();
 }
开发者ID:triasfahrudin,项目名称:siska21,代码行数:34,代码来源:developer.php

示例2: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->lang->load('faq');
     Assets::add_module_js('faq', 'faq.js');
 }
开发者ID:fbmfbm,项目名称:drhil01,代码行数:12,代码来源:faq.php

示例3: create

 public function create()
 {
     $this->auth->restrict('Matakuliah_Prasyarat.Jurusan.Create');
     Assets::add_module_js('matakuliah_prasyarat', 'matakuliah_prasyarat');
     if ($this->input->post('save')) {
         if ($insert_id = $this->save_matakuliah_prasyarat()) {
             // Log the activity
             $this->activity_model->log_activity($this->current_user->id, lang('matakuliah_prasyarat_act_create_record') . ': ' . $insert_id . ' : ' . $this->input->ip_address(), 'matakuliah_prasyarat');
             Template::set_message(lang('matakuliah_prasyarat_create_success'), 'success');
             Template::redirect(SITE_AREA . '/jurusan/matakuliah_prasyarat');
         } else {
             Template::set_message(lang('matakuliah_prasyarat_create_failure') . $this->matakuliah_prasyarat_model->error, 'error');
         }
     }
     $data = $this->matakuliah_prasyarat_model->select_nama_kurikulum();
     if (!empty($data)) {
         $option[""] = "";
         foreach ($data as $row) {
             $option[$row->kode_nama_kurikulum] = $row->nama_kurikulum . " - " . $row->nama_jurusan;
         }
         Template::set('options', $option);
     }
     Template::set('toolbar_title', lang('matakuliah_prasyarat_create') . ' Matakuliah Prasyarat');
     Template::render();
 }
开发者ID:triasfahrudin,项目名称:siska21,代码行数:25,代码来源:jurusan.php

示例4: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('botanicules/botanicules_model');
     $this->lang->load('botanicules');
     Assets::add_module_js('botanicules', 'botanicules.js');
 }
开发者ID:brkrishna,项目名称:freelance,代码行数:12,代码来源:botanicules.php

示例5: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->load->model('todo_list_model', null, true);
     $this->lang->load('todo_list');
     Assets::add_module_js('todo_list', 'todo_list.js');
 }
开发者ID:brkrishna,项目名称:freelance,代码行数:13,代码来源:todo_list.php

示例6: __construct

 /**
  * Setups the required permissions and loads required classes
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->auth->restrict('Bonfire.UI.View');
     $this->auth->restrict('Bonfire.UI.Manage');
     $this->lang->load('ui');
     Template::set('toolbar_title', 'UI Settings');
     Assets::add_module_js('ui', 'ui.js');
 }
开发者ID:triasfahrudin,项目名称:siska21,代码行数:14,代码来源:settings.php

示例7: __construct

 /**
  * Set up the permissions and load the language file.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->auth->restrict('Site.Settings.View');
     $this->auth->restrict('Bonfire.Emailer.Manage');
     $this->lang->load('emailer');
     Assets::add_module_js('emailer', 'js/settings');
     Template::set_block('sub_nav', 'settings/_sub_nav');
 }
开发者ID:rakesh-mohanta,项目名称:Bonfire,代码行数:14,代码来源:Settings.php

示例8: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->load->model('menu_model', null, true);
     $this->load->model('department/department_model', null, true);
     $this->load->model('department/department_model', null, true);
     $this->lang->load('menu');
     Assets::add_module_js('menu', 'menu.js');
 }
开发者ID:premsingh4github,项目名称:ipay,代码行数:15,代码来源:menu.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->auth->restrict('Site.Reports.View');
     $this->auth->restrict('Bonfire.Activities.Manage');
     $this->lang->load('activities');
     Template::set('toolbar_title', lang('activity_title'));
     Assets::add_module_js('activities', 'jquery.dataTables.min.js');
     Assets::add_module_css('activities', 'datatable.css');
 }
开发者ID:nurulimamnotes,项目名称:Bonfire,代码行数:10,代码来源:reports.php

示例10: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->load->model('quotes_model', null, true);
     $this->lang->load('quotes');
     Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
     Assets::add_js('jquery-ui-1.8.13.min.js');
     Assets::add_module_js('quotes', 'quotes.js');
 }
开发者ID:brkrishna,项目名称:freelance,代码行数:15,代码来源:quotes.php

示例11: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model(array('profile/profile_model', 'profile_users/profile_users_model', 'team/team_model', 'registration/registration_model', 'registration_team/registration_team_model'));
     $this->lang->load('profile');
     $this->load->library('session');
     Assets::add_js('//cdn.tinymce.com/4/tinymce.min.js');
     Assets::add_js(Template::theme_url('js/editors/tiny_mce_init.js'));
     Assets::add_module_js('profile', 'profile.js');
 }
开发者ID:brkrishna,项目名称:delphic,代码行数:15,代码来源:Profile.php

示例12: users

 public function users()
 {
     $this->auth->restrict();
     $this->set_current_user();
     Assets::add_css(array('jquery.dataTables.css', 'dataTables.responsive.css'));
     Assets::add_js(array('jquery.dataTables.js', 'dataTables.bootstrap.js', 'dataTables.responsive.js'));
     Assets::add_module_js('users', 'manage_users.js');
     Template::set_view('manage/user_list');
     Template::render('user');
 }
开发者ID:vamsi683,项目名称:accept,代码行数:10,代码来源:Manage.php

示例13: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->auth->restrict($this->permissionView);
     $this->load->model('party/party_model');
     $this->lang->load('party');
     $this->form_validation->set_error_delimiters("<span class='error'>", "</span>");
     Template::set_block('sub_nav', 'content/_sub_nav');
     Assets::add_module_js('party', 'party.js');
 }
开发者ID:brkrishna,项目名称:freelance,代码行数:15,代码来源:content.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->auth->restrict('Site.Settings.View');
     $this->auth->restrict('Bonfire.Roles.Manage');
     $this->load->model('role_model');
     $this->lang->load('roles');
     Assets::add_js($this->load->view('settings/roles_js', null, true), 'inline');
     Assets::add_module_js('roles', 'js/settings.js');
     Assets::add_module_css('roles', 'css/settings.css');
 }
开发者ID:hnmurugan,项目名称:Bonfire,代码行数:11,代码来源:settings.php

示例15: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->auth->restrict($this->permissionView);
     $this->load->model('consignment_documents/consignment_documents_model');
     Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
     Assets::add_js('jquery-ui-1.8.13.min.js');
     $this->form_validation->set_error_delimiters("<span class='error'>", "</span>");
     Template::set_block('sub_nav', 'content/_sub_nav');
     Assets::add_module_js('consignment_documents', 'consignment_documents.js');
 }
开发者ID:brkrishna,项目名称:freelance,代码行数:16,代码来源:consignment_documents.php


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