mise en avant du nom d'épouse
authorx2000chevalier <x2000chevalier>
Sun, 10 Oct 2004 08:57:55 +0000 (08:57 +0000)
committerx2000chevalier <x2000chevalier>
Sun, 10 Oct 2004 08:57:55 +0000 (08:57 +0000)
htdocs/fiche.php
templates/fiche.tpl

index 83a44df..26c4dfb 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: fiche.php,v 1.13 2004-10-10 08:38:59 x2000chevalier Exp $
+        $Id: fiche.php,v 1.14 2004-10-10 08:57:55 x2000chevalier Exp $
  ***************************************************************************/
 
 
@@ -87,7 +87,10 @@ $page->assign('mobile', $mobile);
 $page->assign('web', $web);
 $page->assign('libre', $libre);
 
-$page->assign('xorg_title', "$prenom $nom");
+if (empty($epouse))
+       $page->assign('xorg_title', "$prenom $nom");
+else
+       $page->assign('xorg_title', "$prenom $epouse");
 
 
 // reformatage is_contact
index 4607fdc..0b1f331 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: fiche.tpl,v 1.13 2004-10-10 08:38:58 x2000chevalier Exp $
+        $Id: fiche.tpl,v 1.14 2004-10-10 08:57:56 x2000chevalier Exp $
  ***************************************************************************}
 
 
@@ -25,7 +25,7 @@
 <div id="fiche">
 
 <div id="fiche_identite">
-  <div class="civilite">{$prenom} {$nom}
+  <div class="civilite">{$prenom} {if $epouse eq ""}{$nom}{else}{$epouse} ({$nom}){/if}
     <a href="vcard.php/{$forlife}.vcf?x={$user_id}"><img src="images/vcard.png" alt="Afficher la carte de visite" /></a>&nbsp;
     {if !$is_contact}
     <a href="javascript:x()"  onclick="popWin('mescontacts.php?action=ajouter&amp;user={$forlife}')"><img src="images/ajouter.gif" alt="Ajouter parmi mes contacts" /></a>&nbsp;