elegant way to solve #199 and #100
authorx2000habouzit <x2000habouzit>
Sat, 13 Nov 2004 15:24:59 +0000 (15:24 +0000)
committerx2000habouzit <x2000habouzit>
Sat, 13 Nov 2004 15:24:59 +0000 (15:24 +0000)
24 files changed:
htdocs/javascript/popups.js [new file with mode: 0644]
htdocs/javascript/popwin.js.php
templates/carnet/mescontacts.tpl
templates/carnet/notifs.tpl
templates/docs/contacts.tpl
templates/docs/convention_ax.tpl
templates/docs/doc_forums.tpl
templates/docs/en-cours.tpl
templates/docs/services.tpl
templates/fiche.tpl
templates/marketing/utilisateurs_edit.tpl
templates/paiment/index.tpl
templates/skin/common.header.tpl
templates/skin/default.tpl
templates/skin/espace.tpl
templates/skin/humlinux.tpl
templates/skin/linux.tpl
templates/skin/liteskin.tpl
templates/skin/nbviolet.tpl
templates/skin/newxorg.tpl
templates/skin/oldtimes.tpl
templates/skin/sharky.tpl
templates/skin/spectral.tpl
templates/skin/trapped.tpl

diff --git a/htdocs/javascript/popups.js b/htdocs/javascript/popups.js
new file mode 100644 (file)
index 0000000..0a2e5d4
--- /dev/null
@@ -0,0 +1,33 @@
+/***************************************************************************
+ *  Copyright (C) 2003-2004 Polytechnique.org                              *
+ *  http://opensource.polytechnique.org/                                   *
+ *                                                                         *
+ *  This program is free software; you can redistribute it and/or modify   *
+ *  it under the terms of the GNU General Public License as published by   *
+ *  the Free Software Foundation; either version 2 of the License, or      *
+ *  (at your option) any later version.                                    *
+ *                                                                         *
+ *  This program is distributed in the hope that it will be useful,        *
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+ *  GNU General Public License for more details.                           *
+ *                                                                         *
+ *  You should have received a copy of the GNU General Public License      *
+ *  along with this program; if not, write to the Free Software            *
+ *  Foundation, Inc.,                                                      *
+ *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
+ ***************************************************************************/
+
+function auto_links() {
+    nodes = document.getElementsByTagName('a');
+    fqdn = document.URL;
+    fqdn = fqdn.replace(/^https?:\/\/([^\/]*)\/.*$/,'$1');
+    for(var i=0; i<nodes.length; i++) {
+       node = nodes[i];
+       if(!node.href || node.className == 'xdx') continue;
+       if(node.href.indexOf(fqdn)<0 || node.className == 'popup') {
+           node.title='foo';
+           node.onclick = function () { window.open(this.href); return false; };
+       }
+    }
+}
index f2373e5..2cd4092 100644 (file)
@@ -42,14 +42,5 @@ function popupWin(theURL,theSize) {
 function popWin(theURL) {
     popupWin(theURL,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=900,height=700');
 }
-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
-}
index ea182d6..bbeb552 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: mescontacts.tpl,v 1.1 2004-11-04 15:33:28 x2000habouzit Exp $
+        $Id: mescontacts.tpl,v 1.2 2004-11-13 15:25:00 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -44,8 +44,8 @@
 {if $nb_contacts || $trombi}
 <p>
   Pour récupérer ta liste de contacts dans un PDF imprimable :<br />
-  [<a href="mescontacts_pdf.php/mes_contacts.pdf?order=promo" onclick="return popup(this)"><strong>Triée par promo</strong></a>]
-  [<a href="mescontacts_pdf.php/mes_contacts.pdf" onclick="return popup(this)"><strong>Triée par noms</strong></a>]
+  [<a href="mescontacts_pdf.php/mes_contacts.pdf?order=promo" class='popup'><strong>Triée par promo</strong></a>]
+  [<a href="mescontacts_pdf.php/mes_contacts.pdf" class='popup'><strong>Triée par noms</strong></a>]
 </p>
 
 {if $trombi}
index 3691e80..a38bf1d 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: notifs.tpl,v 1.15 2004-11-07 20:56:27 x2000habouzit Exp $
+        $Id: notifs.tpl,v 1.16 2004-11-13 15:25:00 x2000habouzit Exp $
  ***************************************************************************}
 
 {dynamic}
@@ -99,7 +99,7 @@ Si un non-inscrit que tu surveille s'inscrit, il sera automatiquement ajout
 </p>
 
 <p>
-Pour surveiller des membres non-inscrits, il faut passer par la <a href="{"search.php"|url}" onclick='return popup(this)'>recherche</a>
+Pour surveiller des membres non-inscrits, il faut passer par la <a href="{"search.php"|url}" class='popup'>recherche</a>
 et cliquer sur les icones <img src="{"images/ajouter.gif"|url}" alt="Ajouter" /> pour les ajouter à cette liste
 </p>
 
