<!DOCTYPE html>
<html lang="%lang;">
<head>
  <!-- $Id: desmenu.txt v 7.00 23/02/2017 02:23:11 $ -->
  <!-- Copyright (c) 1998-2017 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 charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="shortcut icon" href="%image_prefix;/favicon_gwd.png">
  %include;favicon
  %include;css
  %include;hed
</head>
<body%body_prop;>
%message_to_wizard;
<div class="container-fluid">
%include;perso_header
<script><!--
function no_options () {
  /* On décoche toutes les options. */
  $('input[type=checkbox]').prop('checked', false);
}
function long_display_options () {
  /* On ne coche que celle qu'on veut. */%nn;
  %if;(bvar.always_surname="yes")
    $('input[type=checkbox][id=ld_alwsurn]').prop('checked', true);
  %end;
  $('input[type=checkbox][id=ld_notes]').prop('checked', true);
  $('input[type=checkbox][id=ld_src]').prop('checked', true);
}
function table_options () {
  /* On ne coche que celle qu'on veut. */
  $('input[type=checkbox][id=t_num_table]').prop('checked', true);
  $('input[type=checkbox][id=t_birth]').prop('checked', true);
  $('input[type=checkbox][id=t_birth_place]').prop('checked', true);
  $('input[type=checkbox][id=t_marr]').prop('disabled',false);
  $('input[type=checkbox][id=t_marr]').prop('checked', true);
  $('input[type=hidden][id=t_marr_on]').val('');
  $('input[type=checkbox][id=t_marr_place]').prop('checked', true);
  $('input[type=checkbox][id=t_marr_date]').prop('checked', true);
  $('input[type=checkbox][id=t_child]').prop('checked', true);
  $('input[type=checkbox][id=t_death]').prop('checked', true);
  $('input[type=checkbox][id=t_death_place]').prop('checked', true);
  $('input[type=checkbox][id=t_occu]').prop('checked', true);
  $('input[type=checkbox][id=t_gen]').prop('checked', true);
}
function table_spouse_disabled () {
  $('input[type=checkbox][id=t_marr]').prop('disabled',true);
  $('input[type=hidden][id=t_marr_on]').val('on');
}
--></script>
<h1 class="text-center my-3">%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;

