/** * copyright : (C) 2001-2013 Advanced Internet Designs Inc. * email : forum@prohost.org * $Id: calendar.tmpl 5716 2013-10-26 16:50:02Z naudefj $ * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. **/ {PHP_FILE: input: calendar.php.t; output: cal.php;} {REF: security.tmpl} {REF: header.tmpl} {REF: usercp.tmpl} {REF: curtime.tmpl} {REF: stats.tmpl} {REF: footer.tmpl} {PAGE: CAL_PAGE display the forum's calendar} {TEMPLATE: header} {TEMPLATE: usercp} {IF: $view == 'y'} {ENDIF} {IF: $view == 'm'} {ENDIF} {IF: $view == 'd'} {ENDIF}

{IF: $prev_year} «{ENDIFI}  {VAR: year}  {IF: $next_year}»{ENDIFI}

{VAR: months[0]} {VAR: year}

{FUNC: draw_calendar($year, 1, 'small', $year, $month, $day)}

{VAR: months[1]} {VAR: year}

{FUNC: draw_calendar($year, 2, 'small', $year, $month, $day)}

{VAR: months[2]} {VAR: year}

{FUNC: draw_calendar($year, 3, 'small', $year, $month, $day)}

{VAR: months[3]} {VAR: year}

{FUNC: draw_calendar($year, 4, 'small', $year, $month, $day)}

{VAR: months[4]} {VAR: year}

{FUNC: draw_calendar($year, 5, 'small', $year, $month, $day)}

{VAR: months[5]} {VAR: year}

{FUNC: draw_calendar($year, 6, 'small', $year, $month, $day)}

{VAR: months[6]} {VAR: year}

{FUNC: draw_calendar($year, 7, 'small', $year, $month, $day)}

{VAR: months[7]} {VAR: year}

{FUNC: draw_calendar($year, 8, 'small', $year, $month, $day)}

{VAR: months[8]} {VAR: year}

{FUNC: draw_calendar($year, 9, 'small', $year, $month, $day)}

{VAR: months[9]} {VAR: year}

{FUNC: draw_calendar($year, 10, 'small', $year, $month, $day)}

{VAR: months[10]} {VAR: year}

{FUNC: draw_calendar($year, 11, 'small', $year, $month, $day)}

{VAR: months[11]} {VAR: year}

{FUNC: draw_calendar($year, 12, 'small', $year, $month, $day)}
{IF: $prev_month}«{ENDIFI}

{VAR: months[$month-1]} {VAR: year}

{IF: $next_month}»{ENDIFI}
{FUNC: draw_calendar($year, $month, 'large', $year, $month, $day)}
{MSG: cal_goto_date}
{VAR: select_month_control} {VAR: select_year_control}

{IF: $prev_day}«{ENDIFI} {VAR: day} {VAR: months[$month-1]} {VAR: year} {IF: $next_day}»{ENDIFI}

{MSG: cal_day_heading}

{IF: $events_for_day}
    {VAR: events_for_day}
{ELSE}{TEMPLATE: cal_no_events}{ENDI}

{MSG: cal_goto_date} {VAR: select_month_control} {VAR: select_year_control}

{VAR: months[$month-1]} {VAR: year}

{FUNC: draw_calendar($year, $month, 'small', $year, $month, $day)}
{TEMPLATE: curtime} {TEMPLATE-DATA: page_stats} {TEMPLATE: footer} {PAGE: END} {SECTION: calendar_title} {MSG: calendar} {SECTION: END} /* Calendar links. */ {SECTION: year_cur_lnk} {ROOT}?t=cal&view=y&year={VAR: year} {SECTION: END} {SECTION: year_next_lnk} {ROOT}?t=cal&view=y&year={VAR: next_year} {SECTION: END} {SECTION: year_prev_lnk} {ROOT}?t=cal&view=y&year={VAR: prev_year} {SECTION: END} {SECTION: month_cur_lnk} {ROOT}?t=cal&view=m&month={VAR: month}&year={VAR: year} {SECTION: END} {SECTION: month_next_lnk} {ROOT}?t=cal&view=m&year={VAR: next_year}&month={VAR: next_month} {SECTION: END} {SECTION: month_prev_lnk} {ROOT}?t=cal&view=m&year={VAR: prev_year}&month={VAR: prev_month} {SECTION: END} {SECTION: day_cur_lnk} {ROOT}?t=cal&view=d&year={VAR: year}&month={VAR: month}&day={VAR: day} {SECTION: END} {SECTION: day_next_lnk} {ROOT}?t=cal&view=d&year={VAR: next_year}&month={VAR: next_month}&day={VAR: next_day} {SECTION: END} {SECTION: day_prev_lnk} {ROOT}?t=cal&view=d&year={VAR: prev_year}&month={VAR: prev_month}&day={VAR: prev_day} {SECTION: END} /* Day and month messages. */ {SECTION: sunday} {MSG: sunday} {SECTION: END} {SECTION: sunday_short} {MSG: sunday_short} {SECTION: END} {SECTION: monday} {MSG: monday} {SECTION: END} {SECTION: monday_short} {MSG: monday_short} {SECTION: END} {SECTION: tuesday} {MSG: tuesday} {SECTION: END} {SECTION: tuesday_short} {MSG: tuesday_short} {SECTION: END} {SECTION: wednesday} {MSG: wednesday} {SECTION: END} {SECTION: wednesday_short} {MSG: wednesday_short} {SECTION: END} {SECTION: thursday} {MSG: thursday} {SECTION: END} {SECTION: thursday_short} {MSG: thursday_short} {SECTION: END} {SECTION: friday} {MSG: friday} {SECTION: END} {SECTION: friday_short} {MSG: friday_short} {SECTION: END} {SECTION: saturday} {MSG: saturday} {SECTION: END} {SECTION: saturday_short} {MSG: saturday_short} {SECTION: END} {SECTION: month_1} {MSG: month_1} {SECTION: END} {SECTION: month_2} {MSG: month_2} {SECTION: END} {SECTION: month_3} {MSG: month_3} {SECTION: END} {SECTION: month_4} {MSG: month_4} {SECTION: END} {SECTION: month_5} {MSG: month_5} {SECTION: END} {SECTION: month_6} {MSG: month_6} {SECTION: END} {SECTION: month_7} {MSG: month_7} {SECTION: END} {SECTION: month_8} {MSG: month_8} {SECTION: END} {SECTION: month_9} {MSG: month_9} {SECTION: END} {SECTION: month_10} {MSG: month_10} {SECTION: END} {SECTION: month_11} {MSG: month_11} {SECTION: END} {SECTION: month_12} {MSG: month_12} {SECTION: END} {SECTION: cal_no_events}

{MSG: cal_no_events}

{SECTION: END} {SECTION: cal_event_entry}
  • {VAR: event}
  • {SECTION: END} {SECTION: cal_birthday} {MSG: cal_birthday} {IF: $age}{MSG: cal_birthday_age}{ENDIF} {SECTION: END} {SECTION: cal_birthdays} {MSG: cal_birthdays} {SECTION: END} {SECTION: cal_user_link} {VAR: r[1]} {SECTION: END} {SECTION: cal_user_link_lnk} {ROOT}?t=usrinfo&id={VAR: r[0]}&{DEF: _rsid} {SECTION: END} {SECTION: cal_update} {MSG: cal_update} {SECTION: END}