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 [% 'Client' | $T8 %]: [% AUTH.client.name | html %] -
27 <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
28 [% date %] <span id='clock_id' style='position:relative'></span>
30 <span class="frame-header-element frame-header-right" id="ajax-spinner">
31 <img src="image/[% IF MYCONFIG.stylesheet == 'lx-office-erp.css' %]spinner-blue.gif[% ELSE %]spinner-white.gif[% END %]" alt="[% LxERP.t8('Loading...') %]">
35 <div id="main_menu_div"></div>
37 [%- SET main_id = '100' %]
38 <ul id="main_menu_model" style='display:none'>
39 [%- FOREACH mainitem = menu_items %]
40 [%- SET main_id = main_id + 1 %]
41 <li id="[% main_id %]"[% IF mainitem.image %] itemIcon="[% mainitem.image %]"[% END %]>
42 <a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"[% IF mainitem.target && (mainitem.target != 'main_window') %] target="[% HTML.escape(mainitem.target) %]"[% END %]>
43 [%- HTML.escape(mainitem.title) %]
45 [%- IF mainitem.subitems %]
46 <ul[%- IF force_ul_width %] width="[% mainitem.max_width * 10 %]"[% END %]>
47 [%- SET sub1_id = main_id * 100 %]
48 [%- FOREACH sub1item = mainitem.subitems %]
49 [%- SET sub1_id = sub1_id + 1 %]
50 <li id="[% sub1_id %]"[% IF sub1item.image %] itemIcon="[% sub1item.image %]"[% END %]>
51 <a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"[% IF sub1item.target && (sub1item.target != 'main_window') %] target="[% HTML.escape(sub1item.target) %]"[% END %]>
52 [%- HTML.escape(sub1item.title) %]
54 [%- IF sub1item.subitems %]
55 <ul[%- IF force_ul_width %] width="[% sub1item.max_width * 10 %]"[% END %]>
56 [%- SET sub2_id = sub1_id * 100 %]
57 [%- FOREACH sub2item = sub1item.subitems %]
58 [%- SET sub2_id = sub2_id + 1 %]
59 <li id="[% sub2_id %]"[% IF sub2item.image %] itemIcon="[% sub2item.image %]"[% END %]>
60 <a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"[% IF sub2item.target && (sub2item.target != 'main_window') %] target="[% HTML.escape(sub2item.target) %]"[% END %]>
61 [%- HTML.escape(sub2item.title) %]
75 <script type="text/javascript">
79 DHTMLSuite.createStandardObjects();
81 DHTMLSuite.configObj.setImagePath('image/dhtmlsuite/');
83 var menu_model = new DHTMLSuite.menuModel();
84 menu_model.addItemsFromMarkup('main_menu_model');
87 var menu_bar = new DHTMLSuite.menuBar();
88 menu_bar.addMenuItems(menu_model);
89 menu_bar.setTarget('main_menu_div');
95 function open_url(url, target) {