Revision 4a12c839
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
templates/webpages/menu/menunew.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 |
[% USE HTML %]<body class="menunew"> |
|
3 |
|
|
2 |
[% USE HTML %] |
|
4 | 3 |
<script type="text/javascript"> |
5 | 4 |
<!-- |
6 | 5 |
function clockon() { |
... | ... | |
35 | 34 |
<div id="main_menu_div"></div> |
36 | 35 |
|
37 | 36 |
[%- SET main_id = '100' %] |
38 |
<ul id="main_menu_model"> |
|
37 |
<ul id="main_menu_model" style='display:none'>
|
|
39 | 38 |
[%- FOREACH mainitem = menu_items %] |
40 | 39 |
[%- SET main_id = main_id + 1 %] |
41 | 40 |
<li id="[% main_id %]"[% IF mainitem.image %] itemIcon="[% mainitem.image %]"[% END %]> |
42 |
<a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"[% IF mainitem.target %] target="[% mainitem.target %]"[% END %]>
|
|
41 |
<a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"> |
|
43 | 42 |
[%- HTML.escape(mainitem.title) %] |
44 | 43 |
</a> |
45 | 44 |
[%- IF mainitem.subitems %] |
... | ... | |
48 | 47 |
[%- FOREACH sub1item = mainitem.subitems %] |
49 | 48 |
[%- SET sub1_id = sub1_id + 1 %] |
50 | 49 |
<li id="[% sub1_id %]"[% IF sub1item.image %] itemIcon="[% sub1item.image %]"[% END %]> |
51 |
<a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"[% IF sub1item.target %] target="[% sub1item.target %]"[% END %]>
|
|
50 |
<a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"> |
|
52 | 51 |
[%- HTML.escape(sub1item.title) %] |
53 | 52 |
</a> |
54 | 53 |
[%- IF sub1item.subitems %] |
... | ... | |
57 | 56 |
[%- FOREACH sub2item = sub1item.subitems %] |
58 | 57 |
[%- SET sub2_id = sub2_id + 1 %] |
59 | 58 |
<li id="[% sub2_id %]"[% IF sub2item.image %] itemIcon="[% sub2item.image %]"[% END %]> |
60 |
<a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"[% IF sub2item.target %] target="[% sub2item.target %]"[% END %]>
|
|
59 |
<a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"> |
|
61 | 60 |
[%- HTML.escape(sub2item.title) %] |
62 | 61 |
</a> |
63 | 62 |
</li> |
... | ... | |
72 | 71 |
[%- END %] |
73 | 72 |
</ul> |
74 | 73 |
|
75 |
<iframe id="win1" src="[% callback %]" width="100%" height="94%" name="main_window" style="position: absolute; border: 0px; z-index: 99; "> |
|
76 |
<p>[% 'MSG_BROWSER_DOES_NOT_SUPPORT_IFRAMES' | $T8 %]</p> |
|
77 |
</iframe> |
|
78 | 74 |
<script type="text/javascript"> |
79 | 75 |
<!-- |
80 | 76 |
|
81 |
DHTMLSuite.createStandardObjects(); |
|
77 |
$(function(){ |
|
78 |
DHTMLSuite.createStandardObjects(); |
|
79 |
|
|
80 |
DHTMLSuite.configObj.setCssPath('[% myconfig.css_path %]/dhtmlsuite/'); |
|
81 |
DHTMLSuite.configObj.setImagePath('image/dhtmlsuite/'); |
|
82 | 82 |
|
83 |
DHTMLSuite.configObj.setCssPath('[% myconfig.css_path %]/dhtmlsuite/'); |
|
84 |
DHTMLSuite.configObj.setImagePath('image/dhtmlsuite/'); |
|
83 |
var menu_model = new DHTMLSuite.menuModel(); |
|
84 |
menu_model.addItemsFromMarkup('main_menu_model'); |
|
85 |
menu_model.init(); |
|
86 |
|
|
87 |
var menu_bar = new DHTMLSuite.menuBar(); |
|
88 |
menu_bar.addMenuItems(menu_model); |
|
89 |
menu_bar.setTarget('main_menu_div'); |
|
90 |
menu_bar.init(); |
|
91 |
}); |
|
85 | 92 |
|
86 |
var menu_model = new DHTMLSuite.menuModel(); |
|
87 |
menu_model.addItemsFromMarkup('main_menu_model'); |
|
88 |
menu_model.init(); |
|
89 | 93 |
|
90 |
var menu_bar = new DHTMLSuite.menuBar(); |
|
91 |
menu_bar.addMenuItems(menu_model); |
|
92 |
menu_bar.setTarget('main_menu_div'); |
|
93 |
menu_bar.init(); |
|
94 | 94 |
|
95 | 95 |
function open_url(url, target) { |
96 | 96 |
|
... | ... | |
98 | 98 |
|
99 | 99 |
--> |
100 | 100 |
</script> |
101 |
|
|
102 |
</body> |
|
103 |
</html> |
Auch abrufbar als: Unified diff
Layouts eingeführt
bin/mozilla/menu* -> SL/Controller/Layout/*