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.
Cpanel::StatsBar::rowcounter
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.
<?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 2006 cPanel Inc.