%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 -->
  <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 http-equiv="Content-Type" content="text/html; charset=%charset;"%/>
  <meta http-equiv="Content-Style-Type" content="text/css"%/>
  <script type="text/javascript" src="jquery_1_9_1_min.js"></script>
  %include.favicon;
  %include.css;
  %base_header;
</head>
<body%body_prop;>
%message_to_wizard;

<script type="text/javascript"><!--

function long_display_options () {
  /* On décoche toutes les options. */
  $('input[type=checkbox]').prop('checked', false);

  /* On ne coche que celle qu'on veut. */
  $('input[type=checkbox][id=ld_notes]').prop('checked', true);
  $('input[type=checkbox][id=ld_src]').prop('checked', true);
}

function table_options () {
  /* On décoche toutes les options. */
  $('input[type=checkbox]').prop('checked', false);

  /* On ne coche que celle qu'on veut. */
  $('input[type=checkbox][id=t_birth]').prop('checked', true);
  $('input[type=checkbox][id=t_marr]').prop('checked', true);
  $('input[type=checkbox][id=t_marr_date]').prop('checked', true);
  $('input[type=checkbox][id=t_death]').prop('checked', true);
  $('input[type=checkbox][id=t_gen]').prop('checked', true);
}

function no_options () {
  /* On décoche toutes les options. */
  $('input[type=checkbox]').prop('checked', false);
}

--></script>

<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>

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

%if;not cancel_links;
  <table style="float:%right;"><tr><td>
    %if;(referer != "")
      <a href="%referer;"><img
       src="%image_prefix;/left.png"%wid_hei;left.png; 
       alt="&lt;&lt;" title="&lt;&lt;"%/></a>
    %end;
    <a href="%prefix;"><img%sp;
    src="%image_prefix;/up.png"%wid_hei;up.png; 
    alt="^^" title="^^"%/></a>
  </td></tr></table>
%end;



