<?elements
class form name "personform" route "advform/id:{GET.id}" table "PERSONS"
input NAME lb "Name:" required
input SURNAME lb "Surname:" required
input BDATE date "d.m.Y" lb "Birth date:" size "10" required
input EMAIL email lb "Email:" size "30"
radio SEX lb "Sex:" list "M,Male,F,Female" default "M"
select COUNTRY lb "Country:" query "select ID,LABEL FROM COUNTRY" required
check INTERESTS lb "Interests:" query "select ID,LABEL FROM INTERESTS" default "2,5" columns "2"
input CV file into "files/doc/" lb "Attach curriculum vitae:" noedit
text COMMENT lb "Comment:" size "50x4"
button insert lb "Insert" noprint
button update lb "Update" noprint
button delete lb "Delete" noprint
button back lb "Back" route "advform/list"
?>
<style>
</style>
<h2>Personal form <i>{NAME.value} {SURNAME.value}</i></h2>
<table>
<tr>
<td>{NAME.lb}</td><td width="400">{NAME} {NAME.err}</td>
</tr>
<tr><td>{SURNAME.lb}</td><td>{SURNAME} {SURNAME.err}</td></tr>
<tr><td>{BDATE.lb}</td><td>{BDATE} (Day.Month.Year) {BDATE.err}</td></tr>
<tr><td>{EMAIL.lb}</td><td>{EMAIL} {EMAIL.err}</td></tr>
<tr><td>{SEX.lb}</td><td>{SEX}</td></tr>
<tr><td>{COUNTRY.lb}</td><td>{COUNTRY} {COUNTRY.err}</td></tr>
<tr><td colspan="2">
{INTERESTS.lb}<br>
{INTERESTS}<br><br>
{COMMENT.lb}<br>
{COMMENT}<br><br>
{CV.lb} {CV}
</td></tr>
</table>
{insert} {update} {delete} {back}<br>
<hr>
Fields marked <font color="red"><sup>(*)</sup></font> are required.
Elapsed time: 1.17 ms