PHP Calendar / Handbook

Version française Version française

  • $params['calendar_id'] : By default it's 1, increase this value to use multiple calendars on the same page.
  • $params['calendar_columns'] : Its default value is 7. Modify this number to add / remove columns.
  • $params['show_day'] : If it's set to 1, it shows the days (M T W T F S S)
  • $params['show_month'] : Set to 1, it show the month name and the current year
  • $params['nav_link'] : Set to 1, it show the previous / next month links
  • $params['link_before_date'] : If it's set to 1, it can display links on days that are before the current day
  • $params['link_after_date'] : If it's set to 1, it can display links on days that are after the current day
  • $params['link_on_day'] : Link to put on each day of the calendar. On each link, the dat is passed in argument. Think of adding '?argument=' at the end of the line
  • $params['font_face'] : Font to use (Default : 'Verdana, Arial, Helvetica')
  • $params['font_size'] : Font size in pixel (default : 10)
  • $params['bg_color'] : Background color for the days cells (white - #FFFFFF is the default)
  • $params['today_bg_color'] : Background color for the current day
  • $params['font_today_color'] : Font color for the current day
  • $params['font_color'] : Font color
  • $params['font_nav_bg_color'] : Background color for the days on top (M T W T F S S)
  • $params['font_nav_color'] : Font color for the days on top (M T W T F S S)
  • $params['font_header_color'] : Font color for the month name
  • $params['border_color'] : Color to use for the border of each cell
  • $params['use_img'] : Show images near the month name and at the bottom of the calendar. If set to '0', shows text links instead.
  • $params['lang'] : Change language of the calendar. Values are french (par défaut), english, german and spanish
  • $params['font_highlight_color'] : Font color for the highlighted days.
  • $params['bg_highlight_color'] : Cell background color for the highlighted days.
  • $params['day_mode'] : If set to 1, the calendar shows one day with the hours.
  • $params['time_step'] : Number of minutes between two step in day mode (day_mode = 1).
  • $params['time_start'] : Start hour for day mode (day_mode = 1). Format : HH:MM
  • $params['time_stop'] : End hour for day mode (day_mode = 1). Format : HH:MM.
  • $params['highlight'] : PHP array (array) to highlight some hours or days. For days, format is :
    array('YYYYMMDD' => 'my text'), and for hours, format is : array('YYYYMMDDHHmm' => 'my text')
    More infos on the example page.
  • $params['highlight_type'] : Show a text in the highlighted day (highlight_type = text), or just highlight the cell (highlight_type = highlight).
  • $params['cell_width'] : Cells width in pixels.
  • $params['cell_height'] : Cells height in pixels.
  • $params['short_day_name'] : If set to 1, days are complete (Monday, Tuesday, etc) instead of M, T, W, etc.
  • $params['link_on_hour'] : Link applied to hours in day mode (day_mode = 1). ex : index.php?hour=%%hh%%. %%hh%% will be replaced during the display

Example page