diff index.php @ 5:5bfffcb2624b

Clean-up
author Franck Deroche <webmaster@defr.org>
date Sat, 20 Oct 2007 16:58:13 +0200
parents 629389204276
children 2ea1b19e21f3
line wrap: on
line diff
--- a/index.php	Sat Oct 20 16:28:08 2007 +0200
+++ b/index.php	Sat Oct 20 16:58:13 2007 +0200
@@ -5,8 +5,10 @@
      $type = $_GET['type'];
      $year = $_GET['year'];
      $month = $_GET['month'];
-     $prevMonth = ($month - 1)%12; if($prevMonth == 0) $prevMonth = 12; $prevYear = ($month == 1)?$year-1:$year;
-     $nextMonth = $month % 12 + 1; $nextYear = ($month == 12)?$year+1:$year;
+     $prevMonth = ($month - 1)%12; if($prevMonth == 0) $prevMonth = 12; 
+     $prevYear = ($month == 1)? $year-1 : $year;
+     $nextMonth = $month % 12 + 1; 
+     $nextYear = ($month == 12) ? $year+1 : $year;
      $Data = new DataAccess;
      include("top.php");
      $Data->Connect();