@@ -13,23 +13,23 @@ discard block |
||
| 13 | 13 | } |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - public function getDatePicker() |
|
| 17 | - { |
|
| 18 | - $this->ensureChildControls(); |
|
| 19 | - return $this->getRegisteredObject('datePicker'); |
|
| 20 | - } |
|
| 16 | + public function getDatePicker() |
|
| 17 | + { |
|
| 18 | + $this->ensureChildControls(); |
|
| 19 | + return $this->getRegisteredObject('datePicker'); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - public function getHourPicker() |
|
| 23 | - { |
|
| 24 | - $this->ensureChildControls(); |
|
| 25 | - return $this->getRegisteredObject('hourPicker'); |
|
| 26 | - } |
|
| 22 | + public function getHourPicker() |
|
| 23 | + { |
|
| 24 | + $this->ensureChildControls(); |
|
| 25 | + return $this->getRegisteredObject('hourPicker'); |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - public function getMinutePicker() |
|
| 29 | - { |
|
| 30 | - $this->ensureChildControls(); |
|
| 31 | - return $this->getRegisteredObject('minutePicker'); |
|
| 32 | - } |
|
| 28 | + public function getMinutePicker() |
|
| 29 | + { |
|
| 30 | + $this->ensureChildControls(); |
|
| 31 | + return $this->getRegisteredObject('minutePicker'); |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | 34 | public function getShowHours() |
| 35 | 35 | { |
@@ -91,12 +91,12 @@ discard block |
||
| 91 | 91 | return $this->TimeStamp; |
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | - public function getIsValid() |
|
| 95 | - { |
|
| 96 | - return $this->_isValid; |
|
| 97 | - } |
|
| 98 | - public function setIsValid($value) |
|
| 99 | - { |
|
| 100 | - $this->_isValid=TPropertyValue::ensureBoolean($value); |
|
| 101 | - } |
|
| 94 | + public function getIsValid() |
|
| 95 | + { |
|
| 96 | + return $this->_isValid; |
|
| 97 | + } |
|
| 98 | + public function setIsValid($value) |
|
| 99 | + { |
|
| 100 | + $this->_isValid=TPropertyValue::ensureBoolean($value); |
|
| 101 | + } |
|
| 102 | 102 | } |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | class MyJavascriptLib extends TComponent |
| 4 | 4 | { |
| 5 | - private $_packages=array(); //keep track of all registrations |
|
| 5 | + private $_packages=array(); //keep track of all registrations |
|
| 6 | 6 | |
| 7 | 7 | private $_manager; |
| 8 | 8 | |
@@ -5,11 +5,11 @@ |
||
| 5 | 5 | function test() |
| 6 | 6 | { |
| 7 | 7 | $base='ctl0_Content_'; |
| 8 | - $this->url("active-controls/index.php?page=ActiveHiddenFieldTest"); |
|
| 9 | - $fieldEmpty = 'No longer empty'; |
|
| 10 | - $fieldUsed = 'My value'; |
|
| 8 | + $this->url("active-controls/index.php?page=ActiveHiddenFieldTest"); |
|
| 9 | + $fieldEmpty = 'No longer empty'; |
|
| 10 | + $fieldUsed = 'My value'; |
|
| 11 | 11 | |
| 12 | - $this->assertSourceContains('Value of current hidden field'); |
|
| 12 | + $this->assertSourceContains('Value of current hidden field'); |
|
| 13 | 13 | $this->byId("{$base}Button1")->click(); |
| 14 | 14 | $this->pause(800); |
| 15 | 15 | $this->assertText("{$base}ResponseLabel", $fieldEmpty); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $this->pause(50); |
| 32 | 32 | $this->assertEquals('ok', $this->alertText()); |
| 33 | 33 | $this->acceptAlert(); |
| 34 | - $this->pause(500); |
|
| 34 | + $this->pause(500); |
|
| 35 | 35 | $this->assertEquals('baz!', $this->alertText()); |
| 36 | 36 | $this->acceptAlert(); |
| 37 | 37 | } |
@@ -2,50 +2,50 @@ |
||
| 2 | 2 | |
| 3 | 3 | class GerTurno2 extends TPage { |
| 4 | 4 | |
| 5 | - private $_turnos = null; |
|
| 5 | + private $_turnos = null; |
|
| 6 | 6 | |
| 7 | 7 | |
| 8 | - public function onLoad($param) { |
|
| 9 | - parent::onLoad($param); |
|
| 8 | + public function onLoad($param) { |
|
| 9 | + parent::onLoad($param); |
|
| 10 | 10 | |
| 11 | - $this->loadTurnoOptions(); |
|
| 11 | + $this->loadTurnoOptions(); |
|
| 12 | 12 | |
| 13 | - if (!$this->IsPostBack) { |
|
| 14 | - $this->ativaModoEdicao(); |
|
| 15 | - } |
|
| 16 | - } |
|
| 13 | + if (!$this->IsPostBack) { |
|
| 14 | + $this->ativaModoEdicao(); |
|
| 15 | + } |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | 18 | |
| 19 | - protected function loadTurnoOptions() |
|
| 20 | - { |
|
| 21 | - $this->DDropTurno->DataTextField="descricao"; |
|
| 22 | - $this->DDropTurno->DataValueField="id"; |
|
| 23 | - $this->_turnos = array( |
|
| 19 | + protected function loadTurnoOptions() |
|
| 20 | + { |
|
| 21 | + $this->DDropTurno->DataTextField="descricao"; |
|
| 22 | + $this->DDropTurno->DataValueField="id"; |
|
| 23 | + $this->_turnos = array( |
|
| 24 | 24 | array('id' => 1, 'codigo'=>'test 1', 'descricao' => 'hello 1'), |
| 25 | 25 | array('id' => 2, 'codigo'=>'test 2', 'descricao' => 'hello 2') |
| 26 | 26 | ); |
| 27 | - $this->DDropTurno->setDataSource($this->_turnos); |
|
| 28 | - $this->DDropTurno->dataBind(); |
|
| 29 | - } |
|
| 27 | + $this->DDropTurno->setDataSource($this->_turnos); |
|
| 28 | + $this->DDropTurno->dataBind(); |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | 31 | |
| 32 | - protected function ativaModoEdicao() { |
|
| 33 | - $this->loadDadosTurno($this->DDropTurno->getSelectedValue()); |
|
| 34 | - } |
|
| 32 | + protected function ativaModoEdicao() { |
|
| 33 | + $this->loadDadosTurno($this->DDropTurno->getSelectedValue()); |
|
| 34 | + } |
|
| 35 | 35 | |
| 36 | 36 | |
| 37 | - protected function loadDadosTurno($id) { |
|
| 38 | - foreach ($this->_turnos as $key => $tur) { |
|
| 39 | - if ($tur['id'] == $id) { |
|
| 40 | - $this->Codigo->setText($tur['codigo']); |
|
| 41 | - $this->Descricao->setText($tur['descricao']); |
|
| 42 | - } |
|
| 43 | - } |
|
| 44 | - } |
|
| 37 | + protected function loadDadosTurno($id) { |
|
| 38 | + foreach ($this->_turnos as $key => $tur) { |
|
| 39 | + if ($tur['id'] == $id) { |
|
| 40 | + $this->Codigo->setText($tur['codigo']); |
|
| 41 | + $this->Descricao->setText($tur['descricao']); |
|
| 42 | + } |
|
| 43 | + } |
|
| 44 | + } |
|
| 45 | 45 | |
| 46 | 46 | |
| 47 | - public function trocaTurno($sender,$param) { |
|
| 48 | - $this->loadDadosTurno($sender->getSelectedValue()); |
|
| 49 | - } |
|
| 47 | + public function trocaTurno($sender,$param) { |
|
| 48 | + $this->loadDadosTurno($sender->getSelectedValue()); |
|
| 49 | + } |
|
| 50 | 50 | |
| 51 | 51 | } |
@@ -4,13 +4,13 @@ |
||
| 4 | 4 | { |
| 5 | 5 | public function showA() |
| 6 | 6 | { |
| 7 | - $this->pnlB->Visible = false; |
|
| 8 | - $this->pnlA->Visible = true; |
|
| 9 | - } |
|
| 7 | + $this->pnlB->Visible = false; |
|
| 8 | + $this->pnlA->Visible = true; |
|
| 9 | + } |
|
| 10 | 10 | |
| 11 | - public function showB() |
|
| 12 | - { |
|
| 13 | - $this->pnlB->Visible = true; |
|
| 14 | - $this->pnlA->Visible = false; |
|
| 15 | - } |
|
| 11 | + public function showB() |
|
| 12 | + { |
|
| 13 | + $this->pnlB->Visible = true; |
|
| 14 | + $this->pnlA->Visible = false; |
|
| 15 | + } |
|
| 16 | 16 | } |
@@ -2,60 +2,60 @@ |
||
| 2 | 2 | |
| 3 | 3 | class DMessagesPanel extends TTemplateControl |
| 4 | 4 | { |
| 5 | - private $_panelCssClass = ''; |
|
| 5 | + private $_panelCssClass = ''; |
|
| 6 | 6 | |
| 7 | - public function onInit($param) |
|
| 8 | - { |
|
| 9 | - parent::onInit($param); |
|
| 10 | - $this->MessagesPanelEffect->Text = ""; |
|
| 11 | - } |
|
| 7 | + public function onInit($param) |
|
| 8 | + { |
|
| 9 | + parent::onInit($param); |
|
| 10 | + $this->MessagesPanelEffect->Text = ""; |
|
| 11 | + } |
|
| 12 | 12 | |
| 13 | - public function setMessage($value) |
|
| 14 | - { |
|
| 15 | - $this->Message->Text = $value; |
|
| 16 | - if ($value != '') |
|
| 13 | + public function setMessage($value) |
|
| 14 | + { |
|
| 15 | + $this->Message->Text = $value; |
|
| 16 | + if ($value != '') |
|
| 17 | 17 | $this->setVisible(true); |
| 18 | - else |
|
| 18 | + else |
|
| 19 | 19 | $this->setVisible(false); |
| 20 | - } |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - public function setVisible($value) |
|
| 23 | - { |
|
| 22 | + public function setVisible($value) |
|
| 23 | + { |
|
| 24 | 24 | $this->ensureChildControls(); |
| 25 | - if ($value === true) { |
|
| 25 | + if ($value === true) { |
|
| 26 | 26 | echo "set visible"; |
| 27 | - $this->MessagesPanel->Visible = true; |
|
| 28 | - $this->Message->Visible = true; |
|
| 29 | - $this->setEffect(null); |
|
| 30 | - } else { |
|
| 31 | - $this->MessagesPanel->Visible = false; |
|
| 32 | - } |
|
| 33 | - } |
|
| 27 | + $this->MessagesPanel->Visible = true; |
|
| 28 | + $this->Message->Visible = true; |
|
| 29 | + $this->setEffect(null); |
|
| 30 | + } else { |
|
| 31 | + $this->MessagesPanel->Visible = false; |
|
| 32 | + } |
|
| 33 | + } |
|
| 34 | 34 | |
| 35 | - public function setEffect($effect = null) |
|
| 36 | - { |
|
| 37 | - if ($effect !== null) { |
|
| 38 | - $text = "<script type=\"text/javascript\" language=\"javascript\">\r\n"; |
|
| 39 | - $text .= "// <![CDATA[\r\n"; |
|
| 40 | - //$text .= "new Effect.$effect(\"" . $this->Page->DMessagesPanel->MessagesPanel->ClientID . "\");\r\n"; |
|
| 41 | - $text .= "new Effect.$effect(\"" . $this->ClientID . "\");\r\n"; |
|
| 42 | - $text .= "// ]]>\r\n"; |
|
| 43 | - $text .= "</script>"; |
|
| 44 | - $this->MessagesPanelEffect->Text = $text; |
|
| 45 | - } else { |
|
| 46 | - $this->MessagesPanelEffect->Text = ''; |
|
| 47 | - } |
|
| 48 | - } |
|
| 35 | + public function setEffect($effect = null) |
|
| 36 | + { |
|
| 37 | + if ($effect !== null) { |
|
| 38 | + $text = "<script type=\"text/javascript\" language=\"javascript\">\r\n"; |
|
| 39 | + $text .= "// <![CDATA[\r\n"; |
|
| 40 | + //$text .= "new Effect.$effect(\"" . $this->Page->DMessagesPanel->MessagesPanel->ClientID . "\");\r\n"; |
|
| 41 | + $text .= "new Effect.$effect(\"" . $this->ClientID . "\");\r\n"; |
|
| 42 | + $text .= "// ]]>\r\n"; |
|
| 43 | + $text .= "</script>"; |
|
| 44 | + $this->MessagesPanelEffect->Text = $text; |
|
| 45 | + } else { |
|
| 46 | + $this->MessagesPanelEffect->Text = ''; |
|
| 47 | + } |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | - public function setPanelCssClass($value) |
|
| 51 | - { |
|
| 50 | + public function setPanelCssClass($value) |
|
| 51 | + { |
|
| 52 | 52 | $this->ensureChildControls(); |
| 53 | - $this->MessagesPanel->CssClass = $value; |
|
| 54 | - } |
|
| 53 | + $this->MessagesPanel->CssClass = $value; |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | - public function setMessageCssClass($value) |
|
| 57 | - { |
|
| 56 | + public function setMessageCssClass($value) |
|
| 57 | + { |
|
| 58 | 58 | $this->ensureChildControls(); |
| 59 | - $this->Message->CssClass = $value; |
|
| 60 | - } |
|
| 59 | + $this->Message->CssClass = $value; |
|
| 60 | + } |
|
| 61 | 61 | } |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * BActiveFileUploadTest.php |
|
| 4 | - * |
|
| 5 | - * @author Bradley Booms <[email protected]> |
|
| 6 | - * @version Creation Date: Aug 9, 2007 |
|
| 7 | - */ |
|
| 3 | + * BActiveFileUploadTest.php |
|
| 4 | + * |
|
| 5 | + * @author Bradley Booms <[email protected]> |
|
| 6 | + * @version Creation Date: Aug 9, 2007 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * BActiveFileUploadTest.php class |
@@ -5,15 +5,15 @@ |
||
| 5 | 5 | public function radChange($sender,$param){ |
| 6 | 6 | $choice = 'Choice : '; |
| 7 | 7 | switch($this->rad_button_list->SelectedValue){ |
| 8 | - case 'yes': |
|
| 9 | - $choice.='Yes :-)'; |
|
| 10 | - break; |
|
| 11 | - case 'no': |
|
| 12 | - $choice.='No :-('; |
|
| 13 | - break; |
|
| 14 | - case 'whynot': |
|
| 15 | - $choice.='Why not ???'; |
|
| 16 | - break; |
|
| 8 | + case 'yes': |
|
| 9 | + $choice.='Yes :-)'; |
|
| 10 | + break; |
|
| 11 | + case 'no': |
|
| 12 | + $choice.='No :-('; |
|
| 13 | + break; |
|
| 14 | + case 'whynot': |
|
| 15 | + $choice.='Why not ???'; |
|
| 16 | + break; |
|
| 17 | 17 | } |
| 18 | 18 | $this->label->Text = $choice; |
| 19 | 19 | } |