질문Q #20512
calendar 라이브러리에서 오늘 이 후 날짜만 class 명 달리 주고 싶은데 어떻게 해야 하나요?
반페르시2018-10-10 18:10:24

$prefs['template'] = array(

'table_open'           => '<table>'

, 'heading_row_start' => ''

                , 'heading_title_cell' => ''

, 'heading_row_end' => ''

, 'cal_cell_start' => '<td>'

, 'cal_cell_content' => '{content}'

, 'cal_cell_end' => ''

, 'cal_cell_start_today' => '<td class="on">'

, 'cal_cell_content_today' => '{content}'

, 'cal_cell_end_today' => ''

, 'cal_cell_start_other' => ''

, 'cal_cell_other' => '<td><a><strong>{day}</strong></a></td>'

, 'cal_cell_end_other' => ''

, 'table_close' => '</table>'

);

$this->load->library('calendar', array_merge($prefs));

 

td 안에 오늘 이후 날짜 td안에 off라는 class를 넣어주려고 하는데 어디에 넣어야 되는지 몰라 질문 드립니다.

 

답변0
아직 답변이 없습니다.