Le bien bonjour à tout,

Je débute avec spip et ce que je veux faire c'est afficher deux rubriques(évènement, actualité) sur la page sommaire, pour l'instant voilà le code de la page sommaire
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
 
<?php
if(!ereg("Firefox/",$_SERVER['HTTP_USER_AGENT'])){
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
}
?>
<html dir="#LANG_DIR" lang="#LANG">
<head>	
	<title>[(#NOM_SITE_SPIP|textebrut)]</title>
	[<meta name="description" content="(#DESCRIPTIF_SITE_SPIP|couper{150}|textebrut)" />]
	<INCLURE{fond=inc-head}>
 
 
	<script language = "JavaScript">
	function preloader()
	{
		villeImage = new Image();
		villeImage.src = "images/menu_fichiers/ville-o.gif";
		accueilImage = new Image();
		accueilImage.src = "images/menu_fichiers/accueil-o.gif";
		tourismeImage = new Image();
		tourismeImage.src = "images/menu_fichiers/tourisme-o.gif";
		eventsImage = new Image();
		eventsImage.src = "images/menu_fichiers/evenements-o.gif";
		contactImage = new Image();
		contactImage.src = "images/menu_fichiers/contact-o.gif";
		decouvrirImage = new Image();
		contactImage.src = "images/menu_fichiers/decouvrir-o.gif";
	}
</script>
 
 
 
</head>
 
<?php 
 
if ('#ID_RUBRIQUE'==NULL):
	?>
	<BOUCLE_documents_background_default(DOCUMENTS){id_rubrique=1}{par hasard}{0,1}>					
		<body class="page_sommaire" style="background:url(#URL_DOCUMENT);">	
	</BOUCLE_documents_background_default>
		<body class="page_sommaire">
	<//BOUCLE_documents_background_default>
	<?php
else:
	?>
		<INCLURE{fond=inc-body-art}{id_rubrique=#ID_RUBRIQUE}> 
	<?php	
endif;
?>	
 
 
<div id="container">
 
	<div id="header" >
		<INCLURE{fond=inc-accroche-home}>
		<div id="menu" style="z-index:100;">
			<BOUCLE_menuHome(RUBRIQUES){id_rubrique=1}>	<a href="#URL_SITE_SPIP/" class="[(#TITRE|supprimer_numero|supprimer_accent_espace)][_(#EXPOSE)]" title="[(#TITRE|supprimer_numero|supprimer_accent_espace)][_(#EXPOSE)]"></a>	</BOUCLE_menuHome>		
			<BOUCLE_menuHaut(RUBRIQUES){id_mot=2}{tout}{racine}{par titre}>	
 
		<?php
		$style = '';
		if('#ID_RUBRIQUE' == 2){
			$style = 'width:75px;';
		}	
		if('#ID_RUBRIQUE' == 3){
			$style = 'width:70px;';
		}	
 
		?>
 
		<ul id="menu" style="list-style-type:none;<?= $style; ?>">
			<li>
				<a href="#URL_RUBRIQUE" class="[(#TITRE|supprimer_numero|supprimer_accent_espace)][_(#EXPOSE)]"></a>
 
				<ul class="sousmenu">
				<BOUCLE_sousmenuHaut(RUBRIQUES){id_parent=#ID_RUBRIQUE}{par titre}>
					<li>
						<a href="#URL_RUBRIQUE" >[(#TITRE|supprimer_numero)]</a>
						<ul>
							<BOUCLE_soussousmenuHaut(RUBRIQUES){id_parent=#ID_RUBRIQUE}{id_parent!=39}{tout}{par titre}>
	                            <li><a href="#URL_RUBRIQUE" >[(#TITRE|supprimer_numero)]</a></li>	                            
							</BOUCLE_soussousmenuHaut>
							<BOUCLE_soussousmenuHautArt(ARTICLES){id_rubrique=#ID_RUBRIQUE}{id_rubrique!=39}{tout}{par titre}>
	                            <li><a href="#URL_ARTICLE" >[(#TITRE|supprimer_numero)]</a></li>	                            
							</BOUCLE_soussousmenuHautArt>
						</ul>					
					</li>	
				</BOUCLE_sousmenuHaut>	
				<BOUCLE_sousmenuHautArt(ARTICLES){id_rubrique=#ID_RUBRIQUE}{id_article!=13}{id_article!=8}{par titre}{id_rubrique!=7}>
					<?php $affiche = true; ?>
					<BOUCLE_sousmenuHautArtMots(MOTS){id_article}>					
						<?php
						if('#ID_MOT' == 75){
							$affiche = false;
						}
						?>
					</BOUCLE_sousmenuHautArtMots>
					<?php
					if($affiche == true){
					?>
					<li>
						<a href="#URL_ARTICLE" >[(#TITRE|supprimer_numero)]</a>									
					</li>	
					<?php
					}
					?>
				</BOUCLE_sousmenuHautArt>	
				</ul>
 
			</li>		
		</ul>
	</BOUCLE_menuHaut>
		</div><!-- fin menu -->
			<div id="menu-bd"></div>
<script type="text/javascript">
   initMenu();
</script>
 
<div id="curseur" class="infobulle"></div>		
	</div> <!-- fin header -->
 
 
	<div id="wrapper" class="wrapper-home">
	<BOUCLE_bienvenue(ARTICLES) {id_article=4}>
	  [<div style="width:550px;"><span class="texte" id="TICKER" style="overflow:hidden; width:450px; margin-right:auto; margin-left:auto;">(#TEXTE)</span></div>]
	</BOUCLE_bienvenue>
	</div><!-- FIN WRAPPER -->
 
 
 
	<!-- FIN WRAPPER -->
 
<div id="content">
 
		<B_musique>
			<div class="musique-home">
			<BOUCLE_musique(DOCUMENTS){id_rubrique=256}{extension IN mp3}{0,1}>		
				<object type="application/x-shockwave-flash" data="js/dewplayer/dewplayer.swf?son=http://web.groupereflect.net/cabourg/#URL_DOCUMENT&autostart=1&autoreplay=1&bgcolor=413B37" width="200" height="20" id="dewplayer" name="dewplayer"> 
				<param name="wmode" value="transparent" />
				<param name="movie" value="js/dewplayer/dewplayer.swf?son=http://web.groupereflect.net/cabourg/#URL_DOCUMENT&autostart=1&autoreplay=1&bgcolor=413B37" /> 
				<param name="flashvars" value="mp3=#URL_DOCUMENT&amp;autostart=1" /> 
				</object>
			</BOUCLE_musique>
			</div>
		</B_musique>
 
 
		<div class="actumajeure">
 
		<BOUCLE_alaune(ARTICLES){id_mot=4}{par date}{inverse}{0, 1}>
			<div class="actumajeure-header">	
				<h2><a href="#URL_ARTICLE">[(#TITRE|supprimer_numero)]</a></h2>
 
			</div><!-- FIN artmajeur-header-->
 
 
			<div class="actumajeure-content">
			[<p class="comment">(#SOUSTITRE)</p>]
 
 
				<p class="descriptif">
					[<a href="[(#URL_ARTICLE)]" class="photoarticle">(#LOGO_ARTICLE|||image_reduire{200,200})</a>]
					[(#TEXTE|couper_home{400})]
				</p> <!-- FIN P DESCRIPTIF --> 
			</div><!-- FIN SPAN ART MAJEURE CONTENT -->
			<div class="actumajeure-footer">  </div>
		</BOUCLE_alaune>
		</div><!-- FIN DIV ACTU MAJEURE -->
 
 
		<BOUCLE_autresagendas(ARTICLES){id_mot=5}{par date}{inverse}{0, 2}>
		  <div class="autreactu">
			<h2><a href="#URL_ARTICLE">[(#TITRE|supprimer_numero)]</a></h2>
			<br/> <!--ajout pierrick -->
			[<p class="comment">(#SOUSTITRE)</p>]
 
				<span class="descriptif" >
					[<a href="[(#URL_ARTICLE)]" class="photoarticle">(#LOGO_ARTICLE|||image_reduire{110,110})</a>]
					[(#TEXTE|couper_home{500})]
				</span>
		</div><!-- fin autre actu-->
		</BOUCLE_autresagendas>
 
		<div id="wrapper-footer">
 
		<div class="wftexte"><:cabourg_au_mois_d:><?php
function donner_nom_mois($iMois = '', $lang = 'fr' ) {
	$iMois = ( $iMois == '') ? (int)date('m') : (int)$iMois;
	$aMois['fr'] = array (	1 => 'janvier',
						2 => 'f&eacute;vrier',
						3 => 'mars',
						4 => 'avril',
						5 => 'mai',
						6 => 'juin',
						7 => 'juillet',
						8 => 'ao&ucirc;t',
						9 => 'septembre',
						10 => 'octobre',
						11 => 'novembre',
						12 => 'd&eacute;cembre'
					);
	$aMois['en'] = array (	1 => 'january',
						2 => 'february',
						3 => 'march',
						4 => 'april',
						5 => 'may',
						6 => 'june',
						7 => 'july',
						8 => 'august',
						9 => 'september',
						10 => 'october',
						11 => 'november',
						12 => 'december'
					);
	return $aMois[$lang][$iMois];
}
 
		$iMois  = ('' == '#ENV{mois}') ? date('m') : '#ENV{mois}';
		$iAnnee = ('' == '#ENV{annee}') ? date('Y') : '#ENV{annee}';
		if($_GET['lang'] != 'en'){
			if ( 4 == $iMois || 8 == $iMois || 10 == $iMois )
			  echo '\'';
			else 
			  echo 'e ';
		}
		echo donner_nom_mois($iMois, $_GET['lang']);
		$prevMois  = date('m', mktime(0, 0, 0, $iMois-1, 15, $iAnnee)); 
		$prevAnnee = date('Y', mktime(0, 0, 0, $iMois-1, 15, $iAnnee)); 
		$nextMois  = date('m', mktime(0, 0, 0, $iMois+1, 15, $iAnnee)); 
		$nextAnnee = date('Y', mktime(0, 0, 0, $iMois+1, 15, $iAnnee)); 
		$urlPrev = '#URL_SITE_SPIP/?mois='.$prevMois.'&amp;annee='.$prevAnnee;
		$urlNext = '#URL_SITE_SPIP/?mois='.$nextMois.'&amp;annee='.$nextAnnee;
		?></div> 
			<!--<a href="<?php echo $urlPrev; ?>" class="prev"></a> 
			<a href="<?php echo $urlNext; ?>" class="next"></a> -->
 
 
 
			<form method="get" action="">
				<select name="mois" id="mois" onChange="rechercheManif(this.form, <?php echo date('m'); ?>, <?php echo date('Y'); ?>);" class="select_mois">
						<option value="01" <?php if($_GET['mois'] == "01" || $iMois == "01") echo "selected='selected'"; ?>><:janvier:></option>
					<option value="02" <?php if($_GET['mois'] == "02" || $iMois == "02") echo "selected='selected'"; ?>><:fevrier:></option>
					<option value="03" <?php if($_GET['mois'] == "03" || $iMois == "03") echo "selected='selected'"; ?>><:mars:></option>
					<option value="04" <?php if($_GET['mois'] == "04" || $iMois == "04") echo "selected='selected'"; ?>><:avril:></option>
					<option value="05" <?php if($_GET['mois'] == "05" || $iMois == "05") echo "selected='selected'"; ?>><:mai:></option>
					<option value="06" <?php if($_GET['mois'] == "06" || $iMois == "06") echo "selected='selected'"; ?>><:juin:></option>
					<option value="07" <?php if($_GET['mois'] == "07" || $iMois == "07") echo "selected='selected'"; ?>><:juillet:></option>
					<option value="08" <?php if($_GET['mois'] == "08" || $iMois == "08") echo "selected='selected'"; ?>><:aout:></option>
					<option value="09" <?php if($_GET['mois'] == "09" || $iMois == "09") echo "selected='selected'"; ?>><:septembre:></option>
					<option value="10" <?php if($_GET['mois'] == "10" || $iMois == "10") echo "selected='selected'"; ?>><:octobre:></option>
					<option value="11" <?php if($_GET['mois'] == "11" || $iMois == "11") echo "selected='selected'"; ?>><:novembre:></option>
					<option value="12" <?php if($_GET['mois'] == "12" || $iMois == "12") echo "selected='selected'"; ?>><:decembre:></option>
				</select>
 
				<select name="cat" id="cat" onChange="rechercheManif(this.form, <?php echo date('m'); ?>, <?php echo date('Y'); ?>);" class="select_mois">
					<option value="0" ><:choisir_une_categorie:></option>
					<BOUCLE_mots_agenda(MOTS){id_groupe=5}{id_mot!=24}{id_mot!=25}{id_mot!=68}>					
						<option value="#ID_MOT" <?php if($_GET['cat'] == "#ID_MOT" ) echo "selected='selected'"; ?> >#TITRE</option>						
					</BOUCLE_mots_agenda>
				</select>
 
				<input type="hidden" name="annee" id="annee" value="<?php echo $iAnnee; ?>" />
			</form>
		</div>
	</div><!-- FIN CONTENT -->
 
	<!-- WRAPPER DU BAS ET ACTU DE TROISIEME NIVEAU -->
	<div id="extra">
	<?php $iEvnt=0;?>
 
 
 
	<?php
	if(!$_GET['cat'] || $_GET['cat'] == 0){
	?>
			<B_agenda_evnmts>			
 
			<BOUCLE_agenda_evnmts(EVENEMENTS){par date}{agendafull date_debut,date_fin, mois, #ENV{annee}, #ENV{mois}}  >
				    <div class="actu-<?php echo $iEvnt;?>">
						<a href="#URL_ARTICLE"><b>#TITRE</b></a>
						 [<span class="date">(#DATE_DEBUT|Agenda_affdate_debut_fin{#DATE_FIN,#HORAIRE})</span>]
						<span class="xacontent">#LIEU</span>
						<?php 
						$iEvnt++;
						$iEvnt = ( $iEvnt == 3) ? 0 : $iEvnt;?>
					</div>
			</BOUCLE_agenda_evnmts>
 
		</B_agenda_evnmts>
		 <?php $iEvnt=0;?>
		 <B_agenda_tous>
		    <BOUCLE_agenda_tous(EVENEMENTS){par date}{mois_relatif_debut=0}{annee_relatif_debut=#ENV{annee}} >
			    <div class="actu-<?php echo $iEvnt;?>">
					<a href="#URL_ARTICLE"><b>#TITRE</b></a>
					 [<span class="date">(#DATE_DEBUT|Agenda_affdate_debut_fin{#DATE_FIN,#HORAIRE})</span>]
					<span class="xacontent">#LIEU</span>
					<?php $iEvnt++;
					$iEvnt = ( $iEvnt == 3) ? 0 : $iEvnt;?>
				</div>
			</BOUCLE_agenda_tous>
		  </B_agenda_tous>
			  <div class="actu">
				<span class="xacontent"><:pas_d_evenements:></span>
			  </div>
		  <//B_agenda_tous>
		<//B_agenda_evnmts>
	<?php
	}else{
	?>		
		<BOUCLE_agenda_evnmts_cat(EVENEMENTS){par date}{agendafull date_debut,date_fin, mois, #ENV{annee}, #ENV{mois}} {id_mot=#ENV{cat}}  >
				<div class="actu-<?php echo $iEvnt;?>">
					<a href="#URL_ARTICLE"><b>#TITRE</b></a>
					 [<span class="date">(#DATE_DEBUT|Agenda_affdate_debut_fin{#DATE_FIN,#HORAIRE})</span>]
					<span class="xacontent">#LIEU</span>
					<?php 
					$iEvnt++;
					$iEvnt = ( $iEvnt == 3) ? 0 : $iEvnt;?>
				</div>
		</BOUCLE_agenda_evnmts_cat>		
	<?php
	}
	?>			
		<hr class="clear" />
	</div><!-- FIN DIV EXTRA -->
 
	[(#REM) Pied de page ]
	<INCLURE{fond=inc-pied}{skel=#SQUELETTE}>
 
	<INCLURE{fond=inc-navigation}{styleDisplay=block}>
 
</div><!-- fin conteneur -->
#SPIP_CRON
<!-- <script type="text/javascript" src="http://www.ddb-ftp.com/CREA/Normandie/Interstitiel/normandie.js"></script>-->		
</body>
 
</html>
<script type="text/javascript" src="js/webticker_lib.js"></script>
Y a id_mot=4 pour l'afficher un article sur le sommaire sinon je ne sais pas comment faire