4 <body onLoad="[% onload %]">
6 <script type="text/javascript" src="js/common.js"></script>
8 <form method="post" name="search" action="dn.pl">
10 <div class="listtop">[% title %]</div>
18 <th align="right">[% 'Customer' | $T8 %]</th>
20 [% IF SHOW_CUSTOMER_DDBOX %]
21 <select name="customer_id">
22 <option value=""></option>
23 [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
27 <input name="customer" size="35">
32 [% IF SHOW_DUNNING_LEVELS %]
34 <th align="right" nowrap>[% 'Dunning Level' | $T8 %]</th>
36 <select name="dunning_level">
37 <option value=""></option>
38 [% FOREACH row = DUNNING %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.dunning_description) %]</option>
45 [% IF SHOW_DEPARTMENT_DDBOX %]
47 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
49 <select name="department_id">
50 <option value=""></option>
51 [% FOREACH row = ALL_DEPARTMENTS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</option>
59 <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
60 <td colspan="3"><input name="invnumber" size="20"></td>
64 <th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
65 <td colspan="3"><input name="ordnumber" size="20"></td>
69 <th align="right" nowrap>[% 'Notes' | $T8 %]</th>
70 <td colspan="3"><input name="notes" size="40"></td>
74 <th align="right" nowrap>[% 'Invdate from' | $T8 %]</th>
76 <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
77 <input type="button" name="transdatefrom" id="trigger1" value="?">
79 <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
81 <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
82 <input type="button" name="transdateto" id="trigger2" value="?">
87 <th align="right" nowrap>[% 'Dunning Date from' | $T8 %]</th>
89 <input name="dunningfrom" id="dunningfrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
90 <input type="button" name="dunningfrom" id="trigger3" value="?">
92 <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
94 <input name="dunningto" id="dunningto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
95 <input type="button" name="dunningto" id="trigger4" value="?">
99 <th align="right">[% 'Salesman' | $T8 %]</th>
100 <td>[% L.select_tag('salesman_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %]</td>
106 <tr><td><hr size="3" noshade></td></tr>
112 <th align="right" nowrap>[% 'Show old dunnings' | $T8 %]</th>
113 <td><input type="checkbox" value="1" name="showold"></td>
114 <th align="right" nowrap>[% 'Show Salesman' | $T8 %]</th>
115 <td><input type="checkbox" value="1" name="l_salesman"></td>
122 <input type="hidden" name="nextsub" value="show_dunning">
126 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
130 <script type="text/javascript">
132 Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
133 Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger2" });
134 Calendar.setup({ inputField : "dunningfrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger3" });
135 Calendar.setup({ inputField : "dunningto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger4" });