summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f33326)
raw | patch | inline | side by side (parent: 0f33326)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 18 May 2006 06:29:57 +0000 (06:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 18 May 2006 06:29:57 +0000 (06:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3400 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history |
index 0040b745f747d9c5dd1c6b59b2e12d1874658876..472eddbd0a16f35e3f74a4c5e2810dd4f5c38bb1 100644 (file)
for($d= 1; $d<32; $d++){
$days[$d]= $d;
}
- $years = array();
- $start = date("Y") - 100;
- $end = $start +100;
+ $years= array();
+
+ if(($date['year']-100)<1901){
+ $start = 1901;
+ }else{
+ $start = $date['year']-100;
+ }
+
+ $end = $start +100;
for($y= $start; $y<=$end; $y++){
$years[]= $y;
}
+ $years['-']= "- ";
$months= array(_("January"), _("February"), _("March"), _("April"),
_("May"), _("June"), _("July"), _("August"), _("September"),
- _("October"), _("November"), _("December"));
+ _("October"), _("November"), _("December"), '-' => '- ');
$smarty->assign("day", $date["mday"]);
$smarty->assign("days", $days);
$smarty->assign("months", $months);