<!-- $Id: templm/menu_search.txt v7.0 08/02/2016 05:44:45 $ -->
%include;js_perso_accesskey
%define;lang(x)
  %apply;nth%with;
    /af/bg/br/ca/cs/da/de/en/eo/es/et/fi/fr/he/is/it/lv/nl/no/oc/pl/pt/pt-br/ro/ru/sk/sl/sv/zh/
  %and;x%end;
%end;
%define;link_lang()
  %for;i;1;30;
    %let;l1;%apply;lang(i)%in;
    <a href="%prefix_base_password;templ=%evar.templ;&lang=%l1;&%suffix;" title="%apply;language_name(l1)" 
      style="%if;((bvar.default_lang=l1 and evar.lang="") or evar.lang=l1)background-color:%if;(bvar.css=1)#666;%else;#EEE;%end;%end;">
       %if;(bvar.show_flag = "yes")<img src="%image_prefix;/flags/l-%l1;.jpg" width="20" height="11" alt="flag" id="i%tt;" style="border:0"> %end;
       %l1; %apply;language_name(l1)</a>
  %end;
%end;
%let;lg;%lang;%end;
%in;
%define;bg(xx)
  %if;(evar.templ="xx")style="background-color:%if;(bvar.css=1)#666;%else;#EEE;%end;"%end;
%end;
%if;(not cancel_links and evar.m != "MOD_DATA_OK" and evar.m != "DEL_IND_OK" and evar.m != "DEL_FAM_OK" and evar.m != "NOTES" and evar.m != "MISC_NOTES" and evar.templ="templm" and evar.m!="RL")
  <div class="menu3" id="menu_search">
    %if;(referer != "")
      <span><a href="%referer;" title="[*back]">⇦</a></span>
    %end;
    %if;(evar.n != "" or evar.i != "" or evar.m !="")
      <span><a href="%prefix;" title="[*home]"> ⇧ </a></span>
    %end;
    %if;((evar.m="MOD_FAM" or evar.m="ADD_FAM" or evar.m="MOD_IND" or evar.m="S" or evar.m="") and (evar.n != "" or evar.i != "" or evar.ip !=""))
    <form id="ak" method="get" action="%action;">
      <span><input id="acckey" name="acckey" %laZ; %if;(evar.m!="A")autofocus%end; onkeypress="javascript:return acc_key(this,event,'sib_1','spo_1','chi_1_1','mod_ind','add_par','add_fam','mod_fam_1');"/>
        <span class="s_menu">
          %if;(evar.m = "MOD_IND")
          Alt+%lpc1k; [first name/first names]0<br>
          Alt+%lpc2k; [birth]<br>
          Alt+%lpc3k; [death]<br>
          Alt+%lpc4k; [add] [event/events]0<br>
          Alt+%lpc5k; [note/notes]1<br>
          Alt+%lpc6k; [relation/relations]1<br>
          Alt+%lpc7k; [title/titles]1<br>
          Alt+%lpcPk; [occupation/occupations]0<br>
          Alt+%lpcOk; [invert::event/events]1<br><br>
          %elseif;(evar.m ="MOD_FAM" or evar.m ="ADD_FAM")
          Alt+%lfc1k; [first name/first names]0 [father/mother]0<br>
          Alt+%lfc2k; [add] [child/children]0<br>
          Alt+%lfc3k; [date of marriage]/[relation/relations]0<br>
          Alt+%lfc4k; [add] [event/events]0<br>
          Alt+%lfc5k; [marriage notes]<br>
          Alt+%lfc6k; [source/sources]1<br>
          Alt+%lpcOk; [invert::event/events]1 [family/families]0<br><br>
          %else;
          (0) [spouse/spouses]1<br>
          (1) [siblings]<br>
          (2 3 4 5 6 7) [n° Sosa] [ancestor/ancestors]1<br>
          (8) [child/children]1<br>
          (9) [child/children]1 Sosa<br>
          (%laDk;) [difference between the two revisions]<br>
          (%laRk;) [relationship computing]<br>
          (%laSk;) [navigation with %t as Sosa reference:::xx]<br>
          (%laYk;) [tree]<br><br>
            %if;wizard;
            (%laAk;) [add::family/families]0<br>
            (%laFk;) [modify::family/families]0 1<br>
            (%laGk;) [modify::family/families]0 2<br>
            (%laHk;) [modify::family/families]0 3<br>
            (%laIk;) [send::image/images]0<br>
            (%laLk;) [add::parents]<br>
            (%laPk;) [modify::person/persons]0<br>
            %end;
          %end;
          (%laWk;) [search/case sensitive]0<br>
        </span>
      </span>
    </form>
    %end;
    <form method="get" action="%action;" onsubmit="return oS3();">
           %hidden;
           %if;(evar.m != "A")<input id="mS" type="hidden" name="m" value="S"/>%end;
           %if;(evar.t = "T")<input id="tT" type="hidden" name="t" value="T"/>
           <input id="v" type="hidden" name="v" value="%evar.v"/>%end;
           %if;(evar.m = "A")<input id="mA" type="hidden" name="m" value="A"/>%end;
           <input type="text" id="mSn" name="n" maxlength="200" accesskey="%laWk;" %if;((evar.i="" and evar.p="" and evar.n="") or evar.p!="" and evar.m!="ADD_FAM")autofocus%end;%sp;
             title="[*search/case sensitive]0[:]%nl;
                    [surname/surnames]0*%nl;
                    %if;(evar.t != "T")[public name]%nl;[alias]%nl;[n° Sosa]%end;
                    %nl;%nl;*[begin] [with]"