index 1e3675e..c0c28d1 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: contacts.tpl,v 1.12 2004-11-13 14:43:23 x2002bobillot Exp $
+        $Id: contacts.tpl,v 1.13 2004-11-13 15:25:00 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -193,7 +193,7 @@ de contacter l'Amicale des X 
 </p>
 <p>
 Pour toute demande qui concerne le recrutement de polytechniciens, vous pouvez consulter
-<a onclick="return popup(this);" href="http://www.manageurs.com/?langue=fr"><strong>le site Manageurs.com, dédié aux problématique d'emploi et de gestion de carrière.</strong></a>
+<a href="http://www.manageurs.com/?langue=fr"><strong>le site Manageurs.com, dédié aux problématique d'emploi et de gestion de carrière.</strong></a>
 </p>
 <p>
 Pour toute question n'ayant aucun rapport avec l'utilisation du site, vous pouvez nous contacter à
index 350cf90..27cf9ea 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: convention_ax.tpl,v 1.6 2004-10-24 14:41:12 x2000habouzit Exp $
+        $Id: convention_ax.tpl,v 1.7 2004-11-13 15:25:00 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -50,13 +50,12 @@ l'article premier de ses statuts. L'AX a ainsi pour but :
   Les activités de l'AX comprennent notamment la publication de l'annuaire
   papier, spécifique à l'AX, l'édition de la revue <em>La Jaune et la Rouge</em>
   et le fonctionnement de la Caisse de Secours. L'AX dispose également d'un
-  <a href="http://www.polytechniciens.com/" onclick="return popup(this)">site
-    web</a>, distinct des deux précédents.
+  <a href="http://www.polytechniciens.com/">site web</a>, distinct des deux précédents.
 <p>
   Les deux associations ont décidé conjointement d'un rapprochement,
 concrétisé par la mise en place, l'animation et le développement du réseau
 baptisé RETIX. Cette coopération fait l'objet d'une
-<a href="http://x-org.polytechnique.org/convention-ax/" onclick="return popup(this)">convention</a>
+<a href="http://x-org.polytechnique.org/convention-ax/">convention</a>
 entre l'AX et Polytechnique.org, signée en janvier 2004.
 </p>
 <p>
index d3390a7..26550c1 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: doc_forums.tpl,v 1.8 2004-10-24 14:58:27 x2000habouzit Exp $
+        $Id: doc_forums.tpl,v 1.9 2004-11-13 15:25:00 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -31,7 +31,7 @@
 <p>
   Bien que nous n'ayons pas vocation à avoir un rayonnement aussi large que
   Usenet, l'ensemble des règles relatives à Usenet (la netiquette), consultables
-  <a href="http://www.usenet-fr.net/fr-chartes/rfc1855.html" onclick="return popup(this)">
+  <a href="http://www.usenet-fr.net/fr-chartes/rfc1855.html">
     sur la page de usenet france</a>, sont applicables sur les forums de
   Polytechnique.org.
 </p>
index 917c398..666b690 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: en-cours.tpl,v 1.6 2004-10-24 14:58:28 x2000habouzit Exp $
+        $Id: en-cours.tpl,v 1.7 2004-11-13 15:25:00 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -80,7 +80,7 @@ de redirection, et enfin les contacts.
 <h2>Services aux groupes X</h2>
 
 <p>
-Le site <a href="http://www.polytechnique.net/" onclick="return popup(this)">www.polytechnique.net</a>
+Le site <a href="http://www.polytechnique.net/">www.polytechnique.net</a>
 va regrouper rapidement l'ensemble des services aux groupes X.  Ainsi l'ensemble
 des services plutôt orientés vers l'individu seront accessibles depuis le
 présent site "X.org", alors que les services aux groupes seront concentrés sur
index bc726da..d3789a9 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: services.tpl,v 1.7 2004-10-24 14:41:12 x2000habouzit Exp $
+        $Id: services.tpl,v 1.8 2004-11-13 15:25:00 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -67,7 +67,7 @@ ou encore *} <a href="{"paiement/"|url}">le syst
 
 <p>
 Enfin Polytechnique.org favorise le développement d'activités associatives. Le
-site <a href="http://www.polytechnique.net/" onclick="return popup(this)">www.polytechnique.net</a> te
+site <a href="http://www.polytechnique.net/">www.polytechnique.net</a> te
 présente ainsi des groupes existants et la <a href="{"newsletter.php"|url}">newsletter
   mensuelle</a> te met au courant des dernières actualités de la communauté.
 </p>
index 9e36ac2..f810099 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: fiche.tpl,v 1.23 2004-11-06 22:34:17 x2000habouzit Exp $
+        $Id: fiche.tpl,v 1.24 2004-11-13 15:24:59 x2000habouzit Exp $
  ***************************************************************************}
 
 {literal}