<form 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>

  <div style="text-align:center;"><div style="display:inline-block; text-align:left; padding-bottom: 25px;">
    <div class="descends_menu_list">
      <label>
        <input type="radio" name="t" value="L" checked="checked" onclick="long_display_options ()"%/>
        [*list/list (ancestors)]0
      </label>
      %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;
      <br%/>
      <label>
        <input type="radio" name="t" value="M" onclick="long_display_options ()"%/>
        [*male line/female line]0
      </label>
      <br%/>
      <label>
        <input type="radio" name="t" value="F" onclick="long_display_options ()"%/>
        [*male line/female line]1
      </label>
      <div class="descends_menu_option_div">
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" name="alwsurn" value="yes"%/>
            [*with::surname/surnames]1
          </label>
        </p>
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" name="rel" value="on"%/>
            [*relation/relations]1
          </label>
          <label>
            <input type="checkbox" name="witn" value="on"%/>
            [*witness/witnesses]1 ([marriage/marriages]1)
          </label>
        </p>
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" id="ld_notes" name="notes" value="on" checked="checked"%/>
            [*note/notes]1
          </label>
          <label>
            <input type="checkbox" id="ld_src" name="src" value="on" checked="checked"%/>
            [*source/sources]1
          </label>
          <label>
            <input type="checkbox" name="inline" value="on"%/>
            [*display notes/sources inline]
          </label>
        </p>
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" name="comm" value="on"%/>
            [*comment] ([marriage/marriages]1)
          </label>
        </p>
      </div>

      <label>
        <input type="radio" name="t" value="H" onclick="table_options ()"%/>
        [*table]
      </label>
      %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;
      <div class="descends_menu_option_div">
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" id="t_birth" name="birth" value="on"%/>
            [*date of birth]
          </label>
          <label>
            <input type="checkbox" name="birth_place" value="on"%/>
            [*where born]
          </label>
        </p>
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" id="t_marr" name="marr" value="on"%/>
            [*spouse/spouses]1
          </label>
          <label>
            <input type="checkbox" id="t_marr_date" name="marr_date" value="on"%/>
            [*date of marriage]
          </label>
          <label>
            <input type="checkbox" name="marr_place" value="on"%/>
            [*where married]
          </label>
          <label>
            <input type="checkbox" name="child" value="on"%/>
            [*number of children]
          </label>
        </p>
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" id="t_death" name="death" value="on"%/>
            [*date of death]
          </label>
          <label>
            <input type="checkbox" name="death_place" value="on"%/>
            [*where dead]
          </label>
          <label>
            <input type="checkbox" name="death_age" value="on"%/>
            [*age at death]
          </label>
        </p>
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" name="occu" value="on"%/>
            [*occupation/occupations]1
          </label>
        </p>
        <p class="descends_menu_option_p">
          <label>
            <input type="checkbox" id="t_gen" name="gen" value="on"%/>
            [*display generation]
          </label>
        </p>
      </div>
    </div>

    <div class="descends_menu_tree">
      <label>
        <input type="radio" name="t" value="T" onclick="no_options ()"%/>
        [*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>
      <div class="descends_menu_option_div">
        <label>
          <input type="checkbox" name="image" value="on"%/>
          [*image/images]1
        </label>
        <br%/>
        <label>
          [*border]
          <input name="bd" size="1" maxlength="2" value="0"%/>
        </label>
        <br%/>
        <table cellpadding="0" cellspacing="0">
          <tr>
            <td align="%left;">[*color]</td>
            <td>
              <input type="radio" name="color" value="" checked="checked"%/>
            </td>
            <td class="bg1">
              <input type="radio" name="color" value="bg1"%/>
            </td>
            <td class="bg2">
              <input type="radio" name="color" value="bg2"%/>
            </td>
            <td class="bg3">
              <input type="radio" name="color" value="bg3"%/>
            </td>
            <td class="bg4">
              <input type="radio" name="color" value="bg4"%/>
            </td>
            <td class="bg5">
              <input type="radio" name="color" value="bg5"%/>
            </td>
            <td class="bg6">
              <input type="radio" name="color" value="bg6"%/>
            </td>
          </tr>
        </table>
      </div>
    </div>

    <div class="descends_menu_other">
      <label>
        <input type="radio" name="t" value="S" onclick="no_options ()"%/>
        [*descendants at the generation]
      </label>
      <br%/>
      <label>
        <input type="radio" name="t" value="N" onclick="no_options ()"%/>
        [*families with encoding]
      </label>
      <br%/>
      <label>
        <input type="radio" name="t" value="G" onclick="no_options ()"%/>
        [*index of the descendants]
      </label>
      <br%/>
      <label>
        <input type="radio" name="t" value="C" onclick="no_options ()"%/>
        [*index of the spouses (non descendants)]
      </label>
      <br%/>
      <label>
        <input type="radio" name="t" value="A" onclick="no_options ()"%/>
        d'Aboville
      </label>
      %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;
      <div class="descends_menu_option_div">
        <label>
          <input type="checkbox" name="num" value="on"%/>
          [display Aboville number]
        </label>
      </div>
    </div>
  </div></div>

  <div class="descends_menu_valid">
    <label>
      <input type="checkbox" name="cgl" value="on"%/>
      [*cancel GeneWeb links]
    </label><br%/><br%/>
    <select name="v">
      %foreach;descendant_level;
        <option value="%level;"%if(level = 0) 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>
    <input type="submit" value="Ok"%/>
  </div>
</form>

<table border="%border;" width="100%%"><tr><td align="center">
<table border="%border;">
<tr>
  <td align="center">
    <table border="%border;" width="100%%">
      <tr>
        <td align="%left;">
          <br%/><br%/>
        </td>
        <td align="%left;" valign="top">
        </td>
        <td align="%left;" valign="top">
          <br%/>
        </td>
      </tr>
      <tr align="%left;">
        <td colspan="3" align="center">
          <br%/>
          <br%/>
        </td>
      </tr>
    </table>
  </form>
  </td>
</tr>
</table>
</td></tr></table>

%base_trailer;
%copyright;
</body>
</html>
