b68dbedc2ba56bd2a672f99f5a44b956212d3e6e
[infodrom/rico3] / examples / dotnet / widgetsRTL.aspx
1 <%@ Page Language="VB" ResponseEncoding="utf-8" Debug="true" validateRequest="false" %>
2 <%@ Register TagPrefix="Rico" Assembly="Rico" NameSpace="Rico" %>
3
4 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
5 <html dir='rtl'>
6 <head>
7 <meta http-equiv="content-type" content="text/html; charset=utf-8">
8 <title>Rico widgets styled user-selectable themes</title>
9
10 <Rico:LoadClient checkQueryString='true' runat='server' />
11
12 <script>
13
14 var dialog;
15
16 Rico.onLoad( function() {
17   new Rico.Accordion( 'accExample', {panelHeight:160});
18   new Rico.TabbedPanel( 'tabsExample', {panelHeight:160});
19   var cal=new Rico.CalendarControl("ricoCal",{position:'auto'});
20   cal.selectNow();
21   cal.openPopup();
22   dialog=new Rico.Window('',{height:'250px',width:'300px',overflow:'auto'}, 'dialog');
23 });
24
25 function openWindow(btn) {
26   dialog.openPopup();
27   Rico.positionCtlOverIcon(dialog.container,btn);
28 }
29 </script>
30
31 <link href="../demo.css" type="text/css" rel="stylesheet" />
32 <style type="text/css">
33 #accExample {
34   width: 27em;
35 }
36 #tabsExample {
37   width: 30em;
38 }
39 </style>
40
41 </head>
42
43
44 <body>
45
46 <div id='explanation'>
47 Base Library:
48 <script type='text/javascript'>
49 document.write(Rico.Lib+' '+Rico.LibVersion);
50 </script>
51 <hr>
52 <p style='font-size:larger;'> שָׁלוֹם &nbsp;&nbsp;&nbsp; سَلاَمٌ </p>
53 <p>This example displays some of the widgets that come with Rico.
54 In this case the page is specified to read right-to-left (dir=rtl).
55 It demonstrates that Rico widgets display correctly for languages written right-to-left, such as Arabic and Hebrew.
56 <p>Note that the grid will display a scrollbar on the right side, instead of the left side, in Chrome and Safari due to 
57 <a href='http://code.google.com/p/chromium/issues/detail?id=6113'>this bug</a>
58 which the chromium team has marked as WONTFIX.
59 </div>
60
61
62 <p>&nbsp;</p>
63
64 <h2 style='margin-bottom:1px;'>Rico LiveGrid</h2>
65 <p style='margin-top:1px;'>Click on a cell to see available actions</p>
66
67 <Rico:LiveGrid runat='server' id='population' menuEvent='click' rows='6' highlightElem='cursorRow' defaultWidth='90' BufferType='AjaxLoadOnce' dataProvider="'../data/population.xml'">
68   <Rico:ColumnGroup runat='server' heading="" />
69   <Rico:Column runat='server' heading='Country or area' width='200' />
70   <Rico:ColumnGroup runat='server' heading="Population (thousands)" />
71   <Rico:Column runat='server' heading='1950' width='90' DataType='number' />
72   <Rico:Column runat='server' heading='2009' width='90' DataType='number' />
73   <Rico:Column runat='server' heading='2015' width='90' DataType='number' />
74   <Rico:Column runat='server' heading='2025' width='90' DataType='number' />
75   <Rico:Column runat='server' heading='2050' width='90' DataType='number' />
76 </Rico:LiveGrid>
77
78 <p style='font-size:smaller;'>Data source: <a href="http://www.un.org/esa/population/unpop.htm">Population Division of the
79 Department of Economic and Social Affairs of the United Nations Secretariat</a> (2009).
80 <em>World Population Prospects: The 2008 Revision. Highlights.</em> New York: United Nations.   </p>
81
82
83 <p>&nbsp;</p>
84
85 <h2>Rico Accordion</h2>
86
87 <div id="accExample">
88
89    <div>
90      <div>Stanza 1</div>
91      <div>
92 <p>Two roads diverged in a yellow wood,
93 <br>And sorry I could not travel both
94 <br>And be one traveler, long I stood
95 <br>And looked down one as far as I could
96 <br>To where it bent in the undergrowth.
97      </div>
98    </div>
99    <div>
100      <div>Stanza 2</div>
101      <div>
102 <p>Then took the other, as just as fair,
103 <br>And having perhaps the better claim,
104 <br>Because it was grassy and wanted wear;
105 <br>Though as for that the passing there
106 <br>Had worn them really about the same.
107      </div>
108    </div>
109    <div>
110      <div>Stanza 3</div>
111      <div>
112 <p>And both that morning equally lay
113 <br>In leaves no step had trodden black.
114 <br>Oh, I kept the first for another day!
115 <br>Yet knowing how way leads on to way,
116 <br>I doubted if I should ever come back.
117      </div>
118    </div>
119    <div>
120      <div>Stanza 4</div>
121      <div>
122 <p>I shall be telling this with a sigh
123 <br>Somewhere ages and ages hence:
124 <br>Two roads diverged in a wood, and I--
125 <br>I took the one less traveled by,
126 <br>And that has made all the difference.
127 <p><strong>Robert Frost: The Road Not Taken (1915)</strong>
128      </div>
129   </div>
130
131 </div>
132
133 <p>&nbsp;</p>
134
135 <h2>Rico Tabbed Panel</h2>
136
137 <div id="tabsExample">
138    <ul>
139      <li>Stanza 1</li>
140      <li>Stanza 2</li>
141      <li>Stanza 3</li>
142      <li>Stanza 4</li>
143    </ul>
144
145    <div>
146      <div>
147 <p>Two roads diverged in a yellow wood,
148 <br>And sorry I could not travel both
149 <br>And be one traveler, long I stood
150 <br>And looked down one as far as I could
151 <br>To where it bent in the undergrowth.
152      </div>
153      <div>
154 <p>Then took the other, as just as fair,
155 <br>And having perhaps the better claim,
156 <br>Because it was grassy and wanted wear;
157 <br>Though as for that the passing there
158 <br>Had worn them really about the same.
159      </div>
160      <div>
161 <p>And both that morning equally lay
162 <br>In leaves no step had trodden black.
163 <br>Oh, I kept the first for another day!
164 <br>Yet knowing how way leads on to way,
165 <br>I doubted if I should ever come back.
166      </div>
167      <div>
168 <p>I shall be telling this with a sigh
169 <br>Somewhere ages and ages hence:
170 <br>Two roads diverged in a wood, and I--
171 <br>I took the one less traveled by,
172 <br>And that has made all the difference.
173 <p><strong>Robert Frost: The Road Not Taken (1915)</strong>
174      </div>
175   </div>
176
177 </div>
178
179 <p>&nbsp;</p>
180
181 <h2>Rico Dialog Window</h2>
182
183 <p><button onclick='openWindow(this)'>Open Dialog Window</button>
184 <div id='dialog' title='The Gettysburg Address'>
185 <p>Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.
186 <p>Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.
187 <p>But, in a larger sense, we can not dedicate -- we can not consecrate -- we can not hallow -- this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us -- that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion -- that we here highly resolve that these dead shall not have died in vain -- that this nation, under God, shall have a new birth of freedom -- and that government of the people, by the people, for the people, shall not perish from the earth.
188 </div>
189
190 <p>&nbsp;</p>
191
192 <h2>Rico Calendar</h2>
193
194 <table border='0' cellpadding='0' cellspacing='0'>
195 <tr><td>
196 <div id="ricoCal" style='position:relative;'></div>
197 </td></tr>
198 </table>
199
200 </body>
201 </html>