Subversion Repositories Applications.papyrus

Rev

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

Rev 1157 Rev 1161
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: plan.php,v 1.1 2006-12-13 09:42:39 jp_milcent Exp $
24
// CVS : $Id: plan.php,v 1.2 2006-12-13 10:53:36 jp_milcent Exp $
25
/**
25
/**
26
* papyrus_bp - plan.php
26
* papyrus_bp - plan.php
27
*
27
*
28
* Description :
28
* Description :
29
*
29
*
Line 31... Line 31...
31
//Auteur original :
31
//Auteur original :
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
33
//Autres auteurs :
33
//Autres auteurs :
34
*@author        Aucun
34
*@author        Aucun
35
*@copyright     Tela-Botanica 1999-2006
35
*@copyright     Tela-Botanica 1999-2006
36
*@version       $Revision: 1.1 $ $Date: 2006-12-13 09:42:39 $
36
*@version       $Revision: 1.2 $ $Date: 2006-12-13 10:53:36 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
*/
38
*/
Line 39... Line 39...
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
// |                                            ENTÊTE du PROGRAMME                                       |
41
// |                                            ENTÊTE du PROGRAMME                                       |
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
$GLOBALS['_GEN_commun']['info_applette_nom_fonction'] = 'afficherPlan';
43
$GLOBALS['_GEN_commun']['info_applette_nom_fonction'] = 'afficherPlan';
44
$GLOBALS['_GEN_commun']['info_applette_balise'] = 	'\{\{[Pp]lan'.
44
$GLOBALS['_GEN_commun']['info_applette_balise'] = 	'\{\{[Pp]lan'.
45
													'(?:\s*'.
45
													'(?:\s*'.
46
														'(?:'.
46
														'(?:'.
47
															'(site="[^"]+")|'.
47
															'(site="[^"]*")|'.
48
															'(permalien="(?i:oui|non)")|'.
48
															'(permalien="[^"]*")|'.
49
														')'.
49
														')'.
50
													')+'.
50
													')+'.
Line 51... Line 51...
51
													'\s*\}\}';
51
													'\s*\}\}';
Line 109... Line 109...
109
			$options['permalien'] = true;
109
			$options['permalien'] = true;
110
		} else if ($options['permalien'] == 'non') {
110
		} else if ($options['permalien'] == 'non') {
111
			$options['permalien'] = false;
111
			$options['permalien'] = false;
112
		}
112
		}
113
	}
113
	}
114
	
114
    
115
    //+----------------------------------------------------------------------------------------------------------------+
115
    //+----------------------------------------------------------------------------------------------------------------+
116
    // Récupération des données
116
    // Récupération des données
117
    if (count($GLOBALS['_PLAN_']['erreurs']) == 0) {
117
    if (count($GLOBALS['_PLAN_']['erreurs']) == 0) {
118
		$aso_info_menu = GEN_lireInfoMenuContenuDate($GLOBALS['_GEN_commun']['pear_db'], $options['type'], $options['site'], $options['categorie']);
118
		$tab_site = array_map('trim', explode(',', $options['site']));
119
		if (count($aso_info_menu) == 0) {
119
		if (count($tab_site) == 0) {
120
			$GLOBALS['_PLAN_']['informations'][] = sprintf(PLAN_LG_INFO_ZERO_PAGE, $options['site']);
120
			$GLOBALS['_PLAN_']['informations'][] = sprintf(PLAN_LG_INFO_ZERO_PAGE, $options['site']);
121
		} else {
121
		} else {			
122
			$tab_site = array_map('trim', explode(',', $options['site']));
-
 
123
			
-
 
124
			foreach ($tab_site as $cle => $site) {
122
			foreach ($tab_site as $cle => $site) {
125
				$aso_site_info = GEN_lireInfoSitePrincipalCodeAlpha($GLOBALS['_GEN_commun']['pear_db'], $site, DB_FETCHMODE_ASSOC);
123
				$aso_site_info = GEN_lireInfoSitePrincipalCodeAlpha($GLOBALS['_GEN_commun']['pear_db'], $site, DB_FETCHMODE_ASSOC);
126
				$aso_site['abreviation'] = $site; 
124
				$aso_site['abreviation'] = $site; 
127
				if (!empty($aso_site_info['gs_titre'])) {
125
				if (!empty($aso_site_info['gs_titre'])) {
128
					$titre = $aso_site_info['gs_titre'];
126
					$titre = $aso_site_info['gs_titre'];
Line 216... Line 214...
216
}
214
}
Line 217... Line 215...
217
 
215
 
218
/* +--Fin du code ----------------------------------------------------------------------------------------+
216
/* +--Fin du code ----------------------------------------------------------------------------------------+
219
*
217
*
-
 
218
* $Log: not supported by cvs2svn $
-
 
219
* Revision 1.1  2006/12/13 09:42:39  jp_milcent
-
 
220
* Ajout de l'applette Plan.
220
* $Log: not supported by cvs2svn $
221
*
221
*
222
*
222
* +-- Fin du code ----------------------------------------------------------------------------------------+
223
* +-- Fin du code ----------------------------------------------------------------------------------------+
223
*/
224
*/