PluginProbe
VikBooking Hotel Booking Engine & PMS / trunk
VikBooking Hotel Booking Engine & PMS vtrunk
1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 All 36 releases
vikbooking / admin / views / trkconfig / view.html.php

view.html.php in VikBooking Hotel Booking Engine & PMS trunk, at admin/views/trkconfig/view.html.php

50 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package VikBooking
4 * @subpackage com_vikbooking
5 * @author Alessio Gaggii - e4j - Extensionsforjoomla.com
6 * @copyright Copyright (C) 2018 e4j - Extensionsforjoomla.com. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 * @link https://vikwp.com
9 */
10
11 defined('ABSPATH') or die('No script kiddies please!');
12
13 // import Joomla view library
14 jimport('joomla.application.component.view');
15
16 class VikBookingViewTrkconfig extends JViewVikBooking
17 {
18 public function display($tpl = null)
19 {
20 // Set the toolbar
21 $this->addToolBar();
22
23 // require the tracker class
24 VikBooking::getTracker(true);
25 //
26
27 $trksettings = VikBookingTracker::loadSettings();
28
29 $this->trksettings = $trksettings;
30
31 // Display the template
32 parent::display($tpl);
33 }
34
35 /**
36 * Sets the toolbar
37 */
38 protected function addToolBar()
39 {
40 JToolBarHelper::title(JText::translate('VBMAINTRACKINGSTITLE'), 'vikbooking');
41 if (JFactory::getUser()->authorise('core.edit', 'com_vikbooking')) {
42 JToolBarHelper::apply( 'savetrkconfigstay', JText::translate('VBSAVE'));
43 JToolBarHelper::save( 'savetrkconfig', JText::translate('VBSAVECLOSE'));
44 JToolBarHelper::spacer();
45 }
46 JToolBarHelper::cancel( 'canceltrk', JText::translate('VBBACK'));
47 JToolBarHelper::spacer();
48 }
49 }
50