Subversion Repositories Applications.papyrus

Rev

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

Rev 462 Rev 923
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.2 2005-09-23 15:02:38 florian Exp $
24
// CVS : $Id: adap_application.fonct.php,v 1.3 2006-09-07 13:28:39 jp_milcent 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.2 $
38
*@version       $Revision: 1.3 $
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 102... Line 102...
102
 * @return
102
 * @return
103
 */
103
 */
Line 104... Line 104...
104
 
104
 
105
function mise_a_jour ($valeur, &$db) {
105
function mise_a_jour ($valeur, &$db) {
106
    $requete = "update gen_application set ".requete_site_appl($valeur)
106
    $requete = "update gen_application set ".requete_site_appl($valeur)
107
                .' where gap_id_application='.$GLOBALS['id_appl'] ;
107
                .' WHERE gap_id_application='.$GLOBALS['id_appl'] ;
108
    $resultat = $db->query ($requete) ;
108
    $resultat = $db->query ($requete) ;
109
    if (DB::isError ($resultat)) {
109
    if (DB::isError ($resultat)) {
110
        trigger_error("Echec de la requete : $requete<br />".$resultat->getMessage(),E_USER_WARNING) ;
110
        trigger_error("Echec de la requete : $requete<br />".$resultat->getMessage(),E_USER_WARNING) ;
111
    }
111
    }
Line 132... Line 132...
132
 
132
 
133
 
133
 
134
/* +--Fin du code ----------------------------------------------------------------------------------------+
134
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
135
*
-
 
136
* $Log: not supported by cvs2svn $
-
 
137
* Revision 1.2  2005/09/23 15:02:38  florian
135
*
138
* correction de bugs
136
* $Log: not supported by cvs2svn $
139
*
137
* Revision 1.1  2005/03/09 10:44:04  jpm
140
* Revision 1.1  2005/03/09 10:44:04  jpm
138
* Mise au norme du nom du fichier.
141
* Mise au norme du nom du fichier.
139
*
142
*