Ignore:
Timestamp:
2012/04/12 15:23:42 (11 years ago)
Author:
habu
Message:

#1746 カレンダーに本日がいつであるかが、わかるマークの機能を追加して欲しい

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php

    r21693 r21738  
    9696    function lfGetCalendar($disp_month = 1) { 
    9797 
     98        $today = date("Y/m/d"); 
    9899        for ($j = 0; $j <= $disp_month-1; ++$j) { 
    99100            $year = date('Y'); 
     
    124125                    $arrCalendar[$j][$i]['holiday'] = false; 
    125126                } 
     127 
     128                if ($today === sprintf("%04d/%02d/%02d", $year, $month, $objDay->day)) { 
     129                    $arrCalendar[$j][$i]['today'] = true; 
     130                } 
     131 
    126132                ++$i; 
    127133            } 
Note: See TracChangeset for help on using the changeset viewer.