Subversion Repositories Applications.papyrus

Rev

Rev 923 | Rev 1076 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 923 Rev 1016
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
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                                  |
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                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: admin_application.php,v 1.5 2006-09-07 13:28:39 jp_milcent Exp $
22
// CVS : $Id: admin_application.php,v 1.6 2006-10-06 10:40:51 florian Exp $
23
/**
23
/**
24
* Application gérant les applications de Papyrus
24
* Application gérant les applications de Papyrus
25
*
25
*
26
* Cette application permet de gérer les applications de papyrus
26
* Cette application permet de gérer les applications de papyrus
27
* elle permet de spécifier pour un monde quel annuaire utiliser
27
* elle permet de spécifier pour un monde quel annuaire utiliser
Line 29... Line 29...
29
*
29
*
30
*@package Admin_auth
30
*@package Admin_auth
31
//Auteur original :
31
//Auteur original :
32
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
32
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.5 $
34
*@version       $Revision: 1.6 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 91... Line 91...
91
{
91
{
92
    $db = &$GLOBALS['_GEN_commun']['pear_db'] ;
92
    $db = &$GLOBALS['_GEN_commun']['pear_db'] ;
93
    $url = $GLOBALS['_GEN_commun']['url'] ;
93
    $url = $GLOBALS['_GEN_commun']['url'] ;
94
    $auth = &$GLOBALS['_GEN_commun']['pear_auth'] ;
94
    $auth = &$GLOBALS['_GEN_commun']['pear_auth'] ;
95
    isset ($GLOBALS['action']) ? '' : $GLOBALS['action'] = '' ; // On déclare action si elle n'existe pas
95
    isset ($GLOBALS['action']) ? '' : $GLOBALS['action'] = '' ; // On déclare action si elle n'existe pas
-
 
96
    $res='';
96
    if (!$auth->getAuth()) {
97
    if (!$auth->getAuth()) {
-
 
98
    	$res .= '<p class="zone_alert">'.ADAP_IDENTIFIEZ_VOUS.'</p>'."\n" ;
-
 
99
		$res .= '<form id="form_connexion" style="clear:both;" class="form_identification" action="' ;
-
 
100
		$res .= $url->getURL();
-
 
101
		$res .= '" method="post">
-
 
102
                <fieldset>
-
 
103
                    <legend>Identifiez vous</legend>                    
-
 
104
                        <label for="username">Courriel : </label>
-
 
105
                        <input type="text"  id="username" name="username" maxlength="80" tabindex="1" value="courriel" />                    
-
 
106
                        <label for="password">Mot de passe : </label>
-
 
107
                        <input type="password" id="password" name="password" maxlength="80" tabindex="2" value="mot de passe" />                    
-
 
108
                        <input type="submit" id="connexion" name="connexion" tabindex="3" value="ok" />                    
-
 
109
                </fieldset>
-
 
110
                </form>';
97
        return 'Identifiez-vous' ;
111
        return $res ;
98
    }
112
    } else {
99
    // Le lien pour une nouvelle entrée
113
	    // Le lien pour une nouvelle entrée
100
    $res = '<a href="'.$url->getURL().'&amp;action=nouveau">'.ADAP_AJOUTER.'</a>'."\n<br />" ;
114
	    $res .= '<a href="'.$url->getURL().'&amp;action=nouveau">'.ADAP_AJOUTER.'</a>'."\n<br />" ;
101
    // traitement de la suppression
115
	    // traitement de la suppression
102
    if (isset ($GLOBALS['action']) && $GLOBALS['action'] == 'supprimer') adap_supprimer_application($GLOBALS['id_appl'], $db) ;
116
	    if (isset ($GLOBALS['action']) && $GLOBALS['action'] == 'supprimer') adap_supprimer_application($GLOBALS['id_appl'], $db) ;
Line 103... Line 117...
103
    
117
	    
104
    // traitement de l'ajout
118
	    // traitement de l'ajout
Line 149... Line 163...
149
                                            ));
163
	                                            ));
150
    }
164
	    }
151
    $liste->construireListe($tableau_appl) ;
165
	    $liste->construireListe($tableau_appl) ;
152
    $res .= $liste->toHTML();
166
	    $res .= $liste->toHTML();
153
    return $res ;
167
	    return $res ;
-
 
168
    }
154
}// Fin de la fonction afficherContenuCorps()
169
}// Fin de la fonction afficherContenuCorps()
Line 155... Line 170...
155
 
170
 
156
// +------------------------------------------------------------------------------------------------------+
171
// +------------------------------------------------------------------------------------------------------+
157
// |                                            PIED du PROGRAMME                                         |
172
// |                                            PIED du PROGRAMME                                         |
Line 160... Line 175...
160
 
175
 
161
 
176
 
162
/* +--Fin du code ----------------------------------------------------------------------------------------+
177
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
178
*
-
 
179
* $Log: not supported by cvs2svn $
-
 
180
* Revision 1.5  2006/09/07 13:28:39  jp_milcent
163
*
181
* Mise en majuscule des termes SQL et trie des application par ordre alphabétique.
164
* $Log: not supported by cvs2svn $
182
*
165
* Revision 1.4  2005/03/09 10:46:17  jpm
183
* Revision 1.4  2005/03/09 10:46:17  jpm
166
* Changement d'un nom de fichier.
184
* Changement d'un nom de fichier.
167
*
185
*