Source for file LStyleSheetThemeChooser.php
Documentation is available at LStyleSheetThemeChooser.php
* LStaticHtmlBrick class file.
* @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
* @copyright 2005, diemeisterei GmbH. All rights reserved.
* @author $Author: schmunk $
* @version $Revision: 197 $ $Date: 2006-05-11 21:50:24 +0000 (Do, 11 Mai 2006) $
* @package Phundament.Components
* @subpackage WebControls
* Displays a brick with static HTML
* Can also use PRADO tags (testing)
* @package System.Web.UI.WebControls
* @subpackage Configuration
* @return string: name of the brick
return "StyleSheet-Theme Chooser";
#$admin = '<com:TTextBox ID="HTML" Width="100%" Rows="8" TextMode="MultiLine"/><br/>';
#$this->addAdminSnippet($admin);
* prepares code in TTemplate
public function onInit($param)
parent :: onInit($param);
$themes = $this->Application->getModule("theme")->getAvailableThemes();
foreach($themes AS $theme)
$this->StyleSheetThemes->DataSource = $ds;
$this->StyleSheetThemes->dataBind();
$this->StyleSheetThemes->SelectedValue = $this->Session['LStyleSheetThemeChoose:Style'];
Prado::log($e->getMessage(),TLogger::NOTICE,"Lithron.LStyleSheetThemeChooser");
#$this->Session['LStyleSheetThemeChoose:Style'];
$this->Page->setStyleSheetTheme($this->Session['LStyleSheetThemeChoose:Style']);
#$this->Page->setStyleSheetTheme("");
$style = $this->StyleSheetThemes->SelectedValue;
$this->Session['LStyleSheetThemeChoose:Style'] = $style;
$this->Service->reload();
|