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: adme_menu_commun.fonct.php,v 1.10 2005-02-28 11:05:06 jpm Exp $
|
24 |
// CVS : $Id: adme_menu_commun.fonct.php,v 1.11 2005-03-29 15:49:12 jpm Exp $
|
25 |
/**
|
25 |
/**
|
26 |
* Application de gestion des menus communs
|
26 |
* Application de gestion des menus communs
|
27 |
*
|
27 |
*
|
28 |
* Permet de lister, d'ajouter, de modifier, et de déplacer des menus communs.
|
28 |
* Permet de lister, d'ajouter, de modifier, et de déplacer des menus communs.
|
29 |
* Par menus communs, nous entendons tous les menus devant paraitre sur l'ensemble des pages de plusieurs site,
|
29 |
* Par menus communs, nous entendons tous les menus devant paraitre sur l'ensemble des pages de plusieurs site,
|
Line 35... |
Line 35... |
35 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
35 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
36 |
//Autres auteurs :
|
36 |
//Autres auteurs :
|
37 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
37 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
38 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
38 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
39 |
*@copyright Tela-Botanica 2000-2004
|
39 |
*@copyright Tela-Botanica 2000-2004
|
40 |
*@version $Revision: 1.10 $ $Date: 2005-02-28 11:05:06 $
|
40 |
*@version $Revision: 1.11 $ $Date: 2005-03-29 15:49:12 $
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
*/
|
42 |
*/
|
Line 43... |
Line 43... |
43 |
|
43 |
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
Line 531... |
Line 531... |
531 |
$id = 'gm_editeur';
|
531 |
$id = 'gm_editeur';
|
532 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'rows' => 2, 'cols' => 45);
|
532 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'rows' => 2, 'cols' => 45);
|
533 |
$label = '<label for="'.$id.'">'.ADME_LG_FORM_MENU_EDITEUR.'</label>';
|
533 |
$label = '<label for="'.$id.'">'.ADME_LG_FORM_MENU_EDITEUR.'</label>';
|
534 |
$form->addElement('textarea', $id, $label, $aso_attributs);
|
534 |
$form->addElement('textarea', $id, $label, $aso_attributs);
|
Line -... |
Line 535... |
- |
|
535 |
|
- |
|
536 |
$id = 'gm_date_creation';
|
- |
|
537 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'size' => 19, 'maxlength' => 19);
|
- |
|
538 |
$label = '<label for="'.$id.'">'.ADME_LG_FORM_MENU_DATE_CREATION.'</label>';
|
- |
|
539 |
$form->addElement('text', $id, $label, $aso_attributs);
|
535 |
|
540 |
|
536 |
$id = 'gm_date_debut_validite';
|
541 |
$id = 'gm_date_debut_validite';
|
537 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'size' => 19, 'maxlength' => 19);
|
542 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'size' => 19, 'maxlength' => 19);
|
538 |
$label = '<label for="'.$id.'">'.ADME_LG_FORM_MENU_DATE_VALIDITE_DEBUT.'</label>';
|
543 |
$label = '<label for="'.$id.'">'.ADME_LG_FORM_MENU_DATE_VALIDITE_DEBUT.'</label>';
|
Line 667... |
Line 672... |
667 |
* @return void les changement sont fait dans la base de données.
|
672 |
* @return void les changement sont fait dans la base de données.
|
668 |
*/
|
673 |
*/
|
669 |
function ADME_modifierMenuCommun($db, $auth, $adme_menu_id, $aso_valeurs)
|
674 |
function ADME_modifierMenuCommun($db, $auth, $adme_menu_id, $aso_valeurs)
|
670 |
{
|
675 |
{
|
671 |
$requete = 'UPDATE gen_menu SET '.
|
676 |
$requete = 'UPDATE gen_menu SET '.
|
672 |
'gm_ce_application = '.$_POST['gm_ce_application'].', '.
|
677 |
'gm_ce_application = '.$aso_valeurs['gm_ce_application'].', '.
|
673 |
'gm_application_arguments = "'.$_POST['gm_application_arguments'].'", '.
|
678 |
'gm_application_arguments = "'.$aso_valeurs['gm_application_arguments'].'", '.
|
674 |
'gm_fichier_squelette = "'.$_POST['gm_fichier_squelette'].'", '.
|
679 |
'gm_fichier_squelette = "'.$aso_valeurs['gm_fichier_squelette'].'", '.
|
675 |
'gm_code_num = '.$_POST['gm_code_num'].', '.
|
680 |
'gm_code_num = '.$aso_valeurs['gm_code_num'].', '.
|
676 |
'gm_code_alpha = "'.$_POST['gm_code_alpha'].'", '.
|
681 |
'gm_code_alpha = "'.$aso_valeurs['gm_code_alpha'].'", '.
|
677 |
'gm_nom = "'.$_POST['gm_nom'].'", '.
|
682 |
'gm_nom = "'.$aso_valeurs['gm_nom'].'", '.
|
678 |
'gm_raccourci_clavier = "'.$_POST['gm_raccourci_clavier'].'", '.
|
683 |
'gm_raccourci_clavier = "'.$aso_valeurs['gm_raccourci_clavier'].'", '.
|
679 |
'gm_robot = "'.$_POST['gm_robot'].'", '.
|
684 |
'gm_robot = "'.$aso_valeurs['gm_robot'].'", '.
|
680 |
'gm_titre = "'.$_POST['gm_titre'].'", '.
|
685 |
'gm_titre = "'.$aso_valeurs['gm_titre'].'", '.
|
681 |
'gm_titre_alternatif = "'.$_POST['gm_titre_alternatif'].'", '.
|
686 |
'gm_titre_alternatif = "'.$aso_valeurs['gm_titre_alternatif'].'", '.
|
682 |
'gm_mots_cles = "'.$_POST['gm_mots_cles'].'", '.
|
687 |
'gm_mots_cles = "'.$aso_valeurs['gm_mots_cles'].'", '.
|
683 |
'gm_description_libre = "'.$_POST['gm_description_libre'].'", '.
|
688 |
'gm_description_libre = "'.$aso_valeurs['gm_description_libre'].'", '.
|
684 |
'gm_description_resume = "'.$_POST['gm_description_resume'].'", '.
|
689 |
'gm_description_resume = "'.$aso_valeurs['gm_description_resume'].'", '.
|
685 |
'gm_description_table_matieres = "'.$_POST['gm_description_table_matieres'].'", '.
|
690 |
'gm_description_table_matieres = "'.$aso_valeurs['gm_description_table_matieres'].'", '.
|
686 |
'gm_source = "'.$_POST['gm_source'].'", '.
|
691 |
'gm_source = "'.$aso_valeurs['gm_source'].'", '.
|
687 |
'gm_auteur = "'.$_POST['gm_auteur'].'", '.
|
692 |
'gm_auteur = "'.$aso_valeurs['gm_auteur'].'", '.
|
688 |
'gm_contributeur = "'.$_POST['gm_contributeur'].'", '.
|
693 |
'gm_contributeur = "'.$aso_valeurs['gm_contributeur'].'", '.
|
689 |
'gm_editeur = "'.$_POST['gm_editeur'].'", '.
|
694 |
'gm_editeur = "'.$aso_valeurs['gm_editeur'].'", '.
|
- |
|
695 |
'gm_date_creation = "'.$aso_valeurs['gm_date_creation'].'", '.
|
690 |
'gm_date_debut_validite = "'.$_POST['gm_date_debut_validite'].'", '.
|
696 |
'gm_date_debut_validite = "'.$aso_valeurs['gm_date_debut_validite'].'", '.
|
691 |
'gm_date_fin_validite = "'.$_POST['gm_date_fin_validite'].'", '.
|
697 |
'gm_date_fin_validite = "'.$aso_valeurs['gm_date_fin_validite'].'", '.
|
692 |
'gm_date_copyright = "'.$_POST['gm_date_copyright'].'", '.
|
698 |
'gm_date_copyright = "'.$aso_valeurs['gm_date_copyright'].'", '.
|
693 |
'gm_licence = "'.$_POST['gm_licence'].'", '.
|
699 |
'gm_licence = "'.$aso_valeurs['gm_licence'].'", '.
|
694 |
'gm_categorie = "'.$_POST['gm_categorie'].'", '.
|
700 |
'gm_categorie = "'.$aso_valeurs['gm_categorie'].'", '.
|
695 |
'gm_public = "'.$_POST['gm_public'].'", '.
|
701 |
'gm_public = "'.$aso_valeurs['gm_public'].'", '.
|
696 |
'gm_public_niveau = "'.$_POST['gm_public_niveau'].'", '.
|
702 |
'gm_public_niveau = "'.$aso_valeurs['gm_public_niveau'].'", '.
|
697 |
'gm_portee_spatiale = "'.$_POST['gm_portee_spatiale'].'", '.
|
703 |
'gm_portee_spatiale = "'.$aso_valeurs['gm_portee_spatiale'].'", '.
|
698 |
'gm_portee_temporelle = "'.$_POST['gm_portee_temporelle'].'", '.
|
704 |
'gm_portee_temporelle = "'.$aso_valeurs['gm_portee_temporelle'].'", '.
|
699 |
'gm_ce_admin = "'.$auth->getAuthData('ga_id_administrateur').'" '.
|
705 |
'gm_ce_admin = "'.$auth->getAuthData('ga_id_administrateur').'" '.
|
700 |
'WHERE gm_id_menu = '.$adme_menu_id;
|
706 |
'WHERE gm_id_menu = '.$adme_menu_id;
|
Line 701... |
Line 707... |
701 |
|
707 |
|
702 |
$resultat = $db->query($requete);
|
708 |
$resultat = $db->query($requete);
|
Line 868... |
Line 874... |
868 |
|
874 |
|
869 |
|
875 |
|
870 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
876 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
877 |
*
|
- |
|
878 |
* $Log: not supported by cvs2svn $
|
- |
|
879 |
* Revision 1.10 2005/02/28 11:05:06 jpm
|
871 |
*
|
880 |
* Modification des auteurs.
|
872 |
* $Log: not supported by cvs2svn $
|
881 |
*
|
873 |
* Revision 1.9 2005/01/24 11:28:09 jpm
|
882 |
* Revision 1.9 2005/01/24 11:28:09 jpm
|
874 |
* Correction bogue.
|
883 |
* Correction bogue.
|
875 |
* Ajout d'un troisième = pour comparer le type.
|
884 |
* Ajout d'un troisième = pour comparer le type.
|