* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************/
+
+/***************************************************************************
+ * MISC
+ */
+
+// {{{ function getNow()
+
+/**
+ * function used to print the client's computer datetime on the page
+ */
function getNow() {
dt=new Date();
dy=dt.getDay();
return days[dy]+" "+wd+" "+months[mh]+" "+yr+"<br />"+time;
}
+// }}}
+/***************************************************************************
+ * POPUP THINGS
+ */
+
+// {{{ function popWin()
+
+/**
+ * function that pops an anchor
+ *
+ * @param theNode anchor the anchor we are talking about
+ * @param w int the desired width for the popup
+ * @param h int the desired height for the popup
+ */
function popWin(theNode,w,h) {
window.open(theNode.href, '_blank',
'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+w+',height='+h);
}
+// }}}
+// {{{ function auto_links()
+
+/**
+ * parses an html file, and update the onclik handlers for anchors that need it.
+ *
+ * anchors :
+ * - that points to another host are opened in a new window (mimic the target=_new)
+ * - of class popup(2) or popup_###x### create real popups (no url bar, ...)
+ * This function is designed to be used in <body onload="javascript:auto_links()">
+ */
function auto_links() {
nodes = document.getElementsByTagName('a');
fqdn = document.URL;
}
}
+// }}}
+
+/***************************************************************************
+ * The real OnLoad
+ */
+
+// {{{ function pa_onload
+
+function pa_onload() {
+ auto_links();
+}
+
+// }}}
+
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: default.tpl,v 1.20 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: default.tpl,v 1.21 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.5 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: espace.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.6 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: humlinux.tpl,v 1.7 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.5 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: linux.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.5 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: liteskin.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.5 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: nbviolet.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.5 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: newxorg.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.5 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: oldtimes.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: openweb.tpl,v 1.5 2004-11-22 11:00:53 x2000habouzit Exp $
+ $Id: openweb.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.10 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: sharky.tpl,v 1.11 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.5 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: spectral.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{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.5 2004-11-22 10:42:53 x2000habouzit Exp $
+ $Id: trapped.tpl,v 1.6 2004-11-26 16:30:32 x2000habouzit Exp $
***************************************************************************}
<?xml version="1.0" encoding="iso-8859-1"?>
{/if}
{include file=skin/common.bandeau.head.tpl}
</head>
- <body onload='auto_links()'>
+ <body onload='pa_onload()'>
{include file=skin/common.devel.tpl}
{if $smarty.session.suid}