Cpanel::StatsBar::rowcounter

This article documents the usage of the Cpanel::StatsBar::rowcounter function in relation to the cPanel interface. This tag can be used inside cPanel pages.


SYNOPSIS

Cpanel::StatsBar::rowcounter


DESCRIPTION

This function increments and outputs a variable used for counting rows in tables. Used to manually increment the rowcounter for StatsBar::stat. The intent is to allow varying row classes to be used for background colors.


VARIABLES

INPUT

rowcounter (string)
Set rowcounter=variable to increment that variable's parity.

OUTPUT

rowtype (string)
Parity of the rowcounter variable. (even | odd)


EXAMPLES

<?cp StatsBar::rowcounter(%,rowtype) rowcounter=mainstats ?>

This will output odd.

<?cp StatsBar::rowcounter(%,rowtype) rowcounter=mainstats ?>

This will output even.

<?cp StatsBar::rowcounter(%,rowtype) rowcounter=john ?>

This will output odd.

<?cp StatsBar::rowcounter(%,rowtype) rowcounter=mainstats ?>

This will output odd.


COPYRIGHT

Copyright 2006 cPanel Inc.