@@ -68,7 +68,7 @@ function chgMainWinLoc( strPage ) {
     {if $section}<em class="intitule">Section : </em><span>{$section}</span><br />{/if}
     {if $binets}<em class="intitule">Binet(s) : </em><span>{$binets}</span><br />{/if}
     {if $groupes}<em class="intitule">Groupe(s) X : </em><span>{$groupes|smarty:nodefaults}</span><br />{/if}
-    {if $web}<em class="intitule">Site Web : </em><br /><a href="javascript:x()" onclick="popSimple('{$web}')">{$web}</a><br />{/if}
+    {if $web}<em class="intitule">Site Web : </em><br /><a href="{$web}" class='popup'>{$web}</a><br />{/if}
     {if $libre}<br /><em class="intitule">Commentaires : </em><br /><span>{$libre|nl2br}</span>{/if}
 </div>
 {if $adr|@count > 0}
index cbb18cc..bd48cc8 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: utilisateurs_edit.tpl,v 1.6 2004-10-24 14:41:14 x2000habouzit Exp $
+        $Id: utilisateurs_edit.tpl,v 1.7 2004-11-13 15:25:00 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -77,7 +77,7 @@ modifi
       </tr>
       <tr>
         <td colspan="2">
-          <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&amp;anc_id={$row.matricule_ax}" onclick="return popup(this)">Voir sa fiche sur le site de l'AX</a>
+          <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&amp;anc_id={$row.matricule_ax}">Voir sa fiche sur le site de l'AX</a>
         </td>
       </tr>
       <tr>
index 1b44524..dd69e46 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: index.tpl,v 1.8 2004-10-24 14:41:15 x2000habouzit Exp $
+        $Id: index.tpl,v 1.9 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -51,7 +51,7 @@
           {select_db_table table="paiement.paiements" valeur=$ref where=" WHERE FIND_IN_SET('old',flags)=0"}
         </select>
         {if $ref_url}
-        <a href="{$ref_url}" onclick="return popup(this)">plus d'informations</a>
+        <a href="{$ref_url}">plus d'informations</a>
         {/if}
       </td>
     </tr>
index 5831bf0..5f47ee3 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: common.header.tpl,v 1.14 2004-11-13 14:16:32 x2000habouzit Exp $
+        $Id: common.header.tpl,v 1.15 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 
@@ -47,6 +47,7 @@
       {/if}
     </title>
     <script type="text/javascript" src="{"javascript/misc.js"|url}"></script>
+    <script type="text/javascript" src="{"javascript/popups.js"|url}"></script>
     <script type="text/javascript" src="{"javascript/popwin.js.php"|url}"> </script>
 
 {* vim:set et sw=2 sts=2 sws=2: *}
index 7ded052..f54db2a 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: default.tpl,v 1.17 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: default.tpl,v 1.18 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -31,7 +31,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index 72285ab..0991011 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: espace.tpl,v 1.2 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: espace.tpl,v 1.3 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index f3c309c..0c14aef 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: humlinux.tpl,v 1.3 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: humlinux.tpl,v 1.4 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index 4ccd8e2..2b8c658 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: linux.tpl,v 1.2 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: linux.tpl,v 1.3 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index f5d8b78..2c0209c 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: liteskin.tpl,v 1.2 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: liteskin.tpl,v 1.3 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index 2a07545..6a2b52b 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: nbviolet.tpl,v 1.2 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: nbviolet.tpl,v 1.3 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index a7d2a9c..bc8d5a7 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: newxorg.tpl,v 1.2 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: newxorg.tpl,v 1.3 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index f6e8763..b8aa244 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: oldtimes.tpl,v 1.2 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: oldtimes.tpl,v 1.3 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index 4717064..16cf86b 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: sharky.tpl,v 1.7 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: sharky.tpl,v 1.8 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index c023411..979100e 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: spectral.tpl,v 1.2 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: spectral.tpl,v 1.3 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}
index e9da185..c33c170 100644 (file)
@@ -17,7 +17,7 @@
  *  Foundation, Inc.,                                                      *
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
  ***************************************************************************
-        $Id: trapped.tpl,v 1.2 2004-11-06 22:34:18 x2000habouzit Exp $
+        $Id: trapped.tpl,v 1.3 2004-11-13 15:25:01 x2000habouzit Exp $
  ***************************************************************************}
 
 <?xml version="1.0" encoding="iso-8859-1"?>
@@ -32,7 +32,7 @@
     {/if}
     {include file=skin/common.bandeau.head.tpl}
   </head>
-  <body>
+  <body onload='auto_links()'>
     {include file=skin/common.devel.tpl}
 
     {if $smarty.session.suid}