# BRCM_VERSION=3
[bcm963xx.git] / userapps / broadcom / cfm / html_t_online_fra / kuwa.c
1 fprintf (fs, "<HTML>\n");
2 fprintf (fs, "\n");
3 fprintf (fs, "<HEAD>\n");
4 fprintf (fs, "\n");
5 fprintf (fs, "<TITLE>TelefonKurzwahlliste</TITLE>\n");
6 fprintf (fs, "\n");
7 fprintf (fs, "<SCRIPT language=\"JavaScript\" src=\"js_fade.txt\" type=\"text/JavaScript\"></SCRIPT>\n");
8 fprintf (fs, "<SCRIPT language=\"JavaScript\" src=\"js_menu.txt\" type=\"text/JavaScript\"></SCRIPT>\n");
9 fprintf (fs, "\n");
10 fprintf (fs, "<SCRIPT language=\"JavaScript\">\n");
11 fprintf (fs, "<!--\n");
12 fprintf (fs, "\n");
13 fprintf (fs, "function chk(){ \n");
14 fprintf (fs, "}\n");
15 fprintf (fs, "\n");
16 fprintf (fs, "function txtHinw(feldname){\n");
17 fprintf (fs, "return \"In Zeile '\" + feldname + \"' wurde eine falsche Eingabe vorgenommen. \" + \n");
18 fprintf (fs, "\"\nDie korrekte Eingabe ist notwendig, um die Kurzwahlliste verwenden zu können.\";\n");
19 fprintf (fs, "}\n");
20 fprintf (fs, "\n");
21 fprintf (fs, "function stOk(){\n");
22 fprintf (fs, "\n");
23 fprintf (fs, "document.getElementById(\"c_verzoeg1\").style.visibility='visible';\n");
24 fprintf (fs, "document.getElementById(\"c_verzoeg2\").style.visibility='visible';\n");
25 fprintf (fs, "setTimeout(\"stZrk()\",top.frames[0].verzoeg);\n");
26 fprintf (fs, "}\n");
27 fprintf (fs, "\n");
28 fprintf (fs, "function stZrk(){\n");
29 fprintf (fs, "top.frames[2].location.href = \"hcti_telefon.htm\";\n");
30 fprintf (fs, "}\n");
31 fprintf (fs, "\n");
32 fprintf (fs, "//-->\n");
33 fprintf (fs, "</SCRIPT>\n");
34 fprintf (fs, "\n");
35 fprintf (fs, "<LINK rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n");
36 fprintf (fs, "\n");
37 fprintf (fs, "<STYLE type=\"text/css\">\n");
38 fprintf (fs, "<!--\n");
39 fprintf (fs, "\n");
40 fprintf (fs, "#scroll{WIDTH: 400px; HEIGHT: 368px; OVERFLOW: scroll;}\n");
41 fprintf (fs, "\n");
42 fprintf (fs, "//-->\n");
43 fprintf (fs, "</STYLE>\n");
44 fprintf (fs, "\n");
45 fprintf (fs, "</HEAD>\n");
46 fprintf (fs, "\n");
47 fprintf (fs, "<BODY onload=chk()>\n");
48 fprintf (fs, "\n");
49 fprintf (fs, "<DIV id=c_Frame>\n");
50 fprintf (fs, "\n");
51 fprintf (fs, "<DIV id=c_border>\n");
52 fprintf (fs, "<DIV id=c_pfad>Telefonie / Kurzwahlliste</DIV>\n");
53 fprintf (fs, "<DIV id=c_titel>&nbsp;&nbsp;KW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bezeichnung&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rufnummer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Netze</DIV>\n");
54 fprintf (fs, "\n");
55 fprintf (fs, "<DIV id=scroll>\n");
56 fprintf (fs, "<SCRIPT language=\"JavaScript\">\n");
57 fprintf (fs, "<!--\n");
58 fprintf (fs, "\n");
59 fprintf (fs, "for (i=0;i<100;i++){\n");
60 fprintf (fs, "var divart = \"c_std\";\n");
61 fprintf (fs, "var endf = \"\";\n");
62 fprintf (fs, "if (i==100-1){\n");
63 fprintf (fs, "divart = \"c_last\";\n");
64 fprintf (fs, "endf = \"</form>\";\n");
65 fprintf (fs, "}\n");
66 fprintf (fs, "document.write(\n");
67 fprintf (fs, "'<DIV id=' + divart + '>' +\n");
68 fprintf (fs, "'<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\">' +\n");
69 fprintf (fs, "'<tr onmouseover=i_showElem(1) onmouseout=i_showElem(0)>');\n");
70 fprintf (fs, "                  if (i<10){\n");
71 fprintf (fs, "                          document.write('<td width=\"30\" align=\"center\">0' + i + '#</td>');\n");
72 fprintf (fs, "                  }\n");
73 fprintf (fs, "                  else{\n");
74 fprintf (fs, "                          document.write('<td width=\"30\" align=\"center\">' + i + '#</td>');\n");
75 fprintf (fs, "                  }\n");
76 fprintf (fs, "                  document.write(\n");
77 fprintf (fs, "'<td width=\"12\"></td>' +\n");
78 fprintf (fs, "'<td width=\"120\"><input type=\"text\" name=\"T1\" size=\"12\" maxlength=\"20\"></td>' +\n");
79 fprintf (fs, "'<td width=\"120\"><input type=\"text\" name=\"T2\" size=\"12\" maxlength=\"20\"></td>' +\n");
80 fprintf (fs, "'<td>' +\n");
81 fprintf (fs, "                          '<select name=\"D1\" size=\"1\">' +\n");
82 fprintf (fs, "                                  '<option>Internet</option>' +\n");
83 fprintf (fs, "                                  '<option>Festnetz</option>' +\n");
84 fprintf (fs, "                                  '<option>Beide</option>' +\n");
85 fprintf (fs, "                          '</select>' +\n");
86 fprintf (fs, "                  '</td>' +\n");
87 fprintf (fs, "endf +\n");
88 fprintf (fs, "'</tr>' +\n");
89 fprintf (fs, "'</table>' +\n");
90 fprintf (fs, "'</DIV>');\n");
91 fprintf (fs, "}\n");
92 fprintf (fs, "\n");
93 fprintf (fs, "//-->\n");
94 fprintf (fs, "</SCRIPT>\n");
95 fprintf (fs, "</DIV>\n");
96 fprintf (fs, "\n");
97 fprintf (fs, "<DIV id=c_foot></DIV>\n");
98 fprintf (fs, "</DIV>\n");
99 fprintf (fs, "\n");
100 fprintf (fs, "<DIV id=c_verzoeg1></DIV>\n");
101 fprintf (fs, "<DIV id=c_verzoeg2></DIV>\n");
102 fprintf (fs, "\n");
103 fprintf (fs, "</DIV>\n");
104 fprintf (fs, "\n");
105 fprintf (fs, "<DIV id=t_Frame>\n");
106 fprintf (fs, "\n");
107 fprintf (fs, "<DIV id=t_but1 onclick=startseite() onmouseover=rahmen(1,1) onmouseout=rahmen(0,1)>&lt;&lt;&nbsp;&nbsp;&lt;&lt;</DIV>\n");
108 fprintf (fs, "<DIV id=t_but3 onclick=stZrk() onmouseover=rahmen(1,3) onmouseout=rahmen(0,3)>Zur&uuml;ck &lt;&lt;</DIV>\n");
109 fprintf (fs, "<DIV id=t_but4 onclick=stOk() onmouseover=rahmen(1,4) onmouseout=rahmen(0,4)>Speichern &lt;&lt;</DIV>\n");
110 fprintf (fs, "\n");
111 fprintf (fs, "</DIV>\n");
112 fprintf (fs, "\n");
113 fprintf (fs, "<DIV id=i_Frame>\n");
114 fprintf (fs, "\n");
115 fprintf (fs, "<DIV id=i_content>\n");
116 fprintf (fs, "<h2>Kurzwahlliste</h2>\n");
117 fprintf (fs, "<p>Hier können Sie die Rufnummern eintragen die Sie dann per Kurzwahl anwählen können.</p>\n");
118 fprintf (fs, "</DIV>\n");
119 fprintf (fs, "\n");
120 fprintf (fs, "<DIV id=i_content1>\n");
121 fprintf (fs, "<h2>Kurzwahlliste</h2>\n");
122 fprintf (fs, "<p><b>KW</b><br>\n");
123 fprintf (fs, "  Mit der Kurzwahl können Sie die Rufnummer anwählen, die in dem Feld Rufnummer eingetragen ist.</p>\n");
124 fprintf (fs, "<p><b>Bezeichnung</b><br>\n");
125 fprintf (fs, "  Damit Sie wissen um welche Rufnummer es sich handelt, vergeben Sie bitte eine Bezeichnung.</p>\n");
126 fprintf (fs, "<p><b>Rufnummer</b><br>\n");
127 fprintf (fs, "  Tragen Sie hier die Rufnummer ein, die Sie per Kurzwahl erreichen möchten.</p>\n");
128 fprintf (fs, "<p><b>Netze</b><br>\n");
129 fprintf (fs, "  Wählen Sie das Netz aus, über welches die Anwahl erfolgen soll. \n");
130 fprintf (fs, "  Wenn Sie beide auswählen, dann wird die Verbindung über eine freie Leitung versucht aufzubauen. \n");
131 fprintf (fs, "  Die Priorität der Leitungsbelegung können Sie unter dem Menüpunkt: 'Rufnummer gehend' festlegen.  </p>\n");
132 fprintf (fs, "</DIV>\n");
133 fprintf (fs, "\n");
134 fprintf (fs, "</DIV>\n");
135 fprintf (fs, "\n");
136 fprintf (fs, "</BODY>\n");
137 fprintf (fs, "\n");
138 fprintf (fs, "</HTML>\n");
139 fprintf (fs, "<HTML>\n");
140 fprintf (fs, "\n");
141 fprintf (fs, "<HEAD>\n");
142 fprintf (fs, "\n");
143 fprintf (fs, "<TITLE>TelefonKurzwahlliste</TITLE>\n");
144 fprintf (fs, "\n");
145 fprintf (fs, "<SCRIPT language=\"JavaScript\" src=\"js_fade.txt\" type=\"text/JavaScript\"></SCRIPT>\n");
146 fprintf (fs, "<SCRIPT language=\"JavaScript\" src=\"js_menu.txt\" type=\"text/JavaScript\"></SCRIPT>\n");
147 fprintf (fs, "\n");
148 fprintf (fs, "<SCRIPT language=\"JavaScript\">\n");
149 fprintf (fs, "<!--\n");
150 fprintf (fs, "\n");
151 fprintf (fs, "function chk(){ \n");
152 fprintf (fs, "}\n");
153 fprintf (fs, "\n");
154 fprintf (fs, "function txtHinw(feldname){\n");
155 fprintf (fs, "return \"In Zeile '\" + feldname + \"' wurde eine falsche Eingabe vorgenommen. \" + \n");
156 fprintf (fs, "\"\nDie korrekte Eingabe ist notwendig, um die Kurzwahlliste verwenden zu können.\";\n");
157 fprintf (fs, "}\n");
158 fprintf (fs, "\n");
159 fprintf (fs, "function stOk(){\n");
160 fprintf (fs, "\n");
161 fprintf (fs, "var loc = 'voipcfg.cmd?action=outset&s';\n");
162 fprintf (fs, "\n");
163 fprintf (fs, "for (i=0;i<100;i++){\n");
164 fprintf (fs, "loc = loc + 'QCAL_' + i + '=' + encodeUrl(document.F1.T1[i].value) + '&';\n");
165 fprintf (fs, "  loc = loc + 'QDES_' + i + '=' + encodeUrl(document.F1.T2[i].value) + '&';\n");
166 fprintf (fs, "  }\n");
167 fprintf (fs, "  for (j=0; j<99; j++)\n");
168 fprintf (fs, "          loc = loc + 'QSEL_' + j + '=' + document.F1.D1[j].selectedIndex + '&';\n");
169 fprintf (fs, "\n");
170 fprintf (fs, "loc = loc + 'QSEL_99=' +  encodeUrl(document.F1.elements[99].value);\n");
171 fprintf (fs, "\n");
172 fprintf (fs, "alert(loc);\n");
173 fprintf (fs, "var code = 'this.location.assign(\"' + loc + '\")';\n");
174 fprintf (fs, "eval(code);  \n");
175 fprintf (fs, "document.getElementById(\"c_verzoeg1\").style.visibility='visible';\n");
176 fprintf (fs, "document.getElementById(\"c_verzoeg2\").style.visibility='visible';\n");
177 fprintf (fs, "}\n");
178 fprintf (fs, "\n");
179 fprintf (fs, "function stZrk(){\n");
180 fprintf (fs, "top.frames[2].location.href = \"hcti_telefon.htm\";\n");
181 fprintf (fs, "}\n");
182 fprintf (fs, "\n");
183 fprintf (fs, "//-->\n");
184 fprintf (fs, "</SCRIPT>\n");
185 fprintf (fs, "\n");
186 fprintf (fs, "<LINK rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n");
187 fprintf (fs, "\n");
188 fprintf (fs, "<STYLE type=\"text/css\">\n");
189 fprintf (fs, "<!--\n");
190 fprintf (fs, "\n");
191 fprintf (fs, "#scroll{WIDTH: 400px; HEIGHT: 368px; OVERFLOW: scroll;}\n");
192 fprintf (fs, "\n");
193 fprintf (fs, "//-->\n");
194 fprintf (fs, "</STYLE>\n");
195 fprintf (fs, "\n");
196 fprintf (fs, "</HEAD>\n");
197 fprintf (fs, "\n");
198 fprintf (fs, "<BODY onload=chk()>\n");
199 fprintf (fs, "\n");
200 fprintf (fs, "<DIV id=c_Frame>\n");
201 fprintf (fs, "\n");
202 fprintf (fs, "<DIV id=c_border>\n");
203 fprintf (fs, "<DIV id=c_pfad>Telefonie / Kurzwahlliste</DIV>\n");
204 fprintf (fs, "<DIV id=c_titel>&nbsp;&nbsp;KW&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bezeichnung&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Rufnummer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Netze</DIV>\n");
205 fprintf (fs, "\n");
206 fprintf (fs, "<DIV id=scroll>\n");
207 fprintf (fs, "<SCRIPT language=\"JavaScript\">\n");
208 fprintf (fs, "<!--\n");
209 fprintf (fs, "\n");
210 fprintf (fs, "for (i=0;i<100;i++){\n");
211 fprintf (fs, "var divart = \"c_std\";\n");
212 fprintf (fs, "var endf = \"\";\n");
213 fprintf (fs, "if (i==100-1){\n");
214 fprintf (fs, "divart = \"c_last\";\n");
215 fprintf (fs, "endf = \"</form>\";\n");
216 fprintf (fs, "}\n");
217 fprintf (fs, "document.write(\n");
218 fprintf (fs, "'<DIV id=' + divart + '>' +\n");
219 fprintf (fs, "'<table border=\"0\" cellpadding=\"0\" cellspacing=\"2\">' +\n");
220 fprintf (fs, "'<tr onmouseover=i_showElem(1) onmouseout=i_showElem(0)>');\n");
221 fprintf (fs, "                  if (i<10){\n");
222 fprintf (fs, "                          document.write('<td width=\"30\" align=\"center\">0' + i + '#</td>');\n");
223 fprintf (fs, "                  }\n");
224 fprintf (fs, "                  else{\n");
225 fprintf (fs, "                          document.write('<td width=\"30\" align=\"center\">' + i + '#</td>');\n");
226 fprintf (fs, "                  }\n");
227 fprintf (fs, "                  document.write(\n");
228 fprintf (fs, "'<td width=\"12\"></td>' +\n");
229 fprintf (fs, "'<td width=\"120\"><input type=\"text\" name=\"T1\" size=\"12\" maxlength=\"20\"></td>' +\n");
230 fprintf (fs, "'<td width=\"120\"><input type=\"text\" name=\"T2\" size=\"12\" maxlength=\"20\"></td>' +\n");
231 fprintf (fs, "'<td>' +\n");
232 fprintf (fs, "                          '<select name=\"D1\" size=\"1\">' +\n");
233 fprintf (fs, "                                  '<option>Internet</option>' +\n");
234 fprintf (fs, "                                  '<option>Festnetz</option>' +\n");
235 fprintf (fs, "                                  '<option>Beide</option>' +\n");
236 fprintf (fs, "                          '</select>' +\n");
237 fprintf (fs, "                  '</td>' +\n");
238 fprintf (fs, "endf +\n");
239 fprintf (fs, "'</tr>' +\n");
240 fprintf (fs, "'</table>' +\n");
241 fprintf (fs, "'</DIV>');\n");
242 fprintf (fs, "}\n");
243 fprintf (fs, "\n");
244 fprintf (fs, "//-->\n");
245 fprintf (fs, "</SCRIPT>\n");
246 fprintf (fs, "</DIV>\n");
247 fprintf (fs, "\n");
248 fprintf (fs, "<DIV id=c_foot></DIV>\n");
249 fprintf (fs, "</DIV>\n");
250 fprintf (fs, "\n");
251 fprintf (fs, "<DIV id=c_verzoeg1></DIV>\n");
252 fprintf (fs, "<DIV id=c_verzoeg2></DIV>\n");
253 fprintf (fs, "\n");
254 fprintf (fs, "</DIV>\n");
255 fprintf (fs, "\n");
256 fprintf (fs, "<DIV id=t_Frame>\n");
257 fprintf (fs, "\n");
258 fprintf (fs, "<DIV id=t_but1 onclick=startseite() onmouseover=rahmen(1,1) onmouseout=rahmen(0,1)>&lt;&lt;&nbsp;&nbsp;&lt;&lt;</DIV>\n");
259 fprintf (fs, "<DIV id=t_but3 onclick=stZrk() onmouseover=rahmen(1,3) onmouseout=rahmen(0,3)>Zur&uuml;ck &lt;&lt;</DIV>\n");
260 fprintf (fs, "<DIV id=t_but4 onclick=stOk() onmouseover=rahmen(1,4) onmouseout=rahmen(0,4)>Speichern &lt;&lt;</DIV>\n");
261 fprintf (fs, "\n");
262 fprintf (fs, "</DIV>\n");
263 fprintf (fs, "\n");
264 fprintf (fs, "<DIV id=i_Frame>\n");
265 fprintf (fs, "\n");
266 fprintf (fs, "<DIV id=i_content>\n");
267 fprintf (fs, "<h2>Kurzwahlliste</h2>\n");
268 fprintf (fs, "<p>Hier können Sie die Rufnummern eintragen die Sie dann per Kurzwahl anwählen können.</p>\n");
269 fprintf (fs, "</DIV>\n");
270 fprintf (fs, "\n");
271 fprintf (fs, "<DIV id=i_content1>\n");
272 fprintf (fs, "<h2>Kurzwahlliste</h2>\n");
273 fprintf (fs, "<p><b>KW</b><br>\n");
274 fprintf (fs, "  Mit der Kurzwahl können Sie die Rufnummer anwählen, die in dem Feld Rufnummer eingetragen ist.</p>\n");
275 fprintf (fs, "<p><b>Bezeichnung</b><br>\n");
276 fprintf (fs, "  Damit Sie wissen um welche Rufnummer es sich handelt, vergeben Sie bitte eine Bezeichnung.</p>\n");
277 fprintf (fs, "<p><b>Rufnummer</b><br>\n");
278 fprintf (fs, "  Tragen Sie hier die Rufnummer ein, die Sie per Kurzwahl erreichen möchten.</p>\n");
279 fprintf (fs, "<p><b>Netze</b><br>\n");
280 fprintf (fs, "  Wählen Sie das Netz aus, über welches die Anwahl erfolgen soll. \n");
281 fprintf (fs, "  Wenn Sie beide auswählen, dann wird die Verbindung über eine freie Leitung versucht aufzubauen. \n");
282 fprintf (fs, "  Die Priorität der Leitungsbelegung können Sie unter dem Menüpunkt: 'Rufnummer gehend' festlegen.  </p>\n");
283 fprintf (fs, "</DIV>\n");
284 fprintf (fs, "\n");
285 fprintf (fs, "</DIV>\n");
286 fprintf (fs, "\n");
287 fprintf (fs, "</BODY>\n");
288 fprintf (fs, "\n");
289 fprintf (fs, "</HTML>\n");