Subversion Repositories Applications.papyrus

Rev

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

Rev 301 Rev 462
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: adap_application.fonct.php,v 1.1 2005-03-09 10:44:04 jpm Exp $
24
// CVS : $Id: adap_application.fonct.php,v 1.2 2005-09-23 15:02:38 florian Exp $
25
/**
25
/**
26
* Contient les fonctions de l'appli admin_auth
26
* Contient les fonctions de l'appli admin_auth
27
*
27
*
28
* 
28
* 
29
* 
29
* 
Line 33... Line 33...
33
//Auteur original :
33
//Auteur original :
34
*@author        Alexandre Granier <alexandre@tela-botanica.org>
34
*@author        Alexandre Granier <alexandre@tela-botanica.org>
35
//Autres auteurs :
35
//Autres auteurs :
36
*@author        Aucun
36
*@author        Aucun
37
*@copyright     Tela-Botanica 2000-2004
37
*@copyright     Tela-Botanica 2000-2004
38
*@version       $Revision: 1.1 $
38
*@version       $Revision: 1.2 $
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
40
*/
40
*/
Line 41... Line 41...
41
 
41
 
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
Line 48... Line 48...
48
 *
48
 *
49
 * @return
49
 * @return
50
 */
50
 */
Line 51... Line 51...
51
 
51
 
52
function adap_supprimer_application($id_appl, &$db) {
52
function adap_supprimer_application($id_appl, &$db) {
53
    $requete = "delete from gen_application where gap_id_application=$id_appl" ;
53
    $requete = 'delete from gen_application where gap_id_application='.$id_appl;
54
    $resultat = $db->query ($requete) ;
54
    $resultat = $db->query ($requete) ;
Line 55... Line 55...
55
}
55
}
56
 
56
 
Line 61... Line 61...
61
 */
61
 */
Line 62... Line 62...
62
 
62
 
63
function adap_valeurs_par_defaut ($id_appl, &$db) {
63
function adap_valeurs_par_defaut ($id_appl, &$db) {
Line 64... Line 64...
64
    // requete sur gen_site_auth
64
    // requete sur gen_site_auth
65
    
65
    
66
    $requete = "select * from gen_application where gap_id_application=$id_appl" ;
66
    $requete = 'select * from gen_application where gap_id_application='.$id_appl ;
67
    $resultat = $db->query ($requete) ;
67
    $resultat = $db->query ($requete) ;
68
    if (DB::isError ($resultat)) {
68
    if (DB::isError ($resultat)) {
69
        trigger_error("Echec de la requete : $requete<br />".$resultat->getMessage(), E_USER_WARNING) ;
69
        trigger_error("Echec de la requete : $requete<br />".$resultat->getMessage(), E_USER_WARNING) ;
Line 116... Line 116...
116
 *
116
 *
117
 * @return  string  un morceau de code SQL
117
 * @return  string  un morceau de code SQL
118
 */
118
 */
Line 119... Line 119...
119
 
119
 
-
 
120
function requete_site_appl (&$valeur) {
120
function requete_site_appl (&$valeur) {
121
	if (!isset($valeur['applette'])) {$valeur['applette']=0;}
121
    return   'gap_nom="'.$valeur['nom_appl'].'", '
122
	return   'gap_nom="'.$valeur['nom_appl'].'", '
122
            .'gap_description="'.$valeur['description'].'", '
123
	        .'gap_description="'.$valeur['description'].'", '
123
            .'gap_chemin="'.$valeur['chemin'].'", '
124
		.'gap_chemin="'.$valeur['chemin'].'", '
124
            .'gap_bool_applette="'.$valeur['applette'].'"';
125
		.'gap_bool_applette="'.$valeur['applette'].'"';
Line 125... Line 126...
125
}
126
}
126
 
127
 
Line 131... Line 132...
131
 
132
 
132
 
133
 
133
/* +--Fin du code ----------------------------------------------------------------------------------------+
134
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
135
*
-
 
136
* $Log: not supported by cvs2svn $
-
 
137
* Revision 1.1  2005/03/09 10:44:04  jpm
134
*
138
* Mise au norme du nom du fichier.
135
* $Log: not supported by cvs2svn $
139
*
136
* Revision 1.2  2005/03/09 10:40:33  alex
140
* Revision 1.2  2005/03/09 10:40:33  alex
137
* version initiale
141
* version initiale
138
*
142
*