[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/suggestion acceptorreject.pl
From: |
Antoine Farnault |
Subject: |
[Koha-cvs] koha/suggestion acceptorreject.pl |
Date: |
Fri, 07 Jul 2006 09:05:54 +0000 |
CVSROOT: /sources/koha
Module name: koha
Changes by: Antoine Farnault <toins> 06/07/07 09:05:54
Modified files:
suggestion : acceptorreject.pl
Log message:
Sub renamed & GPL Licence added.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/suggestion/acceptorreject.pl?cvsroot=koha&r1=1.2&r2=1.3
Patches:
Index: acceptorreject.pl
===================================================================
RCS file: /sources/koha/koha/suggestion/acceptorreject.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- acceptorreject.pl 4 Jul 2006 14:36:52 -0000 1.2
+++ acceptorreject.pl 7 Jul 2006 09:05:54 -0000 1.3
@@ -1,9 +1,28 @@
#!/usr/bin/perl
+
+# Copyright 2000-2002 Katipo Communications
+#
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA 02111-1307 USA
+
+# $Id: acceptorreject.pl,v 1.3 2006/07/07 09:05:54 toins Exp $
+
use strict;
require Exporter;
use CGI;
use HTML::Template;
-
use C4::Auth; # get_template_and_user
use C4::Interface::CGI::Output;
use C4::Suggestions;
@@ -38,7 +57,7 @@
my ($newstatus,$suggestionid) = ($1,$2);
$newstatus="REJECTED" if $newstatus eq "R";
$newstatus="ACCEPTED" if $newstatus eq "A";
- changestatus($suggestionid,$newstatus,$loggedinuser);
+ ModStatus($suggestionid,$newstatus,$loggedinuser);
}
}
$op="else";
@@ -47,12 +66,12 @@
if ($op eq "delete_confirm") {
my @delete_field = $input->param("delete_field");
foreach my $delete_field (@delete_field) {
- &delsuggestion($loggedinuser,$delete_field);
+ &DelSuggestion($loggedinuser,$delete_field);
}
$op='else';
}
-my $suggestions_loop= &searchsuggestion("","","","",'ASKED',"");
+my $suggestions_loop= &SearchSuggestion("","","","",'ASKED',"");
$template->param(suggestions_loop => $suggestions_loop,
"op_$op" => 1,
intranetcolorstylesheet =>
C4::Context->preference("intranetcolorstylesheet"),
- [Koha-cvs] koha/suggestion acceptorreject.pl,
Antoine Farnault <=