@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | $this->list2->Items->clear(); |
| 16 | 16 | for($i = 0; $i < 2; $i++) |
| 17 | - $this->list2->Items[$i] = 'asd 3 - item '.($i+1); |
|
| 17 | + $this->list2->Items[$i] = 'asd 3 - item '.($i+1); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | function addOptionsToList2($parent,$index) |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | Prado::Using ('System.Web.UI.ActiveControls.*'); |
| 3 | 3 | class Ticket695 extends TPage { |
| 4 | - public function onATB($sender,$param) { |
|
| 5 | - $this->X->Text=$this->X->Text+1; |
|
| 6 | - } |
|
| 4 | + public function onATB($sender,$param) { |
|
| 5 | + $this->X->Text=$this->X->Text+1; |
|
| 6 | + } |
|
| 7 | 7 | } |
@@ -2,23 +2,23 @@ |
||
| 2 | 2 | Prado::Using ('System.Web.UI.ActiveControls.*'); |
| 3 | 3 | class Ticket660 extends TPage { |
| 4 | 4 | |
| 5 | - public function __construct() { |
|
| 6 | - Prado::getApplication()->getGlobalization()->setCharset('ISO-8859-1'); |
|
| 7 | - parent::__construct(); |
|
| 8 | - } |
|
| 5 | + public function __construct() { |
|
| 6 | + Prado::getApplication()->getGlobalization()->setCharset('ISO-8859-1'); |
|
| 7 | + parent::__construct(); |
|
| 8 | + } |
|
| 9 | 9 | |
| 10 | - public function changeA($sender,$param) { |
|
| 11 | - $iso_text=iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ äöü'); |
|
| 12 | - $this->A->setText($this->T->getText() . $iso_text); |
|
| 13 | - } |
|
| 10 | + public function changeA($sender,$param) { |
|
| 11 | + $iso_text=iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ äöü'); |
|
| 12 | + $this->A->setText($this->T->getText() . $iso_text); |
|
| 13 | + } |
|
| 14 | 14 | |
| 15 | 15 | public function suggest($sender, $param) |
| 16 | 16 | { |
| 17 | - $token=$param->getCallbackParameter(); |
|
| 17 | + $token=$param->getCallbackParameter(); |
|
| 18 | 18 | $sender->setDataSource(array( |
| 19 | - 1 => 'ABC Token:'.$token, |
|
| 20 | - 2 => iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ').' Token:'.$token |
|
| 21 | - )); |
|
| 19 | + 1 => 'ABC Token:'.$token, |
|
| 20 | + 2 => iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ').' Token:'.$token |
|
| 21 | + )); |
|
| 22 | 22 | $sender->dataBind(); |
| 23 | 23 | } |
| 24 | 24 | |
@@ -3,31 +3,31 @@ |
||
| 3 | 3 | class Ticket528 extends TPage |
| 4 | 4 | { |
| 5 | 5 | public static $turnos = array( |
| 6 | - 'M' => array('id_turno' => 'M', 'descricao' => 'Manhã'), |
|
| 7 | - 'T' => array('id_turno' => 'T', 'descricao' => 'Tarde'), |
|
| 8 | - 'N' => array('id_turno' => 'N', 'descricao' => 'Noite') |
|
| 9 | - ); |
|
| 6 | + 'M' => array('id_turno' => 'M', 'descricao' => 'Manhã'), |
|
| 7 | + 'T' => array('id_turno' => 'T', 'descricao' => 'Tarde'), |
|
| 8 | + 'N' => array('id_turno' => 'N', 'descricao' => 'Noite') |
|
| 9 | + ); |
|
| 10 | 10 | |
| 11 | 11 | |
| 12 | - public function onLoad($param) |
|
| 13 | - { |
|
| 14 | - parent::onLoad($param); |
|
| 15 | - if (!$this->IsPostBack) { |
|
| 16 | - $this->DDropTurno->loadOptions(); |
|
| 17 | - $this->loadDadosTurno($this->DDropTurno->getSelectedValue()); |
|
| 18 | - } |
|
| 19 | - } |
|
| 12 | + public function onLoad($param) |
|
| 13 | + { |
|
| 14 | + parent::onLoad($param); |
|
| 15 | + if (!$this->IsPostBack) { |
|
| 16 | + $this->DDropTurno->loadOptions(); |
|
| 17 | + $this->loadDadosTurno($this->DDropTurno->getSelectedValue()); |
|
| 18 | + } |
|
| 19 | + } |
|
| 20 | 20 | |
| 21 | 21 | |
| 22 | - protected function loadDadosTurno($id) |
|
| 23 | - { |
|
| 24 | - $this->Codigo->setText(self::$turnos[$id]['id_turno']); |
|
| 25 | - $this->Descricao->setText(self::$turnos[$id]['descricao']); |
|
| 26 | - } |
|
| 22 | + protected function loadDadosTurno($id) |
|
| 23 | + { |
|
| 24 | + $this->Codigo->setText(self::$turnos[$id]['id_turno']); |
|
| 25 | + $this->Descricao->setText(self::$turnos[$id]['descricao']); |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | 28 | |
| 29 | - public function trocaTurno($sender,$param) |
|
| 30 | - { |
|
| 31 | - $this->loadDadosTurno($sender->getSelectedValue()); |
|
| 32 | - } |
|
| 29 | + public function trocaTurno($sender,$param) |
|
| 30 | + { |
|
| 31 | + $this->loadDadosTurno($sender->getSelectedValue()); |
|
| 32 | + } |
|
| 33 | 33 | } |
@@ -1,57 +1,57 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | class Ticket900 extends TPage { |
| 3 | 3 | |
| 4 | - public function onLoad($param) |
|
| 5 | - { |
|
| 6 | - parent::onLoad($param); |
|
| 7 | - if(!$this->IsPostBack) |
|
| 8 | - { |
|
| 9 | - $this->DataGrid->DataSource=$this->Data; |
|
| 10 | - $this->DataGrid->dataBind(); |
|
| 11 | - } |
|
| 12 | - } |
|
| 4 | + public function onLoad($param) |
|
| 5 | + { |
|
| 6 | + parent::onLoad($param); |
|
| 7 | + if(!$this->IsPostBack) |
|
| 8 | + { |
|
| 9 | + $this->DataGrid->DataSource=$this->Data; |
|
| 10 | + $this->DataGrid->dataBind(); |
|
| 11 | + } |
|
| 12 | + } |
|
| 13 | 13 | |
| 14 | 14 | |
| 15 | - protected function getData() |
|
| 16 | - { |
|
| 15 | + protected function getData() |
|
| 16 | + { |
|
| 17 | 17 | return array( |
| 18 | 18 | array( 'title' => 'Title A'), |
| 19 | 19 | array( 'title' => 'Title B'), |
| 20 | 20 | array( 'title' => 'Title C') |
| 21 | 21 | ); |
| 22 | - } |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | 24 | |
| 25 | - public function editItem($sender,$param) |
|
| 26 | - { |
|
| 25 | + public function editItem($sender,$param) |
|
| 26 | + { |
|
| 27 | 27 | $this->CommandName->Text='edit'; |
| 28 | - $this->DataGrid->EditItemIndex=$param->Item->ItemIndex; |
|
| 29 | - $this->DataGrid->DataSource=$this->Data; |
|
| 30 | - $this->DataGrid->dataBind(); |
|
| 31 | - } |
|
| 28 | + $this->DataGrid->EditItemIndex=$param->Item->ItemIndex; |
|
| 29 | + $this->DataGrid->DataSource=$this->Data; |
|
| 30 | + $this->DataGrid->dataBind(); |
|
| 31 | + } |
|
| 32 | 32 | |
| 33 | - public function saveItem($sender,$param) |
|
| 34 | - { |
|
| 33 | + public function saveItem($sender,$param) |
|
| 34 | + { |
|
| 35 | 35 | $this->CommandName->Text='save'; |
| 36 | - $this->DataGrid->EditItemIndex=-1; |
|
| 37 | - $this->DataGrid->DataSource=$this->Data; |
|
| 38 | - $this->DataGrid->dataBind(); |
|
| 39 | - } |
|
| 36 | + $this->DataGrid->EditItemIndex=-1; |
|
| 37 | + $this->DataGrid->DataSource=$this->Data; |
|
| 38 | + $this->DataGrid->dataBind(); |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - public function cancelItem($sender,$param) |
|
| 42 | - { |
|
| 41 | + public function cancelItem($sender,$param) |
|
| 42 | + { |
|
| 43 | 43 | $this->CommandName->Text='cancel'; |
| 44 | - $this->DataGrid->EditItemIndex=-1; |
|
| 45 | - $this->DataGrid->DataSource=$this->Data; |
|
| 46 | - $this->DataGrid->dataBind(); |
|
| 47 | - } |
|
| 44 | + $this->DataGrid->EditItemIndex=-1; |
|
| 45 | + $this->DataGrid->DataSource=$this->Data; |
|
| 46 | + $this->DataGrid->dataBind(); |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - public function deleteItem($sender,$param) |
|
| 50 | - { |
|
| 49 | + public function deleteItem($sender,$param) |
|
| 50 | + { |
|
| 51 | 51 | $this->CommandName->Text='delete'; |
| 52 | - $this->DataGrid->EditItemIndex=-1; |
|
| 53 | - $this->DataGrid->DataSource=$this->Data; |
|
| 54 | - $this->DataGrid->dataBind(); |
|
| 55 | - } |
|
| 52 | + $this->DataGrid->EditItemIndex=-1; |
|
| 53 | + $this->DataGrid->DataSource=$this->Data; |
|
| 54 | + $this->DataGrid->dataBind(); |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | 57 | } |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | Prado::Using ('System.Web.UI.ActiveControls.*'); |
| 3 | 3 | class Ticket622 extends TPage { |
| 4 | - public function changeA($sender,$param) { |
|
| 5 | - $this->ALB->setDisplay('Dynamic'); |
|
| 6 | - $this->ACB->setDisplay('Dynamic'); |
|
| 7 | - $this->ARB->setDisplay('Dynamic'); |
|
| 8 | - } |
|
| 4 | + public function changeA($sender,$param) { |
|
| 5 | + $this->ALB->setDisplay('Dynamic'); |
|
| 6 | + $this->ACB->setDisplay('Dynamic'); |
|
| 7 | + $this->ARB->setDisplay('Dynamic'); |
|
| 8 | + } |
|
| 9 | 9 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * |
|
| 4 | - * |
|
| 5 | - * @author Christophe BOULAIN ([email protected]) |
|
| 6 | - * @copyright Copyright © 2007, CERAM Sophia Antipolis |
|
| 7 | - * @license url nameoflicense |
|
| 8 | - * |
|
| 9 | - */ |
|
| 3 | + * |
|
| 4 | + * |
|
| 5 | + * @author Christophe BOULAIN ([email protected]) |
|
| 6 | + * @copyright Copyright © 2007, CERAM Sophia Antipolis |
|
| 7 | + * @license url nameoflicense |
|
| 8 | + * |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | prado::using ('Application.controls.ToggleImageButton'); |
| 12 | 12 | |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | class Ticket922 extends TPage { |
| 3 | - public function processString($sender,$param) { |
|
| 4 | - $text = $this->Text->Text; |
|
| 5 | - $url= $this->getService()->constructUrl('Ticket922', array('text'=>$text)); |
|
| 6 | - $this->getResponse()->redirect($url); |
|
| 7 | - } |
|
| 3 | + public function processString($sender,$param) { |
|
| 4 | + $text = $this->Text->Text; |
|
| 5 | + $url= $this->getService()->constructUrl('Ticket922', array('text'=>$text)); |
|
| 6 | + $this->getResponse()->redirect($url); |
|
| 7 | + } |
|
| 8 | 8 | |
| 9 | - public function onLoad($param) { |
|
| 10 | - if ($this->Request->contains('text')) |
|
| 11 | - $this->Result->setText($this->Request->itemAt('text')); |
|
| 12 | - } |
|
| 9 | + public function onLoad($param) { |
|
| 10 | + if ($this->Request->contains('text')) |
|
| 11 | + $this->Result->setText($this->Request->itemAt('text')); |
|
| 12 | + } |
|
| 13 | 13 | } |
@@ -4,39 +4,39 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Ticket679 extends TPage |
| 6 | 6 | { |
| 7 | - // repeater bug |
|
| 8 | - public function onLoad($param) |
|
| 9 | - { |
|
| 10 | - parent::onLoad($param); |
|
| 11 | - $dataArray[0][ 'id' ] = '1' ; |
|
| 12 | - |
|
| 13 | - if( !$this->Page->IsPostBack && !$this->Page->IsCallBack) |
|
| 14 | - { |
|
| 15 | - $this->Repeater->DataSource = $dataArray ; |
|
| 16 | - $this->Repeater->dataBind() ; |
|
| 17 | - } |
|
| 18 | - } |
|
| 19 | - |
|
| 20 | - public function changeText( $sender, $param ) |
|
| 21 | - { |
|
| 22 | - $obj = $this->myLabel ; |
|
| 23 | - $obj->Text = $sender->Text ; |
|
| 24 | - $obj->Display="Dynamic"; |
|
| 25 | - |
|
| 26 | - // solution |
|
| 27 | - //$this->CallBackClient->show($obj, true); |
|
| 28 | - } |
|
| 29 | - |
|
| 30 | - |
|
| 31 | - // activeradiobutton bug |
|
| 32 | - public function checkRadioButton($sender, $param){ |
|
| 33 | - $this->myRadioButton->checked = true; |
|
| 34 | - } |
|
| 35 | - public function uncheckRadioButton($sender, $param){ |
|
| 36 | - $this->myRadioButton->checked = false; |
|
| 7 | + // repeater bug |
|
| 8 | + public function onLoad($param) |
|
| 9 | + { |
|
| 10 | + parent::onLoad($param); |
|
| 11 | + $dataArray[0][ 'id' ] = '1' ; |
|
| 12 | + |
|
| 13 | + if( !$this->Page->IsPostBack && !$this->Page->IsCallBack) |
|
| 14 | + { |
|
| 15 | + $this->Repeater->DataSource = $dataArray ; |
|
| 16 | + $this->Repeater->dataBind() ; |
|
| 17 | + } |
|
| 18 | + } |
|
| 19 | + |
|
| 20 | + public function changeText( $sender, $param ) |
|
| 21 | + { |
|
| 22 | + $obj = $this->myLabel ; |
|
| 23 | + $obj->Text = $sender->Text ; |
|
| 24 | + $obj->Display="Dynamic"; |
|
| 25 | + |
|
| 26 | + // solution |
|
| 27 | + //$this->CallBackClient->show($obj, true); |
|
| 28 | + } |
|
| 29 | + |
|
| 30 | + |
|
| 31 | + // activeradiobutton bug |
|
| 32 | + public function checkRadioButton($sender, $param){ |
|
| 33 | + $this->myRadioButton->checked = true; |
|
| 34 | + } |
|
| 35 | + public function uncheckRadioButton($sender, $param){ |
|
| 36 | + $this->myRadioButton->checked = false; |
|
| 37 | 37 | |
| 38 | - // solution |
|
| 39 | - //$this->CallbackClient->check($this->myRadioButton, false); |
|
| 40 | - } |
|
| 38 | + // solution |
|
| 39 | + //$this->CallbackClient->check($this->myRadioButton, false); |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | 42 | } |
| 43 | 43 | \ No newline at end of file |