Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.066.220 Times

Data::SpreadPagination 0.1.2

  Date Added: May 16, 2010  |  Visits: 816

Data::SpreadPagination

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 downloads)

Data::SpreadPagination is a Perl module for page numbering and spread pagination. SYNOPSIS use Data::SpreadPagination; my $pageInfo = Data::SpreadPagination->new({ totalEntries => $totalEntries, entriesPerPage => $entriesPerPage, # Optional, will use defaults otherwise. # only 1 of currentPage / startEntry can be provided. currentPage => $currentPage, startEntry => $startEntry, maxPages => $maxPages, }); # General page information print " First page: ", $pageInfo->first_page, "n"; print " Last page: ", $pageInfo->last_page, "n"; print " Next page: ", $pageInfo->next_page, "n"; print " Previous page: ", $pageInfo->previous_page, "n"; # Results on current page print "First entry on page: ", $pageInfo->first, "n"; print " Last entry on page: ", $pageInfo->last, "n"; # Page range information my $pageRanges = $pageInfo->page_ranges; # Print out the page spread foreach my $page ($pageInfo->pages_in_spread()) { if (!defined $page) { print "... "; } elsif ($page == $pageInfo->current_page) { print "$page "; } else { print "$page "; } } The object produced by Data::SpreadPagination can be used to create a spread pagination navigator. It inherits from Data::Page, and has access to all of the methods from this object. In addition, it also provides methods for creating a pagination spread, to allow for keeping the number of pagenumbers displayed within a sensible limit, but at the same time allowing easy navigation. The object can easily be passed to a templating system such as Template Toolkit or be used within a script..

Requirements: No special requirements
Platforms: Linux
Keyword: Dataspreadpagination First Last Libraries Page Page Numbering Perl Module Print Programming Spread Spreadpagination
Users rating: 0/10

License: Freeware Size: 7.17 KB
DATA::SPREADPAGINATION RELATED
Libraries  -  Data::Page 2.00
Data::Page is a Perl module that helps when paging through sets of results. SYNOPSIS use Data::Page; my $page = Data::Page->new(); $page->total_entries($total_entries); $page->entries_per_page($entries_per_page);...
6.14 KB  
Libraries  -  Catalyst::Plugin::Email::Page 0.26
Catalyst::Plugin::Email::Page is a Perl module to email your Catalyst page. SYNOPSIS use Catalyst::Plugin::Email::Page; __PACKAGE__->config->{email_page}{ email = q{webmaster@example.com}, subject = q{User Report for}, link_text =...
21.5 KB  
Libraries  -  perlfaq3 5.8.8
perlfaq3 Perl module contains programming tools. How do I do (anything)? Have you looked at CPAN (see perlfaq2)? The chances are that someone has already written a module that can solve your problem. Have you read the appropriate manpages?...
12.2 MB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
Libraries  -  Math::Combinatorics 0.09
Math::Combinatorics is a Perl module that can perform combinations and permutations on lists. SYNOPSIS Available as an object oriented API. use Math::Combinatorics; my @n = qw(a b c); my $combinat = Math::Combinatorics->new(count => 2,...
10.24 KB  
Libraries  -  XML::All 0.02
XML::All is a Perl module that contains overloaded XML objects. SYNOPSIS use XML::All; my $xml = 1 2 3 >; print $$xml; # a print join ", ", @$xml; # 1, 2 , 3 print...
25.6 KB  
Libraries  -  Locale::Maketext::Fuzzy 0.02
Locale::Maketext::Fuzzy is a Perl module for Maketext from already interpolated strings. SYNOPSIS package MyApp::L10N; use base Locale::Maketext::Fuzzy; # instead of Locale::Maketext package MyApp::L10N::de; use base MyApp::L10N; our...
6.14 KB  
Libraries  -  Bio::Tree::Compatible 1.5.2_102
Bio::Tree::Compatible is a Perl module for testing compatibility of phylogenetic trees with nested taxa. SYNOPSIS use Bio::Tree::Compatible; use Bio::TreeIO; my $input = new Bio::TreeIO(-format => newick, -file => input.tre); my $t1 =...
5.6 MB  
Libraries  -  Env::Path 0.18
Env::Path is a Perl module with advanced operations on path variables. SYNOPSIS use Env::Path; # basic usage my $manpath = Env::Path->MANPATH; $manpath->Append(/opt/samba/man); for ($manpath->List) { print $_, "n" }; # similar to above...
10.24 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB