blob: d173006d594e88fa82b9b80bd31d4d5e3eb1949a (
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
97
98
99
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Prado Date Picker</title>
<script type="text/javascript" src="../../base.js"></script>
<script type="text/javascript" src="../../dom.js"></script>
<script type="text/javascript" src="../../datepicker.js"></script>
<script type="text/javascript">
function init() {
var options = { "trigger" : "button1", "format" : "dd-MM-yyyy" };
var datepicker1 = new Prado.Calendar("textfield1", options);
//datepicker1.format = "yyyy-MM-d";
//datepicker1.create();
//datepicker1.show("button1");
//var button = $("button1");
//Event.observe(button, "click", function(){datepicker1.show(button);});
//var d = new Date();
//alert(Prado.Calendar.Util.ISODate(d));
var datepicker2 = new Prado.Calendar("textfield2");
}
/*var cal;
function init() {
cal = new Calendar();
cal.setIncludeWeek(true);
cal.setFormat("yyyy-MM-dd");
//cal.setMonthNames(.....);
//cal.setShortMonthNames(....);
cal.create();
var button = $("button1");
button.onclick = function() {
cal.toggle(button);
}
cal.onchange = function() {
$("textfield1").value = cal.formatDate();
}
}*/
window.onload = init;
</script>
</script>
</head>
<body>
<form ID=Form1>
<input type="text" name="textfield1" id="textfield1" />
<input type="button" name="button1" id="button1" value="..." />
</form>
as<br/>
dv<br/>
as<br/>
d<br/>
as<br/>
d<br/>
asd<br/>
a<br/>
sd<br/>
dv<br/>
as<br/>
d<br/>
as<br/>
d<br/>
asd<br/>
a<br/>
sd<br/>
dv<br/>
as<br/>
d<br/>
as<br/>
d<br/>
asd<br/>
a<br/>
sd<br/>
<form>
<input type="text" name="textfield2" id="text1" />
<input type="button" name="button2" id="button2" value="..." />
</form>
d<br/>
as<br/>
d<br/>
asd<br/>
a<br/>
sd<br/>
dv<br/>
as<br/>
d<br/>
as<br/>
d<br/>
asd<br/>
a<br/>
sd<br/>
</body>
</html>
|