source: Dev/branches/jos-branch/classes_old/StyleSheet.php @ 210

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

Moved all classes into classes_old

File size: 711 bytes
RevLine 
[142]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
[177]22        echo '<link rel="Stylesheet" type="text/css" href="css/resetstyle.css" />';
[142]23        echo '<link rel="Stylesheet" type="text/css" href="' . $this->path . '"/>';
[177]24       
[142]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.