]> matita.cs.unibo.it Git - helm.git/blob - helm/on-line/html/library/control.html
###############################################################
[helm.git] / helm / on-line / html / library / control.html
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4 -->
5
6 <html xmlns:subst="http://www.cs.unibo.it/helm/subst">
7 <head>
8 <title>Control panel</title>
9 <!-- Note: <subst:script/> are substitued by the stylesheet with <script />  -->
10 <!-- after changing @src in the concatenation of the interface URL with @src -->
11 <subst:script language="JavaScript" src="/javascript/defaults.js" />
12 <subst:script language="JavaScript" src="/javascript/utils.js" />
13 <subst:script language="JavaScript" src="/javascript/control.js" />
14 </head>
15 <body bgcolor="#ffffff" text="#000000">
16 <form>
17 <table>
18   <tr>
19     <td>
20       <b>Format</b>:
21     </td>
22     <td>
23       <select name="output" onChange="updateOutput(this,document.forms[0].format)">
24       <script>
25         var mode = getParam2('mode');
26         var mode_list = mode.split(',');
27         outputOption(document, "processed", "Processed", mode_list[0]);
28         outputOption(document, "raw", "Raw", mode_list[0]);
29       </script>
30       </select>
31     </td>
32     <td>
33       <select name="format" onChange="updateFormat(this)">
34       <script>
35         var mode = getParam2('mode');
36         var mode_list = mode.split(',');
37         if (mode_list[0] == "raw") {
38           outputOption(document, "cic",   "CIC", mode_list[1]);
39           outputOption(document, "types", "TYPES", mode_list[1]);
40           outputOption(document, "ann",   "ANN", mode_list[1]);
41           outputOption(document, "fwd",   "RDF: Forward pointers", mode_list[1]);
42           outputOption(document, "bwd",   "RDF: Backward pointers", mode_list[1]);
43         } else {
44           outputOption(document, "html", "HTML", mode_list[2]);
45           outputOption(document, "mml_cont", "MathML Content", mode_list[2]);
46           outputOption(document, "mml_pres", "MathML Presentation", mode_list[2]);
47         }
48       </script>
49       </select>
50     </td>
51     <td>
52      <script>
53       var processorURL = '<subst:processorURL/>';
54       var interfaceURL = '<subst:interfaceURL/>';
55       var profile = '<subst:profile/>';
56 <![CDATA[
57        document.write('<a target="_top" href="" ' +
58          'onClick="refreshReload(profile,processorURL,interfaceURL)">Reload</a>');
59 ]]>
60      </script>
61      <br />
62      (do it also before attempting to take a link to the current page)
63      <script>
64 <![CDATA[
65        top.mode = getParam2('mode');
66        top.cicuri = getParam2('cicuri');
67        top.theoryuri = getParam2('theoryuri');
68 ]]>
69      </script>
70     </td>
71   </tr>
72   <tr>
73     <td colspan="3">
74       <script>
75 <![CDATA[
76         var mode = getParam2('mode');
77         var mode_list = mode.split(',');
78         if (mode_list[0] == "raw") {
79          outputCheckbox(document, "updateCompressed(this)",
80           "&nbsp;Compressed", mode_list[5] == "gz");
81          outputCheckbox(document, "updateDTDPatched(this)",
82           "&nbsp;Resolve DTD URL", mode_list[6] == "yes");
83         } else {
84          outputCheckbox(document, "updateNatural(this)",
85           "&nbsp;Natural Language", mode_list[3] == "yes");
86          outputCheckbox(document, "updateAnnotations(this)",
87           "&nbsp;Annotations", mode_list[4] == "yes");
88         }
89 ]]>
90       </script>
91     </td>
92     <td>
93      <script>
94 <![CDATA[
95        document.write('<a target="_top" href=""' +
96          ' onClick="refreshReload(profile,processorURL,interfaceURL)">Configuration Panel</a>');
97 ]]>
98      </script>
99      <br />
100     </td>
101   </tr>
102 </table>
103 </form>
104 </body>
105 </html>