styles = array( 'styles' => array( 'title' => 'Original Style', 'screenshot' => '/styles/screenshot.gif', 'description' => 'The original stylesheet, heavy on transparent PNGs and CSS. This style breaks horribly in Internet Explorer. To avoid having to witness the horror of the IE interpretation of this stylesheet if this style is chosen for IE will default to displaying the minimal style. Currently of the browsers I’ve tested only Opera 8+ displays everything as intended, Gecko seems to have issues styling generated content.' ), 'minimal' => array( 'title' => 'Minimal style', 'screenshot' => '/minimal/screenshot.gif', 'description' => 'Plain and simple, so simple even IE almost gets it right! A little JavaScript is used to compensate for lack of support for CSS selectors in Internet Explorer and fix a few minor display issues. This is the current default style — until I get bored and either return to using the original style again, or create a new stylesheet ;-)' ) ); if (isset($_POST['style']) && !empty($this->styles[$_POST['style']])) { setcookie('style', $_POST['style'], time()+ 60 * 60 * 24 * 60, '/'); header("Refresh: 0; url=http://$_SERVER[HTTP_HOST]$_SERVER[PHP_SELF]?set=$_POST[style]"); exit(); } $this->HTMLTemplate(); } function HTMLTemplate() { $content = "
Your choice of style has been saved.
\n"; } $content .= "