1 [% USE HTML %]<body onLoad="[% onload %]">
3 <script type="text/javascript" src="js/common.js"></script>
5 <form method="post" name="search" action="dn.pl">
7 <div class="listtop">[% title %]</div>
15 <th align="right">Customer</th>
17 [% IF SHOW_CUSTOMER_DDBOX %]
18 <select name="customer_id">
19 <option value=""></option>
20 [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
24 <input name="customer" size="35">
29 [% IF SHOW_DUNNING_LEVELS %]
31 <th align="right" nowrap>Next Dunning Level</th>
33 <select name="dunning_level">
34 <option value=""></option>
35 [% FOREACH row = DUNNING %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.dunning_description) %]</option>
42 [% IF SHOW_DEPARTMENT_DDBOX %]
44 <th align="right" nowrap>Department</th>
46 <select name="department_id">
47 <option value=""></option>
48 [% FOREACH row = ALL_DEPARTMENTS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</option>
56 <th align="right" nowrap>Invoice Number</th>
57 <td colspan="3"><input name="invnumber" size="20"></td>
61 <th align="right" nowrap>Order Number</th>
62 <td colspan="3"><input name="ordnumber" size="20"></td>
66 <th align="right" nowrap>Notes</th>
67 <td colspan="3"><input name="notes" size="40"></td>
71 <th align="right" nowrap>Invdate from</th>
73 <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
74 <input type="button" name="transdatefrom" id="trigger1" value="?">
76 <th align="right" nowrap>To (time)</th>
78 <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
79 <input type="button" name="transdateto" id="trigger2" value="?">
84 <th align="right" nowrap>Dunning Date from</th>
86 <input name="dunningfrom" id="dunningfrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
87 <input type="button" name="dunningfrom" id="trigger3" value="?">
89 <th align="right" nowrap>To (time)</th>
91 <input name="dunningto" id="dunningto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
92 <input type="button" name="dunningto" id="trigger4" value="?">
96 <th align="right">Salesman</th>
98 [%- INCLUDE 'generic/multibox.html'
100 style = 'width: 250px',
103 label_sub = 'salesman_labels',
114 <tr><td><hr size="3" noshade></td></tr>
120 <th align="right" nowrap>Show old dunnings</th>
121 <td><input type="checkbox" value="1" name="showold"></td>
122 <th align="right" nowrap>Show Salesman</th>
123 <td><input type="checkbox" value="1" name="l_salesman"></td>
130 <input type="hidden" name="nextsub" value="show_dunning">
134 <input class="submit" type="submit" name="action" value="Continue">
138 <script type="text/javascript">
140 Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
141 Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger2" });
142 Calendar.setup({ inputField : "dunningfrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger3" });
143 Calendar.setup({ inputField : "dunningto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger4" });