%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: ancmenu.txt,v 5.8 2007/02/04 11:50:36 ddr Exp $ -->
  <!-- Copyright (c) 1998-2007 INRIA -->
  <!-- Modified mickroue(a)yahoo.fr 20130107 templ=templm -->
  <title>%nn;
    %apply;a_of_b%with;
      [*ancestors]%nn;
    %and;
      %if;(public_name != "")%public_name;%else;%first_name;%end;
      %if;(qualifier != "") %qualifier;%end;
      %sp;%surname;
    %end;
  </title>
  <meta name="robots" content="none"%/>
  <meta name="format-detection" content="telephone=no"%/>
  <meta http-equiv="Content-Type" content="text/html; charset=%charset;"%/>
  <meta http-equiv="Content-Style-Type" content="text/css"%/>
  <link rel="shortcut icon" href="%image_prefix;/favicon_gwd.png"%/>
  <script type="text/javascript">
    <!--
    function valid(id) {
      document.getElementById(id).checked = true;
    }
    -->
  </script>
  %include.css;
  %base_header;
</head>

%define;tothegen(xx)
  [*to the %s generation:::xx]%nn;
%end;

%define;navsosa(xx)
  [*navigation with %t as Sosa reference:::xx].
%end;

<body%body_prop; id="menutxt">
%message_to_wizard;
<h1>%nn;
  %apply;a_of_b%with;
    [*ancestors]%nn;
  %and;
    %if;(public_name != "")%public_name;%else;%first_name;%end;
    %if;(qualifier != "") <em>%qualifier;</em>%end;
    %sp;%surname;
    %if;(alias != "") <em>(%alias;)</em>%end;
  %end;
</h1>
<div class="menu2">
  %if;has_referer;
    <a href="%referer;" title="[back]">&lt;&lt;</a>
  %end;
    <a href="%prefix;" title="[visualize/show/hide/summary]3">^^</a>
