[% USE HTML %]
<script type="text/javascript">
<!--
-$(function() {
+function clockon() {
var now = new Date();
var h = now.getHours();
var m = now.getMinutes();
document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m);
var timer=setTimeout("clockon()", 10000);
-})
+}
+$(clockon);
//-->
</script>
<tr>
<td>
- [<a href="menunew.pl?action=display" target="_blank">[% 'new Window' | $T8 %]</a>]
+ [<a href="login.pl?action=company_logo" target="_blank">[% 'new Window' | $T8 %]</a>]
- [<a href="JavaScript:top.main_window.print()">[% 'print' | $T8 %]</a>]
+ [<a href="JavaScript:top.print()">[% 'print' | $T8 %]</a>]
</td>
<td align="right" nowrap>
- [[% 'User' | $T8 %]: [% HTML.escape(login) %] -
+ [[% 'User' | $T8 %]: [% HTML.escape(MYCONFIG.login) %] -
<a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
[% date %] <span id='clock_id' style='position:relative'></span>
</td>
[%- FOREACH mainitem = menu_items %]
[%- SET main_id = main_id + 1 %]
<li id="[% main_id %]"[% IF mainitem.image %] itemIcon="[% mainitem.image %]"[% END %]>
- <a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]">
+ <a href="[% IF mainitem.href %][% mainitem.href %][% ELSE %]#[% END %]"[% IF mainitem.target && (mainitem.target != 'main_window') %] target="[% HTML.escape(mainitem.target) %]"[% END %]>
[%- HTML.escape(mainitem.title) %]
</a>
[%- IF mainitem.subitems %]
- <ul[%- IF force_ul_width %] width="[% mainitem.max_width * 12 %]"[% END %]>
+ <ul[%- IF force_ul_width %] width="[% mainitem.max_width * 10 %]"[% END %]>
[%- SET sub1_id = main_id * 100 %]
[%- FOREACH sub1item = mainitem.subitems %]
[%- SET sub1_id = sub1_id + 1 %]
<li id="[% sub1_id %]"[% IF sub1item.image %] itemIcon="[% sub1item.image %]"[% END %]>
- <a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]">
+ <a href="[% IF sub1item.href %][% sub1item.href %][% ELSE %]#[% END %]"[% IF sub1item.target && (sub1item.target != 'main_window') %] target="[% HTML.escape(sub1item.target) %]"[% END %]>
[%- HTML.escape(sub1item.title) %]
</a>
[%- IF sub1item.subitems %]
- <ul[%- IF force_ul_width %] width="[% sub1item.max_width * 12 %]"[% END %]>
+ <ul[%- IF force_ul_width %] width="[% sub1item.max_width * 10 %]"[% END %]>
[%- SET sub2_id = sub1_id * 100 %]
[%- FOREACH sub2item = sub1item.subitems %]
[%- SET sub2_id = sub2_id + 1 %]
<li id="[% sub2_id %]"[% IF sub2item.image %] itemIcon="[% sub2item.image %]"[% END %]>
- <a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]">
+ <a href="[% IF sub2item.href %][% sub2item.href %][% ELSE %]#[% END %]"[% IF sub2item.target && (sub2item.target != 'main_window') %] target="[% HTML.escape(sub2item.target) %]"[% END %]>
[%- HTML.escape(sub2item.title) %]
</a>
</li>
$(function(){
DHTMLSuite.createStandardObjects();
- DHTMLSuite.configObj.setCssPath('[% myconfig.css_path %]/dhtmlsuite/');
DHTMLSuite.configObj.setImagePath('image/dhtmlsuite/');
var menu_model = new DHTMLSuite.menuModel();