本文整理汇总了PHP中css::import方法的典型用法代码示例。如果您正苦于以下问题:PHP css::import方法的具体用法?PHP css::import怎么用?PHP css::import使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类css
的用法示例。
在下文中一共展示了css::import方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rgba
<?php
/**
* The view file of calendar module of ZenTaoPMS.
*
* @copyright Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license business(商业软件)
* @author Yangyang Shi <shiyangyang@cnezsoft.com>
* @package calendar
* @version $Id$
* @link http://www.zentao.net
*/
css::import($jsRoot . 'zui/calendar/zui.calendar.min.css', $config->version);
js::import($jsRoot . 'zui/calendar/zui.calendar.min.js', $config->version);
?>
<style>
.calendar .table tr.week-days td.cell-day{vertical-align:top;}
.calendar .cell-day.current > .day {border: none}
.calendar .btn {padding-top: 4px; padding-bottom: 4px;}
.calendar .cell-day.past>.day>.content {opacity: 0.8}
.calendar .event {font-size: 12px; opacity: 0.95}
.outer .calendar .table tr > td:first-child {padding-left: 0!important;}
.calendar .event.with-action {position: relative; padding-right: 30px;}
.calendar .event.with-action .action {position: absolute; right: 0; top: 0;}
.calendar .event.with-action .action > a {display: inline-block; padding: 0 4px; color: #fff; background-color: rgba(0,0,0,0.25); line-height: 19px; padding: 0 6px;}
.calendar .event.with-action .action > a:hover {background-color: rgba(0,0,0,0.5)}
</style>
<script>
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
示例2:
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
css::import($jsRoot . 'jquery/chosen/min.css');
js::import($jsRoot . 'jquery/chosen/min.js');
$clientLang = $this->app->getClientLang();
?>
<script language='javascript'>
$(document).ready(function()
{
$(".chosen").chosen({no_results_text: '<?php
echo $lang->noResultsMatch;
?>
', placeholder_text:' ', disable_search_threshold: 10, width: '100%', search_contains: true});
$('select.chosen-icons').chosenIcons({lang: '<?php
echo $clientLang;
?>
'});
});
</script>
示例3: explode
}
/* Export $jsRoot var. */
js::set('jsRoot', $jsRoot);
js::set('webRoot', $webRoot);
/* Get editor settings for current page. */
$editors = $config->{$module}->editor->{$method};
$editors['id'] = explode(',', $editors['id']);
js::set('editors', $editors);
$this->app->loadLang('file');
js::set('errorUnwritable', $lang->file->errorUnwritable);
/* Get current lang. */
$editorLangs = array('en' => 'en', 'zh-cn' => 'zh_CN', 'zh-tw' => 'zh_TW');
$editorLang = isset($editorLangs[$app->getClientLang()]) ? $editorLangs[$app->getClientLang()] : 'en';
js::set('editorLang', $editorLang);
/* Import css and js for kindeditor. */
css::import($jsRoot . 'kindeditor/themes/default/default.css');
js::import($jsRoot . 'kindeditor/kindeditor-min.js');
js::import($jsRoot . 'kindeditor/lang/' . $editorLang . '.js');
/* set uid for upload. */
$uid = uniqid('');
js::set('uid', $uid);
?>
<script>
var simple =
[ 'formatblock', 'fontsize', '|', 'bold', 'italic','underline', '|',
'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', 'insertunorderedlist', '|',
'emoticons', 'image', 'media', 'link', '|', 'removeformat','undo', 'redo', 'source' ];
var full =
[ 'formatblock', 'fontsize', 'lineheight', '|', 'forecolor', 'hilitecolor', '|', 'bold', 'italic','underline', 'strikethrough', '|',
示例4:
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
css::import($defaultTheme . 'colorbox.css');
js::import($jsRoot . 'jquery/colorbox/min.js');
示例5: isset
$clientTheme = $this->app->getClientTheme();
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dli'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<?php
$header = isset($header) ? (object) $header : new stdclass();
if (!isset($header->title)) {
$header->title = $lang->ZenTaoPMS;
}
echo html::title($header->title . ' / ' . $lang->ZenTaoPMS);
js::exportConfigVars();
js::import($jsRoot . 'jquery/lib.js', $config->version);
js::import($jsRoot . 'my.min.js', $config->version);
js::import($jsRoot . 'highchars/exporting.js', $config->version);
js::import($jsRoot . 'highchars/highcharts.js', $config->version);
css::import($defaultTheme . 'yui.css', $config->version);
css::import($defaultTheme . 'style.css', $config->version);
css::import($langTheme, $config->version);
if (strpos($clientTheme, 'default') === false) {
css::import($clientTheme . 'style.css', $config->version);
}
if (isset($pageCss)) {
css::internal($pageCss);
}
echo html::icon($webRoot . 'favicon.ico');
?>
</head>
<body>
示例6: strip_tags
echo html::title($title . $config->site->name);
echo html::meta('keywords', strip_tags($keywords));
echo html::meta('description', strip_tags($desc));
js::exportConfigVars();
if ($config->debug) {
js::import($jsRoot . 'jquery/min.js');
js::import($jsRoot . 'zui/min.js');
js::import($jsRoot . 'chanzhi.js');
js::import($jsRoot . 'jquery/treeview/min.js');
js::import($jsRoot . 'my.js');
js::import($jsRoot . 'my.admin.js');
css::import($webRoot . 'zui/css/min.css');
css::import($jsRoot . 'jquery/treeview/min.css');
css::import($themeRoot . 'default/admin.css');
} else {
css::import($themeRoot . 'default/all.admin.css');
js::import($jsRoot . 'all.admin.js');
}
if (isset($pageCSS)) {
css::internal($pageCSS);
}
echo isset($this->config->site->favicon) ? html::icon(json_decode($this->config->site->favicon)->webPath) : html::icon($webRoot . 'favicon.ico');
echo html::rss($this->createLink('rss', 'index', '', '', 'xml'), $config->site->name);
?>
<!--[if lt IE 9]>
<?php
if ($config->debug) {
js::import($jsRoot . 'html5shiv/min.js');
js::import($jsRoot . 'respond/min.js');
} else {
js::import($jsRoot . 'all.ie8.js');
示例7:
<?php
/**
* The view file of fullcalendar module of ZenTaoPMS.
*
* @copyright Copyright 2009-2012 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license business(商业软件)
* @author Yangyang Shi <shiyangyang@cnezsoft.com>
* @package fullcalendar
* @version $Id$
* @link http://www.zentao.net
*/
css::import($defaultTheme . 'jsgantt.css', $config->version);
js::import($jsRoot . 'jquery/gantt/jsgantt.js', $config->version);
示例8:
* The calendar view of common module of RanZhi.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author chujilu <chujilu@cnezsoft.com>
* @package common
* @version $Id: calendar.html.php 2508 2015-01-26 08:32:52Z chujilu $
* @link http://www.ranzhico.com
*/
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
$clientLang = $this->app->getClientLang();
$jsRoot = $config->webRoot . "js/";
css::import($jsRoot . 'calendar/zui.calendar.min.css');
js::import($jsRoot . 'calendar/zui.calendar.min.js');
?>
<script language='javascript'>
$(function()
{
$('div.calendar').each(function()
{
var calendarObj = $(this);
var settings = {};
if(typeof v.settings != 'undefined') settings = v.settings;
/* Get setting from div. */
var divData = calendarObj.data();
for(key in divData) settings[key] = divData[key];
示例9:
<?php
if (!defined("RUN_MODE")) {
die;
}
$webRoot = $config->webRoot;
$cssRoot = $webRoot . "css/";
$jsRoot = $webRoot . "js/";
js::exportConfigVars();
css::import($cssRoot . 'my.css');
js::import($jsRoot . 'all.js');
js::import($jsRoot . 'my.js');
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-Control" content="no-transform">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- developing -->
<link rel="stylesheet/less" type="text/css" href="<?php
echo $cssRoot;
?>
my.less" />
<script type="text/javascript" src="<?php
echo $jsRoot;
?>
less/min.js"></script>
<!-- developing -->
<style type="text/css">
示例10:
<?php
/**
* The kityminder view of common module of RanZhi.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Hao Sun <sunhao@cnezsoft.com>
* @package common
* @version $Id: minder.html.php 8679 2014-05-03 00:44:12Z sunhao $
* @link http://www.ranzhico.com
*/
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
js::import($jsRoot . 'mindmap/min.js');
css::import($jsRoot . 'mindmap/min.css');
示例11: Date
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
$clientLang = $this->app->getClientLang();
css::import($jsRoot . 'datetimepicker/css/min.css');
js::import($jsRoot . 'datetimepicker/js/min.js');
if ($clientLang != 'en') {
js::import($jsRoot . 'datetimepicker/js/locales/' . $clientLang . '.js');
}
?>
<script language='javascript'>
$(function()
{
startDate = new Date(2000, 1, 1);
$(".date").datetimepicker
({
format: 'yyyy-mm-dd hh:ii',
startDate:startDate,
pickerPosition: 'top-left',
todayBtn: true,
autoclose: true,
keyboardNavigation:false,
language:'<?php
echo $clientLang;
?>
'
});
});
示例12:
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
css::import($jsRoot . 'datatable/min.css');
js::import($jsRoot . 'datatable/min.js');
if (!empty($lang->datatable)) {
?>
<style>
.table-datatable tbody > tr td,
.table-datatable thead > tr th {max-height: 34px; line-height: 21px;}
.table-datatable tbody > tr td .btn-icon > i {line-height: 19px;}
.hide-side .table-datatable thead > tr > th.check-btn i {visibility: hidden;}
.hide-side .side-handle {line-height: 33px}
.table-datatable .checkbox-row {display: none}
.outer .datatable {border: 1px solid #ddd;}
.outer .datatable .table, .outer .datatable .table tfoot td {border: none; box-shadow: none}
.datatable .table>tbody>tr>td.col-hover, .datatable .table>tbody>tr.hover>td {background-color: #ebf2f9 !important;}
.datatable-span.flexarea .scroll-slide {bottom: -30px}
.datatable-menu-wrapper {position: relative;}
.datatable-menu {position: absolute; right: 0; top: 0; border: 1px solid #ddd; background: #fff; z-index: 999;}
.datatable-menu > .btn {padding: 5px 6px 6px; outline: none; color: #4d90fe!important}
.datatable-menu > .btn:hover {color: #002563!important}
.panel > .datatable, .panel-body > .datatable {margin-bottom: 0;}
</style>
<script>
<?php
示例13:
<?php
/**
* The index view file of blog module of RanZhi.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Xiying Guan <guanxiying@xirangit.com>
* @package blog
* @version $Id: index.html.php 9763 2014-06-04 09:06:33Z guanxiying $
* @link http://www.ranzhico.com
*/
include '../../common/view/header.html.php';
css::import($themeRoot . 'default/blog.css');
include '../../../sys/common/view/treeview.html.php';
?>
<div class='row'>
<?php
include 'side.html.php';
示例14: isset
js::exportConfigVars();
if ($config->debug) {
js::import($jsRoot . 'jquery/min.js');
js::import($jsRoot . 'zui/min.js');
js::import($jsRoot . 'chanzhi.js');
js::import($jsRoot . 'jquery/treeview/min.js');
js::import($jsRoot . 'my.js');
js::import($jsRoot . 'my.admin.js');
js::import($jsRoot . 'bootstrap-multiselect.js');
css::import($webRoot . 'zui/css/min.css');
css::import($jsRoot . 'jquery/treeview/min.css');
css::import($themeRoot . 'default/admin.css');
css::import($cssRoot . 'css/bootstrap-multiselect.css');
} else {
css::import($themeRoot . 'default/all.admin.css');
css::import($cssRoot . 'css/bootstrap-multiselect.css');
js::import($jsRoot . 'all.admin.js');
js::import($jsRoot . 'bootstrap-multiselect.js');
}
if (isset($pageCSS)) {
css::internal($pageCSS);
}
echo isset($this->config->site->favicon) ? html::icon(json_decode($this->config->site->favicon)->webPath) : (file_exists($this->app->getWwwRoot() . 'favicon.ico') ? html::icon($webRoot . 'favicon.ico') : '');
echo html::rss($this->createLink('rss', 'index', '', '', 'xml'), $config->site->name);
?>
<!--[if lt IE 9]>
<?php
if ($config->debug) {
js::import($jsRoot . 'html5shiv/min.js');
js::import($jsRoot . 'respond/min.js');
} else {
示例15: function
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
$clientLang = $this->app->getClientLang();
if ($config->debug) {
css::import($jsRoot . 'jquery/datetimepicker/min.css');
js::import($jsRoot . 'jquery/datetimepicker/min.js');
}
?>
<script language='javascript'>
$(function()
{
$.fn.fixedDate = function()
{
return $(this).each(function()
{
var $this = $(this);
if($this.offset().top + 200 > $(document.body).height())
{
$this.attr('data-picker-position', 'top-right');
}
if($this.val() == '0000-00-00')
{
$this.focus(function(){if($this.val() == '0000-00-00') $this.val('').datetimepicker('update');}).blur(function(){if($this.val() == '') $this.val('0000-00-00')});
}
});
};