Subversion Repositories Applications.papyrus

Rev

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

Rev 841 Rev 842
Line 20... Line 20...
20
 
20
 
21
    	// Initialisation des variables
21
    	// Initialisation des variables
22
        $sortie = '';
22
        $sortie = '';
23
        $niveau = $options['niveau'];
23
        $niveau = $options['niveau'];
-
 
24
        $identifiant = $options['identifiant'];
24
        $identifiant = $options['identifiant'];
25
        $titre = $options['titre'];
Line 25... Line 26...
25
        $bdd =& $GLOBALS['_GEN_commun']['pear_db'];
26
        $bdd =& $GLOBALS['_GEN_commun']['pear_db'];
Line 26... Line 27...
26
        
27
        
Line 33... Line 34...
33
		}
34
		}
Line 34... Line 35...
34
        
35
        
Line 35... Line 36...
35
        
36
        
36
		$une_url =& new Pap_URL('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
37
		$une_url =& new Pap_URL('http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
Line 37... Line 38...
37
		
38
		
Line 38... Line 39...
38
		$titre='';
39
		
Line 68... Line 69...
68
	                
69
	                
69
	            if ( $resultat_traduction->numRows() > 0 ) {
70
	            if ( $resultat_traduction->numRows() > 0 ) {
70
	            	$aso_site=$resultat_traduction->fetchRow(DB_FETCHMODE_ASSOC);
71
	            	$aso_site=$resultat_traduction->fetchRow(DB_FETCHMODE_ASSOC);
Line 71... Line -...
71
	            }
-
 
-
 
72
	            }
72
	    
73
	    
73
    
74
    		 if ($titre=='') {
74
		      if (!empty($aso_site['gs_nom'])) {
75
		      	if (!empty($aso_site['gs_nom'])) {
75
		          $titre = $aso_site['gs_nom'];
76
		        	  $titre = $aso_site['gs_nom'];
76
		      } else {
77
		      	} else {
-
 
78
		        	  $titre = $aso_site['gs_titre'];
Line 77... Line 79...
77
		          $titre = $aso_site['gs_titre'];
79
    	      	}
Line 78... Line 80...
78
    	      }
80
    		 }
Line 111... Line 113...
111
				    	            
113
				    	            
112
				if ($resultat_traduction->numRows() > 0) {
114
				if ($resultat_traduction->numRows() > 0) {
113
					$aso_menu=$resultat_traduction->fetchRow(DB_FETCHMODE_ASSOC);
115
					$aso_menu=$resultat_traduction->fetchRow(DB_FETCHMODE_ASSOC);
Line 114... Line -...
114
				}            
-
 
-
 
116
				}            
115
				    
117
				    
116
            
118
            	if ($titre=='') {
117
     	 		if (!empty($aso_menu['gm_nom'])) {
119
	     	 		if (!empty($aso_menu['gm_nom'])) {
118
		        $titre = $aso_menu['gm_nom'];
120
			        $titre = $aso_menu['gm_nom'];
119
	     		}
121
		     		}
120
			     elseif (!empty($menu_valeur['gm_titre'])) {
122
				     elseif (!empty($menu_valeur['gm_titre'])) {
121
			        $titre = $aso_menu['gm_titre'];
123
				        $titre = $aso_menu['gm_titre'];
Line 122... Line 124...
122
			     }
124
				     }
Line 123... Line 125...
123
			     
125
            	}