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


PHP css::add方法代码示例

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


在下文中一共展示了css::add方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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/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

示例3: 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

示例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: index

 public function index()
 {
     css::add(array('media/css/home.css'));
     $this->template->content = new View('content/home');
 }
开发者ID:Actuarybrad,项目名称:new-consumer-portal,代码行数:5,代码来源:home.php

示例6: index

 public function index()
 {
     css::add(array('media/css/liqajax.css'));
     $this->template->content = new View('content/liqajax');
     javascript::add(array('media/js/ext-base.js', 'media/js/ext-all.js', 'media/js/liqajax.js'));
 }
开发者ID:Actuarybrad,项目名称:new-consumer-portal,代码行数:6,代码来源:liqajax.php


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