1 <?xml version="1.0" encoding="UTF-8"?>
2 <window id="language" title="${language.title}"
3 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
4 xmlns:jsf="urn:JavaServerFaces">
5 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
6 <script src="${pageContext.request.contextPath}/docs/cove.js"/>
7 <script>
8 function submitLanguage(id) {
9 var url="http://localhost:8080/cove/faces/docs/language.xul";
10 var response = submit(url, getLanguageParams(id));
11 replace(response, "language", "userinfo");
12 }
13
14 function getLanguageParams(id) {
15 return "id=" + id;
16 }
17 </script>
18 <groupbox id="language_group" flex="1" align="center"
19 style="margin: 50px; background: white; max-height: 100px; max-width: 300px">
20 <caption id="language_caption" label="${language.caption}"/>
21 <grid id="language_grid" style="padding-top: 10px; padding-bottom: 10px">
22 <columns id="language_columns">
23 <column id="language_column_1" width="50"/>
24 <column id="column_spacer_1" width="10"/>
25 <column id="language_column_2" width="50"/>
26 </columns>
27 <rows id="language_rows">
28 <row id="language_row">
29 <button id="english_button"
30 image="${pageContext.request.contextPath}/docs/Ice.gif"
31 orient="vertical"
32 label="${language.en}" checked="true"
33 oncommand="submitLanguage('english_button')">
34 <jsf:config action="english"/>
35 </button>
36 <spacer id="row_spacer_1"/>
37 <button id="japanese_button"
38 image="${pageContext.request.contextPath}/docs/Dango.gif"
39 orient="vertical"
40 label="${language.ja}"
41 oncommand="submitLanguage('japanese_button')">
42 <jsf:config action="japanese"/>
43 </button>
44 </row>
45 </rows>
46 </grid>
47 </groupbox>
48 </window>