PClib demo site

<?elements
class grid name "productlist"
string ROWCOLOR loop "1,2" skip
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
link lnexport route "searchgrid/export:1" lb "Export to Excel" skip
pager pager pglen "20"
?>

<style>
tr.color1 {background-color: #ffd}
tr.color2 {background-color: #dff}
</style>
<table class="grid">
<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} | {lnexport}</div>

Elapsed time: 0.7 ms