2 [% USE HTML %][%- USE LxERP -%]
3 <div id="main_menu_div"></div>
5 [%- SET main_id = '100' %]
6 <ul id="main_menu_model" style='display:none'>
7 [%- FOREACH mainitem = menu_items %]
8 [%- SET main_id = main_id + 1 %]
9 <li id="[% main_id %]"[% IF mainitem.image %] itemIcon="[% mainitem.image %]"[% END %]>
10 <a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"[% IF mainitem.target && (mainitem.target != 'main_window') %] target="[% HTML.escape(mainitem.target) %]"[% END %]>
11 [%- HTML.escape(mainitem.title) %]
13 [%- IF mainitem.subitems %]
14 <ul[%- IF force_ul_width %] width="[% mainitem.max_width * 10 %]"[% END %]>
15 [%- SET sub1_id = main_id * 100 %]
16 [%- FOREACH sub1item = mainitem.subitems %]
17 [%- SET sub1_id = sub1_id + 1 %]
18 <li id="[% sub1_id %]"[% IF sub1item.image %] itemIcon="[% sub1item.image %]"[% END %]>
19 <a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"[% IF sub1item.target && (sub1item.target != 'main_window') %] target="[% HTML.escape(sub1item.target) %]"[% END %]>
20 [%- HTML.escape(sub1item.title) %]
22 [%- IF sub1item.subitems %]
23 <ul[%- IF force_ul_width %] width="[% sub1item.max_width * 10 %]"[% END %]>
24 [%- SET sub2_id = sub1_id * 100 %]
25 [%- FOREACH sub2item = sub1item.subitems %]
26 [%- SET sub2_id = sub2_id + 1 %]
27 <li id="[% sub2_id %]"[% IF sub2item.image %] itemIcon="[% sub2item.image %]"[% END %]>
28 <a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"[% IF sub2item.target && (sub2item.target != 'main_window') %] target="[% HTML.escape(sub2item.target) %]"[% END %]>
29 [%- HTML.escape(sub2item.title) %]
43 <script type="text/javascript">
47 DHTMLSuite.createStandardObjects();
49 DHTMLSuite.configObj.setImagePath('image/dhtmlsuite/');
51 var menu_model = new DHTMLSuite.menuModel();
52 menu_model.addItemsFromMarkup('main_menu_model');
55 var menu_bar = new DHTMLSuite.menuBar();
56 menu_bar.addMenuItems(menu_model);
57 menu_bar.setTarget('main_menu_div');
63 function open_url(url, target) {