Merge commit 'origin/master' into fusionax
[platal.git] / templates / profile / general.searchname.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2008 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 <span class="flags">
24     <input type="checkbox"
25         {if $sn.pub neq 'private'} checked="checked"{/if}
26         {if $sn.pub eq 'always public'} disabled="disabled"{else} name="search_name[{$i}][pub]"{/if}/>
27     {icon name="flag_green" title="site public"}
28 </span>&nbsp;
29 <input type="text" name="search_name[{$i}][name]" value="{$sn.search_name}" size="30"/>
30 <select name="search_name[{$i}][type]">
31   <option value="firstname"{if $sn.name_type eq 'firstname'} selected="selected"{/if}>PrĂ©nom</option>
32   <option value="lastname"{if $sn.name_type eq 'lastname'} selected="selected"{/if}>Nom de famille</option>
33   <option value="surname"{if $sn.name_type eq 'surname'} selected="selected"{/if}>Surnom</option>
34 </select>
35 {if $sn.pub neq 'always public'}
36   <a href="javascript:removeSearchName({$i})">
37     {icon name=cross title="Supprimer ce nom de recherche"}
38   </a>
39   {if $newsn}
40     <span style="display:none" id="search_name_{$i}_new">Nouveau</span>
41   {else}
42     <input type="hidden" name="search_name[{$i}][removed]" value=""/>
43   {/if}
44 {else}
45     {icon name="null"}
46 {/if}