Talk:Wallonie2014/AgendaActionsSignatures

From Pirate Party Belgium
< Talk:Wallonie2014
Revision as of 22:29, 29 January 2014 by ZeFredz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Script pour ceux qui veulent jouer avec :

<?php
	$max = 57;
	$current = 1;
	$days = ['Je', 'Ve', 'Sa', 'Di', 'Lu', 'Ma', 'Me'];
	$j = 0;
?>
{| class="wikitable"
|+ Calendrier de récolte des signatures
|--
! Date
! Evenement(s)
<?php for ( $i = 30; $i < 32; $i++ ): ?>
|--
| <?php $j = $j > 6 ? 0 : $j; $n = $max - $current; echo $days[$j]; $j++; $current++; echo " {$i} janvier 2014 (J - {$n})\n"; ?>
| 
<?php endfor; ?>
<?php for ( $i = 1; $i < 29; $i++ ): ?>
|--
| <?php $j = $j > 6 ? 0 : $j; $n = $max - $current; echo $days[$j]; $j++; $current++; echo " {$i} février 2014 (J - {$n})\n"; ?>
| 
<?php endfor; ?>
<?php for ( $i = 1; $i < 28; $i++ ): ?>
|--
| <?php $j = $j > 6 ? 0 : $j; $n = $max - $current; echo $days[$j]; $j++; $current++; echo " {$i} mars 2014 (J - {$n})\n"; ?>
| 
<?php endfor; ?>
|}

--ZeFredz (talk) 22:16, 29 January 2014 (CET)