From edfaa5ed758760df9a941e7b82cfa241f05a311a Mon Sep 17 00:00:00 2001 From: x2000bedo Date: Sat, 30 Oct 2004 09:09:02 +0000 Subject: [PATCH] Closes FS #100 + A funny feature : opening the add/remove contact page in the main window of the site x.org Should we keep it or should we open a new window each time ? --- htdocs/javascript/popwin.js.php | 7 +++++++ templates/fiche.tpl | 16 +++++++++++----- templates/include/minifiche.tpl | 4 ++-- templates/include/minifiche_pvt.tpl | 5 +++-- 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/htdocs/javascript/popwin.js.php b/htdocs/javascript/popwin.js.php index c019b6f..f2373e5 100644 --- a/htdocs/javascript/popwin.js.php +++ b/htdocs/javascript/popwin.js.php @@ -45,4 +45,11 @@ function popWin(theURL) { function popWin2(theURL) { popupWin(theURL,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=200,height=100'); } +function popSimple(theURL) { + popupWin(theURL,''); +} function x() { return; } + +function remote(url){ + window.opener.location=url +} diff --git a/templates/fiche.tpl b/templates/fiche.tpl index 8d3eebb..12d26d6 100644 --- a/templates/fiche.tpl +++ b/templates/fiche.tpl @@ -17,10 +17,16 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: fiche.tpl,v 1.18 2004-10-29 02:11:05 x2000habouzit Exp $ + $Id: fiche.tpl,v 1.19 2004-10-30 09:09:04 x2000bedo Exp $ ***************************************************************************} - +{literal} + +{/literal} {dynamic}
@@ -31,11 +37,11 @@ Afficher la carte de visite {if !$is_contact} - + Ajouter à mes contacts {else} - + Retirer de mes contacts {/if} @@ -57,7 +63,7 @@ {if $section}Section : {$section}
{/if} {if $binets}Binet(s) : {$binets}
{/if} {if $groupes}Groupe(s) X : {$groupes|smarty:nodefaults}
{/if} - {if $web}Site Web :
{$web}
{/if} + {if $web}Site Web :
{$web}
{/if} {if $libre}
Commentaires :
{$libre|nl2br}{/if}
{if $adr|@count > 0} diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index 0d8734e..e8b51bf 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -17,7 +17,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: minifiche.tpl,v 1.9 2004-10-29 13:26:15 x2000habouzit Exp $ + $Id: minifiche.tpl,v 1.10 2004-10-30 09:09:07 x2000bedo Exp $ ***************************************************************************} @@ -26,7 +26,7 @@ {if $c.sexe}•{/if} {min_auth level="cookie"} {if !$c.dcd && $inscrit} - + {/if} {/min_auth} {if $c.epouse}{$c.epouse} {$c.prenom}
(née {$c.nom}){else}{$c.nom} {$c.prenom}{/if} diff --git a/templates/include/minifiche_pvt.tpl b/templates/include/minifiche_pvt.tpl index 09c171a..1eb7542 100644 --- a/templates/include/minifiche_pvt.tpl +++ b/templates/include/minifiche_pvt.tpl @@ -17,13 +17,14 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: minifiche_pvt.tpl,v 1.7 2004-10-28 13:30:27 x2000habouzit Exp $ + $Id: minifiche_pvt.tpl,v 1.8 2004-10-30 09:09:07 x2000bedo Exp $ ***************************************************************************} {if $inscrit==1}
- + Afficher la fiche -- 2.1.4