%doctype;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: welcome.txt,v 1.40 2007-08-04 07:22:30 ddr Exp $ -->
  <!-- Copyright (c) 2006-2007 INRIA -->
  <!-- Modified mickroue(a)yahoo.fr 20121105 templ=templm -->
  <title>Geneweb - %base.name;</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;
  %base_header;
  <script type="text/javascript">
  <!--
    function changeTri(xx) {
       var labelTriA = document.getElementById('labelTriA')
       var triA = document.getElementById('triA')
       var mNG = document.getElementById('mNG')
       var tP = document.getElementById('tP')
       var tN = document.getElementById('tN')
       var n = document.getElementById('n')
       
       triA.style.visibility=xx;
       labelTriA.style.visibility=xx;
       if(xx == 'visible' && triA.checked == true)
      {
        if(tP.checked == true) mNG.value='P';
        if(tN.checked == true) mNG.value='N';
        n.name='k';
      }
       if(xx == 'hidden' || triA.checked == false)
      {
       mNG.value='NG';
       n.name='n';
      }
    }

    function computeSosa(event,id)
    {
      var x = document.getElementById(id);
      var key = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
      var string = String.fromCharCode(key);
      
      if (x.value > 0)
      {
        switch (string)
        {
          case "*" : x.value = x.value * 2; return false; break;
          case "/" : x.value = parseInt(x.value / 2); return false; break;
        }
      }
    }
  -->
  </script>
</head>

%define;book_of(xx)
  [*book of %s:::xx]
%end;

%define;sosa_rel(xx)
  [<em>Sosa number</em> relative to %t:::xx]
%end;

%define;lang(xx)
  %apply;nth%with;
    /af/bg/br/ca/cs/da/de/en/eo/es/et/fi/fr/he/is/it/lv/nl/no/pl/pt/pt-br/ro/ru/sk/sl/sv/zh/
  %and;xx%end;
%end;

%define;link_lang(level,maxlev)
  <a href="%prefix_base;lang=%apply;lang(level)">%apply;lang(level)</a>
  %if;(level < maxlev)
    %apply;link_lang(level+1,maxlev)
  %end;
%end;

%define;disconnect(xx,yy)
  %if;(just_friend_wizard or bvar.xx_passwd != "" or bvar.xx_passwd_file != "")
      <em>yy
        %if;(user.ident != "")
          %sp;:%sp;%user.ident;
        %end;
      </em>
      <span style="font-size:70%%">(<a href="%prefix;w=">[disconnect]</a>)</span>
  %end;
%end;

<body%body_prop; id="welcome" onload="javascript:document.getElementById('n').focus();">

<div id="welcome_content-top">
  <div id="welcome_logo">
    <img src="%image_prefix;/gwlogo.png" alt="GeneWeb"%/>
  </div>
  <div id="welcome_title">
    <h1>%apply;capitalize(base.name) <small>(%base.nb_persons; [person/persons]1)</small>
      %if;(browsing_with_sosa_ref)
          <br%/><small>Sosa 1 : %sosa_ref;</small>
      %end;%nl;
    </h1>
  </div>
  <div id="welcome_user-info">
    %if;just_friend_wizard;
      <span style="color: red; font-size: bold;">
      [
en: Wizard rights are now suspended for maintenance.
fr: Les droits des magiciens sont actuellement suspendus pour maintenance.
]
      </span>
    %end;
    %if;(not friend and not wizard)
      %if;(not cgi and bvar.auth_file = "")
        [*access] : <a href="%prefix;w=w">[wizard/wizards/friend/friends/exterior]0</a>
          - <a href="%prefix;w=f">[wizard/wizards/friend/friends/exterior]2</a>
      %else;
        <form method="post" action="%action;">
          <div>
            %hidden;
            [*user/password/cancel]1 ([wizard/wizards/friend/friends/exterior]2/[wizard/wizards/friend/friends/exterior]0) :
            <input name="w" type="password" size="10" maxlength="200"%/>
            <input type="submit" value="Ok"%/>
          </div>
        </form>
      %end;
    %elseif;(bvar.wizard_passwd != "" or bvar.wizard_passwd_file != "")
      %if;(friend and (bvar.friend_passwd = "" and bvar.friend_passwd_file = ""))
        %if;(not cgi and bvar.auth_file = "")
          [*access] : <a href="%prefix;w=w">[wizard/wizards/friend/friends/exterior]0</a>        
        %elseif;(not just_friend_wizard)
          <form method="post" action="%action;">
            <div>
              %hidden;
              [*user/password/cancel]1 ([wizard/wizards/friend/friends/exterior]0) :
              <input name="w" type="password" size="10" maxlength="200"%/>
              <input type="submit" value="Ok"%/>
            </div>
          </form>
        %end; 
      %end;    
    %end; 
    %if;(wizard or friend)
      %if;(friend)
        %apply;disconnect("friend",[wizard/wizards/friend/friends/exterior]2)
      %else;
        %apply;disconnect("wizard",[wizard/wizards/friend/friends/exterior]0)
        %setup_link;
      %end;
    %end;
  </div>
  <div class="menu2">
    %if;has_referer;
      <a href="%referer;" title="[back]">&lt;&lt;</a>
    %end;
  </div>
