summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/DatePicker.page
blob: 261a6994919c371ebb053725a6ca460cbe12a6f9 (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
<com:TContent ID="Content">

<h1>TDatePicker Samples</h1>

<table class="sampletable">

<tr>
	<td class="samplenote">Default TDatePicker</td>
	<td class="sampleaction">
		<com:TDatePicker />
	</td>
</tr>

<tr>
	<td class="samplenote">Button Mode, pre-selected date</td>
	<td class="sampleaction">
		<com:TDatePicker Mode="Button" Date="20-10-2005"/>
	</td>
</tr>

<tr>
	<td class="samplenote">InputMode="DropDownList", custom DateFormat</td>
	<td class="sampleaction">
		<com:TDatePicker DateFormat="yyyy/MMM" InputMode="DropDownList"/>
	</td>
</tr>

<tr>
	<td class="samplenote">InputMode="DropDownList", custom DateFormat, Culture</td>
	<td class="sampleaction">
		<com:TDatePicker DateFormat="MMM/yyyy" Culture="fr" InputMode="DropDownList"/>
	</td>
</tr>


<tr>
	<td class="samplenote">Custom DateFormat, culture, ImageButton mode, pre-selected date</td>
	<td class="sampleaction">
		<com:TDatePicker Mode="ImageButton" Culture="zh_CN" 
			DateFormat="日期:yyyy年M月d日"  
			Timestamp=<%= @strtotime("-1 year") %>/>
	</td>
</tr>

<tr>
	<td class="samplenote">Custom DateFormat, DropDownList, pre-selected date set in as Text</td>
	<td class="sampleaction">
		<com:TDatePicker DateFormat="yyyy/MMMM/dd" Date="2005/05/15" InputMode="DropDownList"/>
	</td>
</tr>

<tr>
	<td class="samplenote">DropDownList, pre-selected date as integer</td>
	<td class="sampleaction">
		<com:TDatePicker InputMode="DropDownList" Timestamp=<%= @strtotime("-1 month") %>/>
	</td>
</tr>
	
</table>

</com:TContent>