summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/RatingList.php
diff options
context:
space:
mode:
authorwei <>2006-10-08 05:11:23 +0000
committerwei <>2006-10-08 05:11:23 +0000
commit9e2820e98640f4ca262db7279a514826341df3e0 (patch)
tree82184c36e9b82ae57303b7841266cbec23151c5c /tests/FunctionalTests/active-controls/protected/pages/RatingList.php
parentfe60cc221f922ea362826e2d00431c5df28fe85f (diff)
Fixed #414, #411, #415
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/RatingList.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/RatingList.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/RatingList.php b/tests/FunctionalTests/active-controls/protected/pages/RatingList.php
index c6661182..98b62e04 100644
--- a/tests/FunctionalTests/active-controls/protected/pages/RatingList.php
+++ b/tests/FunctionalTests/active-controls/protected/pages/RatingList.php
@@ -4,6 +4,15 @@ class RatingList extends TPage
{
function list1_oncallback($sender, $param)
{
+ $newRating = ($sender->Rating + $sender->SelectedIndex+1)/2;
+ $sender->Rating = $newRating;
+ $sender->Caption = "Rating : ".$newRating;
+ $sender->Enabled=false;
+ }
+
+
+ function list2_oncallback($sender, $param)
+ {
}
function button1_clicked($sender, $param)