adding calendar popup to inventory/stocktaking
authorkados <kados>
Sat, 10 Mar 2007 07:12:14 +0000 (07:12 +0000)
committerkados <kados>
Sat, 10 Mar 2007 07:12:14 +0000 (07:12 +0000)
improvements to english

koha-tmpl/intranet-tmpl/prog/en/tools/inventory.tmpl
tools/inventory.pl

index 7056b0f..d89d715 100644 (file)
                 <input type="text" name="maxlocation" value="<!-- TMPL_VAR NAME="maxlocation" -->" />
         </p>
         <p><label>Not seen since:</label>
-            <input type="text" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
+            <input type="text" id="datelastseen" name="datelastseen" value="<!-- TMPL_VAR NAME="datelastseen" -->" />
+            <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="datelastseen_button" />
+            <script language="JavaScript" type="text/javascript">
+            Calendar.setup(
+            {
+            inputField : "datelastseen",
+            ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
+            button : "datelastseen_button"
+            }
+            );
+            </script>
         </p>
         <p><label>Show:</label>
             <input type="text" name="pagesize" value="<!-- TMPL_VAR NAME="pagesize" -->" maxlength="5" size="5" />
         <fieldset>
             <legend>Use a barcode file</legend>
             <p>barcode filename : <input type="file" name="uploadbarcodes" /></p>
-            <p>Set datelastseen to : <input type="text" name="setdate" /></p>
+            <p>Set datelastseen to : <input type="text" id="setdate" name="setdate" />
+             <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="setdate_button" />
+            <script language="JavaScript" type="text/javascript">
+            Calendar.setup(
+            {
+            inputField : "setdate",
+            ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
+            button : "setdate_button"
+            }
+            );
+            </script>
+</p>
             <p><input type="submit" value="OK" class="button reports"></p>
         </fieldset>
     </form>
index 94983f6..97aa646 100755 (executable)
@@ -61,9 +61,9 @@ for my $branch_hash (keys %$branches) {
                           branchname => $branches->{$branch_hash}->{'branchname'}, 
                           selected => ($branch_hash eq $branchcode?1:0)};      
 }
-$template->param(branchloop => \@branch_loop,);
-
-$template->param(minlocation => $minlocation,
+$template->param(branchloop => \@branch_loop,
+                DHTMLcalendar_dateformat => get_date_format_string_for_DHTMLcalendar(),
+                minlocation => $minlocation,
                 maxlocation => $maxlocation,
                 offset => $offset,
                 pagesize => $pagesize,