Location: PHPKode > scripts > Purple Beanie Web Booking For Joomla > com_pbbooking/admin/views/calendar/view.html.php
<?php
/**
 * Hellos View for PBBooking Component
 * 
 * @package    PurpleBeanie.PBBooking
 * @subpackage Components
 * @link http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_4
 * @license        GNU/GPL
 */
 
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();
 
jimport( 'joomla.application.component.view' );
 
/**
 * Hellos View
 *
 * @package    PurpleBeanie.PBBooking
 * @subpackage Components
 */
class PbbookingsViewCalendar extends JView
{
    /**
     * Hellos view display method
     * @return void
     **/
    function display($tpl = null)
    {
		$task = JRequest::getVar('task');
		if (!$task || $task=="display") {
        	JToolBarHelper::title( JText::_( 'PBBooking Manager' ), 'generic.png' );
        	JToolBarHelper::title( JText::_( 'PBBooking Manager' ), 'generic.png' );
			JToolBarHelper::editListX();
			JToolBarHelper::addNewX();
			JToolBarHelper::deleteList();
	        
	        
			$this->assignRef( 'calendars', JRequest::getVar('cals'));
		}
		
		if ($task == "edit" || $task == "add") {
	      	JToolBarHelper::title( JText::_( 'PBBooking Manager' ), 'generic.png' );
			JToolBarHelper::save();
			$this->assignRef('calendar',JRequest::getVar('calendar'));
		}
        
	 parent::display($tpl);
    }
}
Return current item: Purple Beanie Web Booking For Joomla