source: Dev/trunk/classes/StyleSheet.php @ 186

Last change on this file since 186 was 177, checked in by fpvanagthoven, 13 years ago
  • Boel dingen gesloopt, maar wel allemaal terug te draaien.
  • Nieuwe stylesheet begonnen (visualeditors.css), die de meuk uit de andere stylesheets een beetje uitdunt. Bedoeling is dat deze stylesheet generiek genoeg is om voor alle verdere en huidige pagina's te werken.
  • Layout van surveyEditor gemaakt, is nog lang niet klaar, maar het format van de editor en de questions daarin is duidelijk. Vrijdag bevestigen tijdens geprek Julia of dit inderdaad een handig format is.
  • resetstyle.css toegevoegd aan de StyleSheet?.php class, deze zorgt voor meer browser cross-compatibility door de styling van elementen 'op nul te zetten'.
  • Toolbox.php en pipelineSequencer_1.php zijn nu aangepast aan de nieuwe stylesheet. Deze worden later weer hernoemd naar de goede naam.
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.