summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/RatingList.page
blob: 6cb9d34a40ed55a5e03c4ac1e7be3674862a5caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<com:TContent ID="Content">
<style>
	.more td
	{
		background-position: 10px 10px;
		border: 1px solid #eee;
		width: 40px;
		height: 40px;
	}
</style>

<com:TLabel ID="label1" Text="Rate It:" />
<com:TActiveRatingList ID="list1"
	Rating="3.7"
	CaptionID="label1" OnCallback="list1_oncallback">
	<com:TListItem Text="1 Star" />
	<com:TListItem Text="2 Stars" />
	<com:TListItem Text="3 Stars" />
	<com:TListItem Text="4 Stars" />
	<com:TListItem Text="5 Stars" />
	<prop:ClientSide
		OnLoading="Element.show('status')"
		OnComplete="Element.hide('status')" />
</com:TActiveRatingList>

<hr />

<com:TActiveButton ID="button1" Text="Enable" OnClick="button1_clicked" />
<com:TActiveButton ID="button2" Text="Disable" OnClick="button2_clicked" />
<com:TActiveButton ID="button5" Text="Index=3" OnClick="button5_clicked" />


<hr />

<com:TLabel ID="label2" Text="Rate It:" />
<com:TActiveRatingList ID="list2" CaptionID="label2" RatingStyle="blocks" OnCallback="list2_oncallback">
	<com:TListItem Text="1 Block" />
	<com:TListItem Text="2 Blocks" />
	<com:TListItem Text="3 Blocks" />
	<com:TListItem Text="4 Blocks" Selected="true" />
	<com:TListItem Text="5 Blocks" />
	<prop:ClientSide
		OnLoading="Element.show('status')"
		OnComplete="Element.hide('status')" />
</com:TActiveRatingList>

<br />

<com:TActiveRatingList ID="list3" Rating="3.5"
	Attributes.title="3.5 Blocks"  RatingStyle="blocks" ReadOnly="true">
	<com:TListItem Text="1 Block" />
	<com:TListItem Text="2 Blocks" />
	<com:TListItem Text="3 Blocks" />
	<com:TListItem Text="4 Blocks" />
	<com:TListItem Text="5 Blocks" />
</com:TActiveRatingList>

<br />

<com:TActiveRatingList CssClass="more" RepeatColumns="2" RepeatDirection="Vertical">
	<com:TListItem Text="1 Star" />
	<com:TListItem Text="2 Stars" />
	<com:TListItem Text="3 Stars" />
	<com:TListItem Text="4 Stars" />
	<com:TListItem Text="5 Stars" />
	<com:TListItem Text="6 Stars" />
	<com:TListItem Text="7 Stars" />
	<com:TListItem Text="8 Stars" />
	<com:TListItem Text="9 Stars" />
	<com:TListItem Text="10 Stars" />
	<prop:ClientSide
		OnLoading="Element.show('status')"
		OnComplete="Element.hide('status')" />
</com:TActiveRatingList>
<br />

<com:TActiveRatingList ID="list4" Rating="3.5" Attributes.title="3.5 Stars" ReadOnly="true">
	<com:TListItem Text="1 Star" />
	<com:TListItem Text="2 Stars" />
	<com:TListItem Text="3 Stars" />
	<com:TListItem Text="4 Stars" />
	<com:TListItem Text="5 Stars" />
</com:TActiveRatingList>

<br />

	<div id="status" style="margin:1em; padding:0.5em;
		text-align:center;
		background-color:#900;
		color:white; display: none;
		position: absolute; right: 0; top: 0">
		Loading...
	</div>


</com:TContent>