onload in dn.pl und common.pl
[kivitendo-erp.git] / templates / webpages / dunning / search.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE L %]
4 <body onLoad="[% onload %]">
5
6  <script type="text/javascript" src="js/common.js"></script>
7
8  <form method="post" name="search" action="dn.pl">
9
10   <div class="listtop">[% title %]</div>
11
12   <table width="100%">
13    <tr height="5"></tr>
14    <tr>
15     <td>
16      <table>
17       <tr>
18        <th align="right">[% 'Customer' | $T8 %]</th>
19        <td colspan="3">
20         [% IF SHOW_CUSTOMER_DDBOX %]
21          <select id='customer' name="customer_id">
22           <option value=""></option>
23           [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
24           [% END %]
25          </select>
26          [% ELSE %]
27          <input id='customer' name="customer" size="35">
28         [% END %]
29        </td>
30       </tr>
31
32       [% IF SHOW_DUNNING_LEVELS %]
33        <tr>
34         <th align="right" nowrap>[% 'Dunning Level' | $T8 %]</th>
35         <td colspan="3">
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>
39           [% END %]
40          </select>
41         </td>
42        </tr>
43       [% END %]
44
45       [% IF SHOW_DEPARTMENT_DDBOX %]
46        <tr>
47         <th align="right" nowrap>[% 'Department' | $T8 %]</th>
48         <td colspan="3">
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>
52           [% END %]
53          </select>
54         </td>
55        </tr>
56       [% END %]
57
58       <tr>
59        <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
60        <td colspan="3"><input name="invnumber" size="20"></td>
61       </tr>
62
63       <tr>
64        <th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
65        <td colspan="3"><input name="ordnumber" size="20"></td>
66       </tr>
67
68       <tr>
69        <th align="right" nowrap>[% 'Notes' | $T8 %]</th>
70        <td colspan="3"><input name="notes" size="40"></td>
71       </tr>
72
73       <tr>
74        <th align="right" nowrap>[% 'Invdate from' | $T8 %]</th>
75        <td>
76          [% L.date_tag('transdatefrom') %]
77        </td>
78        <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
79        <td>
80          [% L.date_tag('transdateto') %]
81        </td>
82       </tr>
83
84       <tr>
85        <th align="right" nowrap>[% 'Dunning Date from' | $T8 %]</th>
86        <td>
87         [% L.date_tag('dunningfrom') %]
88        </td>
89        <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
90        <td>
91         [% L.date_tag('dunningto') %]
92        </td>
93       </tr>
94       <tr>
95        <th align="right">[% 'Salesman' | $T8 %]</th>
96        <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style = 'width:250px') %]</td>
97       </tr>
98      </table>
99     </td>
100    </tr>
101
102    <tr><td><hr size="3" noshade></td></tr>
103
104    <tr>
105     <td>
106      <table>
107       <tr>
108        <th align="right" nowrap>[% 'Show old dunnings' | $T8 %]</th>
109        <td><input type="checkbox" value="1" name="showold"></td>
110        <th align="right" nowrap>[% 'Show Salesman' | $T8 %]</th>
111        <td><input type="checkbox" value="1" name="l_salesman"></td>
112       </tr>
113      </table>
114     </td>
115    </tr>
116   </table>
117
118   <input type="hidden" name="nextsub" value="show_dunning">
119
120   <br>
121
122   <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
123
124  </form>
125