Subversion Repositories Sites.outils-naturalistes.fr

Rev

Rev 11 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11 Rev 41
Line -... Line 1...
-
 
1
<BOUCLE_mots_cles(MOTS){id_article=#ID_ARTICLE}>
-
 
2
		<?php 
-
 
3
			$mots_cles[] = "#TITRE";
-
 
4
		?>	
-
 
5
</BOUCLE_mots_cles>
-
 
6
 
-
 
7
<BOUCLE_bazar(ARTICLES){id_article}{titre_mot=bazar}{doublons}>
-
 
8
	<?php
-
 
9
 
-
 
10
	define ('PAP_CHEMIN_API_PEAR', 'api/pear/');
-
 
11
	define ('PAP_CHEMIN_RACINE', '');
-
 
12
	define ('GEN_SEP', '/');
-
 
13
	define ('GEN_CHEMIN_API', 'api/');
-
 
14
	define ('PAP_CHEMIN_API_PEARDB', PAP_CHEMIN_API_PEAR);
-
 
15
	set_include_path('.:'.PAP_CHEMIN_API_PEAR);
-
 
16
 
-
 
17
	include_once 'authentification.php';
-
 
18
	include_once 'api/formulaire/formulaire.fonct.inc.php';
-
 
19
	$GLOBALS['_GEN_commun']['info_application']->categorie_nature = '0';
-
 
20
	include_once 'client/bazar/bazar.php';
-
 
21
 
-
 
22
	// Vue fonction de l'article 
-
 
23
	/*define ('BAZ_VOIR_TOUTES_ANNONCES', 1) ;
-
 
24
	define ('BAZ_ACTION_VOIR_VOS_ANNONCES', 2);
-
 
25
	define ('BAZ_DEPOSER_ANNONCE', 3) ;
-
 
26
	define ('BAZ_ANNONCES_A_VALIDER', 4) ;
-
 
27
	define ('BAZ_GERER_DROITS', 5) ;
-
 
28
	define ('BAZ_ADMINISTRER_ANNONCES', 6) ;
-
 
29
	define ('BAZ_MODIFIER_FICHE', 7) ;
-
 
30
	if (!defined('BAZ_VOIR_FICHE')) define ('BAZ_VOIR_FICHE', 8) ;
-
 
31
	define ('BAZ_SUPPRIMER_FICHE', 9) ;*/
-
 
32
 
-
 
33
	$normal = false;;
-
 
34
	
-
 
35
	if(isset($_GET[BAZ_VARIABLE_ACTION])) {
-
 
36
		$normal = false;
-
 
37
	}
-
 
38
	else {
-
 
39
		if(isset($mots_cles) && count($mots_cles > 1)) {
-
 
40
			foreach($mots_cles as $mot) {
-
 
41
			
-
 
42
				switch ($mot) {
-
 
43
				   case 'bazar_consultation': // Consultation.
-
 
44
						$_GET['vue']=2; 
-
 
45
				   break;
-
 
46
				   
-
 
47
				   case 'bazar_administration': // Administrer fiches.
-
 
48
					$utilisateur = new Administrateur_bazar($GLOBALS['AUTH']);
-
 
49
					if($utilisateur->isSuperAdmin()) {
-
 
50
						$_GET['vue']=5; 
-
 
51
					}
-
 
52
					else {
-
 
53
						$normal=true;
-
 
54
					}
-
 
55
				   break;
-
 
56
				   
-
 
57
				   case 'bazar_saisie': // Saisir fiche.
-
 
58
						$_GET['vue']=4; 
-
 
59
				   break;
-
 
60
				   
-
 
61
				   case 'bazar_voir_fiches': // Voir les fiches.
-
 
62
						$_GET['vue']=3; 
-
 
63
				   break;
-
 
64
				   
-
 
65
				   default:
-
 
66
					$_GET['vue']=1; 
-
 
67
					$normal=false;
-
 
68
				   break;
-
 
69
				}
-
 
70
			}
-
 
71
		}
-
 
72
	}
-
 
73
	
-
 
74
	if(!$normal) {
-
 
75
		$html = afficherContenuCorps();
-
 
76
	} else {
-
 
77
		$html = "";
-
 
78
	}
-
 
79
	?>
-
 
80
</BOUCLE_bazar>
-
 
81
 
1
<BOUCLE_art(ARTICLES){id_article}>
82
<BOUCLE_art(ARTICLES){id_article}>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
83
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
84
<html xmlns="http://www.w3.org/1999/xhtml">
4
<head>
85
<head>
5
<INCLURE{fond=include/head}{id_rubrique}>
86
<INCLURE{fond=include/head}{id_rubrique}>
-
 
87
<link rel="stylesheet" href="[(#CHEMIN{css/bazar.css})]" type="text/css" media="screen" />
6
</head>
88
</head>
7
<body>
89
<body>
Line 8... Line 90...
8
 
90
 
Line 12... Line 94...
12
<INCLURE{fond=include/header}{id_rubrique}>
94
<INCLURE{fond=include/header}{id_rubrique}>
Line 13... Line 95...
13
 
95
 
14
<div id="principal">
96
<div id="principal">
15
	<INCLURE{fond=include/menu}{id_rubrique}{id_article}{mon_secteur=#ID_SECTEUR}>
97
	<INCLURE{fond=include/menu}{id_rubrique}{id_article}{mon_secteur=#ID_SECTEUR}>
-
 
98
	<div id="contenu" >
-
 
99
		<?php
-
 
100
		if (isset($normal) && !$normal) {
-
 
101
			echo $html;
-
 
102
		}
16
	<div id="contenu" >
103
		else { ?>
-
 
104
		<div class="article" id="article#ID_ARTICLE">
17
	<div class="article" id="article#ID_ARTICLE">
105
		[<h3>(#TITRE|supprimer_numero)</h3>]
18
	[<p><strong>(#CHAPO)</strong></p>]
106
		[<p><strong>(#CHAPO)</strong></p>]
19
	[(#TEXTE|paragrapher)]
107
		[(#TEXTE|paragrapher)]
-
 
108
		[<div class="ps">(#PS)</div>]
-
 
109
		</div>
20
	[<div class="ps">(#PS)</div>]
110
		<?php } ?>
-
 
111
	</div>
-
 
112
	
-
 
113
<div id="dynamique">
-
 
114
		<INCLURE{fond=include/derniers-articles}>
-
 
115
		<div id="raccourcis">
-
 
116
		</div>
21
	</div>
117
	<INCLURE{fond=include/footer}>
22
	</div>
118
	</div>
23
</div>
-
 
24
 
-
 
25
<INCLURE{fond=include/footer}>
-
 
26
 
119
</div>
Line -... Line 120...
-
 
120
</div>
27
</div>
121
 
28
 
122
 
29
</body>
-
 
30
</html>
123
</body>
-
 
124
</html>