Subversion Repositories Sites.outils-naturalistes.fr

Rev

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

Rev 11 Rev 39
Line -... Line 1...
-
 
1
<?php $auteur_session = '[(#SESSION{login})]'; 
-
 
2
?>
-
 
3
 
1
<BOUCLE_gen(RUBRIQUES){id_rubrique}>
4
<BOUCLE_gen(RUBRIQUES){id_rubrique}{tout}>
2
 	<div class="rubrique" id="rubrique#ID_RUBRIQUE">
5
 	<div class="rubrique" id="rubrique#ID_RUBRIQUE">
3
			[<h4>(#SOUSTITRE)</h4>]
6
			[<h4>(#SOUSTITRE)</h4>]
4
			[(#TEXTE|paragrapher)]
7
			[(#TEXTE|paragrapher)]
5
   </div>
8
   </div>
6
</BOUCLE_gen>
9
</BOUCLE_gen>
7
<BOUCLE_titre(RUBRIQUES){id_rubrique}{par num titre}{id_mot=1}>
10
<BOUCLE_titre(RUBRIQUES){id_rubrique}{par num titre}{id_mot=1}>
8
	<!-- contenu court avec date -->
11
	<!-- contenu court avec date -->
9
	<BOUCLE_afficheDesc(ARTICLES){id_rubrique}{par num titre}{doublons}>
12
	<BOUCLE_afficheDesc(ARTICLES){id_rubrique}{par num titre}{doublons}>
10
    	<div class="article_date" id="article#ID_ARTICLE">
13
    	<div class="article_date" id="article#ID_ARTICLE">
11
		[<h3>(#TITRE|supprimer_numero)</h3>]
14
		[<h3>(#TITRE|supprimer_numero)</h3>] 
-
 
15
		<span class="details_date">[(#DATE|affdate)]</span>
12
		[<h4>(#SOUSTITRE)</h4>]
16
		[<h4>(#SOUSTITRE)</h4>]
13
		[(#CHAPO|sinon{#INTRODUCTION}|paragrapher)]
17
		[(#CHAPO|sinon{#INTRODUCTION}|paragrapher)]
14
		<span class="details">[(#DATE|affdate)] | <a href="#URL_ARTICLE"><:lire_plus:></a></span>
18
		<span class="details"><a href="#URL_ARTICLE"><:lire_plus:></a></span>
15
		</div>
19
		</div>
16
	</BOUCLE_afficheDesc>
20
	</BOUCLE_afficheDesc>
17
</BOUCLE_titre>
21
</BOUCLE_titre>
-
 
22
<BOUCLE_identification(RUBRIQUES){id_rubrique} {titre_mot=identification} {tout}>
-
 
23
<?php
-
 
24
define ('PAP_CHEMIN_API_PEAR', 'api/pear/');
-
 
25
define ('PAP_CHEMIN_RACINE', '');
-
 
26
define ('GEN_SEP', '/');
-
 
27
define ('GEN_CHEMIN_API', 'api/');
-
 
28
define ('PAP_CHEMIN_API_PEARDB', PAP_CHEMIN_API_PEAR);
-
 
29
set_include_path('.:'.PAP_CHEMIN_API_PEAR);
-
 
30
 
-
 
31
include_once 'authentification.php';
-
 
32
 
-
 
33
?>
-
 
34
 
-
 
35
<div id="contenu" >
-
 
36
 
-
 
37
 
-
 
38
 
-
 
39
	<?php 
-
 
40
if ($auteur_session) {
-
 
41
 
-
 
42
	 ?>
-
 
43
	Vous &ecirc;tes authentifi&eacute: avec l'identifiant <b><?php echo $auteur_session?></b>  <a href='#URL_LOGOUT'>cliquez ici pour vous déconnecter</a>
-
 
44
 
-
 
45
 
-
 
46
	<?php } 
-
 
47
	else {
-
 
48
	      $GLOBALS['AUTH']->logout();
-
 
49
 
-
 
50
	?>
-
 
51
	
-
 
52
	<div id="login_public" class="formulaire">
-
 
53
				[(#LOGIN_PUBLIC)]
-
 
54
	</div>
-
 
55
	<div id="inscription_public" class="formulaire">
-
 
56
				[(#FORMULAIRE_INSCRIPTION)]
-
 
57
	</div>
-
 
58
<?php } ?>
-
 
59
</div>
-
 
60
</BOUCLE_identification>    
-
 
61
 
18
<BOUCLE_afficheArt(ARTICLES){id_rubrique}{par num titre}{doublons}{0,1}>
62
<BOUCLE_afficheArt(ARTICLES){id_rubrique}{par num titre}{doublons}{0,1}>
19
		<div class="article" id="article#ID_ARTICLE">
63
		<div class="article" id="article#ID_ARTICLE">
20
		<h3>[(#TITRE|supprimer_numero)]</h3>
64
		<h3>[(#TITRE|supprimer_numero)]</h3>
21
		[<h4>(#SOUSTITRE)</h4>]
65
		[<h4>(#SOUSTITRE)</h4>]
22
		[(#CHAPO||inserer_attribut{'class','chapeau'})]
66
		[(#CHAPO||inserer_attribut{'class','chapeau'})]