Subversion Repositories Applications.papyrus

Rev

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

Rev Author Line No. Line
1971 aperonnet 1
<!-- SYNDICATION - DEBUT -->
2
<h1 id="rss_titre_general">La botanique sur la toile</h1>
3
<?php if ($erreurs) : ?>
4
	<?php foreach ($erreurs as $erreur) : ?>
5
		<p class="pap_erreur"><?=$erreur;?></p>
6
	<?php endforeach; ?>
7
<?php elseif ($informations) : ?>
8
	<?php foreach ($informations as $information) : ?>
9
		<p class="pap_info"><?=$information;?></p>
10
	<?php endforeach; ?>
11
<?php else : ?>
12
  <div class="rss">
13
  <?php $flux = array(); ?>
14
  <?php foreach ($sites as $site) : ?>
15
    <?php foreach ($site['pages'] as $page) : ?>
16
      <?php array_push ($flux, array ($page['url'], $page['titre'], $site['titre'], strtotime($page['date']))); ?>
17
    <?php endforeach; ?>
18
  <?php endforeach; ?>
19
 
20
  <?php foreach ($flux as $key=>$row) : ?>
21
    <?php $date_flux[$key] = $row[3]; ?>
22
  <?php endforeach; ?>
23
 
24
  <?php array_multisort($date_flux, SORT_DESC, $flux); ?>
25
 
26
	<?php foreach ($flux as $key=>$news) : ?>
27
  	<h2 class="rss_titre_article"><a href="<?=$news[0];?>" class="lien_ext"><?php echo preg_replace('/^\d+-\d+&nbsp;:/', '', $news[1]);?></a></h2>
28
  	<h1 class="rss_titre_site"><?= $news[2]; ?> - <span class="date"><?php echo $GLOBALS['jours'][date ('w', $news[3])].' '.date('d',$news[3]).
1998 Aurelien 29
		 ' '.$GLOBALS['mois'][date('n',  $news[3])].' '.date ('Y', $news[3]);  ?></span></h1>
1971 aperonnet 30
	<?php endforeach; ?>
31
	</div>
32
<?php endif; ?>
33
<!-- SYNDICATION - FIN -->