1 <style type="text/css">@import url(js/jscalendar/calendar-win2k-1.css);</style>
2 <script type="text/javascript" src="js/jscalendar/calendar.js"></script>
3 <script type="text/javascript" src="js/jscalendar/lang/calendar-de.js"></script>
4 <script type="text/javascript" src="js/jscalendar/calendar-setup.js"></script>
6 <form method="post" action="<TMPL_VAR NAME=script ESCAPE=HTML>">
8 <input type="hidden" name="path" value="<TMPL_VAR NAME=path ESCAPE=HTML>">
9 <input type="hidden" name="login" value="<TMPL_VAR NAME=login ESCAPE=HTML>">
10 <input type="hidden" name="password" value="<TMPL_VAR NAME=password ESCAPE=HTML>">
11 <input type="hidden" name="action" value="show_am_history">
15 <th class ="listtop"><translate>history search engine</translate></th>
20 <script type="text/javascript">
22 function uncheckOther(id) {
24 (document.getElementById('non-deleted').checked == false)
26 (document.getElementById('both').checked == false)
28 (document.getElementById('deleted').checked == false)
31 document.getElementById('non-deleted').checked = false;
32 document.getElementById('both').checked = false;
34 if(id == "non-deleted") {
35 document.getElementById('deleted').checked = false;
36 document.getElementById('both').checked = false;
39 document.getElementById('non-deleted').checked = false;
40 document.getElementById('deleted').checked = false;
45 var defaults = new Array('SAVED', 'DELETED', 'ADDED', 'PAYMENT POSTED', 'POSTED', 'POSTED AS NEW', 'SAVED FOR DUNNING', 'DUNNING STARTED', 'PRINTED');
46 var translated = new Object();
47 translated['SAVED'] = '<translate>SAVED</translate>';
48 translated['DELETED'] = '<translate>DELETED</translate>';
49 translated['ADDED'] = '<translate>ADDED</translate>';
50 translated['PAYMENT POSTED'] = '<translate>PAYMENT POSTED</translate>';
51 translated['POSTED'] = '<translate>POSTED</translate>';
52 translated['POSTED AS NEW'] = '<translate>POSTED AS NEW</translate>'
53 translated['SAVED FOR DUNNING'] = '<translate>SAVED FOR DUNNING</translate>';
54 translated['DUNNING STARTED'] = '<translate>DUNNING STARTED</translate>';
55 translated['PRINTED'] = '<translate>PRINTED</translate>';
57 var jscalender = "<table valign=\"top\">"
58 + "<tr><td colspan=\"2\"><b><translate>Zeitraum</translate>: </b></td></tr>"
59 + "<tr><td><translate>von</translate>: "
60 + "<input name=\"transdate\" id=\"transdate\" size=\"11\" title=\"<TMPL_VAR NAME=myconfig_dateformat ESCAPE=HTML>\" value=\"<TMPL_VAR NAME=transdate ESCAPE=HTML>\">"
61 + "<input type=\"button\" name=\"transdate\" id=\"trigger1\" value=\"?\">"
62 + " </td><td><translate>bis</translate>: "
63 + "<input name=\"reqdate\" id=\"reqdate\" size=\"11\" title=\"<TMPL_VAR NAME=myconfig_dateformat ESCAPE=HTML>\" value=\"<TMPL_VAR NAME=reqdate ESCAPE=HTML>\">"
64 + "<input type=\"button\" name=\"reqdate\" id=\"trigger2\" value=\"?\"></td></tr></table>";
65 var mitarbeiter = "<table valign=\"top\">"
66 + "<tr><td><b>Mitarbeiter:</b> </td>"
67 + "<td><input type='text' name='mitarbeiter' id='mitarbeiter'></td>"
71 function addForm(last, remove) {
73 tempString = "<select id='selectForm'>";
74 for(i=0;i<defaults.length;i++) {
75 tempString += "\<option value\=\'" + defaults[i] + "\'\ onClick=\"javascript:addForm(\'" + defaults[i] + "\', " + i + ");\">" + translated[defaults[i]] + "\<\/option\>" + "\n";
77 tempString += "</select>";
78 document.getElementById('selectEmployee').innerHTML = mitarbeiter;
79 document.getElementById('selectDate').innerHTML = jscalender;
80 document.getElementById('selectTable').innerHTML = tempString;
84 inputField : "transdate",
92 inputField : "reqdate",
99 defaults.splice(remove,1);
100 document.getElementById('inputText').innerHTML += ((document.getElementById('inputText').innerHTML == "") ? ("<b><translate>Folgende Einschränkungen haben Sie bereits vorgenommen:</translate></b><br>") : ("<br>")) + translated[last];
101 if(defaults.length > 0) {
102 document.getElementById('einschraenkungen').value += ((document.getElementById('einschraenkungen').value == "") ? ("") : (",")) + last;
103 tempString = "<select id='selectForm'>";
104 for(i=0;i<defaults.length;i++) {
105 tempString += "\<option value\=\'" + defaults[i] + "\'\ onClick=\"javascript:addForm(\'" + defaults[i] + "\', " + i + ");\">" + translated[defaults[i]] + "\<\/option\>" + "\n";
107 tempString += "</select>";
108 document.getElementById('selectTable').innerHTML = tempString;
111 document.getElementById('selectTable').innerHTML = "";
116 function resetAll() {
117 document.getElementById('selectTable').innerHTML = "<a href=\"javascript:addForm('INIT')\"><translate>Ja</translate>";
118 document.getElementById('inputText').innerHTML = "";
125 <translate><b>Wonach</b> möchten Sie suchen?</translate>:
128 <select name="what2search" id="what2search">
129 <option name="Artikelnummer" value="Artikelnummer" id="Artikelnummer"><translate>Artikelnummer</translate></option>
130 <option name="Kundennummer" value="Kundennummer" id="Kundennummer"><translate>Kundennummer</translate></option>
131 <option name="Lieferantennummer" value="Lieferantennummer" id="Lieferantennummer"><translate>Lieferantennummer</translate></option>
132 <option name="Projektnummer" value="Projektnummer" id="Projektnummer"><translate>Projektnummer</translate></option>
133 <option name="Buchungsnummer" value="Buchungsnummer" id="Buchungsnummer"><translate>Buchungsnummer</translate></option>
134 <option name="Eingangsrechnungnummer" value="Eingangsrechnungnummer" id="Eingangsrechnungnummer"><translate>Eingangsrechnungnummer</translate></option>
135 <option name="Ausgangsrechnungnummer" value="Ausgangsrechnungnummer" id="Ausgangsrechnungnummer"><translate>Ausgangsrechnungnummer</translate></option>
141 <translate>Wie lautet der <b>Suchbegriff</b> nach dem Sie suchen?:</translate>
144 <input type="text" name="searchid" id="searchid" value="<TMPL_VAR NAME=searchid ESCAPE=HTML>">
149 <translate>Möchten Sie Ihre Suche <b>spezialisieren</b>?</translate>
152 <table valign=\"top\" cellpadding=\"0\" marginheight=\"0\" marginwidth=\"0\" cellspacing=\"0\" topmargin=\"0\" leftmargin=\"0\">
155 <div id="selectTable"><a href="javascript:addForm('INIT')"><translate>Ja</translate></div>
156 <div id="inputText"></div>
161 <div id="selectEmployee"></div>
166 <div id="selectDate"></div>
170 <input type="hidden" name="einschraenkungen" id="einschraenkungen" value="">
176 <input type="submit" value="<translate>abschicken</translate>">
177 <input type="reset" value="<translate>reset</translate>" onClick="javascript:resetAll();">