Created
September 2, 2012 07:53
-
-
Save Marax/3595690 to your computer and use it in GitHub Desktop.
Tohle jsem jako vážně napsal já?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch($rok){ | |
case "2010": | |
$od = "2010-01-01"; | |
$do = "2010-12-31"; | |
$rrok= 2010; | |
break; | |
case "2009": | |
$od = "2009-01-01"; | |
$do = "2009-12-31"; | |
$rrok= 2009; | |
break; | |
case "2008": | |
$od = "2008-01-01"; | |
$do = "2008-12-31"; | |
$rrok= 2008; | |
break; | |
case "2007": | |
$od = "2007-01-01"; | |
$do = "2007-12-31"; | |
$rrok= 2007; | |
break; | |
case "2006": | |
$od = "2006-01-01"; | |
$do = "2006-12-31"; | |
$rrok= 2006; | |
break; | |
case "2005": | |
$od = "2005-01-01"; | |
$do = "2005-12-31"; | |
$rrok= 2005; | |
break; | |
case "2004": | |
$od = "2004-01-01"; | |
$do = "2004-12-31"; | |
$rrok= 2004; | |
break; | |
case "2003": | |
$od = "2003-01-01"; | |
$do = "2003-12-31"; | |
$rrok= 2003; | |
break; | |
case "2002": | |
$od = "2002-01-01"; | |
$do = "2002-12-31"; | |
$rrok= 2002; | |
break; | |
default: | |
$od = "2010-01-01"; | |
$do = "2010-12-31"; | |
$rrok= 2010; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment