Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
[kivitendo-erp.git] / templates / webpages / menu / menuv3.html
1 [%- USE T8 %]
2 [% USE HTML %]
3  <script type="text/javascript" src="js/jquery.js"></script>
4  <script type="text/javascript">
5  <!--
6 function on_keydown_quicksearch(e) {
7   var key;
8
9   if (window.event)
10     key = window.event.keyCode;   // IE
11   else
12     key = e.which;                // Firefox
13
14   if (key != 13)
15     return true;
16
17   var search_term = $("#search_term");
18   var value       = search_term.val();
19   if (!value)
20     return true;
21
22   var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value);
23
24   search_term.val('');
25   $("#win1").attr('src', url);
26
27   return false;
28 }
29
30 function clockon() {
31   var now = new Date();
32   var h = now.getHours();
33   var m = now.getMinutes();
34   document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m);
35   var timer=setTimeout("clockon()", 10000);
36 }
37 $(clockon);
38 //-->
39  </script>
40
41  <table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0">
42   <tr>
43    <td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>
44     &nbsp;
45     [<a href="login.pl?action=company_logo" target="_blank">[% 'new Window' | $T8 %]</a>]
46     &nbsp;
47     [<a href="JavaScript:top.print()">[% 'print' | $T8 %]</a>]
48     &nbsp;
49     [[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch(event)">]
50    </td>
51    <td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>
52     [[% 'User' | $T8 %]: [% HTML.escape(login) %] -
53     <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
54     [% date %] <span id='clock_id' style='position:relative'></span>&nbsp;
55    </td>
56   </tr>
57  </table>
58
59  <div id="menuv3">
60
61   [% menu %]
62
63  </div>
64  <div style="clear: both;"></div>