[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha acqui/newbasket2.pl koha-tmpl/intranet-tmp... [rel_2_2]
From: |
Antoine Farnault |
Subject: |
[Koha-cvs] koha acqui/newbasket2.pl koha-tmpl/intranet-tmp... [rel_2_2] |
Date: |
Wed, 11 Oct 2006 14:43:54 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Antoine Farnault <toins> 06/10/11 14:43:54
Modified files:
acqui : newbasket2.pl
koha-tmpl/intranet-tmpl/default/en/acqui: newbasket2.tmpl
Log message:
Add "previous" when browsing the results.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/acqui/newbasket2.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.15.2.2&r2=1.15.2.3
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.14&r2=1.14.2.1
Patches:
Index: acqui/newbasket2.pl
===================================================================
RCS file: /sources/koha/koha/acqui/Attic/newbasket2.pl,v
retrieving revision 1.15.2.2
retrieving revision 1.15.2.3
diff -u -b -r1.15.2.2 -r1.15.2.3
--- acqui/newbasket2.pl 20 Jun 2006 16:21:42 -0000 1.15.2.2
+++ acqui/newbasket2.pl 11 Oct 2006 14:43:54 -0000 1.15.2.3
@@ -231,6 +231,8 @@
$i++;
}
+my $previous = $offset-$dispnum if($dispnum>1); #for multipage gestion
+
$offset=$num+$offset;
$template->param( bookselname => $booksellers[0]->{'name'},
booksellerid =>
$booksellerid,
@@ -241,6 +243,7 @@
dispnum =>
$dispnum,
offsetover =>
($offset < $count ),
num => $num,
+ previous =>
$previous,
offset =>
$offset,
type => $type,
title => $title,
Index: koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl
===================================================================
RCS file:
/sources/koha/koha/koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl,v
retrieving revision 1.14
retrieving revision 1.14.2.1
diff -u -b -r1.14 -r1.14.2.1
--- koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl 13 Sep 2004
15:28:58 -0000 1.14
+++ koha-tmpl/intranet-tmpl/default/en/acqui/newbasket2.tmpl 11 Oct 2006
14:43:54 -0000 1.14.2.1
@@ -83,9 +83,14 @@
</tr>
</table>
+ <!-- TMPL_IF name="previous" -->
+ <a href="/cgi-bin/koha/acqui/newbasket2.pl?num=<!-- TMPL_VAR NAME="num"
-->&offset=<!-- TMPL_VAR NAME="previous" -->&type=<!-- TMPL_VAR
NAME="type" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid"
-->&basketno=<!-- TMPL_VAR NAME="basketno" -->&search=<!-- TMPL_VAR
NAME="title" -->&author=<!-- TMPL_VAR NAME="author" -->">
+ < Previous
+ </a>
+ <!-- /TMPL_IF -->
<!-- TMPL_IF name="offsetover" -->
<a href="/cgi-bin/koha/acqui/newbasket2.pl?num=<!-- TMPL_VAR NAME="num"
-->&offset=<!-- TMPL_VAR NAME="offset" -->&type=<!-- TMPL_VAR
NAME="type" -->&booksellerid=<!-- TMPL_VAR NAME="booksellerid"
-->&basketno=<!-- TMPL_VAR NAME="basketno" -->&search=<!-- TMPL_VAR
NAME="title" -->&author=<!-- TMPL_VAR NAME="author" -->">
- Next
+ Next >
</a>
<!-- /TMPL_IF -->
</div>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha acqui/newbasket2.pl koha-tmpl/intranet-tmp... [rel_2_2],
Antoine Farnault <=