Merge branch 'master', remote branch 'origin'
[kivitendo-erp.git] / templates / webpages / ap / search.html
index f9e497d..99898a6 100644 (file)
@@ -1,5 +1,5 @@
 [%- USE T8 %]
-<body>
+[%- USE L %]
 
  <form method=post name="search" action=[% script %]>
 
@@ -13,6 +13,7 @@
       <th align=right>[% 'Vendor' | $T8 %]</th>
       <td colspan=3>
             [%- INCLUDE 'generic/multibox.html'
+                 id            = 'vendor',
                  name          = 'vendor',
                  default       = oldvendor,
                  style         = 'width: 250px',
      <tr>
       <th align=right nowrap>[% 'From' | $T8 %]</th>
       <td>
-       <input name=transdatefrom id=transdatefrom size=11 title="dateformat | html %]" onBlur=\"check_right_date_format(this)\">
-       <input type=button name=transdatefrom id="trigger1" value=[% 'button' | $T8 %]>
+       [% L.date_tag('transdatefrom') %]
       </td>
      <th align=right>[% 'Bis' | $T8 %]</th>
      <td>
-      <input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur=\"check_right_date_format(this)\">
-      <input type=button name=transdateto name=transdateto id="trigger2" value=[% 'button' | $T8 %]>
+      [% L.date_tag('transdateto') %]
      </td>
     </tr>
    <input type=hidden name=sort value=transdate>
    <br>
    <input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
   </form>
- </body>
- <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 : "BL", button : "trigger2" });
-   $(document).ready(function(){
-    focus();
-    setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
-    setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
-   })
- //-->
- </script>
-</html>