2 [% USE HTML %]<style type="text/css">@import url(js/jscalendar/calendar-win2k-1.css);</style>
3 <script type="text/javascript" src="js/jscalendar/calendar.js"></script>
4 <script type="text/javascript" src="js/jscalendar/lang/calendar-de.js"></script>
5 <script type="text/javascript" src="js/jscalendar/calendar-setup.js"></script>
7 <form method="post" action="am.pl">
9 <input type="hidden" name="action" value="show_am_history">
13 <th class ="listtop">[% 'history search engine' | $T8 %]</th>
18 <script type="text/javascript">
20 function uncheckOther(id) {
22 (document.getElementById('non-deleted').checked == false)
24 (document.getElementById('both').checked == false)
26 (document.getElementById('deleted').checked == false)
29 document.getElementById('non-deleted').checked = false;
30 document.getElementById('both').checked = false;
32 if(id == "non-deleted") {
33 document.getElementById('deleted').checked = false;
34 document.getElementById('both').checked = false;
37 document.getElementById('non-deleted').checked = false;
38 document.getElementById('deleted').checked = false;
43 var defaults = new Array('SAVED', 'DELETED', 'ADDED', 'PAYMENT POSTED', 'POSTED', 'POSTED AS NEW', 'SAVED FOR DUNNING', 'DUNNING STARTED', 'PRINTED');
44 var translated = new Object();
45 translated['SAVED'] = '[% 'SAVED' | $T8 %]';
46 translated['DELETED'] = '[% 'DELETED' | $T8 %]';
47 translated['ADDED'] = '[% 'ADDED' | $T8 %]';
48 translated['PAYMENT POSTED'] = '[% 'PAYMENT POSTED' | $T8 %]';
49 translated['POSTED'] = '[% 'POSTED' | $T8 %]';
50 translated['POSTED AS NEW'] = '[% 'POSTED AS NEW' | $T8 %]'
51 translated['SAVED FOR DUNNING'] = '[% 'SAVED FOR DUNNING' | $T8 %]';
52 translated['DUNNING STARTED'] = '[% 'DUNNING STARTED' | $T8 %]';
53 translated['PRINTED'] = '[% 'PRINTED' | $T8 %]';
55 var jscalender = "<table valign=\"top\">"
56 + "<tr><td colspan=\"2\"><b>[% 'Period' | $T8 %]: </b></td></tr>"
57 + "<tr><td>[% 'from (time)' | $T8 %]: "
58 + "<input name=\"fromdate\" id=\"fromdate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(fromdate) %]\">"
59 + "<input type=\"button\" name=\"fromdate\" id=\"trigger1\" value=\"?\">"
60 + " </td><td>[% 'to (time)' | $T8 %]: "
61 + "<input name=\"todate\" id=\"todate\" size=\"11\" title=\"[% HTML.escape(myconfig_dateformat) %]\" value=\"[% HTML.escape(todate) %]\">"
62 + "<input type=\"button\" name=\"todate\" id=\"trigger2\" value=\"?\"></td></tr></table>";
63 var mitarbeiter = "<table valign=\"top\">"
64 + "<tr><td><b>Mitarbeiter:</b> </td>"
65 + "<td><input type='text' name='mitarbeiter' id='mitarbeiter'></td>"
69 function addForm(last, remove) {
71 tempString = "<select id='selectForm'><option></option>";
72 for(i=0;i<defaults.length;i++) {
73 tempString += "\<option value\=\'" + defaults[i] + "\'\ onClick=\"javascript:addForm(\'" + defaults[i] + "\', " + i + ");\">" + translated[defaults[i]] + "\<\/option\>" + "\n";
75 tempString += "</select>";
76 document.getElementById('selectEmployee').innerHTML = mitarbeiter;
77 document.getElementById('selectDate').innerHTML = jscalender;
78 document.getElementById('selectTable').innerHTML = tempString;
82 inputField : "fromdate",
90 inputField : "todate",
97 defaults.splice(remove,1);
98 document.getElementById('inputText').innerHTML += ((document.getElementById('inputText').innerHTML == "") ? ("<b>[%- 'You\'ve already chosen the following limitations:' | $T8 %]</b><br>") : ("<br>")) + translated[last];
99 if(defaults.length > 0) {
100 document.getElementById('einschraenkungen').value += ((document.getElementById('einschraenkungen').value == "") ? ("") : (",")) + last;
101 tempString = "<select id='selectForm'><option></option>";
102 for(i=0;i<defaults.length;i++) {
103 tempString += "\<option value\=\'" + defaults[i] + "\'\ onClick=\"javascript:addForm(\'" + defaults[i] + "\', " + i + ");\">" + translated[defaults[i]] + "\<\/option\>" + "\n";
105 tempString += "</select>";
106 document.getElementById('selectTable').innerHTML = tempString;
109 document.getElementById('selectTable').innerHTML = "";
114 function resetAll() {
115 document.getElementById('selectTable').innerHTML = "<a href=\"javascript:addForm('INIT')\">[% 'Yes' | $T8 %]";
116 document.getElementById('inputText').innerHTML = "";
123 [% '<b>What</b> do you want to look for?' | $T8 %]:
126 <select name="what2search" id="what2search">
127 <option name="Artikelnummer" value="Artikelnummer" id="Artikelnummer">[% 'Part Number' | $T8 %]</option>
128 <option name="Kundennummer" value="Kundennummer" id="Kundennummer">[% 'Customer Number' | $T8 %]</option>
129 <option name="Lieferantennummer" value="Lieferantennummer" id="Lieferantennummer">[% 'Vendor Number' | $T8 %]</option>
130 <option name="Projektnummer" value="Projektnummer" id="Projektnummer">[% 'Project Number' | $T8 %]</option>
131 <option name="Buchungsnummer" value="Buchungsnummer" id="Buchungsnummer">[% 'ID' | $T8 %]</option>
132 <option name="Eingangsrechnungnummer" value="Eingangsrechnungnummer" id="Eingangsrechnungnummer">[% 'Incoming invoice number' | $T8 %]</option>
133 <option name="Ausgangsrechnungnummer" value="Ausgangsrechnungnummer" id="Ausgangsrechnungnummer">[% 'Sales invoice number' | $T8 %]</option>
134 <option name="Mahnungsnummer" value="Mahnungsnummer" id="Mahnungsnummer">[% 'Dunning number' | $T8 %]</option>
140 [% 'What's the <b>term</b> you're looking for?' | $T8 %]
143 <input type="text" name="searchid" id="searchid" value="[% HTML.escape(searchid) %]">
148 [% 'Do you want to <b>limit</b> your search?' | $T8 %]
151 <table valign="top" cellpadding="0" marginheight="0" marginwidth="0" cellspacing="0" topmargin="0" leftmargin="0">
154 <div id="selectTable"><a href="javascript:addForm('INIT')">[% 'Yes' | $T8 %]</a></div>
155 <div id="inputText"></div>
160 <div id="selectEmployee"></div>
165 <div id="selectDate"></div>
169 <input type="hidden" name="einschraenkungen" id="einschraenkungen" value="">
175 <input type="submit" class="submit" value="[% 'submit' | $T8 %]">
176 <input type="reset" class="submit" value="[% 'reset' | $T8 %]" onClick="javascript:resetAll();">