source: Dev/branches/jos-branch/classes/styles/StyleSheet.php @ 230

Last change on this file since 230 was 230, checked in by jkraaijeveld, 13 years ago

Made most functionality from the demo branch work with new database.

File size: 711 bytes
Line 
1<?php
2
3/*
4 * To change this template, choose Tools | Templates
5 * and open the template in the editor.
6 */
7
8/**
9 * Standard stylesheet class
10 *
11 * @author tschipper
12 */
13class StyleSheet {
14
15    public $filename; // includes path
16
17    public function __construct($styleName) {
18
19        // call new StyleSheet("standard") to load css/standard.css
20        $this->path = "css/" . $styleName . ".css";
21
22        echo '<link rel="Stylesheet" type="text/css" href="css/resetstyle.css" />';
23        echo '<link rel="Stylesheet" type="text/css" href="' . $this->path . '"/>';
24       
25        echo "\n";
26    }
27
28    public function ChangeStyle($styleName) {
29        $this->path = "css/" . $styleName . ".css";
30    }
31
32}
33
34?>
Note: See TracBrowser for help on using the repository browser.