PClib demo site

<?elements
class grid name "personlist"
string NAME lb "Name" sort format "e"
string SURNAME lb "Surname" sort
string EMAIL lb "Email" sort
string BDATE date lb "Birthdate" sort
string CREATED_AT date "%d.%m.%Y %H:%M:%S" lb "Added" sort
bind SEX list "M,Male,F,Female" lb "Sex" sort
bind INTERESTS query "select ID,LABEL FROM INTERESTS" bitfield lb "Interests"
bind COUNTRY query "select ID,LABEL FROM COUNTRY" lb "Country" sort
link l_edit route "advform/edit/id:{ID}" lb "Edit"
link l_add route "advform/add" lb "Add new item"
pager pager pglen "4"
?>

<table class="grid" border="0" width="900">
<tr>
<th>{NAME.lb}</th>
<th>{SURNAME.lb}</th>
<th>{EMAIL.lb}</th>
<th>{BDATE.lb}</th>
<th>{SEX.lb}</th>
<th>{INTERESTS.lb}</th>
<th>{COUNTRY.lb}</th>
<th>{CREATED_AT.lb}</th>
<th></th>
</tr>
{BLOCK items}
<tr>
<td>{NAME}</td>
<td>{SURNAME}</td>
<td>{EMAIL}</td>
<td>{BDATE}</td>
<td>{SEX}</td>
<td>{INTERESTS}</td>
<td>{COUNTRY}</td>
<td>{CREATED_AT}</td>
<td align="center">{l_edit}</td>
</tr>
{BLOCK ELSE}
<tr><td colspan="10" style="height:40px"><center><i>There are no items.</i></center></td></tr>
{/BLOCK}
<tr><td colspan="10" style="height:40px">{l_add}</td></tr>
</table>
<div class="pager">{pager}</div>


Elapsed time: 1.89 ms