Subversion Repositories Sites.outils-naturalistes.fr

Rev

Rev 11 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
41 aurelien 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
 
3 david 82
<BOUCLE_art(ARTICLES){id_article}>
83
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
84
<html xmlns="http://www.w3.org/1999/xhtml">
85
<head>
86
<INCLURE{fond=include/head}{id_rubrique}>
41 aurelien 87
<link rel="stylesheet" href="[(#CHEMIN{css/bazar.css})]" type="text/css" media="screen" />
3 david 88
</head>
89
<body>
90
 
91
<div id="wrap">
92
 
11 david 93
 
3 david 94
<INCLURE{fond=include/header}{id_rubrique}>
95
 
96
<div id="principal">
11 david 97
	<INCLURE{fond=include/menu}{id_rubrique}{id_article}{mon_secteur=#ID_SECTEUR}>
3 david 98
	<div id="contenu" >
41 aurelien 99
		<?php
100
		if (isset($normal) && !$normal) {
101
			echo $html;
102
		}
103
		else { ?>
104
		<div class="article" id="article#ID_ARTICLE">
105
		[<h3>(#TITRE|supprimer_numero)</h3>]
106
		[<p><strong>(#CHAPO)</strong></p>]
107
		[(#TEXTE|paragrapher)]
108
		[<div class="ps">(#PS)</div>]
109
		</div>
110
		<?php } ?>
3 david 111
	</div>
41 aurelien 112
 
113
<div id="dynamique">
114
		<INCLURE{fond=include/derniers-articles}>
115
		<div id="raccourcis">
116
		</div>
117
	<INCLURE{fond=include/footer}>
11 david 118
	</div>
3 david 119
</div>
41 aurelien 120
</div>
3 david 121
 
122
 
123
</body>
124
</html>
41 aurelien 125
</BOUCLE_art>