2 [% USE HTML %]<body onLoad="[% onload %]">
4 <script type="text/javascript" src="js/common.js"></script>
6 <form method="post" name="search" action="dn.pl">
8 <div class="listtop">[% title %]</div>
16 <th align="right">[% 'Customer' | $T8 %]</th>
18 [% IF SHOW_CUSTOMER_DDBOX %]
19 <select name="customer_id">
20 <option value=""></option>
21 [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
25 <input name="customer" size="35">
30 [% IF SHOW_DUNNING_LEVELS %]
32 <th align="right" nowrap>[% 'Dunning Level' | $T8 %]</th>
34 <select name="dunning_level">
35 <option value=""></option>
36 [% FOREACH row = DUNNING %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.dunning_description) %]</option>
43 [% IF SHOW_DEPARTMENT_DDBOX %]
45 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
47 <select name="department_id">
48 <option value=""></option>
49 [% FOREACH row = ALL_DEPARTMENTS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</option>
57 <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
58 <td colspan="3"><input name="invnumber" size="20"></td>
62 <th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
63 <td colspan="3"><input name="ordnumber" size="20"></td>
67 <th align="right" nowrap>[% 'Notes' | $T8 %]</th>
68 <td colspan="3"><input name="notes" size="40"></td>
72 <th align="right" nowrap>[% 'Invdate from' | $T8 %]</th>
74 <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
75 <input type="button" name="transdatefrom" id="trigger1" value="?">
77 <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
79 <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
80 <input type="button" name="transdateto" id="trigger2" value="?">
85 <th align="right" nowrap>[% 'Dunning Date from' | $T8 %]</th>
87 <input name="dunningfrom" id="dunningfrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
88 <input type="button" name="dunningfrom" id="trigger3" value="?">
90 <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
92 <input name="dunningto" id="dunningto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
93 <input type="button" name="dunningto" id="trigger4" value="?">
97 <th align="right">[% 'Salesman' | $T8 %]</th>
99 [%- INCLUDE 'generic/multibox.html'
100 name = 'salesman_id',
101 style = 'width: 250px',
104 label_sub = 'salesman_labels',
115 <tr><td><hr size="3" noshade></td></tr>
121 <th align="right" nowrap>[% 'Show old dunnings' | $T8 %]</th>
122 <td><input type="checkbox" value="1" name="showold"></td>
123 <th align="right" nowrap>[% 'Show Salesman' | $T8 %]</th>
124 <td><input type="checkbox" value="1" name="l_salesman"></td>
131 <input type="hidden" name="nextsub" value="show_dunning">
135 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
139 <script type="text/javascript">
141 Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
142 Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger2" });
143 Calendar.setup({ inputField : "dunningfrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger3" });
144 Calendar.setup({ inputField : "dunningto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger4" });