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 ""; - if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "monday") { - $wkstart = get_monday_before($thisyear, $thismonth, 1); - } else { - $wkstart = get_sunday_before($thisyear, $thismonth, 1); - } - - $monthstart = mktime(2,0,0,$thismonth,1,$thisyear); - $monthend = mktime(2,0,0,$thismonth + 1,0,$thisyear); - echo ""; - echo ""; - if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "sunday") - echo ""; - for ($i = 1; $i < 7; $i++) { - echo ""; - } - if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "monday") - echo ""; - for ($i = $wkstart; date("Ymd",$i) <= date ("Ymd",$monthend); $i += (24 * 3600 * 7) ) { - echo ""; - for ($j = 0; $j < 7; $j++) { - $date = $i + ($j * 24 * 3600); - if ( date("Ymd",$date) >= date ("Ymd",$monthstart) && - date("Ymd",$date) <= date ("Ymd",$monthend) ) { - echo ""; - } else - echo ""; - } // end for $j - echo ""; - } // end for $i - echo "
" - . ""; - echo month_name ( $thismonth - 1 ) . "
" . weekday_short_name(0) . "" . weekday_short_name ( $i ) . "" . - - weekday_short_name(0) . "
"; - echo "" . date ( "j", $date ) . - "
"; -} - -*/ - - - - - // LC: links back to an entry view for $id using $pic