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