diff --git a/calendar/inc/functions.inc.php b/calendar/inc/functions.inc.php index 0bb4e1c9dd..11d69585ab 100755 --- a/calendar/inc/functions.inc.php +++ b/calendar/inc/functions.inc.php @@ -94,97 +94,6 @@ } // end for $i echo ""; } // end function -/* - - - function weekday_short_name($w) { - switch($w) - { - case 0: return lang("Sun"); - case 1: return lang("Mon"); - case 2: return lang("Tue"); - case 3: return lang("Wed"); - case 4: return lang("Thu"); - case 5: return lang("Fri"); - case 6: return lang("Sat"); - case 7: return lang("Jul"); - } - return "unknown-weekday($w)"; - } - -function month_name ( $m ) { - switch ( $m ) { - case 0: return lang("January"); - case 1: return lang("February"); - case 2: return lang("March"); - case 3: return lang("April"); - case 4: return lang("May"); - case 5: return lang("June"); - case 6: return lang("July"); - case 7: return lang("August"); - case 8: return lang("September"); - case 9: return lang("October"); - case 10: return lang("November"); - case 11: return lang("December"); - } - return "unknown-month($m)"; -} - - - - function display_small_month($thismonth, $thisyear, $showyear) - { - global $phpgw, $phpgw_info; - - echo "
" - . ""; - echo month_name ( $thismonth - 1 ) . " | ||||||
" . weekday_short_name(0) . " | "; - for ($i = 1; $i < 7; $i++) { - echo "" . weekday_short_name ( $i ) . " | "; - } - if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "monday") - echo "" . - - weekday_short_name(0) . " | "; - for ($i = $wkstart; date("Ymd",$i) <= date ("Ymd",$monthend); $i += (24 * 3600 * 7) ) { - echo "||||
"; - echo "" . date ( "j", $date ) . - " | "; - } else - echo ""; - } // end for $j - echo " |