void smarty_function_pagerabc(
$params, &$smarty, string $posvar, cvs $forwardvars, cvs $additionalvars, string $class_num, string $class_numon, string $separator, string $printempty, string $lang, array $names, string $skin)
|
|
Smarty plugin
------------------------------------------------------------- Type: function Name: pagerabc Purpose: Displays alphabetical selection links Version: 1.1 Date: April 30, 2005 Author: Peter Dudas <duda at bigfish dot hu> Martin Andersen; API links for ShortURL compliance ------------------------------------------------------------- Changes: 2002/09/25 - created 2005/04/30 msandersen - Added Span with Pager class, uses API for links when link to API module, various tweaks 2005/08/20 msandersen - Changed forwardvars behaviour to be consistent with pager plugin: If forwardvars is not set, ALL the URL vars are forwarded. Fixed bug where if forwardvars weren't specifically set with "module,func" these core vars would not be used at all in the links Added support for use on the Startpage, where the vars are taken from the config starttype, startfunc, and startargs vars. Fixed the example below.
Examples: code: <!--[pagerabc posvar="abc" class_num="dl" class_numon="header" separator=" - " names="A,B;C,D;E,F;G,H;I,J;K,L;M,N,O;P,Q,R;S,T;U,V,W,X,Y,Z"]-->
result <span class="pager"> <a class="header" href="index.php?module=Example&abc=A,B"> A,B </a> - <a class="dl" href="index.php?module=Example&abc=C,D"> C,D </a> - <a class="dl" href="index.php?module=Example&abc=E,F"> E,F </a> - <a class="dl" href="index.php?module=Example&abc=G,H"> G,H </a> - <a class="dl" href="index.php?module=Example&abc=I,J"> I,J </a> - <a class="dl" href="index.php?module=Example&abc=K,L"> K,L </a> - <a class="dl" href="index.php?module=Example&abc=M,N,O"> M,N,O </a> - <a class="dl" href="index.php?module=Example&abc=P,Q,R"> P,Q,R </a> - <a class="dl" href="index.php?module=Example&abc=S,T"> S,T </a> - <a class="dl" href="index.php?module=Example&abc=U,V,W,X,Y,Z"> U,V,W,X,Y,Z </a></span>
Parameters
Parameters
| string |
$posvar |
- name of the variable that contains the position data, eg "letter"
|
| cvs |
$forwardvars |
- comma- semicolon- or space-delimited list of POST and GET variables to forward in the pager links. If unset, all vars are forwarded.
|
| cvs |
$additionalvars |
- comma- semicolon- or space-delimited list of additional variable and value pairs to forward in the links. eg "foo=2,bar=4"
|
| string |
$class_num |
- class for the pager links (<a> tags)
|
| string |
$class_numon |
- class for the active page
|
| string |
$separator |
- string to put between the letters, eg "|" makes | A | B | C | D |
|
| string |
$printempty |
|
| string |
$lang |
|
| array |
$names |
- values to select from (array or csv)
|
| string |
$skin |
- use predefined values (hu - hungarian ABC)
|
| |
$params |
|
| |
&$smarty |
|