Subversion Repositories Applications.papyrus

Rev

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

Rev 950 Rev 1017
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.25 2006-09-20 12:09:16 ddelon Exp $
24
// CVS : $Id: adme_menu_commun.fonct.php,v 1.26 2006-10-06 13:38:45 florian 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 36... Line 36...
36
//Autres auteurs :
36
//Autres auteurs :
37
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
37
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
38
*@author        David Delon <david.delon@clapas.net>
38
*@author        David Delon <david.delon@clapas.net>
39
*@author        Laurent COUDOUNEAU <lc@gsite.org>
39
*@author        Laurent COUDOUNEAU <lc@gsite.org>
40
*@copyright     Tela-Botanica 2000-2004
40
*@copyright     Tela-Botanica 2000-2004
41
*@version       $Revision: 1.25 $ $Date: 2006-09-20 12:09:16 $
41
*@version       $Revision: 1.26 $ $Date: 2006-10-06 13:38:45 $
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
*/
43
*/
Line 44... Line 44...
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
Line 126... Line 126...
126
        }
126
        }
127
        if ($bln_premier_appel == true || GEN_etreAncetre($id_menu_a_deployer, $adme_menu_id) || 
127
        if ($bln_premier_appel == true || GEN_etreAncetre($id_menu_a_deployer, $adme_menu_id) || 
128
            ($id_menu_a_deployer == $adme_menu_id && $adme_action == ADME_LG_ACTION_DEPLIER) || 
128
            ($id_menu_a_deployer == $adme_menu_id && $adme_action == ADME_LG_ACTION_DEPLIER) || 
129
            isset($_SESSION['adme_menus_communs_ouverts'][$id_menu_a_deployer])
129
            isset($_SESSION['adme_menus_communs_ouverts'][$id_menu_a_deployer])
130
            ){
130
            ){
131
            $retour .= '<ul>'."\n";
131
            $retour .= '<ul class="menu_commun">'."\n";
132
            while ($ligne_sous_menu = $resultat_sous_menu->fetchRow(DB_FETCHMODE_OBJECT)) {
132
            while ($ligne_sous_menu = $resultat_sous_menu->fetchRow(DB_FETCHMODE_OBJECT)) {
133
                $retour .= ADME_afficherListeMenuCommun($db, $url, $adme_site_id, $adme_menu_id, $adme_action, $ligne_sous_menu->gm_id_menu, false);
133
                $retour .= ADME_afficherListeMenuCommun($db, $url, $adme_site_id, $adme_menu_id, $adme_action, $ligne_sous_menu->gm_id_menu, false);
134
            }
134
            }
135
            $retour .= '</ul>'."\n";
135
            $retour .= '</ul>'."\n";
136
        }
136
        }
Line 200... Line 200...
200
        }
200
        }
201
        $xhtml_pd = '<a href="'.$url_plier_deplier.'" title="'.$alt.'">'.
201
        $xhtml_pd = '<a href="'.$url_plier_deplier.'" title="'.$alt.'">'.
202
                        '<img class="'.ADME_CLASS_IMG_PD.'" src="'.$image_plier_deplier.'" alt="'.$alt.'" />'.
202
                        '<img class="'.ADME_CLASS_IMG_PD.'" src="'.$image_plier_deplier.'" alt="'.$alt.'" />'.
203
                    '</a>'.'&nbsp;'."\n";
203
                    '</a>'.'&nbsp;'."\n";
204
    }
204
    }
205
    
-
 
-
 
205
    $xhtml_info='';
206
    //-------------------------------------------------------------------------------------------------------------------
206
    //-------------------------------------------------------------------------------------------------------------------
207
    // XHTML du nom du menu et de ses infos
207
    // XHTML du nom du menu et de ses infos
208
    $xhtml_info  = htmlentities(empty($ligne->gm_nom) ? ADME_LG_PARENTHESE_OUVRANTE.$ligne->gm_nom.ADME_LG_PARENTHESE_FERMANTE : $ligne->gm_nom);
208
    $xhtml_info .= htmlentities(empty($ligne->gm_nom) ? ADME_LG_PARENTHESE_OUVRANTE.$ligne->gm_nom.ADME_LG_PARENTHESE_FERMANTE : $ligne->gm_nom);
209
    $xhtml_info .= '&nbsp;';
209
    $xhtml_info .= '&nbsp;';
210
    $xhtml_info .= ADME_LG_PARENTHESE_OUVRANTE.$ligne_app->gap_nom.'&nbsp;'.ADME_LG_SLASH.'&nbsp;'.$ligne->ga_prenom.ADME_LG_PARENTHESE_FERMANTE;
210
    $xhtml_info .= ADME_LG_PARENTHESE_OUVRANTE.$ligne_app->gap_nom.'&nbsp;'.ADME_LG_SLASH.'&nbsp;'.$ligne->ga_prenom.ADME_LG_PARENTHESE_FERMANTE;
211
    $xhtml_info .= '&nbsp;'."\n";
211
    $xhtml_info .= '&nbsp;'."\n";
Line 212... Line 212...
212
    
212
    
Line 1550... Line 1550...
1550
 
1550
 
1551
 
1551
 
1552
/* +--Fin du code ----------------------------------------------------------------------------------------+
1552
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
1553
*
-
 
1554
* $Log: not supported by cvs2svn $
-
 
1555
* Revision 1.25  2006/09/20 12:09:16  ddelon
1553
*
1556
* bug suppression contenu du menu commun
1554
* $Log: not supported by cvs2svn $
1557
*
1555
* Revision 1.24  2006/09/07 13:45:56  jp_milcent
1558
* Revision 1.24  2006/09/07 13:45:56  jp_milcent
1556
* Trie par ordre alphabétique des appli.
1559
* Trie par ordre alphabétique des appli.
1557
*
1560
*