</div>
<form name="ancmenu" method="get" action="%action;">
  <p>
    %hidden;
    <input type="hidden" name="m" value="A"%/>
    %if;access_by_key;
      <input type="hidden" name="p" value="%first_name_key_val;"%/>
      <input type="hidden" name="n" value="%surname_key_val;"%/>
      %if;(occ != "0")
        <input type="hidden" name="oc" value="%occ;"%/>
      %end;
    %else
      <input type="hidden" name="i" value="%index;"%/>
    %end;
  </p>
  <fieldset>
    <legend>
      <label><input type="submit" value="Ok"%/></label>
    </legend>
    <select name="v">
      %foreach;ancestor_level;
        <option value="%level;"%nn;
          %if;(level = 4) selected="selected"%end;>%nn;
          %if;(level = 1)[*specify::generation/generations]0%nn;
          %elseif;(level = 2)[*to the parents]%nn;
          %elseif;(level = 3)[*to the grandparents]%nn;
          %elseif;(level = 4)[*to the great-grandparents]%nn;
          %else;
            %apply;tothegen%with;
              %apply;nth([nth (generation)], level)
            %end;
          %end;
          %if;(level != 1) (%number_of_ancestors;)%end;
        </option>
      %end;
    </select>
    <br%/>
    <label><input type="checkbox" name="only" value="on" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*only the generation selected]
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="cgl" value="on" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*cancel GeneWeb links]
    </label>
    <br%/>
    <label>
      <input type="radio" id="tZ" name="t" value="Z" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*table]
    </label>
    <br%/>
    <label>
      <input type="radio" name="t" value="A" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*male line/female line]0
    </label>
    <br%/>
    <label>
      <input type="radio" name="t" value="C" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*male line/female line]1
    </label>
    <br%/>
    <label>
      <input type="radio" name="t" value="H" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*horizontally]
      %if;(bvar.max_anc_level = "" and max_anc_level >= 8)
        ([maximum] 8 [generation/generations]1)
      %elseif;(
        bvar.max_anc_level != "" and max_anc_level >= bvar.max_anc_level
      )
        ([maximum] %bvar.max_anc_level; [generation/generations]1)
      %end;
    </label>
    <br%/>
    <label>
      <input type="radio" name="t" value="L" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*list/list (ancestors)]1
      %if;(bvar.max_anc_level = "" and max_anc_level >= 8)
        ([maximum] 8 [generation/generations]1)
      %elseif;(
        bvar.max_anc_level != "" and max_anc_level >= bvar.max_anc_level)
        ([maximum] %bvar.max_anc_level; [generation/generations]1)
      %end;
    </label>
    <br%/>
    <label>
      <input type="radio" id="tF" name="t" value="F" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*surnames branch]
    </label>
  </fieldset>
  <fieldset>
    <legend>
      <label>
        <input type="radio" id="tG" name="t" value="G" checked="checked" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*long display]
      </label>
    </legend>
    <label>
      <input type="checkbox" name="siblings" value="on" checked="checked" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
       [*siblings]
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="sd" value="on" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*date/dates]0 : 
      %if;([ !dates order]0 = "ddmmyyyy")[year/month/day]2/[year/month/day]1/[year/month/day]0
      %elseif;([ !dates order]0 = "mmddyyyy")[year/month/day]1/[year/month/day]2/[year/month/day]0
      %else;[year/month/day]0/[year/month/day]1/[year/month/day]2
      %end;
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="alias" value="on" checked="checked" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
       [*surname alias], [*first name alias]
    </label>
    <br%/>
    <label>
    <input type="checkbox" name="spouse" value="on" checked="checked" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
    [*include spouses]
    </label>
    <br%/>
    <label>
    <input type="checkbox" name="parents" value="on" checked="checked" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
    [*parents]
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="rel" value="on" checked="checked" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*relation/relations]1
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="notes" value="on" checked="checked" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*note/notes]1
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="src" value="on" checked="checked" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*source/sources]1
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="inline" value="on" onchange="valid('tG')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*display notes/sources inline]
    </label>
  </fieldset>
  <fieldset>
  <legend>
    <label>
      <input type="radio" id="tT" name="t" value="T" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*tree]
      %if;(bvar.max_anc_tree = "" and max_anc_level >= 7)
        ([maximum] 7 [generation/generations]1)
      %elseif;(
        bvar.max_anc_tree != "" and
        max_anc_level >= bvar.max_anc_tree)
        ([maximum] %bvar.max_anc_tree; [generation/generations]1)
      %end;
    </label>
  </legend>
    <label>
      <input type="checkbox" name="dag" value="on" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      dag=on
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="marriage" value="on" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*marriage/marriages]0
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="image" value="on" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*image/images]1
    </label>
    <br%/>
    <label>
      [*border]
      <input name="bd" size="1" maxlength="2" value="0" onchange="valid('tT')"%/>
    </label>
    <br%/>
    <table summary="colors" cellspacing="0" cellpadding="0">
      <tr>
        <td align="%left;">[*color]&nbsp;</td>
        <td align="%left;">
          <input type="radio" name="color" value="" checked="checked" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        </td>
        <td class="bg1">
          <input type="radio" name="color" value="bg1" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        </td>
        <td class="bg2">
          <input type="radio" name="color" value="bg2" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        </td>
        <td class="bg3">
          <input type="radio" name="color" value="bg3" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        </td>
        <td class="bg4">
          <input type="radio" name="color" value="bg4" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        </td>
        <td class="bg5">
          <input type="radio" name="color" value="bg5" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        </td>
        <td class="bg6">
          <input type="radio" name="color" value="bg6" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        </td>
      </tr>
    </table>
  </fieldset>
  <fieldset>
    <legend>
      <label><input type="radio" id="tE" name="t" value="E"
              onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*list/list (ancestors)]0</label>
    </legend>
    <label><input type="radio" id="tPLACE" name="opt" value="place" onchange="valid('tE')"
            onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
    [*list eclair]0 - [places]</label><br%/>
    <label><input type="radio" id="tSURN" name="opt" value="surn" onchange="valid('tE')"
            onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
    [*list eclair]0 - [surname/surnames]1 / [places]</label><br%/>
    <label><input type="radio" id="tAAD" name="opt" value="aad" onchange="valid('tE')"
            onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
            [*age at death]
            ([M/F]0, [M/F]1)</label><br%/>
    <label><input type="radio" id="tAFM" name="opt" value="afm" onchange="valid('tE')"
            onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
            [*age]
            ([father/mother]0, [father/mother]1)</label><br%/>
    <label><input type="radio" id="tBMDM" name="opt" value="bmdm" onchange="valid('tE')"
            onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
            [*birth], [death]
            ([M/F]0, [M/F]1) / [year/month/day]1</label><br%/>
    <fieldset>
      <legend>
        <label><input type="checkbox" name="cousins" value="on" onchange="valid('tE')"
                onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*cousins]</label>
      </legend>
      <label><input type="radio" id="tFAM" name="opt" value="fam" onchange="valid('tE')"
              onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
      [*family/families]0 ([maximum] 4 [generation/generations]1)</label><br%/>
      %if;(wizard)
        <label><input type="radio" id="tCSV" name="opt" value="csv" onchange="valid('tE')"
                onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*long display] (csv)</label>
      %end;
    </fieldset>
  </fieldset>
  <fieldset>
    <legend>
      <label>
        <input type="radio" id="tM" name="t" value="M" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*not found]
      </label>
    </legend>
    <fieldset>
      <legend>
        <label>
          <input type="radio" id="tM1" name="miss" value="M1" onclick="valid('tM')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
          [*missing ancestors]
        </label>
      </legend>
      <label>
        <input type="checkbox" name="al" value="on" onchange="valid('tM');valid('tM1')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*alphabetic order]
      </label>
      <br%/>
      <label>
        <input type="checkbox" name="ms" value="on" onchange="valid('tM');valid('tM1')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*first name/first names]1, [surname/surnames]1 = ??
      </label>
    </fieldset>
    %if;(bvar.var_img_ext != "")
      <fieldset>
        <legend>
          <label>
            <input type="radio" id="tM2" name="miss" value="M2" onclick="valid('tM')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
            [*miscellaneous notes]
          </label>
        </legend>
        <label>
          <input type="checkbox" name="M2b" value="b" onchange="valid('tM');valid('tM2')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
          %bvar.var_t_BIRTHA;
        </label><br%/>
        <label>
          <input type="checkbox" name="M2m" value="m" onchange="valid('tM');valid('tM2')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
          %bvar.var_t_MARRIAGEA;
        </label><br%/>
        <label>
          <input type="checkbox" name="M2d" value="d" onchange="valid('tM');valid('tM2')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
          %bvar.var_t_DEATHA;
        </label>
      </fieldset>
    %end;
    <fieldset>
      <legend>
        <label>
          <input type="radio" id="tM3" name="miss" value="M3" onclick="valid('tM')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
          [*date/dates]0 &lt;&gt; [exact]
        </label>
      </legend>
      <label>
        <input type="checkbox" name="M3b" value="b" onchange="valid('tM');valid('tM3')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*birth]
      </label><br%/>
      <label>
        <input type="checkbox" name="M3m" value="m" onchange="valid('tM');valid('tM3')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*marriage/marriages]0
      </label><br%/>
      <label>
        <input type="checkbox" name="M3d" value="d" onchange="valid('tM');valid('tM3')" onkeydown="if (event.keyCode == 13) javascript:document.ancmenu.submit();"%/>
        [*death]
      </label>
    </fieldset>
  </fieldset>
</form>
  <div style="clear: both;">
    %apply;navsosa%with;
      <a href="%prefix_no_iz;iz=%index;">%self;</a>%nn;
      %if;has_nobility_titles;, <em>%nobility_title;</em>%end;%nl;
    %end;
  </div>
  %base_trailer;
  %copyright;
</body>
</html>
