X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fcalendar%2Ffunctions.php;h=e29617bad9b3dec9f48ba147f042fc778ce48b0a;hb=505e00aad983adab70d4b001f450064cbda37b86;hp=d6d3087b34af50fbfb61678690388d70e489974a;hpb=d61a01d48fa9d58a7fdd5a99e7943b7dcaa94178;p=squirrelmail.git diff --git a/plugins/calendar/functions.php b/plugins/calendar/functions.php index d6d3087b..e29617ba 100644 --- a/plugins/calendar/functions.php +++ b/plugins/calendar/functions.php @@ -1,146 +1,191 @@ - * Licensed under the GNU GPL. For full terms see the file COPYING. - * - * miscelenous functions. + +/** + * Other calendar plugin functions. * - * 18 Jan 2002 Adapted to official SM rules philippe@squirrelmail.org. + * @copyright © 2002-2007 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ + * @package plugins + * @subpackage calendar */ - +/** + * Adds second layer of calendar links to upper menu + * @return void + */ function calendar_header() { - //Add Second layer ofCalendar links to upper menu global $color,$year,$day,$month; - echo "
"; + echo html_tag( 'table', '', '', $color[0], 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'left', '', 'width="100%"' ); - displayInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right"); - echo "  \n"; - displayInternalLink("plugins/calendar/day.php?year=$year&month=$month&day=$day",_("Day View"),"right"); - echo "  \n"; - // displayInternalLink("plugins/calendar/event_create.php?year=$year&month=$month&day=$day",_("Add Event"),"right"); - // echo "  \n"; - echo ' |