3 <script type="text/javascript">
5 function on_keydown_quicksearch(e) {
9 key = window.event.keyCode; // IE
11 key = e.which; // Firefox
16 var search_term = $("#search_term");
17 var value = search_term.val();
21 var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value);
24 $("#win1").attr('src', url);
31 var h = now.getHours();
32 var m = now.getMinutes();
33 document.getElementById('clock_id').innerHTML = (h<10?'0'+h:h)+":"+(m<10?'0'+m:m);
34 var timer=setTimeout("clockon()", 10000);
40 <div id="frame-header">
41 <span class="frame-header-element frame-header-left">
42 [<a href="login.pl?action=company_logo" target="_blank">[% 'new Window' | $T8 %]</a>]
43 [<a href="JavaScript:top.print()">[% 'print' | $T8 %]</a>]
44 [[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch(event)">]
46 <span class="frame-header-element frame-header-right">
47 [[% 'User' | $T8 %]: [% MYCONFIG.login | html %] -
48 <a href="controller.pl?action=LoginScreen/logout" target="_top">[% 'logout' | $T8 %]</a>]
49 [% date %] <span id='clock_id' style='position:relative'></span>
57 <div style="clear: both;"></div>