Revision 4070dbf3
Von Sven Schöling vor mehr als 12 Jahren hinzugefügt
templates/webpages/menu/menuv3.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[% USE HTML %]<body style="padding:0px; margin:0px;"> |
3 | 3 |
|
4 |
<script type="text/javascript" src="js/jquery.js"></script> |
|
4 | 5 |
<script type="text/javascript"> |
5 |
<!-- |
|
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 |
|
|
6 | 31 |
function clockon() { |
7 | 32 |
var now = new Date(); |
8 | 33 |
var h = now.getHours(); |
... | ... | |
16 | 41 |
|
17 | 42 |
<table border="0" width="100%" background="image/bg_titel.gif" cellpadding="0" cellspacing="0"> |
18 | 43 |
<tr> |
19 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;"> |
|
44 |
<td style="color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap>
|
|
20 | 45 |
|
21 | 46 |
[<a href="menuv3.pl?action=display" target="_blank">[% 'new Window' | $T8 %]</a>] |
22 | 47 |
|
23 | 48 |
[<a href="JavaScript:top.main_window.print()">[% 'print' | $T8 %]</a>] |
49 |
|
|
50 |
[[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch(event)">] |
|
24 | 51 |
</td> |
25 | 52 |
<td align="right" style="vertical-align:middle; color:white; font-family:verdana,arial,sans-serif; font-size: 12px;" nowrap> |
26 | 53 |
[[% 'User' | $T8 %]: [% HTML.escape(login) %] - |
Auch abrufbar als: Unified diff
Suche nach Ansprechpartnern
Merge aus zwei verschiedenen Implementierungen der gleichen Funktionalität
Features:
- behandelt Ansprechparter als direkte Suchziele wie Kunden und Lieferanten (1)
- Suche ähnlich den bekannten Suchmasken (1)
- Suche nach direktem Suchwort (2)
- Verlinkung einer Schnellsuche in der menunew header Leiste (2)