Dear master,
I am Wang Aocheng, from china. My age is 19.
I want to register a account for PAUSE. Name: Wang
Aocheng
Email: [EMAIL PROTECTED] User ID: WAC or AOCHENG Namespace: HTML::Paging Description: =head1 NAME
HTML::Paging::SQL - HTML pagination
with SQL database
=head1 SUPPORTED
PLATFORMS
I think you can use this class in
all platforms :)
=head1 SYNOPSIS
use
HTML::Paging::SQL;
my $hp = new
HTML::Paging::SQL(
all => [your total amount of the record data]£¬ num => [each page layout shows how many data it contains], sub => [the pagination number is shown in each subsection], ); my ($html,$start,$length) =
$hp->NM(
bicon => [setting down the icon that moves forward]£¬ ficon => [setting down the icon that moves backward], ); =head1 DESCRIPTION
If you use the SQL database, this
class can help you divide the page, support the
subsection show of pagination
numbers, it is similar to the way shown in the Google's(R)
pagination. Under the minimal
circumstance you only need to deliver a parameter, and
you'll get the pagination result
and can have the user-defined of icons jumping forwards
or backwards.
=head1 HOW TO USE
METHOD
=over 2
=item
HTML::Paging::SQL->new([HASH])
For example,according to this way
to initialize the class, you should at least deliver
a parameter named "all",which is
the total amount of the data you want to
show, among which num and sub can be separately chosen to deliver parameters. The y each express a subsection of
the pagination number on each page.If you do not
deliver, num is the default for 10,
which means each page will show 10 data. If sub isn't
established,the result of the
subsection show in page code will be closed; for example,
sub is 4, you'll see the result
similar to << 5 6 7 8 >> in the return html code. On the
condition of a lot of data, it is
of great use.
=item
$hp->NM([HASH])
This method can transmit the HTML
code with the digital format, in this way you
can choose two parameters to establish the page number icons for jumping forwards or backwards. These two parameters are both bicon and ficon.If they are not set up, the system will adopt "<<"AND">>" for tacit jump icons. After executing this method successfully, it will rebound 3 parameters;the 1st stands for the HTML code of page number,the 2nd for the limit first parameter in SQL,the 3rd for the limit second parameter in SQL.If the 2 nd and 3rd names stand for $start and $length, you can use it: "select* from table limit $start,$length". =back =head1 AUTHOR
Wang Aocheng <[EMAIL PROTECTED]>
English: Wang Zhonghua
<[EMAIL PROTECTED]>
=cut
Thanks for your help, I am waiting for your
reply.
wac
|