diff options
author | wei <> | 2007-05-09 04:21:41 +0000 |
---|---|---|
committer | wei <> | 2007-05-09 04:21:41 +0000 |
commit | c3c0dc28d3e9964bddbe66dac34080cf9e1dd05c (patch) | |
tree | 648bb85a309712e66374dc4dac25cbea839a328b /tests/FunctionalTests/tickets/protected/pages/Ticket603.php | |
parent | 2c8dcb09949ea6fb1ae9ee45cc1b36a0d5c396d9 (diff) |
Fixed #598
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket603.php')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket603.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket603.php b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php new file mode 100644 index 00000000..6af0cf6d --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket603.php @@ -0,0 +1,30 @@ +<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket603 extends TPage
+{
+ protected $_isHtml;
+
+ public function onLoad($param) {
+ parent::onLoad($param);
+ $this->_isHtml = true;
+ }
+
+ public function switchContentTypeClicked( $sender, $param ) {
+ $this->_isHtml = !$this->_isHtml;
+ if ( $this->_isHtml ) {
+ $this->EditHtmlTextBox->EnableVisualEdit = true;
+ $this->EditHtmlTextBox->Text = '<b>somehtml</b>';
+ } else {
+ $this->EditHtmlTextBox->EnableVisualEdit = false;
+ $this->EditHtmlTextBox->Text = 'plai bla bla';
+ }
+ }
+
+ public function switchContentTypeCallback( $sender, $param ) {
+ $this->ContentPanel->render( $param->NewWriter );
+ }
+}
+
+?>
\ No newline at end of file |