Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: function.pagerabc.php

Source Location: /system/pnRender/plugins/function.pagerabc.php



Page Details:

Zikula Application Framework



Tags:

author:  Peter Dudas <at bigfish dot hu duda at bigfish dot hu>
version:  $Id: function.pagerabc.php 24342 2008-06-06 12:03:14Z markwest $
link:  http://www.zikula.org
filesource:  Source Code for this file








smarty_function_pagerabc [line 62]

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=" &nbsp;-&nbsp; " 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&amp;abc=A,B">&nbspA,B </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=C,D">&nbspC,D </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=E,F">&nbspE,F </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=G,H">&nbspG,H </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=I,J">&nbspI,J </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=K,L">&nbspK,L </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=M,N,O">&nbspM,N,O </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=P,Q,R">&nbspP,Q,R </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=S,T">&nbspS,T </a> &nbsp;-&nbsp; <a class="dl" href="index.php?module=Example&amp;abc=U,V,W,X,Y,Z">&nbspU,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  
  • print empty sel ('-')
string   $lang  
  • language
array   $names  
  • values to select from (array or csv)
string   $skin  
  • use predefined values (hu - hungarian ABC)
   $params  
   &$smarty  
[ Top ]



Documentation generated on Fri, 18 Jul 2008 21:45:33 +0200 by phpDocumentor 1.4.1