summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php
diff options
context:
space:
mode:
authorctrlaltca <>2012-07-12 11:21:01 +0000
committerctrlaltca <>2012-07-12 11:21:01 +0000
commit903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch)
treee08bf04f0823650a231227ac3499121270172a23 /tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php
parent3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff)
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php120
1 files changed, 60 insertions, 60 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php b/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php
index c5235dc6..013ffe61 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php
+++ b/tests/FunctionalTests/active-controls/protected/pages/RepeaterWithActiveControls.php
@@ -1,61 +1,61 @@
-<?php
-
-class RepeaterWithActiveControls extends TPage
-{
- private $_data=array('Hello', 'World', 'Prado');
-
- private $_status='';
-
- public function onLoad($param)
- {
- parent::onLoad($param);
- if(!$this->IsCallback)
- {
- $this->repeater1->DataSource = $this->_data;
- $this->repeater1->dataBind();
- }
- }
-
- public function label_changed($sender, $param)
- {
- $index = $sender->getParent()->ItemIndex + 1;
- $this->_status .= " Update textbox {$index}: ".$sender->Text;
- }
-
- public function onPreRender($param)
- {
- parent::onPreRender($param);
- if(trim($this->_status))
- $this->label1->Text = $this->_status;
- }
-
- public function enable_edit($sender, $param)
- {
- if($this->update_button->Enabled==false)
- {
- for($i = 0; $i<count($this->repeater1->Items); $i++)
- {
- $textbox = $this->repeater1->Items[$i]->edit_box;
- $textbox->DisplayTextBox = true;
- }
- $this->update_button->Enabled = true;
- $sender->Enabled=false;
- }
- }
-
- public function disable_edit($sender, $param)
- {
- if($this->update_button->Enabled==true)
- {
- for($i = 0; $i<count($this->repeater1->Items); $i++)
- {
- $textbox = $this->repeater1->Items[$i]->edit_box;
- $textbox->DisplayTextBox = false;
- }
- $this->edit_button->Enabled = true;
- $sender->Enabled=false;
- }
- }
-}
-
+<?php
+
+class RepeaterWithActiveControls extends TPage
+{
+ private $_data=array('Hello', 'World', 'Prado');
+
+ private $_status='';
+
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ if(!$this->IsCallback)
+ {
+ $this->repeater1->DataSource = $this->_data;
+ $this->repeater1->dataBind();
+ }
+ }
+
+ public function label_changed($sender, $param)
+ {
+ $index = $sender->getParent()->ItemIndex + 1;
+ $this->_status .= " Update textbox {$index}: ".$sender->Text;
+ }
+
+ public function onPreRender($param)
+ {
+ parent::onPreRender($param);
+ if(trim($this->_status))
+ $this->label1->Text = $this->_status;
+ }
+
+ public function enable_edit($sender, $param)
+ {
+ if($this->update_button->Enabled==false)
+ {
+ for($i = 0; $i<count($this->repeater1->Items); $i++)
+ {
+ $textbox = $this->repeater1->Items[$i]->edit_box;
+ $textbox->DisplayTextBox = true;
+ }
+ $this->update_button->Enabled = true;
+ $sender->Enabled=false;
+ }
+ }
+
+ public function disable_edit($sender, $param)
+ {
+ if($this->update_button->Enabled==true)
+ {
+ for($i = 0; $i<count($this->repeater1->Items); $i++)
+ {
+ $textbox = $this->repeater1->Items[$i]->edit_box;
+ $textbox->DisplayTextBox = false;
+ }
+ $this->edit_button->Enabled = true;
+ $sender->Enabled=false;
+ }
+ }
+}
+
?> \ No newline at end of file