Revision c1b69a2c
Von Sven Donath vor etwa 14 Jahren hinzugefügt
bin/mozilla/admin.pl | ||
---|---|---|
351 | 351 |
|
352 | 352 |
$form->{title} = "Lx-Office ERP " . $locale->text('Administration') . " / " . $locale->text('Add User'); |
353 | 353 |
|
354 |
# Note: Menu Style 'v3' is not compatible to all browsers! |
|
355 |
# "menustyle" => "old" sets the HTML Menu to default. |
|
354 | 356 |
my $myconfig = { |
355 | 357 |
"vclimit" => 200, |
356 | 358 |
"countrycode" => "de", |
357 | 359 |
"numberformat" => "1.000,00", |
358 | 360 |
"dateformat" => "dd.mm.yy", |
359 | 361 |
"stylesheet" => "lx-office-erp.css", |
360 |
"menustyle" => "v3",
|
|
362 |
"menustyle" => "old",
|
|
361 | 363 |
}; |
362 | 364 |
|
363 | 365 |
edit_user_form($myconfig); |
templates/webpages/admin/edit_user.html | ||
---|---|---|
174 | 174 |
<th align="right">[% 'Setup Menu' | $T8 %]</th> |
175 | 175 |
<td> |
176 | 176 |
<select name="menustyle"> |
177 |
<option value="old"[% IF menustyle_old %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option> |
|
177 | 178 |
<option value="v3"[% IF menustyle_v3 %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option> |
178 | 179 |
<option value="v4"[% IF menustyle_v4 %] selected[% END %]>[% 'Top (CSS) new' | $T8 %]</option> |
179 | 180 |
<option value="neu"[% IF menustyle_neu %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option> |
180 | 181 |
<option value="xml"[% IF menustyle_xml %] selected[% END %]>[% 'Top (XUL; only for Mozilla Firefox)' | $T8 %]</option> |
181 |
<option value="old"[% IF menustyle_old %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option> |
|
182 | 182 |
</select> |
183 | 183 |
</td> |
184 | 184 |
</tr> |
templates/webpages/am/config.html | ||
---|---|---|
125 | 125 |
<th align="right">[% 'Setup Menu' | $T8 %]</th> |
126 | 126 |
<td> |
127 | 127 |
<select name="menustyle"> |
128 |
<option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option> |
|
128 | 129 |
<option value="v3"[% IF myconfig_menustyle == 'v3' %] selected[% END %]>[% 'Top (CSS)' | $T8 %]</option> |
129 | 130 |
<option value="v4"[% IF myconfig_menustyle == 'v4' %] selected[% END %]>[% 'Top (CSS) new' | $T8 %]</option> |
130 | 131 |
<option value="neu"[% IF myconfig_menustyle == 'neu' %] selected[% END %]>[% 'Top (Javascript)' | $T8 %]</option> |
131 | 132 |
<option value="xml"[% IF myconfig_menustyle == 'xml' %] selected[% END %]>[% 'Top (XUL; only for Mozilla Firefox)' | $T8 %]</option> |
132 |
<option value="old"[% IF myconfig_menustyle == 'old' %] selected[% END %]>[% 'Old (on the side)' | $T8 %]</option> |
|
133 | 133 |
</select> |
134 | 134 |
</td> |
135 | 135 |
</tr> |
Auch abrufbar als: Unified diff
HTML-Menü als Standard. Die Menüvariante v3 (CSS) ist nicht mit allen Browsern kompatibel.
Man kann nicht zu allen Browsern kompatibel sein. Aber man kann versuchen mit dem kleinsten gemeinsamen Nenner,
hier HTML, einen Kompromiss zu finden. Das erspart vielen Neulingen sinnlosen Ärger.
Vielleicht sollte man die default-Einstellung nicht hardcodieren sondern z.B. in lx-erp.conf einstellbar machen?