当前位置: 首页>>代码示例>>PHP>>正文


PHP css类代码示例

本文整理汇总了PHP中css的典型用法代码示例。如果您正苦于以下问题:PHP css类的具体用法?PHP css怎么用?PHP css使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了css类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 = '&#169; 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 <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);
开发者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 <chunsheng@cnezsoft.com>
 * @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 <chunsheng@cnezsoft.com>
 * @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    :   '&nbsp;&nbsp;&nbsp;&nbsp;'
}
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


注:本文中的css类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。