本文整理汇总了PHP中Assets::add_css方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::add_css方法的具体用法?PHP Assets::add_css怎么用?PHP Assets::add_css使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets
的用法示例。
在下文中一共展示了Assets::add_css方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict('Containers.Content.View');
$this->load->model('containers_model', null, true);
$this->load->model(array('purchase_orders/purchase_orders_model', 'countries_model', 'product/product_model', 'uom/uom_model'));
$this->lang->load('containers');
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.13.min.js');
Template::set_block('sub_nav', 'content/_sub_nav');
Assets::add_module_js('containers', 'containers.js');
$po_refs_select = $this->purchase_orders_model->get_po_ref_select();
Template::set('po_refs_select', $po_refs_select);
$po_refs = $this->purchase_orders_model->get_po_refs();
Template::set('po_refs', $po_refs);
$countries_select = $this->countries_model->get_countries_select();
Template::set('countries_select', $countries_select);
$countries = $this->countries_model->get_countries();
Template::set('countries', $countries);
$uoms_select = $this->uom_model->get_uoms_select();
Template::set('uoms_select', $uoms_select);
$uoms = $this->uom_model->get_uoms();
Template::set('uoms', $uoms);
$products_select = $this->product_model->get_products_select();
Template::set('products_select', $products_select);
$products = $this->product_model->get_products();
Template::set('products', $products);
}
示例2: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict('Samples.Content.View');
$this->load->model('samples_model', null, true);
$this->load->model(array('uom/uom_model', 'product/product_model', 'customers/customers_model', 'vendor_profile/vendor_profile_model'));
$this->lang->load('samples');
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.13.min.js');
Template::set_block('sub_nav', 'content/_sub_nav');
Assets::add_module_js('samples', 'samples.js');
$profile_id = NULL;
if (isset($this->curr_user_profile['id'])) {
$profile_id = $this->curr_user_profile['id'];
}
$uoms_select = $this->uom_model->get_uoms_select();
Template::set('uoms_select', $uoms_select);
$uoms = $this->uom_model->get_uoms();
Template::set('uoms', $uoms);
$products_select = $this->product_model->get_products_select();
Template::set('products_select', $products_select);
$products = $this->product_model->get_products();
Template::set('products', $products);
$party_select = $this->customers_model->get_party_select();
Template::set('party_select', $party_select);
$party = $this->customers_model->get_party();
Template::set('party', $party);
Template::set('vendors', $vendors);
}
示例3: create_form
public function create_form($fields_data = false)
{
$this->table_structure = $this->get_table_structure();
Assets::add_js("jasny-bootstrap.min.js");
Assets::add_js("modernizr-2.5.3.js");
Assets::add_css("jasny-bootstrap.min.css");
$hiddens = array();
//hiddens only on update
if ($fields_data !== FALSE) {
$primary_key = $this->get_primary_key();
$hiddens = array($primary_key => $fields_data->{$primary_key});
}
$form = "";
$form .= form_open_multipart($this->ci->uri->uri_string(), 'class="form-horizontal" name="form_upload"', $hiddens);
foreach ($this->table_structure as $field_info) {
if ($this->can_show_input($field_info)) {
$form .= $this->generate_input($field_info, $fields_data);
}
}
// AFTER CREATE THE FORM, WE WILL INSERT HERE THE COMPONENTS
if (isset($this->config->components)) {
foreach ($this->config->components as $component_name => $component_configurations) {
$component_configurations = $this->get_default_config($component_configurations);
$component_lib = $this->ci->load->library("components/{$component_name}", $component_configurations);
$form .= $component_lib->generate();
}
}
$cancel_link = anchor(SITE_AREA . $this->get_path(), "Cancelar", "class='btn btn-warning'");
$form .= "\n\t\t <fieldset>\n\t\t <div class='form-actions'>\n\t\t <br/>\n\t\t <input type='submit' name='save' class='btn btn-success' value='Salvar' />\n\t\t <input type='submit' name='save' class='btn btn-success' value='Salvar e continuar' />\n\t\t <!--<input type='submit' name='draft' class='btn btn-primary' value='Rascunho' />-->\n\t\t {$cancel_link}\n\t\t </div>\n\t\t </fieldset>\n\t\t";
$form .= form_close();
return $form;
}
示例4: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict($this->permissionSiteReportsView);
$this->auth->restrict($this->permissionViewActivities);
$this->lang->load('activities/activities');
$this->lang->load('datatable');
$this->load->model('activities/activity_model');
Assets::add_js(array('bootstrap', 'jquery.dataTables', 'bootstrap-dataTables'));
Assets::add_js($this->load->view('reports/activities_js', null, true), 'inline');
Assets::add_css(array('datatable', 'bootstrap-dataTables'));
// Check the permissions, store the results.
$this->hasPermissionDeleteOwn = $this->auth->has_permission($this->permissionDeleteOwn);
$this->hasPermissionViewDate = $this->auth->has_permission($this->permissionViewDate);
$this->hasPermissionViewModule = $this->auth->has_permission($this->permissionViewModule);
$this->hasPermissionViewOwn = $this->auth->has_permission($this->permissionViewOwn);
$this->hasPermissionViewUser = $this->auth->has_permission($this->permissionViewUser);
if ($this->hasPermissionViewUser || $this->hasPermissionViewModule || $this->hasPermissionViewDate) {
Template::set_block('sub_nav', 'reports/_sub_nav');
}
Template::set('toolbar_title', lang('activities_title'));
Template::set('hasPermissionDeleteOwn', $this->hasPermissionDeleteOwn);
Template::set('hasPermissionViewDate', $this->hasPermissionViewDate);
Template::set('hasPermissionViewModule', $this->hasPermissionViewModule);
Template::set('hasPermissionViewOwn', $this->hasPermissionViewOwn);
Template::set('hasPermissionViewUser', $this->hasPermissionViewUser);
}
示例5: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict('Product_Documents.Content.View');
$this->load->model('product_documents_model', null, true);
$this->load->model(array('vendor_profile/vendor_profile_model', 'product/product_model', 'document_types/document_types_model'));
$this->lang->load('product_documents');
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.13.min.js');
Template::set_block('sub_nav', 'content/_sub_nav');
Assets::add_module_js('product_documents', 'product_documents.js');
$profile_id = NULL;
if (isset($this->curr_user_profile['id'])) {
$profile_id = $this->curr_user_profile['id'];
}
$vendors_select = $this->vendor_profile_model->get_vendors_select($profile_id);
Template::set('vendors_select', $vendors_select);
$vendors = $this->vendor_profile_model->get_vendors($profile_id);
Template::set('vendors', $vendors);
$products_select = $this->product_model->get_products_select();
Template::set('products_select', $products_select);
$products = $this->product_model->get_products();
Template::set('products', $products);
$doc_types_select = $this->document_types_model->get_doc_types_select();
Template::set('doc_types_select', $doc_types_select);
$doc_types = $this->document_types_model->get_doc_types();
Template::set('doc_types', $doc_types);
}
示例6: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict('Quotes.Content.View');
$this->load->model('quotes_model', null, true);
$this->load->model(array('uom/uom_model', 'product/product_model', 'vendor_profile/vendor_profile_model'));
$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');
Template::set_block('sub_nav', 'content/_sub_nav');
Assets::add_module_js('quotes', 'quotes.js');
$uoms_select = $this->uom_model->get_uoms_select();
Template::set('uoms_select', $uoms_select);
$uoms = $this->uom_model->get_uoms();
Template::set('uoms', $uoms);
$products_select = $this->product_model->get_products_select();
Template::set('products_select', $products_select);
$products = $this->product_model->get_products();
Template::set('products', $products);
/*
$vendors_select = $this->vendors_model->get_vendors_select();
Template::set('vendors_select', $vendors_select);
$vendors = $this->vendors_model->get_vendors();
Template::set('vendors', $vendors);
*/
$vendors_select = $this->vendor_profile_model->get_vendors_select();
Template::set('vendors_select', $vendors_select);
$vendors = $this->vendor_profile_model->get_vendors();
Template::set('vendors', $vendors);
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->lang->load('dashboard', 'english');
$data['lang']['nav_user'] = $this->lang->line('nav_user');
Assets::add_js('product/create_product.js');
Assets::add_css('product/product.css');
}
示例8: test_add_css_includes_arrays
public function test_add_css_includes_arrays()
{
touch(FCPATH . 'themes/admin/css/null1.css');
Assets::add_css(array('null', 'null1'));
$r = Assets::css();
$this->assertTrue(strpos($r, 'null.css') !== false && strpos($r, 'null1.css') !== false);
unlink(FCPATH . 'themes/admin/css/null.css');
unlink(FCPATH . 'themes/admin/css/null1.css');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->auth->restrict('Data_Dosen.Dosen.View');
$this->load->model('data_dosen_model', null, true);
$this->lang->load('data_dosen');
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.13.min.js');
Template::set_block('sub_nav', 'dosen/_sub_nav');
}
示例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');
}
示例11: 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');
}
示例12: __construct
function __construct()
{
parent::__construct();
$this->auth->restrict('Navigation.Content.View');
$this->load->model('navigation_model');
$this->load->model('navigation_group_model');
$this->lang->load('navigation');
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.8.min.js');
Template::set_block('sub_nav', 'content/_sub_nav');
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->auth->restrict('Pembayaran.Keuangan.View');
$this->load->model('pembayaran_model', null, true);
$this->lang->load('pembayaran');
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.13.min.js');
Template::set_block('sub_nav', 'keuangan/_sub_nav');
Assets::add_js('format_uang');
}
示例14: __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');
}
示例15: create
public function create($value = '')
{
$data = array();
$data['color'] = array(array('name' => '红色', 'color' => 'red'), array('name' => '蓝色', 'color' => 'blue'), array('name' => '黑色', 'color' => 'black'));
$data['size'] = array(array('name' => 'L', 'value' => 'L'), array('name' => 'LX', 'value' => 'LX'), array('name' => 'LL', 'value' => 'LL'));
Assets::add_js('product/create_product.js');
Assets::add_css('product/product.css');
Template::set_view('v_product_create');
Template::set($data);
Template::render();
}