Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 jpm 1
/*vim: set expandtab tabstop=4 shiftwidth=4: */
2
// +------------------------------------------------------------------------------------------------------+
3
// | Javascript 1.5                                                                                       |
4
// +------------------------------------------------------------------------------------------------------+
5
// | Copyright (C) 2001 Laurent COUDOUNEAU (lc@gsite.org)                                                 |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
22
/*
23
* Titre
24
*
25
* Description
26
*
25 jpm 27
*Paquetage       :  Admin_site
28
*Sous-paquetage  :  Javascript
6 jpm 29
*Auteur original :  Laurent COUDOUNEAU <lc@gsite.org>
30
*Autres auteurs  :
31
*                   Alexandre GRANIER <alexandre@tela-botanica.org>
32
*                   Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*Copyright :        Tela-Botanica 2000-2004
25 jpm 34
*Version   :        $Date: 2004-07-06 17:08:27 $
6 jpm 35
*/
36
// +------------------------------------------------------------------------------------------------------+
37
//
25 jpm 38
// $Id: admin_site.js,v 1.2 2004-07-06 17:08:27 jpm Exp $
6 jpm 39
// FICHIER : $RCSfile: admin_site.js,v $
40
// AUTEUR  : $Author: jpm $
25 jpm 41
// VERSION : $Revision: 1.2 $
42
// DATE    : $Date: 2004-07-06 17:08:27 $
6 jpm 43
// +------------------------------------------------------------------------------------------------------+
44
 
45
// +------------------------------------------------------------------------------------------------------+
46
// |                                            LISTE de FONCTIONS                                        |
47
// +------------------------------------------------------------------------------------------------------+
48
function modifyPrj (oSelect) {
49
    var url = 'index.php?projet=admin&locale=fr&menu=2'+'&guscmd=update';
50
    if (oSelect.selectedIndex != -1) {
51
        url += '&gusprjid='+oSelect.options[oSelect.selectedIndex].value;
52
        document.location = url;
53
    }
54
}
55
 
56
function deletePrj (oSelect) {
57
    var url = 'index.php?projet=admin&locale=fr&menu=2'+'&guscmd=del';
58
    if (oSelect.selectedIndex != -1) {
59
        url += '&gusprjid='+oSelect.options[oSelect.selectedIndex].value;
60
        if (window.confirm ('supprimer')) {
61
            if (window.confirm ('Vous êtes vraiment sûr de vouloir détruire ce projet ?')) {
62
                document.location = url;
63
            }
64
        }
65
    }
66
}
67
 
68
function modifyPres (oSelect) {
69
    var url = 'index.php?projet=admin&locale=fr&menu=2'+'&guscmd=updpres';
70
    if (oSelect.selectedIndex != -1) {
71
        url += '&gusprjid='+oSelect.options[oSelect.selectedIndex].value;
72
        document.location = url;
73
    }
74
}
75
 
76
function showPrj (oSelect) {
77
    var sArgs = 'toolbar=1'+
78
                ',hotkeys=0'+
79
                ',location=1'+
80
                ',directories=0'+
81
                ',menubar=0'+
82
                ',personalbar=0'+
83
                ',status=0'+
84
                ',scrollbars=1'+
85
                ',resizable=1'+
86
                ',width=950'+
87
                ',height=600';
88
 
89
    var url = 'index.php?locale=fr';
90
    if (oSelect.selectedIndex != -1) {
91
        url += '&project='+oSelect.options[oSelect.selectedIndex].value;
92
        var wWindow = open (url, 'gus', sArgs);
93
        wWindow.window.focus ();
94
    }
95
}
96
 
97
// +- Fin du code source ---------------------------------------------------------------------------------+
98
/*
99
* $Log: not supported by cvs2svn $
25 jpm 100
* Revision 1.1  2004/06/16 14:20:50  jpm
101
* Changement de nom de Génésia en Papyrus.
102
* Changement de l'arborescence.
103
*
6 jpm 104
* Revision 1.1  2004/03/24 09:18:12  jpm
105
* Extraction des fonctions javascript du code php et mise dans ce fichier ".js".
106
*
107
*
108
* +-- Fin du code ----------------------------------------------------------------------------------------+
109
*/
110