개발 Q&A

제목 calendar 라이브러리에서 오늘 이 후 날짜만 class 명 달리 주고 싶은데 어떻게 해야 하나요?
카테고리 PHP
글쓴이 반페르시 작성시각 2018/10/10 18:10:24
댓글 : 0 추천 : 0 스크랩 : 0 조회수 : 8102   RSS

$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를 넣어주려고 하는데 어디에 넣어야 되는지 몰라 질문 드립니다.

 

 다음글 RESTful API 이 무엇인가요? (1)
 이전글 검색기능에서 ' <- 잘 처리 하는 방법 문의드... (2)

댓글

없음