Posted By

jdhall75 on 04/01/12


Tagged

calendar template codeigniter


Versions (?)

CI calendar template


 / Published in: PHP
 

URL: http://demo1.cleveridentity.come/index.php/demo1/schedule

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. ');

Report this snippet  

You need to login to post a comment.