@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Auto generated by prado-cli.php on 2007-05-01 05:29:47. |
|
| 4 | - */ |
|
| 3 | + * Auto generated by prado-cli.php on 2007-05-01 05:29:47. |
|
| 4 | + */ |
|
| 5 | 5 | class Order extends TActiveRecord |
| 6 | 6 | { |
| 7 | 7 | const TABLE='Orders'; |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Auto generated by prado-cli.php on 2007-05-01 05:24:53. |
|
| 4 | - */ |
|
| 3 | + * Auto generated by prado-cli.php on 2007-05-01 05:24:53. |
|
| 4 | + */ |
|
| 5 | 5 | class Category extends TActiveRecord |
| 6 | 6 | { |
| 7 | 7 | const TABLE='Categories'; |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * UserMan class file |
|
| 4 | - * |
|
| 5 | - * @author Qiang Xue <[email protected]> |
|
| 6 | - * @link https://github.com/pradosoft/prado |
|
| 7 | - * @copyright Copyright © 2006-2015 The PRADO Group |
|
| 8 | - * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT |
|
| 9 | - */ |
|
| 3 | + * UserMan class file |
|
| 4 | + * |
|
| 5 | + * @author Qiang Xue <[email protected]> |
|
| 6 | + * @link https://github.com/pradosoft/prado |
|
| 7 | + * @copyright Copyright © 2006-2015 The PRADO Group |
|
| 8 | + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * UserMan class |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * MainLayout class file |
|
| 4 | - * |
|
| 5 | - * @author Qiang Xue <[email protected]> |
|
| 6 | - * @link https://github.com/pradosoft/prado |
|
| 7 | - * @copyright Copyright © 2006-2015 The PRADO Group |
|
| 8 | - * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT |
|
| 9 | - */ |
|
| 3 | + * MainLayout class file |
|
| 4 | + * |
|
| 5 | + * @author Qiang Xue <[email protected]> |
|
| 6 | + * @link https://github.com/pradosoft/prado |
|
| 7 | + * @copyright Copyright © 2006-2015 The PRADO Group |
|
| 8 | + * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT |
|
| 9 | + */ |
|
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * MainLayout class |
@@ -4,20 +4,20 @@ |
||
| 4 | 4 | { |
| 5 | 5 | public function getText() |
| 6 | 6 | { |
| 7 | - $this->ensureChildControls(); |
|
| 8 | - return $this->getRegisteredObject('search')->getText(); |
|
| 9 | - } |
|
| 7 | + $this->ensureChildControls(); |
|
| 8 | + return $this->getRegisteredObject('search')->getText(); |
|
| 9 | + } |
|
| 10 | 10 | |
| 11 | - public function getTextBox() |
|
| 12 | - { |
|
| 13 | - $this->ensureChildControls(); |
|
| 14 | - return $this->getRegisteredObject('search'); |
|
| 15 | - } |
|
| 11 | + public function getTextBox() |
|
| 12 | + { |
|
| 13 | + $this->ensureChildControls(); |
|
| 14 | + return $this->getRegisteredObject('search'); |
|
| 15 | + } |
|
| 16 | 16 | |
| 17 | 17 | public function getButton() |
| 18 | 18 | { |
| 19 | 19 | $this->ensureChildControls(); |
| 20 | - return $this->getRegisteredObject('find'); |
|
| 20 | + return $this->getRegisteredObject('find'); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | public function onInit($param) |
@@ -2,15 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | class Home extends TPage |
| 4 | 4 | { |
| 5 | - public function onLoad($param) |
|
| 6 | - { |
|
| 7 | - parent::onLoad($param); |
|
| 8 | - $this->lab1->Text=""; |
|
| 9 | - } |
|
| 5 | + public function onLoad($param) |
|
| 6 | + { |
|
| 7 | + parent::onLoad($param); |
|
| 8 | + $this->lab1->Text=""; |
|
| 9 | + } |
|
| 10 | 10 | |
| 11 | - public function executeTransaction($sender, $param) |
|
| 12 | - { |
|
| 13 | - $this->lab1->Text="executeTransaction ok"; |
|
| 14 | - } |
|
| 11 | + public function executeTransaction($sender, $param) |
|
| 12 | + { |
|
| 13 | + $this->lab1->Text="executeTransaction ok"; |
|
| 14 | + } |
|
| 15 | 15 | } |
| 16 | 16 | |
@@ -49,16 +49,16 @@ |
||
| 49 | 49 | { |
| 50 | 50 | list($x, $y) = explode(' ', $this->dlg4->getOptions()->position); |
| 51 | 51 | if ($x == 'left') { |
| 52 | - if ($y == 'top') $x = 'right'; |
|
| 53 | - else $y = 'top'; |
|
| 52 | + if ($y == 'top') $x = 'right'; |
|
| 53 | + else $y = 'top'; |
|
| 54 | 54 | } |
| 55 | 55 | elseif ($x == 'right') { |
| 56 | - if ($y == 'top') $y = 'bottom'; |
|
| 57 | - else $x = 'left'; |
|
| 56 | + if ($y == 'top') $y = 'bottom'; |
|
| 57 | + else $x = 'left'; |
|
| 58 | 58 | } |
| 59 | 59 | else { |
| 60 | - $x = 'left'; |
|
| 61 | - $y = 'top'; |
|
| 60 | + $x = 'left'; |
|
| 61 | + $y = 'top'; |
|
| 62 | 62 | } |
| 63 | 63 | $this->dlg4->getOptions()->position = "$x $y"; |
| 64 | 64 | } |
@@ -32,23 +32,23 @@ |
||
| 32 | 32 | |
| 33 | 33 | public function drop1_changed($sender, $param) { |
| 34 | 34 | if ($sender->getChecked()) { |
| 35 | - $this->drop1->getOptions()->accept = '.drag-lime'; |
|
| 36 | - $this->label1a->Text="is accepting lime draggable"; |
|
| 35 | + $this->drop1->getOptions()->accept = '.drag-lime'; |
|
| 36 | + $this->label1a->Text="is accepting lime draggable"; |
|
| 37 | 37 | } |
| 38 | 38 | else { |
| 39 | - $this->drop1->getOptions()->accept = ''; |
|
| 40 | - $this->label1a->Text="is NOT accepting lime draggable"; |
|
| 39 | + $this->drop1->getOptions()->accept = ''; |
|
| 40 | + $this->label1a->Text="is NOT accepting lime draggable"; |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function drop2_changed($sender, $param) { |
| 45 | 45 | if ($sender->getChecked()) { |
| 46 | - $this->drop2->getOptions()->activeClass = 'active'; |
|
| 47 | - $this->label2a->Text="is highlighted while dragging"; |
|
| 46 | + $this->drop2->getOptions()->activeClass = 'active'; |
|
| 47 | + $this->label2a->Text="is highlighted while dragging"; |
|
| 48 | 48 | } |
| 49 | 49 | else { |
| 50 | - $this->drop2->getOptions()->activeClass = ''; |
|
| 51 | - $this->label2a->Text="is NOT highlighted while dragging"; |
|
| 50 | + $this->drop2->getOptions()->activeClass = ''; |
|
| 51 | + $this->label2a->Text="is NOT highlighted while dragging"; |
|
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -2,31 +2,31 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | class Home extends TPage |
| 4 | 4 | { |
| 5 | - public function suggestNames($sender,$param) { |
|
| 6 | - // Get the token |
|
| 7 | - $token=$param->getToken(); |
|
| 8 | - // Sender is the Suggestions repeater |
|
| 9 | - $sender->DataSource=$this->suggestionsForName($token); |
|
| 10 | - $sender->dataBind(); |
|
| 11 | - } |
|
| 5 | + public function suggestNames($sender,$param) { |
|
| 6 | + // Get the token |
|
| 7 | + $token=$param->getToken(); |
|
| 8 | + // Sender is the Suggestions repeater |
|
| 9 | + $sender->DataSource=$this->suggestionsForName($token); |
|
| 10 | + $sender->dataBind(); |
|
| 11 | + } |
|
| 12 | 12 | |
| 13 | - public function suggestionSelected1($sender,$param) { |
|
| 14 | - $id=$sender->Suggestions->DataKeys[ $param->selectedIndex ]; |
|
| 15 | - $this->Selection1->Text='Selected ID: '.$id; |
|
| 16 | - } |
|
| 13 | + public function suggestionSelected1($sender,$param) { |
|
| 14 | + $id=$sender->Suggestions->DataKeys[ $param->selectedIndex ]; |
|
| 15 | + $this->Selection1->Text='Selected ID: '.$id; |
|
| 16 | + } |
|
| 17 | 17 | |
| 18 | - public function suggestionSelected2($sender,$param) { |
|
| 19 | - $id=$sender->Suggestions->DataKeys[ $param->selectedIndex ]; |
|
| 20 | - $this->Selection2->Text='Selected ID: '.$id; |
|
| 21 | - } |
|
| 18 | + public function suggestionSelected2($sender,$param) { |
|
| 19 | + $id=$sender->Suggestions->DataKeys[ $param->selectedIndex ]; |
|
| 20 | + $this->Selection2->Text='Selected ID: '.$id; |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - public function suggestionsForName($name) { |
|
| 24 | - $allChoices = array( |
|
| 25 | - array('id'=>1, 'name'=>'John'), |
|
| 26 | - array('id'=>2, 'name'=>'Paul'), |
|
| 27 | - array('id'=>3, 'name'=>'George'), |
|
| 28 | - array('id'=>4, 'name'=>'Ringo') |
|
| 29 | - ); |
|
| 23 | + public function suggestionsForName($name) { |
|
| 24 | + $allChoices = array( |
|
| 25 | + array('id'=>1, 'name'=>'John'), |
|
| 26 | + array('id'=>2, 'name'=>'Paul'), |
|
| 27 | + array('id'=>3, 'name'=>'George'), |
|
| 28 | + array('id'=>4, 'name'=>'Ringo') |
|
| 29 | + ); |
|
| 30 | 30 | |
| 31 | 31 | if($name) { |
| 32 | 32 | return array_filter($allChoices, function ($el) use ($name) { |
@@ -34,6 +34,6 @@ discard block |
||
| 34 | 34 | }); |
| 35 | 35 | } else |
| 36 | 36 | return $allChoices; |
| 37 | - } |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | 39 | } |
| 40 | 40 | \ No newline at end of file |