--- /dev/null
+/***************************************************************************
+ * 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; };
+ }
+ }
+}
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
-}
* 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 $
***************************************************************************}
{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}
* 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}
</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>
* 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 $
***************************************************************************}
</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 à
* 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 $
***************************************************************************}
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>
* 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 $
***************************************************************************}
<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>
* 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 $
***************************************************************************}
<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
* 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 $
***************************************************************************}
<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>
* 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}
{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}
* 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 $
***************************************************************************}
</tr>
<tr>
<td colspan="2">
- <a href="http://www.polytechniciens.com/index.php?page=AX_FICHE_ANCIEN&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&anc_id={$row.matricule_ax}">Voir sa fiche sur le site de l'AX</a>
</td>
</tr>
<tr>
* 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 $
***************************************************************************}
{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>
* 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 $
***************************************************************************}
{/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: *}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* 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"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body>
+ <body onload='auto_links()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}