Rev 6 | Go to most recent revision | Blame | Last modification | View Log | RSS feed
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | Javascript 1.5 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2001 Laurent COUDOUNEAU (lc@gsite.org) |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This library is free software; you can redistribute it and/or |
// | modify it under the terms of the GNU Lesser General Public |
// | License as published by the Free Software Foundation; either |
// | version 2.1 of the License, or (at your option) any later version. |
// | |
// | This library 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 |
// | Lesser General Public License for more details. |
// | |
// | You should have received a copy of the GNU Lesser General Public |
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
/*
* Titre
*
* Description
*
*Paquetage : Admin_site
*Sous-paquetage : Javascript
*Auteur original : Laurent COUDOUNEAU <lc@gsite.org>
*Autres auteurs :
* Alexandre GRANIER <alexandre@tela-botanica.org>
* Jean-Pascal MILCENT <jpm@tela-botanica.org>
*Copyright : Tela-Botanica 2000-2004
*Version : $Date: 2004-07-06 17:08:27 $
*/
// +------------------------------------------------------------------------------------------------------+
//
// $Id: admin_site.js,v 1.2 2004-07-06 17:08:27 jpm Exp $
// FICHIER : $RCSfile: admin_site.js,v $
// AUTEUR : $Author: jpm $
// VERSION : $Revision: 1.2 $
// DATE : $Date: 2004-07-06 17:08:27 $
// +------------------------------------------------------------------------------------------------------+
// +------------------------------------------------------------------------------------------------------+
// | LISTE de FONCTIONS |
// +------------------------------------------------------------------------------------------------------+
function modifyPrj (oSelect) {
var url = 'index.php?projet=admin&locale=fr&menu=2'+'&guscmd=update';
if (oSelect.selectedIndex != -1) {
url += '&gusprjid='+oSelect.options[oSelect.selectedIndex].value;
document.location = url;
}
}
function deletePrj (oSelect) {
var url = 'index.php?projet=admin&locale=fr&menu=2'+'&guscmd=del';
if (oSelect.selectedIndex != -1) {
url += '&gusprjid='+oSelect.options[oSelect.selectedIndex].value;
if (window.confirm ('supprimer')) {
if (window.confirm ('Vous êtes vraiment sûr de vouloir détruire ce projet ?')) {
document.location = url;
}
}
}
}
function modifyPres (oSelect) {
var url = 'index.php?projet=admin&locale=fr&menu=2'+'&guscmd=updpres';
if (oSelect.selectedIndex != -1) {
url += '&gusprjid='+oSelect.options[oSelect.selectedIndex].value;
document.location = url;
}
}
function showPrj (oSelect) {
var sArgs = 'toolbar=1'+
',hotkeys=0'+
',location=1'+
',directories=0'+
',menubar=0'+
',personalbar=0'+
',status=0'+
',scrollbars=1'+
',resizable=1'+
',width=950'+
',height=600';
var url = 'index.php?locale=fr';
if (oSelect.selectedIndex != -1) {
url += '&project='+oSelect.options[oSelect.selectedIndex].value;
var wWindow = open (url, 'gus', sArgs);
wWindow.window.focus ();
}
}
// +- Fin du code source ---------------------------------------------------------------------------------+
/*
* $Log: not supported by cvs2svn $
* Revision 1.1 2004/06/16 14:20:50 jpm
* Changement de nom de Génésia en Papyrus.
* Changement de l'arborescence.
*
* Revision 1.1 2004/03/24 09:18:12 jpm
* Extraction des fonctions javascript du code php et mise dans ce fichier ".js".
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/