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 / iva / tmpl / default.php

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

77 lines 2.7 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 <p class="warn"><?php echo JText::translate('VBNOIVAFOUND'); ?></p>
20 <form action="index.php?option=com_vikbooking" method="post" name="adminForm" id="adminForm">
21 <input type="hidden" name="task" value="" />
22 <input type="hidden" name="option" value="com_vikbooking" />
23 </form>
24 <?php
25 } else {
26 ?>
27 <form action="index.php?option=com_vikbooking" method="post" name="adminForm" id="adminForm" class="vbo-list-form">
28 <div class="table-responsive">
29 <table cellpadding="4" cellspacing="0" border="0" width="100%" class="table table-striped vbo-list-table">
30 <thead>
31 <tr>
32 <th width="20">
33 <input type="checkbox" onclick="Joomla.checkAll(this)" value="" name="checkall-toggle">
34 </th>
35 <th class="title left" width="150"><?php echo JText::translate( 'VBPVIEWIVAONE' ); ?></th>
36 <th class="title left" width="150"><?php echo JText::translate( 'VBPVIEWIVATWO' ); ?></th>
37 <th class="title center" width="150"><?php echo JText::translate( 'VBOTAXBKDWNCOUNT' ); ?></th>
38 </tr>
39 </thead>
40 <?php
41 $k = 0;
42 $i = 0;
43 for ($i = 0, $n = count($rows); $i < $n; $i++) {
44 $row = $rows[$i];
45 $breakdown_str = '-----';
46 if (!empty($row['breakdown'])) {
47 $breakdown = json_decode($row['breakdown'], true);
48 if (is_array($breakdown) && count($breakdown) > 0) {
49 $breakdown_aliq = array();
50 foreach ($breakdown as $key => $subtax) {
51 $breakdown_aliq[] = $subtax['aliq'].'%';
52 }
53 $breakdown_str = implode(', ', $breakdown_aliq);
54 }
55 }
56 $breakdown_str .= $row['taxcap'] > 0 ? ' (' . JText::translate('VBNEWIVATAXCAP') . ')' : '';
57 ?>
58 <tr class="row<?php echo $k; ?>">
59 <td><input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row['id']; ?>" onclick="Joomla.isChecked(this.checked);"></td>
60 <td class="vbo-highlighted-td"><a href="index.php?option=com_vikbooking&amp;task=editiva&amp;cid[]=<?php echo $row['id']; ?>"><?php echo $row['name']; ?></a></td>
61 <td><?php echo $row['aliq']; ?></td>
62 <td style="text-align: center;"><?php echo $breakdown_str; ?></td>
63 </tr>
64 <?php
65 $k = 1 - $k;
66 }
67 ?>
68 </table>
69 </div>
70 <input type="hidden" name="option" value="com_vikbooking" />
71 <input type="hidden" name="task" value="iva" />
72 <input type="hidden" name="boxchecked" value="0" />
73 <?php echo JHtml::fetch('form.token'); ?>
74 <?php echo $navbut; ?>
75 </form>
76 <?php
77 }