本文整理汇总了PHP中css类的典型用法代码示例。如果您正苦于以下问题:PHP css类的具体用法?PHP css怎么用?PHP css使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了css类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: add_soundmanager
static function add_soundmanager($where = 'head', $debug = false)
{
css::add('#soundmanager-debug {position:absolute;right:0px;bottom:0px;width:50em;height:18em;overflow:auto;background:#fff;color:#000;margin:1em;padding:1em;border:1px solid #999;font-family:"lucida console",verdana,tahoma,"sans serif";font-size:x-small;line-height:1.5em;}');
if ($debug) {
self::add('js/soundmanager2.js', $where);
self::add("soundManager.url = '/pics/soundmanager2.swf';", $where);
} else {
self::add('js/sm2.js', $where);
self::add("soundManager.url = '/pics/soundmanager2.swf'; soundManager.debugMode = false;", $where);
}
}
开发者ID:NatWeiss,项目名称:JankyPHP,代码行数:11,代码来源:js.php
示例2: page
public function page($pagenum)
{
css::add(array('media/css/rating.css'));
$this->template->content = new View('content/rating');
$db = new Database();
$query = $db->query("SELECT Company FROM ambestf");
$this->pagination = new Pagination(array('directory' => 'pagination', 'style' => 'trinhall', 'uri_segment' => 3, 'query_string' => '', 'items_per_page' => 23, 'auto_hide' => FALSE, 'total_items' => $query->count()));
$this->pagination->extras = array('hide_count' => TRUE);
$b = $this->pagination->items_per_page;
$offset = ($pagenum - 1) * $b;
$result = $db->query("SELECT Company, Rating1, Rating2, Rating3, Rating4 FROM ambestf ORDER BY Company ASC LIMIT {$b} OFFSET {$offset}");
$this->template->content->result = $result;
}
开发者ID:Actuarybrad,项目名称:new-consumer-portal,代码行数:13,代码来源:rating.php
示例3: page
public function page($pagenum)
{
css::add(array('media/css/fee.css'));
javascript::add(array('media/js/ext-base.js', 'media/js/ext-all.js', 'media/js/app.js'));
$this->template->content = new View('content/fees');
$db = new Database('fees');
$query = $db->query("SELECT co_name FROM feesNew");
$this->pagination = new Pagination(array('uri_segment' => 'page', 'total_items' => $query->count(), 'items_per_page' => 28, 'style' => 'punbb'));
$b = $this->pagination->items_per_page;
$offset = ($pagenum - 1) * $b;
$result = $db->query("SELECT co_name FROM feesNew ORDER BY co_name ASC LIMIT {$b} OFFSET {$offset}");
$this->template->content->result = $result;
}
开发者ID:Actuarybrad,项目名称:new-consumer-portal,代码行数:13,代码来源:fees.php
示例4: __construct
public function __construct()
{
parent::__construct();
$menu = array(array('link' => 'home', 'text' => '<span>Home</span>', 'class' => ''), array('link' => 'rating', 'text' => '<span>Ratings</span>', 'class' => ''), array('link' => 'fees', 'text' => '<span>Filing Fees</span>', 'class' => ''), array('link' => 'liqfees', 'text' => '<span>Liquid Fees</span>', 'class' => ''), array('link' => 'liqajax', 'text' => '<span>Liquid Ajax</span>', 'class' => ''), array('link' => 'contact', 'text' => '<span>Contact</span>', 'class' => ''));
css::add(array('media/css/screen.css', 'media/css/fancy-type/screen.css'));
$tvalue = $this->uri->segment(1);
if (empty($tvalue)) {
$menu[0]['class'] = 'current';
} else {
for ($i = 0, $cnt = count($menu); $i < $cnt; $i++) {
if ($menu[$i]['link'] == $tvalue) {
$menu[$i]['class'] = 'current';
} else {
$menu[$i]['class'] = '';
}
}
}
$this->template->menu = $menu;
$this->template->footer = '© Public Regulation Commission';
}
开发者ID:Actuarybrad,项目名称:new-consumer-portal,代码行数:20,代码来源:website.php
示例5: json_encode
<?php
js::import($jsRoot . 'jplayer/dist/jplayer/jquery.jplayer.min.js');
css::import($jsRoot . 'jplayer/dist/skin/blue.monday/css/jplayer.blue.monday.min.css');
?>
<script type="text/javascript">
$(document).ready(function()
{
$('embed').hide();
$('embed').each(function(index)
{
src = $(this).attr('src');
w = $(this).width();
h = $(this).height();
containerID = "media_container_" + index;
id = "media_" + index;
var reg = /\.flv$|\.flv\?|\.webm$|\.webm\?|\.wmv$|\.rtmp\?|\.rtmp$|\.mp3\?|\.mp3$|\.ogg\?|\.ogg$|\.mp4\?|\.mp4$|\.mp4\?/;
mediaType = reg.exec(src);
if(mediaType)
{
mediaType = mediaType.toString().replace('.', '');
mediaType = mediaType.toString().replace('?', '');
mediaTypeList = <?php
echo json_encode($this->config->file->mediaTypes);
?>
;
mediaType = eval("mediaTypeList." + mediaType.toLowerCase());
}
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:31,代码来源:jplayer.html.php
示例6:
<?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 <[email protected]>
* @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);
开发者ID:xupnge1314,项目名称:project,代码行数:14,代码来源:gantt.html.php
示例7:
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
css::import($defaultTheme . 'colorbox.css');
js::import($jsRoot . 'jquery/colorbox/min.js');
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:8,代码来源:colorbox.html.php
示例8: ucfirst
if (isset($blockInfos['block_category'])) {
$categBlock = $blockInfos['block_category'];
} else {
$categBlock = $module;
}
if (!isset($blocksCat[$categBlock])) {
$blocksCat[$categBlock] = '';
}
if (isset($blockInfos['description'])) {
$description = ucfirst(s($blockInfos['description']));
}
$blocksCat[$categBlock] .= '<div class="admin_core_block tooltip" data-title="' . trim(ucfirst(s($blockInfos['title']))) . '" data-tooltip="' . $description . '" draggable="true" id="' . str_replace('\\', '', $blockClassName) . '" data-block="' . $blockClassName . '" style="background:url(' . BASE_PATH . $module . '/blocks/' . $blockName . '/icon.png) center center no-repeat;"></div>';
}
/* List default stylables selecteurs */
if (is_file('modules/' . $module . '/blocks/' . $blockName . '/default.css')) {
$css = new css('modules/' . $module . '/blocks/' . $blockName . '/default.css');
$CSSValues = $css->getCSSValues();
if (!isset($stylableElements[$module . '_' . $blockName])) {
$stylableElements[$module . '_' . $blockName] = array();
}
foreach ($CSSValues as $selecteur => $components) {
preg_match('@\\{(.*)\\}@', $components['b'], $res);
if (!empty($res)) {
$stylableElements[$module . '_' . $blockName][$res[1]] = $selecteur;
}
}
}
}
}
foreach ($blocksCat as $title => $blocks) {
echo '<div class="titleTab ellipsis">' . t(ucfirst($title), FALSE) . '</div>';
开发者ID:saitinet,项目名称:parsimony,代码行数:31,代码来源:view.php
示例9: explode
* @version $Id$
* @link http://www.chanzhi.org
*/
include TPL_ROOT . 'common/header.html.php';
include TPL_ROOT . 'common/treeview.html.php';
/* set categoryPath for topNav highlight. */
js::set('path', $product->path);
js::set('productID', $product->id);
js::set('categoryID', $category->id);
js::set('categoryPath', explode(',', trim($category->path, ',')));
js::set('addToCartSuccess', $lang->product->addToCartSuccess);
js::set('gotoCart', $lang->product->gotoCart);
js::set('goback', $lang->product->goback);
js::set('stockOpened', $stockOpened);
js::set('stock', $product->amount);
css::internal($product->css);
js::execute($product->js);
?>
<div class="main-content">
<?php
$common->printPositionBar($category, $product);
?>
<div class="main-box">
<!-- 左边分类列表开始 -->
<div class="left">
<?php
foreach ($children as $sub1) {
?>
<a href="<?php
echo $siteRoot . "product/c" . $sub1->id . ".html";
开发者ID:hansen1416,项目名称:eastsoft,代码行数:31,代码来源:view.html.php
示例10:
<?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>
开发者ID:dyp8848,项目名称:chanzhieps,代码行数:24,代码来源:chosen.html.php
示例11:
<?php
include TPL_ROOT . 'common/header.html.php';
include TPL_ROOT . 'common/treeview.html.php';
js::set('pageID', $page->id);
css::internal($page->css);
js::execute($page->js);
$common->printPositionBar($page);
?>
<div class='row blocks' data-region='page_view-topBanner'><?php
$this->block->printRegion($layouts, 'page_view', 'topBanner', true);
?>
</div>
<div class='row'>
<?php
if (!empty($layouts['page_view'])) {
?>
<div class='col-md-9 col-main'>
<?php
} else {
?>
<div class='col-md-12'>
<?php
}
?>
<div class='row blocks' data-region='page_view-top'><?php
$this->block->printRegion($layouts, 'page_view', 'top', true);
?>
</div>
<div class='article' id='page<?php
echo $page->id;
开发者ID:jnan77,项目名称:chanzhieps,代码行数:31,代码来源:view.html.php
示例12:
<?php
/**
* The treeview 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 Chunsheng Wang <[email protected]>
* @package common
* @version $Id: treeview.html.php 3138 2015-11-09 07:32:18Z chujilu $
* @link http://www.ranzhico.com
*/
css::import($jsRoot . 'jquery/treeview/min.css');
js::import($jsRoot . 'jquery/treeview/min.js');
?>
<script language='javascript'>$(function()
{
$('.tree').each(function()
{
var $this = $(this);
$this.treeview($.extend({collapsed: false, unique: false}, $this.data()));
});
})</script>
开发者ID:leowh,项目名称:colla,代码行数:23,代码来源:treeview.html.php
示例13:
js::import($jsRoot . 'all.ie8.js');
}
?>
<![endif]-->
<!--[if lt IE 10]>
<?php
if ($config->debug) {
js::import($jsRoot . 'jquery/placeholder/min.js');
} else {
js::import($jsRoot . 'all.ie9.js');
}
?>
<![endif]-->
<?php
if (isset($this->config->site->basestyle)) {
css::internal($this->config->site->basestyle);
}
if (isset($this->config->site->basejs)) {
js::execute($this->config->site->basejs);
}
?>
</head>
<body>
<div class='page-container page-blog'>
<header id='header' class='clearfix'>
<div id='headNav'><div class='wrapper'><?php
echo commonModel::printTopBar();
?>
</div></div>
<div id='headTitle'>
<div class="wrapper">
开发者ID:echenxin-company,项目名称:QuanFangXing,代码行数:31,代码来源:header.html.php
示例14:
<?php
/**
* The html template file of index method of index module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv11.html)
* @author Chunsheng Wang <[email protected]>
* @package ZenTaoPMS
* @version $Id: index.html.php 1947 2011-06-29 11:58:03Z wwccss $
*/
include '../../common/view/header.html.php';
include '../../common/view/sparkline.html.php';
css::import($defaultTheme . 'index.css', $config->version);
?>
<div class="row">
<div class="col-md-8">
<?php
include './blockprojects.html.php';
?>
<?php
include './blockproducts.html.php';
?>
</div>
<div class="col-md-4">
<?php
if (common::hasPriv('company', 'dynamic')) {
include './blockdynamic.html.php';
}
?>
</div>
开发者ID:nanata1115,项目名称:zentaopms,代码行数:31,代码来源:index.html.php
示例15: Date
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
css::import($defaultTheme . 'datepicker.css');
js::import($jsRoot . 'jquery/datepicker/min.js');
js::import($jsRoot . 'jquery/datepicker/date.js');
?>
<script language='javascript'>
Date.firstDayOfWeek = 1;
Date.format = 'yyyy-mm-dd';
$.dpText = {
TEXT_PREV_YEAR : '去年',
TEXT_PREV_MONTH : '上个月',
TEXT_NEXT_YEAR : '明年',
TEXT_NEXT_MONTH : '下个月',
TEXT_CLOSE : '关闭',
TEXT_CHOOSE_DATE : ' '
}
Date.dayNames = ['日', '一', '二', '三', '四', '五', '六'];
Date.abbrDayNames = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
Date.monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'];
$(function() {
startDate = new Date(1970, 1, 1);
$(".date").datePicker({createButton:true, startDate:startDate})
.dpSetPosition($.dpConst.POS_TOP, $.dpConst.POS_RIGHT)
});
</script>
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:31,代码来源:datepicker.html.php
示例16: setlocale
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chunsheng Wang <[email protected]>
* @package productplan
* @version $Id: view.html.php 3341 2012-07-14 07:26:53Z [email protected] $
* @link http://www.zentao.net
*/
include '../../common/view/header.html.php';
include '../../common/view/tablesorter.html.php';
?>
<?php
if (!empty($planStories) && true == false) {
$webRoot = PM_SITE;
$defaultTheme = $webRoot . 'theme/default/';
css::import($defaultTheme . 'gante_styles/css/screen.css', 2.3);
css::import($defaultTheme . 'gante_styles/css/gantti.css', 2.3);
require '../../m_gante/lib/gantti.php';
date_default_timezone_set('UTC');
setlocale(LC_ALL, 'en_US');
$data = array();
foreach ($planStories as $storyID => $story) {
foreach ($story->tasklist as $tasklists) {
foreach ($tasklists as $key => $value) {
if ($value->type == 'test') {
$data[] = array('label' => $story->id . "[" . $users[$value->assignedTo] . "]" . $value->name, 'storyid' => $story->id, 'start' => $value->estStarted, 'end' => $value->deadline . " 24:00:00", 'class' => 'urgent');
} else {
$data[] = array('label' => $story->id . "[" . $users[$value->assignedTo] . "]" . $value->name, 'storyid' => $story->id, 'start' => $value->estStarted, 'end' => $value->deadline . " 24:00:00");
}
}
}
}
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:31,代码来源:view.html.php
示例17:
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
include $this->app->getBasePath() . 'app/sys/common/view/header.html.php';
css::import($this->app->getClientTheme() . 'theme.oa.css');
开发者ID:leowh,项目名称:colla,代码行数:8,代码来源:header.html.php
示例18:
<?php
if ($extView = $this->getExtViewFile(__FILE__)) {
include $extView;
return helper::cd();
}
css::import($defaultTheme . 'chosen.css');
js::import($jsRoot . 'jquery/chosen/chosen.min.js');
?>
<style>
#colorbox, #cboxOverlay, #cboxWrapper{z-index:9999;}
</style>
<script>
noResultsMatch = '<?php
echo $lang->noResultsMatch;
?>
';
$(document).ready(function()
{
$("#productID").chosen({no_results_text: noResultsMatch});
$("#projectID").chosen({no_results_text: noResultsMatch});
});
</script>
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:23,代码来源:chosen.html.php
示例19: 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>
开发者ID:shshenpengfei,项目名称:scrum_project_manage_system,代码行数:30,代码来源:header.lite.html.php
示例20:
<?php
/**
* The view of doc module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv11.html)
* @author Jia Fu <[email protected]>
* @package doc
* @version $Id: view.html.php 975 2010-07-29 03:30:25Z [email protected] $
* @link http://www.zentao.net
*/
include '../../common/view/header.html.php';
echo css::internal($keTableCSS);
?>
<div id='titlebar'>
<div class='heading'>
<span class='prefix' title='DOC'><?php
echo html::icon($lang->icons['doc']);
?>
<strong><?php
echo $doc->id;
?>
</strong></span>
<strong><?php
echo $doc->title;
?>
</strong>
<?php
if ($doc->deleted) {
?>
开发者ID:XMGmen,项目名称:zentao,代码行数:31,代码来源:view.html.php
注:本文中的css类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论