Subversion Repositories Applications.papyrus

Rev

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

Rev 346 Rev 378
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: adme_menu_classique.fonct.php,v 1.17 2005-04-19 16:47:16 jpm Exp $
22
// CVS : $Id: adme_menu_classique.fonct.php,v 1.18 2005-05-26 08:54:20 jpm Exp $
23
/**
23
/**
24
* Fonctions de gestion des menus classiques
24
* Fonctions de gestion des menus classiques
25
*
25
*
26
* Permet de lister, d'ajouter, de modifier, et de déplacer des menus classiques.
26
* Permet de lister, d'ajouter, de modifier, et de déplacer des menus classiques.
27
* Par menus classiques nous entendons tous les menus devant paraitre dans l'arborescences 
27
* Par menus classiques nous entendons tous les menus devant paraitre dans l'arborescences 
Line 33... Line 33...
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
34
//Autres auteurs :
34
//Autres auteurs :
35
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
35
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
36
*@author        Laurent COUDOUNEAU <lc@gsite.org>
36
*@author        Laurent COUDOUNEAU <lc@gsite.org>
37
*@copyright     Tela-Botanica 2000-2004
37
*@copyright     Tela-Botanica 2000-2004
38
*@version       $Revision: 1.17 $ $Date: 2005-04-19 16:47:16 $
38
*@version       $Revision: 1.18 $ $Date: 2005-05-26 08:54:20 $
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
40
*/
40
*/
Line 41... Line 41...
41
 
41
 
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
Line 614... Line 614...
614
    $id = 'gm_portee_temporelle';
614
    $id = 'gm_portee_temporelle';
615
    $aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'size' => 45, 'maxlength' => 100);
615
    $aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'size' => 45, 'maxlength' => 100);
616
    $label = '<label for="'.$id.'">'.ADME_LG_FORM_MENU_TMP_VALEUR.'</label>';
616
    $label = '<label for="'.$id.'">'.ADME_LG_FORM_MENU_TMP_VALEUR.'</label>';
617
    $form->addElement('text', $id, $label, $aso_attributs);
617
    $form->addElement('text', $id, $label, $aso_attributs);
Line -... Line 618...
-
 
618
    
618
    
619
    
619
    $partie_entete_fin = '</ul>'."\n".'</fieldset>'."\n";
620
    $partie_entete_fin = '</ul>'."\n".'</fieldset>'."\n";
Line -... Line 621...
-
 
621
    $form->addElement('html', $partie_entete_fin);
-
 
622
    
-
 
623
    // Requete pour connaitre les informations sur l'administrateur ayant fait la dernière modif
-
 
624
    $requete_admin =    'SELECT * '.
-
 
625
                        'FROM gen_annuaire '.
-
 
626
                        'WHERE ga_id_administrateur = '.$aso_valeurs['gm_ce_admin'];
-
 
627
    $resultat_admin = $db->query($requete_admin);
-
 
628
    if (DB::isError($resultat_admin)) {
-
 
629
        die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat_admin->getMessage(), $requete_admin));
-
 
630
    }
-
 
631
    $ligne_admin = $resultat_admin->fetchRow(DB_FETCHMODE_OBJECT);
-
 
632
    $info_admin =   '<p class="info">Dernière modification par'.$ligne_admin->ga_prenom.' '.$ligne_admin->ga_nom.'</p>';
620
    $form->addElement('html', $partie_entete_fin);
633
    $form->addElement('html', $info_admin);
621
    
634
    
Line 622... Line 635...
622
    $liste_bouton_debut = '<ul class="liste_bouton">'."\n";
635
    $liste_bouton_debut = '<ul class="liste_bouton">'."\n";
623
    $form->addElement('html', $liste_bouton_debut);
636
    $form->addElement('html', $liste_bouton_debut);
Line 937... Line 950...
937
 
950
 
938
 
951
 
939
/* +--Fin du code ----------------------------------------------------------------------------------------+
952
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
953
*
-
 
954
* $Log: not supported by cvs2svn $
-
 
955
* Revision 1.17  2005/04/19 16:47:16  jpm
940
*
956
* Gestion des dates  de fin de validité des menus.
941
* $Log: not supported by cvs2svn $
957
*
942
* Revision 1.16  2005/03/29 15:49:12  jpm
958
* Revision 1.16  2005/03/29 15:49:12  jpm
943
* Ajout de la date de création dans le formulaire des menus.
959
* Ajout de la date de création dans le formulaire des menus.
944
*
960
*