CI日历模板

Posted

tags:

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

Template for for Codeigniter calendar class. Modified from default for css styling and multiple events per table cell.
  1. $prefs = array(
  2. 'day_type' => 'long',
  3. 'template' => '
  4.  
  5. {table_open}<table id="cal" border="0" cellpadding="0" cellspacing="0">{/table_open}
  6.  
  7. {heading_row_start}<tr>{/heading_row_start}
  8.  
  9. {heading_previous_cell}<th><a href="{previous_url}">&lt;&lt;</a></th>{/heading_previous_cell}
  10. {heading_title_cell}<th colspan="{colspan}">{heading}</th>{/heading_title_cell}
  11. {heading_next_cell}<th><a href="{next_url}">&gt;&gt;</a></th>{/heading_next_cell}
  12.  
  13. {heading_row_end}</tr>{/heading_row_end}
  14.  
  15. {week_row_start}<tr>{/week_row_start}
  16. {week_day_cell}<td class="week_cell">{week_day}</td>{/week_day_cell}
  17. {week_row_end}</tr>{/week_row_end}
  18.  
  19. {cal_row_start}<tr>{/cal_row_start}
  20. {cal_cell_start}<td class="cal_cell">{/cal_cell_start}
  21.  
  22. {cal_cell_content}<div>{day}</div><div><a href="{link}">{link_text}</a></div>{/cal_cell_content}
  23. {cal_cell_content_today}<div class="highlight"><a href="{content}">{day}</a></div>{/cal_cell_content_today}
  24.  
  25. {cal_cell_no_content}<div>{day}</div>{/cal_cell_no_content}
  26. {cal_cell_no_content_today}<div class="highlight">{day}</div>{/cal_cell_no_content_today}
  27.  
  28. {cal_cell_blank}&nbsp;{/cal_cell_blank}
  29.  
  30. {cal_cell_end}</td>{/cal_cell_end}
  31. {cal_row_end}</tr>{/cal_row_end}
  32.  
  33. {table_close}</table>{/table_close}
  34. ');

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

CI日历类原始

CI日历类初始化完成

CI日历类初始化

VSCode自定义代码片段——.vue文件的模板

VSCode自定义代码片段1——vue主模板

VSCode自定义代码片段2——.vue文件的模板