2 [% USE HTML %][%- USE LxERP -%]
3 <script type="text/javascript">
7 var h = now.getHours();
8 var m = now.getMinutes();
9 document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m);
10 var timer=setTimeout("clockon()", 10000);
16 <script type="text/javascript" src="js/dhtmlsuite/menu-for-applications.js"></script>
18 <div id="frame-header">
19 <span class="frame-header-element frame-header-left">
20 [<a href="login.pl?action=company_logo" target="_blank">[% 'new Window' | $T8 %]</a>]
21 [<a href="JavaScript:top.print()">[% 'print' | $T8 %]</a>]
22 [[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch($('#search_term'), event)">]
24 <span class="frame-header-element frame-header-right">
25 [[% 'User' | $T8 %]: [% MYCONFIG.login | html %] -
26 <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
27 [% date %] <span id='clock_id' style='position:relative'></span>
29 <span class="frame-header-element frame-header-right" id="ajax-spinner">
30 <img src="image/[% IF MYCONFIG.stylesheet == 'lx-office-erp.css' %]spinner-blue.gif[% ELSE %]spinner-white.gif[% END %]" alt="[% LxERP.t8('Loading...') %]">
34 <div id="main_menu_div"></div>
36 [%- SET main_id = '100' %]
37 <ul id="main_menu_model" style='display:none'>
38 [%- FOREACH mainitem = menu_items %]
39 [%- SET main_id = main_id + 1 %]
40 <li id="[% main_id %]"[% IF mainitem.image %] itemIcon="[% mainitem.image %]"[% END %]>
41 <a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"[% IF mainitem.target && (mainitem.target != 'main_window') %] target="[% HTML.escape(mainitem.target) %]"[% END %]>
42 [%- HTML.escape(mainitem.title) %]
44 [%- IF mainitem.subitems %]
45 <ul[%- IF force_ul_width %] width="[% mainitem.max_width * 10 %]"[% END %]>
46 [%- SET sub1_id = main_id * 100 %]
47 [%- FOREACH sub1item = mainitem.subitems %]
48 [%- SET sub1_id = sub1_id + 1 %]
49 <li id="[% sub1_id %]"[% IF sub1item.image %] itemIcon="[% sub1item.image %]"[% END %]>
50 <a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"[% IF sub1item.target && (sub1item.target != 'main_window') %] target="[% HTML.escape(sub1item.target) %]"[% END %]>
51 [%- HTML.escape(sub1item.title) %]
53 [%- IF sub1item.subitems %]
54 <ul[%- IF force_ul_width %] width="[% sub1item.max_width * 10 %]"[% END %]>
55 [%- SET sub2_id = sub1_id * 100 %]
56 [%- FOREACH sub2item = sub1item.subitems %]
57 [%- SET sub2_id = sub2_id + 1 %]
58 <li id="[% sub2_id %]"[% IF sub2item.image %] itemIcon="[% sub2item.image %]"[% END %]>
59 <a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"[% IF sub2item.target && (sub2item.target != 'main_window') %] target="[% HTML.escape(sub2item.target) %]"[% END %]>
60 [%- HTML.escape(sub2item.title) %]
74 <script type="text/javascript">
78 DHTMLSuite.createStandardObjects();
80 DHTMLSuite.configObj.setImagePath('image/dhtmlsuite/');
82 var menu_model = new DHTMLSuite.menuModel();
83 menu_model.addItemsFromMarkup('main_menu_model');
86 var menu_bar = new DHTMLSuite.menuBar();
87 menu_bar.addMenuItems(menu_model);
88 menu_bar.setTarget('main_menu_div');
94 function open_url(url, target) {