</script></li>
<li>
<label for="branch">Branch: </label>
- <input type="text" name="Filter" id="branch" value="" />
- </li>
+<select name="Filter" id="branch"><option value="" > Any Branch</option>
+ <!--TMPL_LOOP Name="branchloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="branchname"--> </option>
+ <!--/TMPL_LOOP -->
+ </select> </li>
<li>
- <label for="documenttype">Document Type: </label>
- <input type="text" name="Filter" id="documenttype" value="" />
+ <label for="documenttype">Document Type: </label><select name="Filter" id="documenttype"><option value="" > Any Document type</option>
+ <!--TMPL_LOOP Name="itemtypeloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
+ <!--/TMPL_LOOP -->
+ </select>
</li>
<li>
- <label for="patroncategory">Patron Category: </label>
- <input type="text" name="Filter" id="patroncategory" value="" />
+ <label for="patroncategory">Patron Category: </label><select name="Filter" id="patroncategory"><option value="" > Any Category code</option>
+ <!--TMPL_LOOP Name="borcatloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
+ <!--/TMPL_LOOP -->
+ </select>
</li>
<li>
<label for="day">Day: </label>
<form method="post" action="/cgi-bin/koha/reports/borrowers_out.pl">
<fieldset class="rows">
<ol>
- <li><label for="patroncategory">Patron category: </label> <input type="text" name="Filter" id="patroncategory" value="" />
+ <li><label for="patroncategory">Patron category: </label> <select name="Filter" id="patroncategory"><option value="" > Any Category code</option>
+ <!--TMPL_LOOP Name="borcatloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
+ <!--/TMPL_LOOP -->
+ </select>
</li>
<li><label for="to">Without issues since: </label> <input size="10" id="to" name="Filter" value="" type="text" />
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarTo" style="cursor: pointer;" border="0" />
}
);
</script></li>
- <li><label for="branch">Branch: </label> <input type="text" name="Filter" id="branch" value="" /></li>
- <li><label for="documenttype">Document Type: </label> <input type="text" name="Filter" id="documenttype" value="" /></li>
- <li><label for="patroncategory">Patron Category: </label> <input type="text" name="Filter" id="patroncategory" value="" /></li>
+ <li><label for="branch">Branch: </label>
+<select name="Filter" id="branch"><option value="" > Any Branch</option>
+ <!--TMPL_LOOP Name="branchloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="branchname"--> </option>
+ <!--/TMPL_LOOP -->
+ </select> </li>
+ <li>
+ <label for="documenttype">Document Type: </label><select name="Filter" id="documenttype"><option value="" > Any Document type</option>
+ <!--TMPL_LOOP Name="itemtypeloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
+ <!--/TMPL_LOOP -->
+ </select>
+ </li>
+ <li>
+ <label for="patroncategory">Patron Category: </label><select name="Filter" id="patroncategory"><option value="" > Any Category code</option>
+ <!--TMPL_LOOP Name="borcatloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
+ <!--/TMPL_LOOP -->
+ </select>
+ </li>
<li><label for="day">Day: </label> <input type="text" name="Filter" id="day" value="" /></li>
<li><label for="month">Month: </label> <input type="text" name="Filter" id="month" value="" /></li>
<li><label for="year">Year: </label> <input type="text" name="Filter" id="year" value="" /></li>
<fieldset class="rows">
<ol>
- <li><label for="branchFilter">Branch: </label> <input type="text" id="branchFilter" name="Filter" value="" /></li>
- <li><label for="docFilter">Document type: </label> <input type="text" id="docFilter" name="Filter" value="" /></li>
+ <li> <label for="branch">Branch: </label>
+<select name="Filter" id="branch"><option value="" > Any Branch</option>
+ <!--TMPL_LOOP Name="branchloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="branchname"--> </option>
+ <!--/TMPL_LOOP -->
+ </select> </li>
+ <li>
+ <label for="documenttype">Document Type: </label><select name="Filter" id="documenttype"><option value="" > Any Document type</option>
+ <!--TMPL_LOOP Name="itemtypeloop"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
+ <!--/TMPL_LOOP -->
+ </select>
+ </li>
</ol>
</fieldset>
<form method="post" action="/cgi-bin/koha/reports/manager.pl">
<fieldset class="rows">
<legend>Checkouts by patron category</legend>
- <ol><li><label for="borrowercategory">Select a borrower category</label> <input type="text" name="value" id="borrowercategory" /> <span class="tip">Leave empty for all categories</span></li>
+ <ol><li><label for="borrowercategory">Select a borrower category</label><select name="value" id="borrowercategory"><option value="" > Any Category code</option>
+ <!--TMPL_LOOP Name="loopcategories"-->
+ <option value="<!--TMPL_VAR Name="value"-->" ><!--TMPL_VAR Name="description"--> </option>
+ <!--/TMPL_LOOP -->
+ </select></li>
<li><label for="branch">Select a branch:</label> <!-- TMPL_VAR NAME="CGIbranch" --></li></ol></fieldset>
<fieldset class="action"><input type="submit" value="Submit" />
<input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
my ($codes,$labels) = GetborCatFromCatType(undef,undef);
my @borcatloop;
foreach my $thisborcat (sort keys %$labels) {
-# my $selected = 1 if $thisbranch eq $branch;
my %row =(value => $thisborcat,
-# selected => $selected,
description => $labels->{$thisborcat},
);
push @borcatloop, \%row;
my ($codes,$labels) = GetborCatFromCatType(undef,undef);
my @borcatloop;
foreach my $thisborcat (sort keys %$labels) {
-# my $selected = 1 if $thisbranch eq $branch;
my %row =(value => $thisborcat,
-# selected => $selected,
description => $labels->{$thisborcat},
);
push @borcatloop, \%row;
use C4::Search;
use C4::Output;
use C4::Koha;
+use C4::Members;
+
use C4::Branch; # GetBranches
=head1 NAME
-size => 1,
-multiple => 0 );
$template->param(CGIbranch => $CGIbranch);
+
+ my ($codes,$labels)=GetborCatFromCatType(undef,undef);
+ my @borcatloop;
+ foreach my $thisborcat (sort keys %$labels) {
+ push @borcatloop, {value => $thisborcat,
+ description => $labels->{$thisborcat},
+ };
+ }
+ $template->param(loopcategories => \@borcatloop);
return $template;
}
sub calculate {