Overview

 The JHtmlJGrid class is a utility class for the presentation of tabular data.

Properties

 

Methods

JHtmlJGrid::published($value, $i, $img1 = 'tick.png', $img0 = 'publish_x.png', $prefix = '')

The JHtmlGrid::published function generates the HTML required to display a clickable icon that indicates the publication status of the relevant data row.

Parameters

$value is the present publication status;

$i is an index to the particular row of data to which the publication icon relates;

$img1 is the graphic to be displayed if publication is enabled for the relevant data row;

$img2 is the graphic to be displayed if publication is disabled for the relevant data row;

$prefix is the prefix to be used for generating the identifier for the task to be executed on a click event as follows: '<$prefix>.unpublish' and '<$prefix>.publish'.