%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: updmenu.txt,v 5.10 2007-07-25 15:01:02 ddr Exp $ -->
  <!-- Copyright (c) 1998-2007 INRIA -->
  <!-- Modified mickroue(a)yahoo.fr 20120712 templ=templm -->
  <title>[*update]</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"%/>
  %include.css;
  <style type="text/css">
    tr {
     text-align: left;
    }
  </style>
  %base_header;
</head>
<body%body_prop; id="menutxt">
%message_to_wizard;

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

<h1>%nn;
  [*update]<br%/>
  %first_name;
  .%if;(first_name = "?" or surname = "?")%index;%else;%occ;%end; %surname;
</h1>

<table border="%border;" width="90%%">
<tr>
  <th>[*person/persons]0</th>
  <th>[*family/families]1</th>
</tr>
<tr>
  <td>
    <br%/>
    <a href="%prefix;m=MOD_IND;i=%index;" title="[*modify::person/persons]0 (P)" accesskey="P">[*modify::] (P)</a>
    <br%/>
    %if;(bvar.can_send_image != "no" and image = "" and first_name != "?"
         and surname != "?")
      <a href="%prefix;m=SND_IMAGE;i=%index;">[*send::image/images]0</a>
      <br%/>
      %if;(auto_image_file_name != "")
        <a href="%prefix;m=DEL_IMAGE;i=%index;">[*delete::image/images]0</a>
        <br%/>
      %end;
    %end;
    <br%/>
    <a href="%prefix;m=DEL_IND;i=%index;">[*delete::]</a>
    <br%/>
    <br%/>
    <a href="%prefix;m=MRG;i=%index;">[*merge::]</a>
    <br%/>
    %if;(not has_parents and first_name != "?" and surname != "?")
      <br%/>
      <a href="%prefix;m=ADD_PAR;ip=%index;">[*add::parents]</a>
      <br%/>
    %end;
  </td>
  <td>
    %foreach;family;
      %if;(family_cnt != 1)
        <a href="%prefix;m=INV_FAM;i=%index;;f=%family.index;">[*invert]</a>
        <br%/>
        %if;(family.father.index = prev_family.father.index
         and family.mother.index = prev_family.mother.index)
          <a href=%nn;
          "%prefix;m=MRG_FAM;i=%prev_family.index;;i2=%family.index;;ip=%index;">%nn;
          [*merge::]</a>
          <br%/>
        %end;
      %end;
      <a href="%prefix;m=MOD_FAM;i=%family.index;;ip=%index;
       " %if;(nb_families = 1) title="[*modify::family/families]0 (F)" accesskey="F"%end;>%nn;
      [*modify::family/families]0%if;(nb_families = 1) (F)%end;</a>
      <em>[with] %spouse.first_name;.%spouse.occ; %spouse.surname;</em>
      <br%/>
      <a href="%prefix;m=DEL_FAM;i=%family.index;;ip=%index">%nn;
      [*delete::family/families]0</a>
      <em>[with] %spouse.first_name;.%spouse.occ; %spouse.surname;</em>
      <br%/>
    %end;
    <br%/>
    %if;((first_name = "?" or surname = "?") and
         (nb_families != 0 or has_parents))
    %elseif;(not is_male and not is_female)
      <a href="%prefix;m=ADD_FAM;ip=%index;;sex=M">%nn;
      [*add::family/families]0 ([M/F]0)</a>
      <br%/>
      <a href="%prefix;m=ADD_FAM;ip=%index;;sex=F">%nn;
      [*add::family/families]0 ([M/F]1)</a>
      <br%/>
    %else;
      <a href="%prefix;m=ADD_FAM;ip=%index;" title="[add::family/families]0 (A)" accesskey="A">%nn;
      [*add::family/families]0 (A)</a>
      <br%/>
    %end;
    %if;(nb_children != 0)
      <br%/>
      <a href="%prefix;m=CHG_CHN;ip=%index;">[*change children's names]</a>
    %end;
    %if;has_possible_duplications;
      <br%/>
      <a href="%prefix;m=MRG_DUP;ip=%index;">[*merge::possible duplications]</a>
    %end;
  </td>
</tr>
</table>

%define;hint(xx)
  [*to add a child to a family, use "%s":::xx]
%end;

%if;(nb_families != 0)
  <p>
    %apply;hint([*modify::family/families]0)
    <br%/>
  </p>
%end;

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