CI日历类更改

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CI日历类更改相关的知识,希望对你有一定的参考价值。

At line 220 you should see the the start if an if block. This is the section that needs to be edited. I added the foreach block to itterate over the data array and create links in the table cells.
  1. if (isset($data[$day]))
  2. {
  3. // Cells with content
  4. $temp = ($is_current_month === TRUE AND $day == $cur_day) ?
  5. $this->temp['cal_cell_content_today'] : $this->temp['cal_cell_content'];
  6. foreach($data[$day] as $content) {
  7. $out .= str_replace(array('{link}','{link_text}', '{day}'),
  8. array($content['link'], $content['link_text'], $day), $temp);
  9. }
  10. }
  11. else
  12. {
  13. // Cells with no content
  14. $temp = ($is_current_month === TRUE AND $day == $cur_day) ?
  15. $this->temp['cal_cell_no_content_today'] : $this->temp['cal_cell_no_content'];
  16. $out .= str_replace('{day}', $day, $temp);
  17. }

以上是关于CI日历类更改的主要内容,如果未能解决你的问题,请参考以下文章

CI日历类初始化完成

CI日历类初始化

CI日历模板

Android从主活动类中的非类布局访问Textview

异步任务类完成后如何更改文本视图的值(在片段中)?

Fullcalendar的fc-highlight不适用于自定义日历中的日期更改