[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/members moremember.pl,1.7,1.8
From: |
Owen Leonard |
Subject: |
[Koha-cvs] CVS: koha/members moremember.pl,1.7,1.8 |
Date: |
Thu, 10 Feb 2005 11:35:01 -0800 |
Update of /cvsroot/koha/koha/members
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11415/members
Modified Files:
moremember.pl
Log Message:
Adding option to switch templates based in URL parameter.
- print=page uses members/moremember-print.tmpl
- print=slip uses members/moremember-receipt.tmpl
- no print parameter uses default members/moremember.tmpl
Index: moremember.pl
===================================================================
RCS file: /cvsroot/koha/koha/members/moremember.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** moremember.pl 9 Feb 2005 22:18:01 -0000 1.7
--- moremember.pl 10 Feb 2005 19:34:59 -0000 1.8
***************
*** 49,55 ****
my $input = new CGI;
my ($template, $loggedinuser, $cookie)
! = get_template_and_user({template_name => "members/moremember.tmpl",
query => $input,
type => "intranet",
--- 49,65 ----
my $input = new CGI;
+ my $print = $input->param('print');
+ my $template_name;
+
+ if($print eq "page"){
+ $template_name = "members/moremember-print.tmpl";
+ } elsif($print eq "slip"){
+ $template_name = "members/moremember-receipt.tmpl";
+ } else {
+ $template_name = "members/moremember.tmpl";
+ }
my ($template, $loggedinuser, $cookie)
! = get_template_and_user({template_name => $template_name,
query => $input,
type => "intranet",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/members moremember.pl,1.7,1.8,
Owen Leonard <=
- Prev by Date:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/members moremember-print.tmpl,1.1,1.2 moremember-receipt.tmpl,1.1,1.2 moremember.tmpl,1.6,1.7
- Next by Date:
[Koha-cvs] CVS: koha/members moremember.pl,1.5.2.2,1.5.2.3
- Previous by thread:
[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/members moremember-print.tmpl,1.1,1.2 moremember-receipt.tmpl,1.1,1.2 moremember.tmpl,1.6,1.7
- Next by thread:
[Koha-cvs] CVS: koha/members moremember.pl,1.5.2.2,1.5.2.3
- Index(es):