Talk:Wallonie2014/AgendaActionsSignatures: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(script de génération du tableau)
 
No edit summary
 
Line 5: Line 5:
$max = 57;
$max = 57;
$current = 1;
$current = 1;
$days = ['Je', 'Ve', 'Sa', 'Di', 'Lu', 'Ma', 'Me'];
$j = 0;
?>
?>
{| class="wikitable"
{| class="wikitable"
Line 13: Line 15:
<?php for ( $i = 30; $i < 32; $i++ ): ?>
<?php for ( $i = 30; $i < 32; $i++ ): ?>
|--
|--
| <?php $n = $max - $current; $current++; echo "{$i} janvier 2014 (J - {$n})\n"; ?>
| <?php $j = $j > 6 ? 0 : $j; $n = $max - $current; echo $days[$j]; $j++; $current++; echo " {$i} janvier 2014 (J - {$n})\n"; ?>
|  
|  
<?php endfor; ?>
<?php endfor; ?>
<?php for ( $i = 1; $i < 29; $i++ ): ?>
<?php for ( $i = 1; $i < 29; $i++ ): ?>
|--
|--
| <?php $n = $max - $current; $current++; echo "{$i} février 2014 (J - {$n})\n"; ?>
| <?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 endfor; ?>
<?php for ( $i = 1; $i < 28; $i++ ): ?>
<?php for ( $i = 1; $i < 28; $i++ ): ?>
|--
|--
| <?php $n = $max - $current; $current++; echo "{$i} mars 2014 (J - {$n})\n"; ?>
| <?php $j = $j > 6 ? 0 : $j; $n = $max - $current; echo $days[$j]; $j++; $current++; echo " {$i} mars 2014 (J - {$n})\n"; ?>
|  
|  
<?php endfor; ?>
<?php endfor; ?>

Latest revision as of 22:29, 29 January 2014

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)