Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- in view.php
- <?php
- // Check to ensure this file is included in Joomla!
- defined('_JEXEC') or die( 'Restricted access' );
- require_once(JPATH_COMPONENT.DS.'libraries'.DS.'baseview.class.php');
- class JongmanViewReservations extends JBaseView
- {
- function display()
- {
- JHTML::_('behavior.modal');
- JToolBarHelper::title('Jongman :: '.JText::_(COM_JONGMAN_MANAGE_RESERVATIONS));
- JToolBarHelper::custom('reservation.view', 'preview' , 'preview', "View" );
- JToolBarHelper::editList('reservation.edit');
- JToolBarHelper::deleteList('', 'reservation.remove', "Delete");
- $rows = & $this->get("Items");
- $pagination = & $this->get("Pagination");
- $sorting = & $this->get("Sorting");
- $searchword = & $this->get("SearchWord");
- $schedule_id = $this->get("ScheduleId");
- $this->assignRef('rows', $rows);
- $this->assignRef('pagination', $pagination);
- $this->assignRef('sorting', $sorting);
- $this->assignRef('searchword', $searchword);
- $this->assignRef('scheduleid', $schedule_id);
- parent::display();
- }
- }
- in tmpl/default.php
- <?phpdefined( '_JEXEC' ) or die( 'Restricted access' );
- jimport('joomla.application.component.view');
- jimport('joomla.html.toolbar');
- require_once(JPATH_ADMINISTRATOR.DS.'includes'.DS.'toolbar.php');
- class JBaseView extends JView
- {
- function display($tpl=null)
- {
- global $mainframe, $option;
- JHTML::stylesheet('rounded.css', "components/$option/assets/css/");
- JHTML::stylesheet('layout.css', "components/$option/assets/css/");
- $bar = JToolBar::getInstance('toolbar');
- $bar->addButtonPath(JPATH_COMPONENT.DS.'assets'.DS.'images'.DS.'toolbar');
- ?>
- <div id="my-header">
- <div id="toolbar-box">
- <div>
- <div>
- <div></div>
- </div>
- </div>
- <div>
- <div></div>
- </div>
- <div>
- <div>
- <div></div>
- </div>
- </div>
- </div>
- <div></div>
- </div>
- <div id="my-main">
- <?php parent::display($tpl);?>
- </div>
- <?php
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement