Browse Source

adding calendar popup to inventory/stocktaking

improvements to english
3.0.x
kados 17 years ago
parent
commit
320e72608b
  1. 25
      koha-tmpl/intranet-tmpl/prog/en/tools/inventory.tmpl
  2. 6
      tools/inventory.pl

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

@ -28,7 +28,17 @@
<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" />
@ -45,7 +55,18 @@
<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>

6
tools/inventory.pl

@ -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,

Loading…
Cancel
Save