[%- USE T8 %]
[%- USE HTML %]
-[%- USE L %]
-<body onLoad="[% onload %]">
+[%- USE L %][%- USE P -%]
+<h1>[% title %]</h1>
- <script type="text/javascript" src="js/common.js"></script>
+[% INCLUDE 'common/flash.html' %]
- <form method="post" name="search" action="dn.pl">
-
- <div class="listtop">[% title %]</div>
+ <form method="post" name="search" action="dn.pl" id="form">
<table width="100%">
- <tr height="5"></tr>
<tr>
<td>
<table>
<tr>
<th align="right">[% 'Customer' | $T8 %]</th>
- <td colspan="3">
- [% IF SHOW_CUSTOMER_DDBOX %]
- <select name="customer_id">
- <option value=""></option>
- [% FOREACH row = ALL_CUSTOMERS %]<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.name) %]</option>
- [% END %]
- </select>
- [% ELSE %]
- <input name="customer" size="35">
- [% END %]
- </td>
+ <td colspan="3">[% P.input_tag("customer", "", size="35", class="initial_focus") %]</td>
</tr>
[% IF SHOW_DUNNING_LEVELS %]
</tr>
[% END %]
- [% IF SHOW_DEPARTMENT_DDBOX %]
+ [% IF ALL_DEPARTMENTS.as_list.size %]
<tr>
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
<td colspan="3">
<tr>
<th align="right" nowrap>[% 'Invdate from' | $T8 %]</th>
<td>
- <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
- <input type="button" name="transdatefrom" id="trigger1" value="?">
+ [% L.date_tag('transdatefrom') %]
</td>
<th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
<td>
- <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
- <input type="button" name="transdateto" id="trigger2" value="?">
+ [% L.date_tag('transdateto') %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Dunning Date from' | $T8 %]</th>
<td>
- <input name="dunningfrom" id="dunningfrom" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
- <input type="button" name="dunningfrom" id="trigger3" value="?">
+ [% L.date_tag('dunningfrom') %]
</td>
<th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
<td>
- <input name="dunningto" id="dunningto" size="11" title="[% HTML.escape(myconfig_dateformat) %]" onBlur="check_right_date_format(this)">
- <input type="button" name="dunningto" id="trigger4" value="?">
+ [% L.date_tag('dunningto') %]
</td>
</tr>
<tr>
<th align="right">[% 'Salesman' | $T8 %]</th>
- <td>[% L.select_tag('salesman_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %]</td>
+ <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style = 'width:250px') %]</td>
</tr>
</table>
</td>
</td>
</tr>
</table>
-
- <input type="hidden" name="nextsub" value="show_dunning">
-
- <br>
-
- <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
-
</form>
-
- <script type="text/javascript">
- <!--
- Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
- Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger2" });
- Calendar.setup({ inputField : "dunningfrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger3" });
- Calendar.setup({ inputField : "dunningto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger4" });
- -->
- </script>
-
-</body>
-
-</html>