PClib demo site

<?elements
class grid name "pagergrid"
string ROWCOLOR loop "1,2"
string productCode lb "Product code" sort
string productName lb "Product name" sort
string productLine lb "Productline" sort
string productVendor lb "Vendor" sort
string productDescription lb "Description" size "40" tooltip
pager pager
string pagerForm
?>

<style>
tr.color1 {background-color: #ffd}
tr.color2 {background-color: #dff}
</style>
<table class="grid" border="0" width="900">
<tr>
<th>{productCode.lb}</th>
<th>{productName.lb}</th>
<th>{productLine.lb}</th>
<th>{productVendor.lb}</th>
<th>{productDescription.lb}</th>
</tr>
{BLOCK items}
<tr class="color{ROWCOLOR}">
<td>{productCode}</td>
<td>{productName}</td>
<td>{productLine}</td>
<td>{productVendor}</td>
<td>{productDescription}</td>
</tr>
{BLOCK ELSE}
<tr><td colspan="5" style="height:40px"><center><i>There are no items.</i></center></td></tr>
{/BLOCK}
</table>
<div class="pager">{pager}</div>

Elapsed time: 1.69 ms