PClib demo site

<?elements
class grid name "productlist"
number buyPrice format "2. "
number sumQ format "0. "
number avgPrice format "2. "
pager pager pglen "20"
?>

<style type="text/css">
TABLE.grid TD {border:none}
</style>
<table class="grid">
<tr>
<th>productCode</th>
<th>productName</th>
<th>productLine</th>
<th>productVendor</th>
<th>quantityInStock</th>
<th>buyPrice</th>
</tr>
{block vendor}
<tr>
<td colspan="6" style="border-bottom:1px solid #ddd; color:#669"><i>{productVendor}</i></td>
</tr>
{/block}
{block items}
<tr>
<td>{productCode}</td>
<td>{productName}</td>
<td>{productLine}</td>
<td>{productVendor}</td>
<td align="right">{quantityInStock}&nbsp;&nbsp;</td>
<td align="right">{buyPrice} US$</td>
</tr>
{/block}
{block summary}
<tr style="border-top: 2px solid gray; height: 40px">
<td colspan="4"><b>Summary of {productLine}, {N} pieces</b></td>
<td align="right">Total: <b>{sumQ}&nbsp;&nbsp;</b></td>
<td align="right">Avg.: <b>{avgPrice} US$</b></td>
</tr>
{/block}
</table>
<div class="pager">{pager}</div>

Elapsed time: 1.87 ms