in reply to HTML::Template with HTML::Pager
* new() supports several optional arguements:
- debug - if set to 1, debugging information is warn()'d during the program run. Defaults to 0.
- template - this is an HTML::Template object to use instead of the auto-generated HTML::Template used in Pager output. It must define the following TMPL_LOOPs and TMPL_VARs. Here's what the default template looks like, to give you an idea of how to change it to suite your purposes:
. . .<TMPL_VAR NAME="PAGER_JAVASCRIPT"> <FORM> <TABLE BORDER=0 BGCOLOR=#000000 WIDTH=100%> <TR><TD><TABLE BORDER=0 WIDTH=100%> <TMPL_LOOP NAME="PAGER_DATA_LIST"> <TR> <TD BGCOLOR=#ffffff><TMPL_VAR NAME="PAGER_DATA_COL_0"></TD> <TD BGCOLOR=#ffffff><TMPL_VAR NAME="PAGER_DATA_COL_1"></TD> <TD BGCOLOR=#ffffff><TMPL_VAR NAME="PAGER_DATA_COL_2"></TD> <!--- depends on number of rows in data - so should your rep +lacement! --> </TR> </TMPL_LOOP> <TR><TD BGCOLOR=#DDDDDD COLSPAN=3 ALIGN=CENTER> <TMPL_VAR NAME="PAGER_PREV"> <TMPL_VAR NAME="PAGER_JUMP"> <TMPL_VAR NAME="PAGER_NEXT"> </TD></TR> </TABLE> </TABLE> <TMPL_VAR NAME="PAGER_HIDDEN"> </FORM>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Template with HTML::Pager
by flyby (Acolyte) on Oct 09, 2013 at 18:59 UTC | |
by keszler (Priest) on Oct 09, 2013 at 19:39 UTC | |
by flyby (Acolyte) on Oct 09, 2013 at 20:46 UTC | |
by flyby (Acolyte) on Oct 09, 2013 at 22:20 UTC |