%(                   * [father/mother]0%nl;
                     + [father/mother]1%nl;
                     / [child/children]0 [Sosa]%nl;
                     - %apply;a_of_b%with;[spouse/spouses]0%and;[child/children]0 [Sosa]%end;
                      ×      +%nl;
                      \   /%nl;
                        n°     ÷+ = ×-
                          \   /%nl;
                            ÷      -
                              \   /%nl;
                                ÷÷

═╦════╦════╦════╗
 ║ /  ║ *  ║ -  ║
 ║  ÷2║  ×2║÷2+1║
═╩════╩════╬════╣
   8*   +9 ║ +  ║
      4    ║×2+1║
   2/   -3 ║    ║%)
             placeholder="[*search/case sensitive]0"
             onkeypress="javascript:return computeSosa(event,'mSn')" 
             /><input type="text" id="mSp" name="p" maxlength="200" 
             title="[*search/case sensitive]0 (%laWk;)[:]%nl;[first name/first names]0*%nl;n° index%nl;* = [starting with]"
             /><input id="hide_ie" tabindex="-1" type="submit" value="Ok" title="[*search/case sensitive]0 (W)"/>
    </form>
    <span class="r_btn">
    <a href="%if;(bvar.hide_advanced_request != "yes")%prefix;m=H;v=advanced%else;#%end;" 
    title="[*advanced request]0%nl;%nl;[*select]%nl;%if;(evar.templ != "")%evar.templ;%else;templ%end;">%if;(bvar.hide_advanced_request != "yes")🔍%else;templ%end;</a>
    %if;(evar.digest = "")
      <span class="s_menu" id="tpl">
        <a href="%prefix_set.all;templ=&%suffix;" %apply;bg("")>default</a>
        %( <a href="%prefix_set.all;templ=templa&%suffix;" %apply;bg("templa")>templa</a> %)
        %if;(wizard or bvar.wizard_passwd = "")
          <small><a href="%prefix;m=H;v=doc_templm">doc templm</a></small>
        %end;
      </span>
    %end;
    </span>
    <span class="r_btn">
      <a href="%if;(evar.i !="" or evar.n!="")%url;cgl=on%end;" 
      title="%if;(evar.i !="" or evar.n!="")[*cancel GeneWeb links] %nl;%nl;%end;[*select] %nl;%lang; %apply;language_name(lang)">%if;(evar.i !="" or evar.n!="")⇨%else;%lang;%end;</a>
      <span class="s_menu" id="lang">%apply;link_lang()</span>
    </span>
  </div>
  %if;(evar.em = "R" and (evar.et = "A" or evar.et = "M") and evar.select = "")
    <div class="menu">
      <span>
        <a href="%prefix;em=R;et=%evar.et;;i=%evar.ei;;ei=%evar.i;;image=%evar.image;;spouse=%evar.spouse;">[*relationship] B &harr; A</a>
        %if;(evar.et = "A")
          <a href="%prefix;em=R;et=M;i=%evar.i;;ei=%evar.ei;;image=%evar.image;;spouse=%evar.spouse;"
          >[*relationship by marriage]</a>
        %else;
          <a href="%prefix;em=R;et=A;i=%evar.i;;ei=%evar.ei;;image=%evar.image;;spouse=%evar.spouse;"
          >[*relationship link/relationship links]1</a>
        %end;
      </span>
    </div>
  %end;
%end;
