%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 2012/02/27 geneweb-6.04 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 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;
  <style type="text/css">
    /* ancmenu.txt, desmenu.txt, relmenu.txt */
    #menutxt fieldset {
    	width: 300px;
    	float: left;
    	margin: 2px;
    }
    #menutxt fieldset fieldset {
    	width: 270px;
    }
  </style>
  %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>
    <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>
    <input type="submit" value="Ok"%/>
    <br%/><br%/>
    <label>
      <input type="checkbox" name="cgl" value="on"%/>
      [*cancel GeneWeb links]
    </label>
    <br%/>
    <label>
      <input type="radio" name="t" value="A"%/>
      [*male line/female line]0
    </label>
    <br%/>
    <label>
      <input type="radio" name="t" value="C"%/>
      [*male line/female line]1
    </label>
    <br%/>
    <label>
      <input type="radio" name="t" value="L"%/>
      [*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" name="t" value="H"%/>
      [*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>
  </fieldset>
  <fieldset>
    <legend>
      <label><input type="checkbox" name="only" value="on"%/>
        [*only the generation selected]
      </label>
    </legend>
    <fieldset>
      <legend>
        <label>
          <input type="radio" id="tN" name="t" value="N" checked="checked"%/>
          [*short display]
        </label>
      </legend>
          Sosa base
          <label><input type="radio" name="sosab" value="8" onchange="valid('tN')"%/>8</label>
          <label>%nn
            <input type="radio" name="sosab" value="10" checked="checked" onchange="valid('tN')"%/>10
          </label>
          <label><input type="radio" name="sosab" value="16" onchange="valid('tN')"%/>16</label>
    </fieldset>
    <fieldset>
      <legend>
        <label>
          <input type="radio" id="tG" name="t" value="G"%/>
          [*long display]
        </label>
      </legend>
        <label>
          <input type="checkbox" name="alias" value="on" checked="checked" onchange="valid('tG')"%/>
           [*surname alias], [*first name alias]
        </label>
        <br%/>
        <label>
          <input type="checkbox" name="siblings" value="on" checked="checked" onchange="valid('tG')"%/>
           [*siblings]
        </label>
        <br%/>
        <label>
        <input type="checkbox" name="spouse" value="on" checked="checked" onchange="valid('tG')"%/>
        [*include spouses]
        </label>
        <br%/>
        <label>
        <input type="checkbox" name="parents" value="on" checked="checked" onchange="valid('tG')"%/>
        [*parents]
        </label>
        <br%/>
        <label>
          <input type="checkbox" name="rel" value="on" onchange="valid('tG')"%/>
          [*relation/relations]1
        </label>
        <br%/>
        <label>
          <input type="checkbox" name="witn" value="on" onchange="valid('tG')"%/>
          [*witness/witnesses]1 ([marriage/marriages]1)
        </label>
        <br%/>
        <label>
          <input type="checkbox" name="comm" value="on" onchange="valid('tG')"%/>
          [*comment] ([marriage/marriages]1)
        </label>
        <br%/>
        <label>
          <input type="checkbox" name="notes" value="on" checked="checked" onchange="valid('tG')"%/>
          [*note/notes]1
        </label>
        <br%/>
        <label>
          <input type="checkbox" name="src" value="on" checked="checked" onchange="valid('tG')"%/>
          [*source/sources]1
        </label>
    </fieldset>
  </fieldset>
  <fieldset>
  <legend>
    <label>
      <input type="radio" id="tT" name="t" value="T"%/>
      [*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="marriage" value="on" onchange="valid('tT')"%/>
      [*marriage/marriages]0
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="image" value="on" onchange="valid('tT')"%/>
      [*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')"%/>
        </td>
        <td class="bg1">
          <input type="radio" name="color" value="bg1" onchange="valid('tT')"%/>
        </td>
        <td class="bg2">
          <input type="radio" name="color" value="bg2" onchange="valid('tT')"%/>
        </td>
        <td class="bg3">
          <input type="radio" name="color" value="bg3" onchange="valid('tT')"%/>
        </td>
        <td class="bg4">
          <input type="radio" name="color" value="bg4" onchange="valid('tT')"%/>
        </td>
        <td class="bg5">
          <input type="radio" name="color" value="bg5" onchange="valid('tT')"%/>
        </td>
        <td class="bg6">
          <input type="radio" name="color" value="bg6" onchange="valid('tT')"%/>
        </td>
      </tr>
    </table>
  </fieldset>
  <fieldset>
  <legend>
    <label>
      <input type="radio" id="tF" name="t" value="F"%/>
      [*surnames list]
    </label>
  </legend>
      <label><input type="radio" id="tFAM" name="opt" value="fam" onchange="valid('tF')"%/>[*family/families]0
        %sp;([maximum] 4 [generation/generations]1)
      </label><br%/>
    %if;(wizard)
      <label><input type="radio" id="tCSV" name="opt" value="csv" onchange="valid('tF')"%/>[*long display] (csv)
      </label>
    %end;
      <br%/>
      <label><input type="checkbox" name="cousins" value="on" onchange="valid('tF')"%/> [*cousins]
      </label>
  </fieldset>
  <fieldset>
  <legend>
    <label>
      <input type="radio" id="tM" name="t" value="M"%/>
      [*missing ancestors]
    </label>
  </legend>
    <label>
      <input type="checkbox" name="al" value="on" onchange="valid('tM')"%/>
      [*alphabetic order]
    </label>
    <br%/>
    <label>
      <input type="checkbox" name="ms" value="on" onchange="valid('tM')"%/>
      [*include missing spouses]
    </label>
    %if;(bvar.var_img_ext != "")
      <p>[*not found] : <br%/>
          <label>
            <input type="checkbox" name="img_b" value="on" onchange="valid('tM')"%/>
            %bvar.var_t_BIRTHA;
          </label><br%/>
          <label>
            <input type="checkbox" name="img_m" value="on" onchange="valid('tM')"%/>
            %bvar.var_t_MARRIAGEA;
          </label><br%/>
          <label>
            <input type="checkbox" name="img_d" value="on" onchange="valid('tM')"%/>
            %bvar.var_t_DEATHA;
          </label>
      </p>
    %end;
  </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>
