3 # Copyright 2000-2002 Katipo Communications
5 # This file is part of Koha.
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 2 of the License, or (at your option) any later
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along with
17 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
18 # Suite 330, Boston, MA 02111-1307 USA
24 script to set or lift debarred status
26 by oleonard@athenscounty.lib.oh.us
39 $flagsrequired->{borrowers} = 1;
40 my ( $loggedinuser, $cookie, $sessionID ) =
41 checkauth( $input, 0, $flagsrequired );
43 my $destination = $input->param("destination");
44 my $cardnumber = $input->param("cardnumber");
45 my $borrowernumber = $input->param('borrowernumber');
46 my $status = $input->param('status');
48 my $dbh = C4::Context->dbh;
50 $dbh->prepare("Update borrowers set debarred = ? where borrowernumber = ?");
51 $sth->execute( $status, $borrowernumber );
54 if ( $destination eq "circ" ) {
55 print $input->redirect(
56 "/cgi-bin/koha/circ/circulation.pl?findborrower=".$cardnumber);
59 print $input->redirect(
60 "/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");