</div>
  %if;(bvar.motd != "")
    <div id="welcome_motd">
      %apply;interp(bvar.motd)
    </div>
  %end;
<div id="welcome_content-left">
  <ul>
    %if;base.has_notes;
      <li>
        <a href="%prefix;m=NOTES">[note/notes]1</a>%base.title;
      </li>
    %end;
    %if;has_misc_notes;
      <li>
        <a href="%prefix;m=MISC_NOTES">[miscellaneous notes]…</a>
      </li>
    %end;
    %if;((bvar.wizard_passwd_file != "" or bvar.wizard_descr_file != "")
         and (wizard or wiznotes_dir_exists) and
             bvar.authorized_wizards_notes = "yes")
      <li>
        <a href="%prefix;m=WIZNOTES">%sq;
        [wizard/wizards/friend/friends/exterior]1 - [note/notes]1</a>
      </li>
    %end;
    <li>
      <a href="%prefix;m=FORUM">[database forum]</a>
    </li>
  </ul>
  <ul>
    <li>
      <a href="%prefix;m=STAT">[statistics]</a>
    </li>
    <li>
      <a href="%prefix;m=AN">[birthdays]</a>
    </li>
    <li>
      <a href="%prefix;m=AD">%sq;
      [anniversaries of dead people]</a>
    </li>
    <li>
      <a href="%prefix;m=AM">[anniversaries of marriage]</a>
    </li>
    <li>
      <a href="%prefix;m=CAL">[calendar/calendars]1</a>
    </li>

  </ul>
  <ul>
    %if;has_history;%nl;
      <li>
        <a href="%prefix;m=HIST;k=20">[history of updates]</a>
      </li>%sq;
    %end;%nl;
    %if;(wizard and (not base.has_notes or bvar.propose_add_family != "no"))
      %if;(bvar.propose_add_family != "no")
        <li>
          <a href="%prefix;m=ADD_FAM" onclick="window.open(this.href); return false;">[add::family/families]0</a><br%/>
        </li>
      %end;
      %if;(not base.has_notes)
        <li>
          <a href="%prefix;m=MOD_NOTES">[add::note/notes]0</a>
        </li>
      %end;
      %if;(wizard)
        <li>
          <a href="%prefix;m=MOD_DATA;data=place">%apply;book_of([places])</a>
        </li>
        <li>
          <a href="%prefix;m=MOD_DATA;data=src">%apply;book_of([source/sources]1)</a>
        </li>
        <li>
          <a href="%prefix;m=MOD_DATA;data=occu">%apply;book_of([occupation/occupations]1)</a>
        </li>
      %end;
    %end;
  </ul>
</div>

<div id="welcome_content-right">
  <div>
    <h2>[*search/case sensitive]0</h2>
    <ul style="clear: both;">
      <li>[first name/first names]1 :
        <a href="%prefix;m=P;tri=A">ABC</a>
        <a href="%prefix;m=P;tri=F">987</a>
      </li>
      <li>[surname/surnames]1 :
        <a href="%prefix;m=N;tri=A">ABC</a>
        <a href="%prefix;m=N;tri=F">987</a>
      </li>
       %if;(bvar.hide_advanced_request = "no")
        <li><a href="%prefix;m=H;v=advanced">[advanced request]</a></li>
      %end;
    </ul>
    <form id="welcome_form-person" method="get" action="%action;">
      <fieldset>
        %hidden;
        <input id="mNG" type="hidden" name="m" value="NG"%/>
        <label><input id="tPN" type="radio" name="t" value="PN" checked="checked"
                      onclick="changeTri('hidden')"
                %/><abbr title="[first name/first names]0/[surname/surnames]0, [public name], [alias], Sosa…">[person/persons]0</abbr></label>
        <label><input id="tP" type="radio" name="t" value="P" 
                      onclick="changeTri('visible')"%/>[first name/first names]0</label>
        <label><input id="tN" type="radio" name="t" value="N" 
                      onclick="changeTri('visible')"%/>[surname/surnames]0</label>
        <label id="labelTriA" style="visibility:hidden;">
               <input id="triA" type="checkbox" name="tri" value="A"
                      onclick="changeTri('visible')"%/>[starting with]</label>
        <br%/><input id="n" name="n" size="54" maxlength="200"
                     onkeypress="javascript:return computeSosa(event,'n')"%/>
        <input type="submit" value="Ok"%/>
      </fieldset>
    </form>
    %if;(bvar.propose_titles != "no")%nl;
      <form id="welcome_form-titles" method="get" action="%action;">
        <fieldset>
              %hidden;
              <input type="hidden" name="m" value="TT"%/>
              <div>
                <label>[title/titles]0<br%/>
                  <input name="t" size="25" maxlength="200"%/>
                </label><br%/>
                  <a href="%prefix;m=TT;t=">([all the titles])</a>
              </div>
              <div>
                <label>[estate]0<br%/>
                  <input name="p" size="25" maxlength="200"%/>%sq;
                </label>
                <input type="submit" value="Ok"%/>
                <br%/>
                <a href="%prefix;m=TT;p=*">([all the estates])</a>
              </div><br%/>
        </fieldset>
      </form>
    %end;
    %if;(bvar.propose_place_surnames != "no")%nl;
      <form id="welcome_form-place" method="get" action="%prefix;">
        <fieldset>
          %hidden;
          <legend>[place] / [surname/surnames]0</legend> 
          <input type="hidden" name="m" value="PS"%/>
          <label><input type="checkbox" name="bi" value="on" checked="checked"%/>[birth]</label>
          <label><input type="checkbox" name="bp" value="on"%/>[baptism]</label>
          <label><input type="checkbox" name="de" value="on"%/>[death]</label>
          <label><input type="checkbox" name="bu" value="on"%/>[burial]</label>
          <label><input type="checkbox" name="ma" value="on"%/>[marriage/marriages]0</label>
          <input type="submit" value="Ok"%/>
        </fieldset>
      </form>
    %end;
  </div>
