本文整理汇总了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);
}
}
示例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;
}
示例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;
}
示例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';
}
示例5: index
public function index()
{
css::add(array('media/css/home.css'));
$this->template->content = new View('content/home');
}
示例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'));
}