<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>[*advanced request]</title>
	<meta name="robots" content="none"/>
	<link rel="shortcut icon" href="images/templ_clp/favicon_gwd.png"/>
	<link rel="stylesheet" href="templ_clp/css/advanced.css"/>
</head>
<body%body_prop;>
<h1>[*advanced request]</h1>
<div>
<form method="POST" action="%action;">
%hidden;
<input type="hidden" name="m" value="AS_OK"%/>
<table class="tab_ad">
<tr><td class="td1">[*first name/first names]0<td><input name="first_name" size="40" maxlength="200"%/>
<tr><td class="td1">[*surname/surnames]0<td><input name="surname" size="40" maxlength="200"%/>
</table>

%define;event(xx)
	<td>[*place]<input name="xx_place" size="40" maxlength="200"%/>
	<tr>			
			<td>[*after]
  %if;([ !dates order]0 = "ddmmyy" or [ !dates order]0 = "ddmmyyyy" or [ !dates order]0 = "dmyyyy")
    [year/month/day]2<input name="xx1_dd" size="2" maxlength="2"%/>
    [year/month/day]1<input name="xx1_mm" size="2" maxlength="2"%/>
    [year/month/day]0<input name="xx1_yyyy" size="5" maxlength="5"%/>
  %elseif;([ !dates order]0 = "mmddyyyy")
    [year/month/day]1<input name="xx1_mm" size="2" maxlength="2"%/>
    [year/month/day]2<input name="xx1_dd" size="2" maxlength="2"%/>
    [year/month/day]0<input name="xx1_yyyy" size="5" maxlength="5"%/>
  %else;
    [year/month/day]0<input name="xx1_yyyy" size="5" maxlength="5"%/>
    [year/month/day]1<input name="xx1_mm" size="2" maxlength="2"%/>
    [year/month/day]2<input name="xx1_dd" size="2" maxlength="2"%/>
  %end;
	<tr>		
		<td>[*before]
  %if;([ !dates order]0 = "ddmmyy" or [ !dates order]0 = "ddmmyyyy" or [ !dates order]0 = "dmyyyy")
    [year/month/day]2<input name="xx2_dd" size="2" maxlength="2"%/>
    [year/month/day]1<input name="xx2_mm" size="2" maxlength="2"%/>
    [year/month/day]0<input name="xx2_yyyy" size="5" maxlength="5"%/>
  %elseif;([ !dates order]0 = "mmddyyyy")
    [year/month/day]1<input name="xx2_mm" size="2" maxlength="2"%/>
    [year/month/day]2<input name="xx2_dd" size="2" maxlength="2"%/>
    [year/month/day]0<input name="xx2_yyyy" size="5" maxlength="5"%/>
  %else;
    [year/month/day]0<input name="xx2_yyyy" size="5" maxlength="5"%/>
    [year/month/day]1<input name="xx2_mm" size="2" maxlength="2"%/>
    [year/month/day]2<input name="xx2_dd" size="2" maxlength="2"%/>
  %end;
%end;

<table class="tab_ad">
<tr><td  class="td1" rowspan="3">[*birth]%apply;event("birth")
</table>

<table class="tab_ad">
<tr><td  class="td1" rowspan="3">[*baptism]%apply;event("bapt")
</table>

<table class="tab_ad">
<tr><td  class="td1" rowspan="4">[*death]%apply;event("death")
	<tr>
		<td>
			<select name="death">
				<option value="Dead">[*died]</option>
				<option value="NotDead">[*alive]</option>
				<option value="" selected="selected">-</option>
			</select>
		</td>
	</tr>
</table>

<table class="tab_ad">
<tr><td  class="td1" rowspan="3">[*burial]%apply;event("burial")
</table>

<table class="tab_ad">
	<tr><td class="td1">[*occupation/occupations]1
			<td><input name="occu" size="50" maxlength="200"%/>
</table>

<table class="tab_ad">
	<tr><td class="td1">[*sex]
			<td><input type="radio" name="sex" id="sexM" value="M"%/><label for="sexM">[M/F]0</label>
			<input type="radio" name="sex" id="sexF" value="F"%/><label for="sexF">[M/F]1</label>
			<input type="radio" name="sex" id="sexU" value="N" checked="checked"%/><label for="sexU">-</label>
</table>

<table class="tab_ad">
	<tr><td class="td1" rowspan="4">[*union/unions]0<td>[*married]
			<input type="radio" name="married" id="mY" value="Y"%/><label for="mY">[Y/N]0</label>
			<input type="radio" name="married" id="mN" value="N"%/><label for="mN">[Y/N]1</label>
			<input type="radio" name="married" id="mA" value="A" checked="checked"%/><label for="mA">-</label>
		<tr>
		%apply;event("marriage")
</table>

<br/>
<p style="width:300px;margin:auto;text-align:center;">
[*maximum]: <input style="text-align:center;" name="max" size="5" value="100" maxlength="5"%/> [person/persons]1
<br/><br/><input type="submit" value="Ok"%/>
</p>
</form>
</div>
</body>
</html>