| 1 |
<!DOCTYPE HTML> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>Dojox Calendar Views Test</title> |
| 5 |
<style type="text/css"> |
| 6 |
@import "../../../dojo/resources/dojo.css"; |
| 7 |
@import "../../../dijit/themes/tundra/tundra.css"; |
| 8 |
@import "../../../dijit/themes/soria/soria.css"; |
| 9 |
@import "../../../dijit/themes/nihilo/nihilo.css"; |
| 10 |
@import "../../../dijit/tests/css/dijitTests.css"; |
| 11 |
@import "../Calendar/Calendar.css"; |
| 12 |
|
| 13 |
.title { |
| 14 |
font-weight: bolder; |
| 15 |
} |
| 16 |
</style> |
| 17 |
|
| 18 |
<script type="text/javascript" src="../../../dojo/dojo.js" |
| 19 |
data-dojo-config="async:1, transparentColor: [ 255, 255, 255 ]"></script> |
| 20 |
|
| 21 |
|
| 22 |
<script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script> |
| 23 |
|
| 24 |
<script type="text/javascript"> |
| 25 |
require([ |
| 26 |
"dojo/parser", |
| 27 |
"dojo/domReady!" |
| 28 |
], function(parser){ |
| 29 |
|
| 30 |
//window['log'] = function(str){ |
| 31 |
//dom.byId("report").innerHTML = str; |
| 32 |
//} |
| 33 |
parser.parse(); |
| 34 |
}); |
| 35 |
</script> |
| 36 |
</head> |
| 37 |
<body class="soria"> |
| 38 |
<div> |
| 39 |
Use different theme: |
| 40 |
<a href="test_CalendarViews.html?theme=tundra">tundra</a> |
| 41 |
<a href="test_CalendarViews.html?theme=soria">soria</a> |
| 42 |
<a href="test_CalendarViews.html?theme=nihilo">nihilo</a> |
| 43 |
</div> |
| 44 |
<div id="report" style="float:left; width:100%;height:40px;color:red;font-weight:bold;"></div> |
| 45 |
<p> |
| 46 |
This page shows the dojox/widget/Calendar widget with three panes, a day, month and year view. |
| 47 |
Click on the date on the top of the widget to select the month, and click it again to |
| 48 |
select the year. |
| 49 |
</p> |
| 50 |
|
| 51 |
<div> |
| 52 |
<span style="width:33%;float:left;"> |
| 53 |
<div class="title">With day, month and year views</div> |
| 54 |
|
| 55 |
<div dojoType="dojox/widget/Calendar3Pane" id="cal3Pane"> |
| 56 |
<script type="dojo/aspect" data-dojo-advice="after" data-dojo-method="onValueSelected" data-dojo-args="value"> |
| 57 |
console.log("Date Value selected: " + value); |
| 58 |
</script> |
| 59 |
</div> |
| 60 |
|
| 61 |
<p> |
| 62 |
Lorem ipsum dolor sit amet, <a href="#">consectetuer</a> adipiscing elit. Aenean |
| 63 |
semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. |
| 64 |
Proin porta rutrum lacus. <a href="#">Etiam</a> consequat scelerisque quam. Nulla |
| 65 |
facilisi. Maecenas luctus venenatis nulla. In sit amet dui non mi |
| 66 |
semper iaculis. Sed molestie tortor at ipsum. <a href="#">Morbi</a> dictum rutrum |
| 67 |
magna. Sed vitae risus. |
| 68 |
</p> |
| 69 |
</span> |
| 70 |
<span style="width:33%;float:left;"> |
| 71 |
<div class="title">With month only view, no daily or yearly</div> |
| 72 |
|
| 73 |
<div dojoType="dojox/widget/MonthlyCalendar" id="calMonthOnly"> |
| 74 |
<script type="dojo/aspect" data-dojo-advice="after" data-dojo-method="onValueSelected" data-dojo-args="value"> |
| 75 |
console.log("Month Value selected: " + value); |
| 76 |
</script> |
| 77 |
</div> |
| 78 |
|
| 79 |
<p> |
| 80 |
Lorem ipsum dolor sit amet, <a href="#">consectetuer</a> adipiscing elit. Aenean |
| 81 |
semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. |
| 82 |
Proin porta rutrum lacus. <a href="#">Etiam</a> consequat scelerisque quam. Nulla |
| 83 |
facilisi. Maecenas luctus venenatis nulla. In sit amet dui non mi |
| 84 |
semper iaculis. Sed molestie tortor at ipsum. <a href="#">Morbi</a> dictum rutrum |
| 85 |
magna. Sed vitae risus. |
| 86 |
</p> |
| 87 |
</span> |
| 88 |
<span style="width:33%;float:left;"> |
| 89 |
<div class="title">With year only view, no daily or yearly</div> |
| 90 |
|
| 91 |
<div dojoType="dojox/widget/YearlyCalendar" id="calYearOnly"> |
| 92 |
<script type="dojo/aspect" data-dojo-advice="after" data-dojo-method="onValueSelected" data-dojo-args="value"> |
| 93 |
console.log("Year Value selected: " + value); |
| 94 |
</script> |
| 95 |
</div><p> |
| 96 |
Lorem ipsum dolor sit amet, <a href="#">consectetuer</a> adipiscing elit. Aenean |
| 97 |
semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. |
| 98 |
Proin porta rutrum lacus. <a href="#">Etiam</a> consequat scelerisque quam. Nulla |
| 99 |
facilisi. Maecenas luctus venenatis nulla. In sit amet dui non mi |
| 100 |
semper iaculis. Sed molestie tortor at ipsum. <a href="#">Morbi</a> dictum rutrum |
| 101 |
magna. Sed vitae risus. |
| 102 |
</p> |
| 103 |
</span> |
| 104 |
</div> |
| 105 |
|
| 106 |
</body> |
| 107 |
</html> |