src/UI/HTML/MonthCalendar.php
protected function buildHeading( $span = NULL )
	{
		$month	= (int) $this->getOption( 'show_month' );
		$year	= (int) $this->getOption( 'show_year' );
		$prev_month	= $month - 1;
		$next_month	= $month + 1;
		$prev_year	= $next_year = $year;

		$month	= $this->months[$month - 1];
		if( $prev_month < 1 )
		{
			$prev_month	= 12;
			$prev_year--;
		}
		else if( $next_month > 12 )
		{
			$next_month	= 1;
			$next_year++;
		}
		$colspan	= "";
		if( $span )
			$colspan	= " colspan='5'";
		$url	= $this->getOption( 'url' )."&".$this->getOption( 'carrier_year' )."=".$prev_year."&".$this->getOption( 'carrier_month' )."=".$prev_month;
		$prev	= UI_HTML_Elements::Link( $url, "&lt;" );
		$url	= $this->getOption( 'url' )."&".$this->getOption( 'carrier_year' )."=".$next_year."&".$this->getOption( 'carrier_month' )."=".$next_month;
		$next	= UI_HTML_Elements::Link( $url, "&gt;" );

		$left	= UI_HTML_Tag::create( "div", $prev, array( 'class' => "go-left" ) );
		$right	= UI_HTML_Tag::create( "div", $next, array( 'class' => "go-right" ) );
		$label	= UI_HTML_Tag::create( "div", htmlspecialchars( $month ).' '.$year, array( 'class' => "label" ) );
		$code	= UI_HTML_Tag::create( "div", $left.$label.$right, array( 'class' => 'month' ) );
		return $code;
	}
protected function buildHeading( $span = NULL )
	{
		$month	= (int) $this->getOption( 'show_month' );
		$year	= (int) $this->getOption( 'show_year' );
		$prev_month	= $month - 1;
		$next_month	= $month + 1;
		$prev_year	= $next_year = $year;

		$month	= $this->months[$month - 1];
		if( $prev_month < 1 )
		{
			$prev_month	= 12;
			$prev_year--;
		}
		else if( $next_month > 12 )
		{
			$next_month	= 1;
			$next_year++;
		}
		$colspan	= "";
		if( $span )
			$colspan	= " colspan='5'";
		$url	= $this->getOption( 'url' )."&".$this->getOption( 'carrier_year' )."=".$prev_year."&".$this->getOption( 'carrier_month' )."=".$prev_month;
		$prev	= UI_HTML_Elements::Link( $url, "&lt;" );
		$url	= $this->getOption( 'url' )."&".$this->getOption( 'carrier_year' )."=".$next_year."&".$this->getOption( 'carrier_month' )."=".$next_month;
		$next	= UI_HTML_Elements::Link( $url, "&gt;" );

		$left	= UI_HTML_Tag::create( "div", $prev, array( 'class' => "go-left" ) );
		$right	= UI_HTML_Tag::create( "div", $next, array( 'class' => "go-right" ) );
		$label	= UI_HTML_Tag::create( "div", htmlspecialchars( $month ).' '.$year, array( 'class' => "label" ) );
		$code	= UI_HTML_Tag::create( "div", $left.$label.$right, array( 'class' => 'month' ) );
		return $code;
	}
protected function buildHeading ( $ span = NULL ) { $ month = ( int ) $ this -> getOption ( 'show_month' ) ; $ year = ( int ) $ this -> getOption ( 'show_year' ) ; $ prev_month = $ month - 1 ; $ next_month = $ month + 1 ; $ prev_year = $ next_year = $ year ; $ month = $ this -> months [ $ month - 1 ] ; if ( $ prev_month < 1 ) { $ prev_month = 12 ; $ prev_year -- ; } else if ( $ next_month > 12 ) { $ next_month = 1 ; $ next_year ++ ; } $ colspan = "" ; if ( $ span ) $ colspan = " colspan='5'" ; $ url = $ this -> getOption ( 'url' ) . "&" . $ this -> getOption ( 'carrier_year' ) . "=" . $ prev_year . "&" . $ this -> getOption ( 'carrier_month' ) . "=" . $ prev_month ; $ prev = UI_HTML_Elements :: Link ( $ url , "&lt;" ) ; $ url = $ this -> getOption ( 'url' ) . "&" . $ this -> getOption ( 'carrier_year' ) . "=" . $ next_year . "&" . $ this -> getOption ( 'carrier_month' ) . "=" . $ next_month ; $ next = UI_HTML_Elements :: Link ( $ url , "&gt;" ) ; $ left = UI_HTML_Tag :: create ( "div" , $ prev , array ( 'class' => "go-left" ) ) ; $ right = UI_HTML_Tag :: create ( "div" , $ next , array ( 'class' => "go-right" ) ) ; $ label = UI_HTML_Tag :: create ( "div" , htmlspecialchars ( $ month ) . ' ' . $ year , array ( 'class' => "label" ) ) ; $ code = UI_HTML_Tag :: create ( "div" , $ left . $ label . $ right , array ( 'class' => 'month' ) ) ; return $ code ; }
Builds Table Heading with Month, Year and Links for Selection.
@access		protected
@param		int			$day		Number of Day
@param		string		$class		Class of Cell
@return		string
Builds Table Heading with Month Year and Links for Selection .