AND alias LIKE '%@{$globals->mail->alias_dom}'",
Session::getInt('uid'), $user['forlife'].'@'.$globals->mail->domain, $user['forlife'].'@'.$globals->mail->domain2);
$page->assign('virtualalias', $res->fetchOneCell());
+
+$page->addJsLink('javascript/close_on_esc.js');
$page->run();
?>
+/***************************************************************************
+ * 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 closePopup() {
- window.close();
+ window.close();
}
if (navigator.appName=="Microsoft Internet Explorer") {
- function keyboardIE() { if (event.keyCode == 27) closePopup(); };
- document.onkeydown = keyboardIE;
+ function keyboardIE() { if (event.keyCode == 27) closePopup(); };
+ document.onkeydown = keyboardIE;
} else {
- function keyboardOther(e) { if (e.keyCode == 27) closePopup(); };
- document.onkeydown = keyboardOther;
+ function keyboardOther(e) { if (e.keyCode == 27) closePopup(); };
+ document.onkeydown = keyboardOther;
}
parent.opener.document.location = strPage;
}
</script>
-<script type="text/javascript" src="javascript/close_on_esc.js">
-</script>
{/literal}
<table id="fiche" cellpadding="0" cellspacing="0">
<img src="images/vcard.png" alt="Afficher la carte de visite" title="Afficher la carte de visite"/>
</a>
{if !$x.is_contact}
- <a href="javascript:x()" onclick="chgMainWinLoc('{"carnet/mescontacts.php"|url}?action=ajouter&user={$x.forlife}')">
+ <a href="javascript:x()" onclick="chgMainWinLoc('{rel}/carnet/mescontacts.php?action=ajouter&user={$x.forlife}')">
<img src="images/ajouter.gif" alt="Ajouter à mes contacts" title="Ajouter à mes contacts" />
</a>
{else}
- <a href="javascript:x()" onclick="chgMainWinLoc('{"carnet/mescontacts.php"|url}?action=retirer&user={$x.forlife}')">
+ <a href="javascript:x()" onclick="chgMainWinLoc('{rel}/carnet/mescontacts.php?action=retirer&user={$x.forlife}')">
<img src="images/retirer.gif" alt="Retirer de mes contacts" title="Retirer de mes contacts" />
</a>
{/if}