</div>
<div id="welcome_lang">
  lang= %apply;link_lang(1,28)
</div>
<div id="welcome_content-bottom">
  %apply;interp([
af: Daar was %nb_accesses; besoeke, %nb_accesses_to_welcome; van hulle
    aan hierdie blad, sedert %start_date;.
bg: От %start_date; насам е имало %nb_accesses; посещения, от които
    %nb_accesses_to_welcome; са на настоящата страница.
br: gweladennoù a zo bet : %nb_accesses;, er bajenn-mañ :
    %nb_accesses_to_welcome;, abaoe an deiz-mañ : %start_date;.
ca: Hi ha hagut %nb_accesses; consultes, de les quals
    %nb_accesses_to_welcome; en aquesta pàgina, des del %start_date;.
cs: %nb_accesses; přístupů, z toho %nb_accesses_to_welcome; na tuto
    stránku, od %start_date;.
da: Der har været %nb_accesses; opslag, %nb_accesses_to_welcome;
    af dem på denne side, siden %start_date;.
de: Seit dem %start_date; gab es %nb_accesses; Zugriffe, davon
    %nb_accesses_to_welcome; auf diese Seite.
en: There have been %nb_accesses; accesses, %nb_accesses_to_welcome;%sp;
    of them to this page, since %start_date;.
eo: Estis %nb_accesses; alirejoj, el kiuj %nb_accesses_to_welcome; al
    ĉi tiu paĝo, ekde la %start_date;.
es: Ha habido %nb_accesses; consultas, de las cuales
    %nb_accesses_to_welcome; corresponden a esta página, desde
    el %start_date;.
et: Alates andmebaasi loomise päevast (%start_date;) on selle poole
    pöördutud %nb_accesses; korda, neist %nb_accesses_to_welcome; korda
    sellele lehele.
fi: Tähän mennessä %nb_accesses; tapahtumaa, joista
    %nb_accesses_to_welcome; tälle sivulle %start_date; jälkeen.
fr: Il y a eu %nb_accesses; consultations, dont %nb_accesses_to_welcome; à
    cette page, depuis le %start_date;.
he: היו %nb_accesses; כניסות, כולל %nb_accesses_to_welcome;
    כניסות לעמוד זה, מאז %start_date;.
is: Það hafa verið %nb_accesses; heimsóknir, %nb_accesses_to_welcome;
    af þeim á þessa síðu, síðan %start_date;.
it: Dal %start_date; ci sono stati %nb_accesses; accessi,
    %nb_accesses_to_welcome; dei quali a questa pagina.
lv: Kopš %D datu bāze ir apmeklēta %nb_accesses; reizes,
    %nb_accesses_to_welcome; no tiem ir bijuši šinī lappusē. 
nl: Deze paginas zijn sinds %start_date; reeds %nb_accesses; maal
    bezocht, waaronder %nb_accesses_to_welcome; maal deze verwelkomingspagina.
no: Det har vært %nb_accesses; aksesser, %nb_accesses_to_welcome;
    av dem til denne siden, siden %start_date;.
pl: Baza została od %start_date; odwiedzona %nb_accesses; razy (w tym
    %nb_accesses_to_welcome; razy strona tytułowa).
pt: Houve %nb_accesses; consultas, das quais %nb_accesses_to_welcome;
    foram a esta página, desde %start_date;.
ro: Au avut loc %nb_accesses; accese din care %nb_accesses_to_welcome;
    pe aceatsa pagina din %start_date;
ru: Всего было %nb_accesses; обращений, из них %nb_accesses_to_welcome;
    к этой странице, начиная с %start_date;.
sl: %nb_accesses; dostopov, %nb_accesses_to_welcome; od teh na to stran,
    od %start_date;.
sv: Det har varit %nb_accesses; åtkomster, %nb_accesses_to_welcome;
    av dem till den här sidan, sedan %start_date;.
zh: 已经有 %nb_accesses; 次访问数据库，其中 %nb_accesses_to_welcome;
    次访问本主页， 自从 %start_date;。
])%nl;
</div>
  %base_trailer;
  %copyright;
</body>
</html>
