PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.6.8
VikBooking Hotel Booking Engine & PMS v1.6.8
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 / admin / views / prices / tmpl / default.php

default.php in VikBooking Hotel Booking Engine & PMS 1.6.8, at admin/views/prices/tmpl/default.php

86 lines 3.9 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 $rows = $this->rows;
14 $lim0 = $this->lim0;
15 $navbut = $this->navbut;
16
17 if (empty($rows)) {
18 ?>
19 <div class="vbo-admin-wizard-container">
20 <div class="vbo-admin-wizard-inner">
21 <a class="btn vbo-wizard-btn" href="javascript: void(0);" onclick="showVboWizard();"><?php VikBookingIcons::e('magic'); ?> <?php echo JText::translate('VBOTOGGLEWIZARD'); ?></a>
22 </div>
23 </div>
24 <p class="warn"><?php echo JText::translate('VBNOPRICESFOUND'); ?></p>
25 <form action="index.php?option=com_vikbooking" method="post" name="adminForm" id="adminForm">
26 <input type="hidden" name="task" value="" />
27 <input type="hidden" name="option" value="com_vikbooking" />
28 </form>
29 <?php
30 // load wizard template
31 echo $this->loadTemplate('wizard');
32 } else {
33 ?>
34 <form action="index.php?option=com_vikbooking" method="post" name="adminForm" id="adminForm" class="vbo-list-form">
35 <div class="table-responsive">
36 <table cellpadding="4" cellspacing="0" border="0" width="100%" class="table table-striped vbo-list-table">
37 <thead>
38 <tr>
39 <th width="20">
40 <input type="checkbox" onclick="Joomla.checkAll(this)" value="" name="checkall-toggle">
41 </th>
42 <th class="title left" width="200"><?php echo JText::translate( 'VBPVIEWPRICESONE' ); ?></th>
43 <th class="title left" width="100"><?php echo JText::translate( 'VBPVIEWPRICESTWO' ); ?></th>
44 <th class="title center" width="100"><?php echo JText::translate( 'VBPVIEWPRICESTHREE' ); ?></th>
45 <th class="title left" width="150"><?php echo JText::translate( 'VBOPRICETYPESRESTR' ); ?></th>
46 <th class="title center" width="100"><?php echo JText::translate( 'VBNEWPRICEBREAKFAST' ); ?></th>
47 <th class="title center" width="100"><?php echo JText::translate( 'VBNEWPRICEFREECANC' ); ?></th>
48 </tr>
49 </thead>
50 <?php
51 $k = 0;
52 $i = 0;
53 for ($i = 0, $n = count($rows); $i < $n; $i++) {
54 $row = $rows[$i];
55 $restr = array();
56 if ($row['minlos'] > 1) {
57 $restr[] = JText::translate('VBOPRICETYPEMINLOS').': '.$row['minlos'];
58 }
59 if ($row['minhadv'] > 0) {
60 $restr[] = JText::translate('VBOPRICETYPEMINHADV').': '.$row['minhadv'];
61 }
62 $aliq = VikBooking::getAliq($row['idiva']);
63 ?>
64 <tr class="row<?php echo $k; ?>">
65 <td><input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row['id']; ?>" onclick="Joomla.isChecked(this.checked);"></td>
66 <td class="vbo-highlighted-td"><a href="index.php?option=com_vikbooking&amp;task=editprice&cid[]=<?php echo $row['id']; ?>"><?php echo $row['name']; ?></a></td>
67 <td><?php echo $row['attr']; ?></td>
68 <td class="center"><?php echo !empty($aliq) ? $aliq.'%' : '----'; ?></td>
69 <td><?php echo implode(', ', $restr); ?></td>
70 <td class="center"><?php echo (intval($row['breakfast_included'])==1 ? "<i class=\"".VikBookingIcons::i('check', 'vbo-icn-img')."\" style=\"color: #099909;\"></i>" : "<i class=\"".VikBookingIcons::i('times-circle', 'vbo-icn-img')."\" style=\"color: #ff0000;\"></i>"); ?></td>
71 <td class="center"><?php echo (intval($row['free_cancellation'])==1 ? "<i class=\"".VikBookingIcons::i('check', 'vbo-icn-img')."\" style=\"color: #099909;\" title=\"".JText::sprintf('VBNEWPRICEFREECANCDLINETIP', $row['canc_deadline'])."\"></i>" : "<i class=\"".VikBookingIcons::i('times-circle', 'vbo-icn-img')."\" style=\"color: #ff0000;\"></i>"); ?></td>
72 </tr>
73 <?php
74 $k = 1 - $k;
75 }
76 ?>
77 </table>
78 </div>
79 <input type="hidden" name="option" value="com_vikbooking" />
80 <input type="hidden" name="task" value="prices" />
81 <input type="hidden" name="boxchecked" value="0" />
82 <?php echo JHtml::fetch('form.token'); ?>
83 <?php echo $navbut; ?>
84 </form>
85 <?php
86 }