PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.6.4
VikBooking Hotel Booking Engine & PMS v1.6.4
1.8.16 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 All 37 releases
vikbooking / site / views / operators / tmpl / default_dashboard.php

default_dashboard.php in VikBooking Hotel Booking Engine & PMS 1.6.4, at site/views/operators/tmpl/default_dashboard.php

55 lines 2.1 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 $operator = $this->operator;
14
15 $operator['perms'] = !empty($operator['perms']) ? json_decode($operator['perms'], true) : array();
16 $operator['perms'] = is_array($operator['perms']) ? $operator['perms'] : array();
17
18 $pitemid = VikRequest::getInt('Itemid', '', 'request');
19
20 ?>
21 <div class="vbo-operator-dashboard">
22 <h3><?php echo $operator['first_name'] . ' ' . $operator['last_name']; ?></h3>
23 <div class="vbo-operator-dashboard-logout">
24 <form action="<?php echo JRoute::rewrite('index.php?option=com_vikbooking&task=operatorlogout&Itemid=' . $pitemid); ?>" method="post">
25 <input type="submit" name="logout" value="<?php echo JText::translate('VBOLOGOUT'); ?>" class="vbo-logout vbo-pref-color-btn-secondary" />
26 <input type="hidden" name="option" value="com_vikbooking" />
27 <input type="hidden" name="task" value="operatorlogout" />
28 <?php
29 if (!empty($pitemid)) {
30 ?>
31 <input type="hidden" name="Itemid" value="<?php echo $pitemid; ?>" />
32 <?php
33 }
34 ?>
35 </form>
36 </div>
37 <div class="vbo-operator-dashboard-links">
38 <ul>
39 <?php
40 foreach ($operator['perms'] as $perm) {
41 ?>
42 <li>
43 <div class="vbo-operator-dashboard-link-left">
44 <a href="<?php echo JRoute::rewrite('index.php?option=com_vikbooking&view='.$perm['type'].(!empty($pitemid) ? '&Itemid='.$pitemid : '')); ?>"><?php echo JText::translate('VBOOPERPG'.strtoupper($perm['type'])); ?></a>
45 </div>
46 <div class="vbo-operator-dashboard-link-right">
47 <a class="btn vbo-pref-color-btn" href="<?php echo JRoute::rewrite('index.php?option=com_vikbooking&view='.$perm['type'].(!empty($pitemid) ? '&Itemid='.$pitemid : '')); ?>"><?php echo JText::translate('VBOOPERVIEWPG'); ?></a>
48 </div>
49 </li>
50 <?php
51 }
52 ?>
53 </ul>
54 </div>
55 </div>