本文整理汇总了PHP中load_css函数的典型用法代码示例。如果您正苦于以下问题:PHP load_css函数的具体用法?PHP load_css怎么用?PHP load_css使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了load_css函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: applet
public function applet($conf, &$opts)
{
$recordset = "quick_search";
$theme = $this->init_module('Base/Theme');
$form = $this->init_module('Libs/QuickForm');
$txtQuery = 'query_text';
$txtLabel = 'query_label';
$btnQuery = 'query_button';
$id = $conf['criteria'];
$searchPrompt = Applets_QuickSearchCommon::getSearchPromptById($id);
$conf['a_title'] = $conf['a_title'] == "Quick Search" ? Applets_QuickSearchCommon::getPresetNameById($id) : $conf['a_title'];
$placeholder = $searchPrompt == "" ? "" : $searchPrompt;
$opts['title'] = $conf['a_title'];
$opts['go'] = false;
load_css('modules/Applets/QuickSearch/theme/quick_form.css');
load_js('modules/Applets/QuickSearch/js/quicksearch.js');
//$js ='setDelayOnSearch()';
//eval_js($js);
$txt = $form->addElement('text', $txtQuery, __('Search'));
$txt->setAttribute('id', $txtQuery . "_" . $id);
$txt->setAttribute('class', 'QuickSearch_text');
$txt->setAttribute('onkeypress', 'setDelayOnSearch(\'' . $id . '\')');
$txt->setAttribute('placeholder', _V($placeholder));
$theme->assign($txtLabel, __('Search'));
$theme->assign($txtQuery, $txt->toHtml());
$theme->assign('search_id', $conf['criteria']);
$theme->display('quick_form');
return true;
}
示例2: gerenciar_midia
public function gerenciar_midia()
{
$this->load->library('table');
//vai carregar o modulo usuarios e mostrar a tela de recuperação de senha
set_tema('headerinc', load_css('dataTables.bootstrap.min'), FALSE);
set_tema('headerinc', load_css('responsive.bootstrap.min'), FALSE);
set_tema('headerinc', load_css('ionicons.min', 'css/ionicons/css'), FALSE);
set_tema('footerinc', load_js('jquery.dataTables'), FALSE);
set_tema('footerinc', load_js('dataTables.bootstrap.min'), FALSE);
set_tema('footerinc', load_js('dataTables.responsive.min'), FALSE);
set_tema('footerinc', load_js('table-manage-responsive-auditoria.min'), FALSE);
set_tema('footerinc', load_js('tooltip'), FALSE);
set_tema('footerinc', '<script>
$(document).ready(function() {
App.init();
TableManageResponsive.init();
$(\'[data-toggle="tooltip"]\').tooltip();
});
</script>', FALSE);
set_tema('titulo', 'Listagem de Mídias');
set_tema('conteudo', load_modulo('midia', 'gerenciar'));
set_tema('rodape', '');
//vai substituir o rodape padrao
load_template();
}
示例3: index
public function index()
{
$this->template->set_layout('sticky');
$this->load->helper('assets');
$this->data['css'] = load_css(array('sticky'));
$this->set_title(SITE_NAME . " | Termos de Serviço");
$this->site();
}
示例4: index
public function index()
{
$this->load->helper('assets');
$this->data['css'] = load_css(array('datatables-bootstrap'));
$this->data['js'] = load_js(array('jquery.form', 'jquery.dataTables.min', 'datatables-bootstrap', 'datatables.fnReloadAjax', 'admin/actionDatatables', 'admin/dtUsers', 'jquery.maskedinput.min', 'maskedinput', 'search_zipcode', 'jquery.validate.min', 'valid/admin/user_create', 'valid/admin/user_edit'));
$this->set_title(SITE_NAME . " | " . "Administração" . " | " . "Usuários");
$this->set_view('admin/users/home');
$this->admin();
}
示例5: index
public function index($msg = NULL)
{
$this->data['msg'] = $msg;
$this->load->helper('assets');
$this->data['js'] = load_js(array('jquery.validate.min', 'valid/contact', 'jquery.maskedinput.min', 'maskedinput'));
$this->data['css'] = load_css(array('main'));
$this->set_title(SITE_NAME . " | Fale Conosco");
$this->site();
}
示例6: init_front
function init_front()
{
$CI =& get_instance();
$CI->load->library(array('sistema', 'session', 'form_validation', 'parser'));
$CI->load->helper(array('form', 'url', 'array', 'text'));
set_tema('titulo_padrao', 'Lanabello');
set_tema('rodape', incluir_arquivo('footer', 'application'));
set_tema('template', 'site');
//incluir_arquivo('navegacao');
//set_tema('navegacao',incluir_arquivo('navegacao'));
set_tema('headerinc', load_css(array('foundation/foundation.min')), FALSE);
set_tema('headerinc', load_css(array('front/global')), FALSE);
set_tema('headerinc', load_js(array('jquery')), FALSE);
set_tema('footerinc', load_js(array('foundation.min')), FALSE);
}
示例7: iniciar_painel
function iniciar_painel()
{
$CI =& get_instance();
$CI->load->library(array('sistema', 'session', 'form_validation'));
$CI->load->helper(array('form', 'url', 'array', 'text'));
//carregamento dos models
$CI->load->model('usuarios_model');
set_tema('titulo_padrao', 'Painel ADM');
set_tema('rodape', '<p>© 2015 | Todos os direitos reservados para Alencar da Costa</p>');
set_tema('template', 'painel_view');
set_tema('headerinc', load_css('bootstrap.min', 'css/bootstrap'), FALSE);
set_tema('headerinc', load_css('font-awesome.min', 'css/font-awesome/css'), FALSE);
set_tema('headerinc', load_css(array('animate.min', 'style.min', 'style-responsive.min', 'default')), FALSE);
set_tema('headerinc', load_js(array('jquery-1.9.1.min', 'jquery-migrate-1.1.0.min'), 'js/jquery'), FALSE);
set_tema('footerinc', load_js('jquery-ui.min', 'js/jquery-ui/ui/'), FALSE);
set_tema('footerinc', load_js(array('bootstrap.min', 'jquery.slimscroll.min', 'apps.min')), FALSE);
}
示例8: init_painel
function init_painel()
{
$CI =& get_instance();
$componentes = 'assets/components/bootstrap/dist/css';
$CI->load->library(array('parser', 'sistema', 'session', 'form_validation'));
$CI->load->helper(array('form', 'url', 'array', 'text'));
//carregamento dos models
$CI->load->model('usuarios_model', 'usuarios');
set_tema('titulo_padrao', 'PORTAL');
set_tema('rodape', '');
set_tema('template', 'painel_view');
//carregamento dos CSS de forma dinâmica- CSS Dinâmico
set_tema('headerinc', load_css(array('bootstrap.min'), $componentes), FALSE);
set_tema('headerinc', load_css(array('metisMenu.min'), 'assets/components/metisMenu/dist'), FALSE);
set_tema('headerinc', load_css(array('app'), 'assets/css'), FALSE);
set_tema('headerinc', load_css(array('sb-admin-2'), 'assets/dist/css'), FALSE);
set_tema('headerinc', load_css(array('font-awesome.min'), 'assets/components/font-awesome/css'), FALSE);
// <script src="../sb-admin-2.js"></script>
//carregamento dos JS de forma dinâmica- JS Dinâmico
set_tema('footerinc', load_js(array('jquery.min'), 'assets/components/jquery/dist'), FALSE);
set_tema('footerinc', load_js(array('bootstrap.min'), 'assets/components/bootstrap/dist/js'), FALSE);
set_tema('footerinc', load_js(array('metisMenu.min'), 'assets/components/metisMenu/dist'), FALSE);
set_tema('footerinc', load_js('sb-admin-2', 'assets/dist/js'), FALSE);
}
示例9: load_libs
protected function load_libs()
{
$m = $this->get_module_dir();
load_css($m . 'bootstrap-compat.css');
load_css($m . 'query-builder.default.css');
load_js($m . 'query-builder.standalone.js');
load_js($m . 'helper.js');
$lang_code = Base_LangCommon::get_lang_code();
if ($lang_code) {
$lang_file = $this->get_module_dir() . 'i18n/query-builder.' . $lang_code . '.js';
if (file_exists($lang_file)) {
load_js($lang_file);
}
}
}
示例10: init_painel
function init_painel()
{
$CI =& get_instance();
$CI->load->library(array('sistema', 'session', 'form_validation'));
$CI->load->helper(array('form', 'url', 'array', 'text'));
$CI->load->model('usuarios_models', 'usuarios');
set_tema('titulo_padrao', 'JDev');
set_tema('rodape', '<footer style="
margin-top: 1%;
width:100%;
text-align: center;
color:#fff;">
<h6>© Todos os direitos reservado a JDev</h6>
</footer>');
set_tema('template', 'painel_view');
set_tema('css', load_css(array('bootstrap.min')), FALSE);
set_tema('css', load_css('font-awesome.min', 'font-awesome/css'), FALSE);
set_tema('js', load_js(array('jquery', 'bootstrap.min')), FALSE);
}
示例11: load_css
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>页面跳转中...</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Description" content="" />
<meta name="Keywords" content="" />
<meta name="Author" content="Rgss.inc">
<meta http-equiv="refresh" content="3; url=<?php
echo $url;
?>
" />
<?php
load_css('bootstrap');
load_css('style');
?>
</head>
<body>
<div class="main">
<div style="position: relative; padding: 50px; width: 500px; height: 200px; left: 50%; top: 50%; margin-left: -300px; margin-top: 100px; background: #ddd; border: 1px solid #ccc; border-radius: 5px; ">
<div class="title" style="text-align: center; color: green;">
<h3><?php
echo $msg;
?>
, 页面跳转中<span id="timer">5</span>...</h3>
</div>
<div style=" padding-top: 30px; font-size: 17px; color: #333; text-align: center;">
示例12: load_css
<?php
if (verif_access("Admin")) {
load_css('map.css', 'map');
function get_formulaire_town($Towns = array())
{
global $rayon_city, $array_landing_type, $_path;
extract(stripslashes_r($Towns));
$_Buildings = list_db('foreign_list', array('table' => 'Caranille_Building', 'ID' => 'Building_Town_ID', 'value' => $Town_ID));
$l_Buildings = array();
if (!empty($_Buildings)) {
foreach ($_Buildings as $b) {
$x = $b['Building_PosX'];
$y = $b['Building_PosY'];
$l_Buildings[$x][$y] = $b;
}
}
?>
<form method="POST" action="<?php
echo get_link("Towns", "Admin");
?>
">
<table>
<tr><td><?php
echo line_db("Caranille_Towns", "Town_Image", isset($Town_Image) ? $Town_Image : '');
echo line_db("Caranille_Towns", "Town_Name", isset($Town_Name) ? $Town_Name : '');
echo line_db("Caranille_Towns", "Town_Description", isset($Town_Description) ? $Town_Description : '');
echo line_db("Caranille_Towns", "Town_Price_INN", isset($Town_Price_INN) ? $Town_Price_INN : '');
echo line_db("Caranille_Towns", "Town_Chapter", isset($Town_Chapter) ? $Town_Chapter : 0);
?>
示例13: base_url
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Payroll</title>
<link rel="stylesheet" type="text/css" href="<?php
echo base_url();
?>
assets/application.css"/>
<link rel="stylesheet" type="text/css" href="<?php
echo base_url();
?>
assets/css/fullcalendar.css"/>
<?php
echo load_css(array("stylesheets.css", "dashboard.css", "bootstrapSwitch.css", "jquery.alerts.css", "iphone-style.css", "mcustomscrollbar/mCustomScrollbar.css", "jquery.handsontable.full.css"));
echo load_js(array("plugins/jquery/jquery-1.9.1.min.js", "plugins/jquery/jquery-ui-1.10.1.custom.min.js", "plugins/jquery/jquery-migrate-1.1.1.min.js", "plugins/jquery/globalize.js", "plugins/other/excanvas.js", "plugins/other/jquery.mousewheel.min.js", "plugins/bootstrap/bootstrap.min.js", "bootstrap-modal.js", "bootstrap-modalmanager.js", "bootstrapSwitch.js", "plugins/cookies/jquery.cookies.2.2.0.min.js", "plugins/mcustomscrollbar/jquery.mCustomScrollbar.min.js", "plugins/validationEngine/languages/jquery.validationEngine-en.js", "plugins/validationEngine/jquery.validationEngine.js", "plugins/uniform/jquery.uniform.min.js", "plugins/select/select2.min.js", "plugins/maskedinput/jquery.maskedinput-1.3.min.js", "colResizable-1.3.med.js", "jquery.alerts.js", "iphone-style-checkboxes.js", "jquery.editable-1.3.3.js", "jquery.number.min.js", "jquery.handsontable.full.js", "plugins/jquery.jstree.js", "accounting.js", "plugins.js", "actions.js", "custom.js"));
?>
<script src="<?php
echo base_url();
?>
assets/js/fullcalendar/fullcalendar.js" type="text/javascript"></script>
<script src="<?php
echo base_url();
?>
assets/js/fullcalendar/fullcalendar.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php
echo base_url();
?>
assets/docs.css"/>
示例14: insert_db
{
insert_db('Caranille_Classes', array('Classe_Name' => 'Tank', 'Classe_Description' => 'encaise à la place des autres'));
insert_db('Caranille_Classes', array('Classe_Name' => 'Healer', 'Classe_Description' => 'specialisé dans le soin'));
insert_db('Caranille_Classes', array('Classe_Name' => 'DDPT', 'Classe_Description' => 'distributeur de degats par tour'));
}
function config_race()
{
insert_db('Caranille_Races', array('Race_Name' => 'Néphilims', 'Race_Description' => 'croisement maudits des anges et des démons'));
insert_db('Caranille_Races', array('Race_Name' => 'Humains', 'Race_Description' => 'Rejetés du ciel et de l\'enfer, la terre est devenu leur royaume souverain'));
}
include_once 'login.php';
include_once 'news.php';
include_once 'pages.php';
include_once 'temoignages.php';
include_once 'step.php';
load_css('install.css', 'install');
if ($page == 'temoignages') {
temoignages_exec();
}
download();
$title = "Installation";
if ($page === "Index" || $page === "index") {
if (empty($_POST['Accept']) && empty($_POST['Create_Configuration']) && empty($_POST['Choose_Curve']) && empty($_POST['Start_Installation']) && empty($_POST['Configure']) && empty($_POST['Finish'])) {
$baseline = '<span class="important">Installation de caranille - Etape 1/5 (License d\'utilisation)</span>';
$span_footer = '<span class="important">Si vous n\'acceptez pas la license d\'utilisation, veuillez supprimer caranille</span>';
}
if (request_confirm('Accept') || request_confirm('Create_Configuration') || request_confirm('Choose_Curve') || request_confirm('step') && request_get('step') === 2) {
$baseline = '<span class="important">Installation de caranille - Etape 2/5 (Configuration de la base de donnée)</span>';
}
if (request_confirm('Start_Installation') || request_confirm('step') && request_get('step') === 3) {
$baseline = '<span class="important">Installation de caranille - Etape 3/5 (Création des tables dans la base de donnée)</span>';
示例15: load_css
/**
* Loads css file.
*
* @param string module name
* @param string css file name, 'default' by default
* @param bool sets whether there should be an error displayed if css is not present, true by default
* @return bool true on success, false otherwise
*/
public static function load_css($module_name, $css_name = 'default', $trig_error = true)
{
if (!isset($module_name)) {
trigger_error('Invalid argument for load_css, no module was specified.', E_USER_ERROR);
}
$css = self::get_template_file($module_name, $css_name . '.css');
if ($css) {
load_css($css, self::get_template_dir() . '__css.php');
return true;
} else {
if ($trig_error) {
trigger_error('Invalid css specified: ' . $module_name . '/' . $css_name . '.css', E_USER_ERROR);
}
return false;
}
}