%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: desmenu.txt,v 5.10 2007-07-25 15:01:02 ddr Exp $ -->
  <!-- Copyright (c) 1998-2007 INRIA -->
  <!-- Modified mickroue(a)yahoo.fr 20130107 templ=templm -->
  <title>%nn;
    %apply;a_of_b_gr_eq_lev%with;
      [*descendants]%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_gr_eq_lev%with;
    [*descendants]%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>

%if;not cancel_links;
  <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>
%end;

  <form name="desmenu" method="get" action="%action;">
    <p>
      %hidden;
      <input type="hidden" name="m" value="D"%/>
      %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;descendant_level;
              <option value="%level;"%if(level = 3) selected="selected"%end;>%nn;
                %if;(level = 0)[*specify::generation/generations]0%nn;
                %elseif;(level = 1)[*to the children]%nn;
                %elseif;(level = 2)[*to the grandchildren]%nn;
                %elseif;(level = 3)[*to the great-grandchildren]%nn;
                %else;
                  %apply;tothegen%with;
                    %apply;nth([nth (generation)], level)
                  %end;
                %end;
                %if;(level != 0) (%number_of_descendants;)%end;
              </option>
            %end;
          </select>
          <br%/>
          <label>
            <input type="checkbox" name="cgl" value="on" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
            [*cancel GeneWeb links]
          </label>
          <br%/>
          <label>
            <input type="radio" name="t" value="S" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
            [*only the generation selected]
          </label>
          <br%/>
          <label>
            <input type="radio" name="t" value="N" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
            [*families with encoding]
          </label>
          <br%/>
          <label>
            <input type="radio" name="t" value="G" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
            [*index of the descendants]
          </label>
          <br%/>
          <label>
            <input type="radio" name="t" value="C" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
            [*index of the spouses (non descendants)]
          </label>
          <br%/>
          <input type="hidden" name="num" value="on"%/>
          <label>
            <input type="radio" name="t" value="A" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
            d’Aboville
          </label>
          <br%/>
    </fieldset>
    <fieldset>
    <legend>
      <label>
        <input type="radio" id="tL" name="t" value="L" checked="checked" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*long display]0
      </label>
    </legend>
      %if;(bvar.max_desc_level = "" and max_desc_level > 12)
        ([maximum] 12 [generation/generations]1)
      %elseif;(
        bvar.max_desc_level != "" and max_desc_level > bvar.max_desc_level
        )
        ([maximum] %bvar.max_desc_level; [generation/generations]1)
      %end;
      <label>
        <input type="radio" name="t" value="M" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*male line/female line]0
      </label>
      <br%/>
      <label>
        <input type="radio" name="t" value="F" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*male line/female line]1
      </label>
      <br%/>
      <label>
        <input type="checkbox" name="always_surname" value="no" checked="checked" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*first name/first names]0 <span style="text-decoration:line-through;">[*surname/surnames]0</span>
      </label>
      <br%/>
      <label>
        <input type="checkbox" name="sd" value="on" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.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" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
          [*surname alias], [*first name alias]
        </label>
      <br%/>
        <label>
        <input type="checkbox" name="spouse" value="on" checked="checked" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*include spouses]
        </label>
      <br%/>
      <label>
        <input type="checkbox" name="parents" value="on" checked="checked" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*parents]
      </label>
      <br%/>
      <label>
        <input type="checkbox" name="rel" value="on" checked="checked" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*relation/relations]1
      </label>
      <br%/>
      <label>
        <input type="checkbox" name="notes" value="on" checked="checked" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*note/notes]1
      </label>
      <br%/>
      <label>
        <input type="checkbox" name="src" value="on" checked="checked" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
        [*source/sources]1
      </label>
      <br%/>
      <label>
        <input type="checkbox" name="inline" value="on"%/>
        [*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.desmenu.submit();"%/>
        [*tree]
        %if;(bvar.max_desc_tree = "" and max_desc_level >= 4)
          ([maximum] 4 [generation/generations]1)
        %elseif;(
          bvar.max_desc_tree != "" and max_desc_level >= bvar.max_desc_tree
        )
          ([maximum] %bvar.max_desc_tree; [generation/generations]1)
        %end;
      </label>
    </legend>
      <label>
       <input type="checkbox" name="image" value="on" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.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" cellpadding="0" cellspacing="0">
        <tr>
          <td align="%left;">[*color]&nbsp;</td>
          <td>
            <input type="radio" name="color" value="" checked="checked" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
          </td>
          <td class="bg1">
            <input type="radio" name="color" value="bg1" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
          </td>
          <td class="bg2">
            <input type="radio" name="color" value="bg2" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
          </td>
          <td class="bg3">
            <input type="radio" name="color" value="bg3" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
          </td>
          <td class="bg4">
            <input type="radio" name="color" value="bg4" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
          </td>
          <td class="bg5">
            <input type="radio" name="color" value="bg5" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
          </td>
          <td class="bg6">
            <input type="radio" name="color" value="bg6" onchange="valid('tT')" onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
          </td>
        </tr>
      </table>
    </fieldset>
    <fieldset>
      <legend>[*statistics]</legend>
      <label><input type="radio" id="tAAD" name="opt" value="aad" onchange="valid('tL')"
              onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
              [*age at death]
              ([M/F]0, [M/F]1)</label><br%/>
      <label><input type="radio" id="tAFM" name="opt" value="afm" onchange="valid('tL')"
              onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
              [*age]
              ([father/mother]0, [father/mother]1)</label><br%/>
      <label><input type="radio" id="tBMDM" name="opt" value="bmdm" onchange="valid('tL')"
              onkeydown="if (event.keyCode == 13) javascript:document.desmenu.submit();"%/>
              [*birth], [death]
              ([M/F]0, [M/F]1) / [year/month/day]1</label><br%/>
    </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>
