當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。