<form method="get" action="%action;">
  <div class="row mx-5 mt-2">
    <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 class="col-md-7">
      <label>
        <input type="radio" name="t" value="L" checked="checked" onclick="no_options ();long_display_options ()"%/>
         <span class="fa fa-share-alt fa-fw"></span> [*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="no_options ();long_display_options ()"%/>
         <span class="fa fa-male fa-fw"></span> [*male line/female line]0
      </label>
      <br%/>
      <label>
        <input type="radio" name="t" value="F" onclick="no_options ();long_display_options ()"%/>
         <span class="fa fa-female fa-fw"></span> [*male line/female line]1
      </label>
      <div class="ml-4">
        <p>
          <label>
            <input type="checkbox" id="ld_alwsurn" name="alwsurn" value="yes"%nn;
              %if;(bvar.always_surname="yes") checked="checked"%end;%/>
            [*with::surname/surnames]1
          </label>
        </p>
        <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>
          <label>
            <input type="checkbox" id="ld_notes" name="notes" value="on" checked="checked"%/>
            [*individual notes]
          </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>
          <label>
            <input type="checkbox" name="comm" value="on"%/>
            [*comment] ([marriage/marriages]1)
          </label>
        </p>
      </div>
%(      <label>
        <input type="radio" name="t" value="K" onclick="no_options ();table_options ()"%/>
         <span class="fa fa-table fa-fw"></span> [*table]
      </label>
      <br>%)
      <label>
        <input type="radio" name="t" value="H" onclick="no_options ();table_options ()"%/>
         <span class="fa fa-table fa-fw"></span> [*table]
      </label>
      <br>
      <label>
        <input type="radio" name="t" value="I" onclick="no_options ();table_options ();table_spouse_disabled ()"%/>
         <span class="fa fa-table fa-fw"></span> [*table] [with] [spouses info]
      </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="ml-4">
        <p>
          <label>
            <input type="checkbox" id="t_num_table" name="num" value="on"%/>
            [*display Aboville number]
          </label>
          <label>
            <input type="checkbox" id="t_nowrap" name="nowrap" value="on"%/>
            No line break in names
          </label>
          <label>
            <input type="checkbox" id="t_title" name="title" value="on"%/>
            [*title/titles]0
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="t_birth" name="birth" value="on"%/>
            [*date of birth]
          </label>
          <label>
            <input type="checkbox" id="t_birth_place" name="birth_place" value="on"%/>
            [*where born]
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="t_baptism" name="baptism" value="on"%/>
            [*date of baptism]
          </label>
          <label>
            <input type="checkbox" id="t_baptism_place" name="baptism_place" value="on"%/>
            [*baptism place]
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="t_marr" name="marr" value="on"%/>
            [*spouse/spouses]1
          </label>
        </p>
        <p>
          <input type="hidden" id="t_marr_on" name="marr" value=""%/>
          <label>
            <input type="checkbox" id="t_marr_date" name="marr_date" value="on"%/>
            [*date of marriage]
          </label>
          <label>
            <input type="checkbox" id="t_marr_place" name="marr_place" value="on"%/>
            [*where married]
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="t_child" name="child" value="on"%/>
            [*number of children]
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="t_death" name="death" value="on"%/>
            [*date of death]
          </label>
          <label>
            <input type="checkbox" id="t_death_place" name="death_place" value="on"%/>
            [*where dead]
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="t_burial" name="burial" value="on"%/>
            [*date of burial]
          </label>
          <label>
            <input type="checkbox" id="t_burial_place" name="burial_place" value="on"%/>
            [*burial place]
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="t_age" name="age" value="on"%/>
            [*age]
          </label>
          <label>
            <input type="checkbox" id="t_occu" name="occu" value="on"%/>
            [*occupation/occupations]1
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="t_gen" name="gen" value="on"%/>
            [*display generation]
          </label>
        </p>
        <p>
          <label>
            <input type="checkbox" id="only" name="only" value="on"%/>
              [*only the generation selected]
            </label>
          <input type="hidden" name="ns" value="on"%/>
          <input type="hidden" name="image" value="on"%/>
        </p>
      </div>
    </div>
    <div class="col-md-5">
      <label>
        <input type="radio" name="t" value="T" onclick="no_options ()"%/>
         <span class="fa fa-sitemap fa-fw"></span> [*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="ml-4">
        <label>
          <input type="checkbox" name="image" value="on"%/>
          [*image/images]1
        </label>
        <br%/>
        <label>
          [*border]
          <input type="number" class="form-control" name="bd" min="0" max="50" value="0"%/>
        </label>
        <br%/>
        <table style="padding:0">
          <tr>
            <td class="text-%left;">[*color]</td>
            <td class="ml-1">
              <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>
      <label class="mt-2">
        <input type="radio" name="t" value="S" onclick="no_options ()"%/>
         <span class="fa fa-sort-alpha-down fa-fw"></span> [*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="ml-4">
        <label>
          <input type="checkbox" name="num" value="on"%/>
          [display Aboville number]
        </label>
      </div>
    </div>
  </div>
  <div class="row">
    <div class="form-group text-center mx-auto">
      <label>
        <input type="checkbox" name="cgl" value="on"%/>
        [*cancel GeneWeb links]
      </label>
      <div class="form-inline">
        <select class="form-control" name="v">
          %foreach;descendant_level;
            <option value="%level;" %if;(level=0)disabled 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" class="btn btn-outline-secondary" value="Ok">
      </div>
    </div>
  </div>
</form>
%include;trl
%include;copyr
</div>
%include;js
</body>
</html>
